include_once($_SERVER['DOCUMENT_ROOT']."/_inc/mng_cnn.php"); include_once($_SERVER['DOCUMENT_ROOT']."/_inc/functions.php"); $url = (isset($_REQUEST["url"])? strtolower(trim($_REQUEST["url"])): ""); $url = ereg_replace ("/", "", $url); $SCRIPT = $_SERVER['PHP_SELF']; ; // echo($physical_path); $conf = "0"; if ($physical_path = @opendir($_SERVER['DOCUMENT_ROOT']."/-/artists/$url")){ $url = t_h($url); $rs = mysql_query("SELECT url FROM art_artist Where url = '$url'"); if(mysql_num_rows($rs)!=0) $conf = "1"; closedir($physical_path); } if ($conf=="1"){ header("Location: /-/artists/$url/"); exit; } else{ include_once($_SERVER['DOCUMENT_ROOT']."/-/art/index.php"); //echo "