diff --git a/README.md b/README.md index e087551..b011ebc 100644 --- a/README.md +++ b/README.md @@ -280,6 +280,7 @@ Revision history v0.6.x (latest) +* Change name of script all-in-one to `webrrot/imgs.php` #73. * Combine all code into one singel script, `webroot/img_single.php` #73. * Disallow hotlinking/leeching by configuration #46. * Alias-name is without extension #47. diff --git a/create-img-single.bash b/create-img-single.bash index a4480e4..15632ec 100755 --- a/create-img-single.bash +++ b/create-img-single.bash @@ -3,7 +3,7 @@ # # Paths and settings # -TARGET="webroot/img_single.php" +TARGET="webroot/imgs.php" NEWLINES="\n\n\n" @@ -29,7 +29,7 @@ fi # # Print out details on cache-directory # -$ECHO "Creating webroot/img_single.php by combining the following files:" +$ECHO "Creating '$TARGET' by combining the following files:" $ECHO "\n" $ECHO "\n webroot/img_single_header.php" $ECHO "\n CHttpGet.php" diff --git a/webroot/img_single_header.php b/webroot/img_single_header.php index ff1f323..ed9ecdd 100644 --- a/webroot/img_single_header.php +++ b/webroot/img_single_header.php @@ -12,10 +12,17 @@ /** * Change configuration details in the array below or create a separate file * where you store the configuration details. Name the config file same name as - * this file and add '_config.php'. If this file is named 'img.php' then name the + * this file and add '_config.php'. If this file is named 'img.php' then name the * config file 'img_config.php'. - * + * The settings below are only a few of the available ones. Check the file in + * webroot/img_config.php for a complete list of configuration options. */ $config = array( + //'image_path' => __DIR__ . '/img/', + //'cache_path' => __DIR__ . '/../cache/', + //'alias_path' => __DIR__ . '/img/alias/', + //'remote_allow' => true, + //'password' => false, // "secret-password", + ); diff --git a/webroot/img_single.php b/webroot/imgs.php similarity index 99% rename from webroot/img_single.php rename to webroot/imgs.php index c406b42..26b6cb2 100644 --- a/webroot/img_single.php +++ b/webroot/imgs.php @@ -14,10 +14,17 @@ * where you store the configuration details. Name the config file same name as * this file and add '_config.php'. If this file is named 'img.php' then name the * config file 'img_config.php'. - * + * The settings below are only a few of the available ones. Check the file in + * webroot/img_config.php for a complete list of configuration options. */ $config = array( + //'image_path' => __DIR__ . '/img/', + //'cache_path' => __DIR__ . '/../cache/', + //'alias_path' => __DIR__ . '/img/alias/', + //'remote_allow' => true, + //'password' => false, // "secret-password", + ); @@ -3832,3 +3839,6 @@ $img->log("Incoming arguments: " . print_r(verbose(), 1)) ->save() ->linkToCacheFile($aliasTarget) ->output(); + + +