$url="http://".preg_replace("%(/disk[0-9]/)|(/public_html)%i","",$dir); > //$url=preg_replace("%/%i","",$url); > $url=preg_replace("/www\./i","%",$url); > $url=$_SERVER['SERVER_NAME'].dirname($_SERVER['REQUEST_URI']); if (substr($url,-1)=="/") $url=substr($url,0,-1); if (substr($url,-1)=="/") $url=substr($url,0,-1); $conn=mysql_connect("localhost","mccbala","mccbala"); $conn=mysql_connect("localhost","mccbala","mccbala"); $db=mysql_select_db("geepriya_concerts",$conn); $db=mysql_select_db("geepriya_concerts",$conn); $details=""; $details=""; $result=mysql_query("SELECT CONCAT(`UPLOADER`,'-',`CONCERT_ID`) AS `ID`, CONCAT(`CONCERT $result=mysql_query("SELECT CONCAT(`UPLOADER`,'-',`CONCERT_ID`) AS `ID`, CONCAT(`CONCERT if (!$result) $details .= 'This album has not been tagged yet.'; if (!$result) $details .= 'This album has not been tagged yet.'; else if (mysql_num_rows($result)<=1) { else if (mysql_num_rows($result)<=1) { $notag=true; $notag=true; $details .= '"; if ($notag==true) $details .= '
This album has not been t if ($notag==true) $details .= '
This album has not been t } } return $details; return $details; } } $url=$_SERVER["SCRIPT_URI"]; $url=$_SERVER["SCRIPT_URI"]; if(empty( $_SESSION['email'])) if(empty( $_SESSION['email'])) //if( $_COOKIE["email"] == "") //if( $_COOKIE["email"] == "") { { header("Location: http://". $_SERVER["HTTP_HOST"] . "/rpx-login-new.php?u=$url"); header("Location: http://". $_SERVER["HTTP_HOST"] . "/rpx-login-new.php?u=$url"); } } $t=time(); $t=time(); if (($t - $_SESSION['time']) > 28800) // a session is valid for 8 hours only if the browser is n if (($t - $_SESSION['time']) > 28800) // a session is valid for 8 hours only if the browser is n { { session_destroy(); session_destroy(); header("Location: http://". $_SERVER["HTTP_HOST"] . "/rpx-login-new.php?u=$url"); header("Location: http://". $_SERVER["HTTP_HOST"] . "/rpx-login-new.php?u=$url"); } } else else { { $title=basename(dirname($_SERVER['PHP_SELF'])); $title=basename(dirname($_SERVER['PHP_SELF'])); //$title=preg_replace('/[_-]+/',' ',basename(dirname($_SERVER['PHP_SELF']))); //$title=preg_replace('/[_-]+/',' ',basename(dirname($_SERVER['PHP_SELF']))); include_once $templatedir.'header.php'; include_once $templatedir.'header.php'; //####CONFIGURATION FILE#### //####CONFIGURATION FILE#### $excludelist=array(".bash_history",".bash_profile",".bashrc",".viminfo",".login",".comme $excludelist=array(".bash_history",".bash_profile",".bashrc",".viminfo",".login",".comme $captchalist=array("zip","mp3","wav","wma","mpg","mpeg","avi","rar","zip"); $captchalist=array("zip","mp3","wav","wma","mpg","mpeg","avi","rar","zip"); $curr_dir=getcwd(); $curr_dir=getcwd(); echo " echo " "; "; echo ""; echo "
"; if ($showdetails) echo '"; echo ""; echo "
'.showdetails().'
'.showdetails().'
"; echo "

Go to Parent Directory

Go to Parent Directory

"; echo "
"; echo ""; echo "
File NameSizeFile NameSize //echo "\t
//echo "\t
".$file | echo "\t
".preg_ } } } } } } } } echo "
"; echo "
"; include_once $commentfile; include_once $commentfile; echo "
"; | echo ""; } } echo '
'; echo ''; include_once $templatedir.'footer.php'; include_once $templatedir.'footer.php'; ?> ?>