Размер файла: 1.52Kb
<? php error_reporting ( 3 ); include ( $rootpath . "function.inc" ); if ( substr ( $_SERVER [ 'QUERY_STRING' ], 0 , 9 )== 'not_found' ) include ( $rootpath . "not_found_wap.php" ); if ( substr ( $_SERVER [ 'QUERY_STRING' ], 0 , 14 )== 'access_denided' ) include ( $rootpath . "access_denided_wap.php" ); define ( "DBName" , "kmx" ); define ( "HostName" , "localhost" ); define ( "UserName" , "kmx" ); define ( "Password" , "kmx-hosting" ); $connectserv = @mysql_connect ( HostName , UserName , Password ); $selectDB = @mysql_select_db ( DBName ); $connect_bd =(( $connectserv != 0 )&&( $selectDB != 0 )); mt_srand (( double ) microtime ()* 1000000 ); if ( $HTTP_POST_VARS [ 'query' ]!= '' ) $target = explode ( '/' , $HTTP_POST_VARS [ 'query' ], 7 ); else $target = explode ( '/' , $_SERVER [ 'QUERY_STRING' ], 7 ); if ( $target [ 0 ]!= '' ) $id = $target [ 0 ]; if ( $target [ 1 ]!= '' ) $query0 = $target [ 1 ]; if ( $target [ 2 ]!= '' ) $query1 = $target [ 2 ]; if ( $target [ 3 ]!= '' ) $query2 = $target [ 3 ]; if ( $target [ 4 ]!= '' ) $query3 = $target [ 4 ]; if ( $target [ 5 ]!= '' ) $query4 = $target [ 5 ]; if ( $target [ 6 ]!= '' ) $query5 = $target [ 6 ]; include ( $rootpath . "user_check.inc" ); #$msg='<small><b>В результате сбоя были повреждены некоторые сайты. Часть была восстановлена, часть пришлось восстанавливать из backup за 5:00 30.03.2005г. Приносим глубочайшие извинения!</b></small><br/>'; switch ( $terminal ) { case 'web' : include ( $rootpath . "web/index.php" ); case 'wap' : include ( $rootpath . "wap/index.php" ); case 'wap2' : include ( $rootpath . "wap2/index.php" ); case 'adm' : include ( $rootpath . "admin/index.php" ); default : include ( $rootpath . "wap/index.php" ); } ?>