include_once "_inc_global.php"; include_once "_inc_header.php"; //-------load the correct function-------- $page=rqst("page"); $page=strtolower($page); $link=rqst("link"); //----------- NB: WE NEED TO ADD SECURITY CHECKS TO ALL FUNCTIONS! ------------- //--- OLD WAY: if(!$gLoggedIn && $page!="logout")$page="login"; //all functions require login if(strpos($page,"file")){ $act=str_replace("file","",$page); $typ="file"; $file=rqst("file"); $filetyp=myFileType($file); }else{ if(strpos($page,"filter")){ $act=str_replace("filter","",$page); $typ="file"; $file=rqst("file"); $filetyp=myFileType($file); }else{ $act=str_replace("dir","",$page); $typ="folder"; $file=""; $filetyp=""; } } if($file!="")$dirfile=$dirlink.$file; else $dirfile=$dir; //wrt("");; ?>