$root_path = '../'; $cad = $_SERVER['REQUEST_URI']; if(substr_count($cad, 'PHPSESSID')){ $res = substr($cad, 0, strlen($cad)-43); }else{ $res = $cad; } define("_BBC_PAGE_NAME", 'demo_'.$res); define("_BBCLONE_DIR", $root_path."bbclone/"); define("COUNTER", _BBCLONE_DIR."mark_page.php"); if (is_readable(COUNTER)) include_once(COUNTER); ?>