*/
#$show_dir = "/export/data/Pictures/showdir";
-$show_dir = "/home/paulr/lithium/data/Pictures/show";
+$show_dir = "/net/iron/export/quickshow/";
$n_per_line = 4;
$this_url = "http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
if(isset($_REQUEST["showpic"])) {
// show the pic requested...
- if(preg_match("/.*\\+.*/", $_REQUEST["showpic"])) {
+ if(preg_match("/.*\/+.*/", $_REQUEST["showpic"])) {
header("Status: 403 i dont think so");
error_log("throwing 403");
return;
}
} else if(isset($_REQUEST["showtmp"])) {
// nothing yet
- if(preg_match("/.*\\+.*/", $_REQUEST["showtmp"])) {
+ if(preg_match("/.*\/+.*/", $_REQUEST["showtmp"])) {
error_log("throwing 403");
header("Status: 403 i dont think so");
return;