// ---------------------------------------------------------------------------------- // set the pictures array // $list[] = full size $tlist[] = tumb nail // $caps[] = captions $tns[] = tumb instructions // $keyw[] = keywords in slides.cfg file // ===================================== // special variables on the command line // a=action (Gallery,Edit,Update,Tumb-update,Config) // p=pix number // ================================================================================== // Validate/authenticate values // phpinfo();exit; // echo "dir=$HTTP_GET_VARS[dir]"; exit; //================ Enable register_global======================= extract($_REQUEST,EXTR_SKIP); // ============================================================= $secret = md5( "sdfkjsdkflhkh23hkjsdk#$@%$#%DSF" ); $admin="irit"; $guest="visitor"; $users= array("tal","guy","dudi","halel ly","eli"); if ($p==l) { echo login($user); exit; } if ($check==1) check_login($user); if (!validate( $user, $session_key, $expiration_time, $hash, $passhash)) $user=$guest; $editor= ($user==$admin); // signal an authorized editor // ================================================================================== $list=array(); $tlist=array(); $caps=array(); $tns=array(); $keyw= array( "title" => "The page title", "tcolor" => "The text color for the title. Default maroon", "link" => "The link colors alink,vlink,link", "period" => "The period where the photos where taken", "home" => "The Url for the Home button on the menu", "delay" => "Set Delay in second for auto slideshow. 0 if no auto change", "dir" => "Define the Directory where the tumbnails are stored. Default current", "tdir" => "Define the Directory where the tumbnails are stored. Default current", "ncol" => "Number of columns in a gallery page. default 6", "cwd" => "Column width in a gallery page", "chi" => "maxColumn height in a gallery page", "xmax" => "the maximum width for a photo: default 640", "ymax" => "the maximum height for a photo: default 500", ); if (!isset($dir)) $dir = "."; // else if (isset($HTTP_GET_VAR['dir'])) $dir=$HTTP_GET_VAR['dir']; else if (strstr($QUERY_STRING,"dir=")) $dir=substr($QUERY_STRING,4); // passed on command line setcookie( "dir", $dir, time( ) + 36000, "/", "", 0 ); // echo "QUERY STRING=[$QUERY_STRING]"; // echo "dir=[$dir]"; exit; if (!isset($ncol)) $ncol=6; // for galerry if (!isset($cwd)) $cwd=100; // for galerry if (!isset($chi)) $chi=100; // for galerry if (!isset($xmax)) $xmax=640; // for photo display if (!isset($ymax)) $ymax=500; // for photo display if (!isset($title)) $title="Slide View by WebMgt"; // for photo display if (!isset($period))$period="Oct.2002"; // for photo display if (!isset($tcolor))$tcolor="maroon"; // for title and text if (!isset($link)) $link ="maroon,maroon,maroon"; $cFile ="$dir/slides.txt"; $caps= get_config($cFile); // disp_keywords(); exit; // echo "