From f60062deb36b708d1b28b0e264957562b06964f3 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 6 Nov 2013 16:10:19 +0100 Subject: [PATCH] support sub dirs --- .htaccess | 2 ++ http.md | 6 ++++++ index.js | 4 ++-- index.php | 32 +++++++++++++++----------------- propro.md | 7 +++++++ 5 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..479cadf --- /dev/null +++ b/.htaccess @@ -0,0 +1,2 @@ +RewriteEngine On +RewriteRule ^ index.php diff --git a/http.md b/http.md index bf651e2..a2d427b 100644 --- a/http.md +++ b/http.md @@ -13,6 +13,12 @@ Extended HTTP support. Again. Keep in mind that it's got the major version 2, be * Errors triggered by the extension can be configured statically by http\Object::$defaultErrorHandling or inherited http\Object->errorHandling. * The request ecosystem has been modularized to support different libraries, though for the moment only libcurl is supported. +## Installation: + +This extension is hosted at PECL () and can be installed eith PEAR's pecl command: + + # pecl install pecl_http + ## INI Directives: * http.etag.mode = "crc32b" diff --git a/index.js b/index.js index a6c3934..5f384ca 100644 --- a/index.js +++ b/index.js @@ -83,11 +83,11 @@ function type(s, nn) { t = s.substring(i+2); if (!is_constant(t) && !is_variable(t)) { // methods - return ""; + return ""; } } if (-1 !== (j = s.indexOf("\\")) && s.substr(j+1,1) !== "n") { - return ""; + return ""; } switch (s.toLowerCase()) { diff --git a/index.php b/index.php index 53c6529..7ae8e47 100644 --- a/index.php +++ b/index.php @@ -91,9 +91,9 @@ function urlpath($dir, $file) { function ls($dir) { $dir = rtrim(is_dir($dir) ? $dir : dirname($dir) ."/". basename($dir, ".md"), "/"); printf("