求助 第121行到底哪里错了 Parse error: syntax error, unexpected T_ELSE, expecting T_WHILE in E:\********\**** on line 121
<?php
/*********************/
/* */
/* Version : 5.1.0 */
/* Author : RM */
/* Comment : 071223 */
/* */
/*********************/define( "IN_ADMIN", TRUE );
define( "SCRIPTNAV", "admincp" );
require( dirname( __FILE__ )."/core/init.php" );
$_G['loader']->helper( "admincp,license" );
define( "MUDDER_ADMIN", MUDDER_CORE."admin".DS );
$_G['loader']->model( "admin", FALSE );
$_G['admin'] =& $_G['loader']->model( "cpuser" );
$admin =& $_G['admin'];
if ( _get( "logout" ) )
{
$admin->logout( );
exit( );
}
if ( empty( $admin->access ) )
{
if ( !$_POST['loginsubmit'] )
{
include( MUDDER_ADMIN."cplogin.inc.php" );
exit( );
}
$admin->login( );
}
else if ( $admin->access == "1" )
{
if ( !_post( "admin_pw" ) && md5( _post( "admin_pw" ) ) != $admin->password )
{
include( MUDDER_ADMIN."cplogin.inc.php" );
exit( );
}
$admin->update_sessions( );
redirect( "admincp_login_wait", SELF );
}
else if ( $admin->access == "2" )
{
redirect( "admincp_login_op_without", SELF."?logout=yes" );
}
else if ( $admin->access == "3" )
{
redirect( "admincp_cpuser_colsed", SELF."?logout=yes" );
}
else if ( $admin->access == "4" )
{
redirect( lang( "admincp_cpuser_city_access", $REE2F6A197E455A22562E4E6EB2A333C2['name'] ), SELF."?logout=yes" );
}
if ( empty( $admin->id ) || $admin->id < 0 || !$admin->isLogin )
{
redirect( "admincp_not_login", SELF );
}
$module = _input( "module" );
$act = _input( "act" );
$in_ajax = 0;
$in_ajax = _input( "in_ajax" );
$_G['loader']->helper( "form" );
if ( empty( $module ) || $module == "modoer" )
{
do
{
$module = "modoer";
if ( empty( $act ) )
{
$tab = "home";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\r\n<html><head>\r\n<title>";
echo lang( "admincp_title" );
echo "</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $_G['charset'];
echo "\">\r\n<script type=\"text/javascript\" src=\"./static/javascript/jquery.js\"></script>\r\n<script type=\"text/javascript\" src=\"./static/javascript/admin.js\"></script>\r\n<script type=\"text/javascript\">\r\n\$(document).ready(function() {\r\n\t\$(document).keydown(resetEscAndF5);\r\n});\r\n</script>\r\n</head>\r\n<body style=\"margin: 0px\" scroll=\"no\">\r\n<div style=\"position: absolute;top: 0px;left: 0px; z-index: 2;height: 55px;width: 100%\">\r\n<iframe frameborder=\"0\" id=\"header\" name=\"header\" src=\"";
echo cpurl( "modoer", "cpheader" );
echo "\" scrolling=\"no\" style=\"height: 55px; visibility: inherit; width: 100%; z-index: 1;\"></iframe>\r\n</div>\r\n<table border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" height=\"100%\" width=\"100%\" style=\"table-layout: fixed;\">\r\n<tr><td width=\"173\" height=\"55\"></td><td></td></tr>\r\n<tr>\r\n<td width=\"173\"><iframe frameborder=\"0\" id=\"menu\" name=\"menu\" src=\"";
echo SELF;
echo "?module=modoer&act=cpmenu&tab=";
echo $tab;
echo "\" scrolling=\"auto\" style=\"height:100%;visibility:inherit;width:100%;z-index:1;overflow-x:hidden;overflow-y:auto; \"></iframe></td>\r\n<td width=\"*\"><iframe frameborder=\"0\" id=\"main\" name=\"main\" src=\"";
echo cpurl( "modoer", "cphome" );
echo "\" scrolling=\"yes\" style=\"height: 100%; visibility: inherit; width: 100%; z-index: 1;overflow: auto;\"></iframe></td>\r\n</tr></table>\r\n</body>\r\n</html>\r\n";
exit( 0 );
}
if ( !$admin->check_access( "modoer" ) || !in_array( $act, array( "cpheader", "cpmenu", "cphome", "help", "admin" ) ) )
{
redirect( "global_op_access" );
}
$RE8075232DAAE3481BAEFB25BCC782D6C = MUDDER_ADMIN.$act.".inc.php";
if ( !is_file( $RE8075232DAAE3481BAEFB25BCC782D6C ) )
{
show_error( lang( "global_file_not_exist", "[ADMIN_DIR]".DS.$act.".inc.php" ) );
}
include( $RE8075232DAAE3481BAEFB25BCC782D6C );
$R9702B7A88A910873E2263A41450DC9B5 = array( "cpheader", "cpmenu" );
if ( !$in_ajax || !in_array( $act, $R9702B7A88A910873E2263A41450DC9B5 ) )
{
cpheader( );
}
if ( $admin->tplname )
{
if ( !is_file( MUDDER_CORE.$admin->tplname ) )
{
show_error( sprintf( lang( "global_file_not_exist" ), $admin->tplname ) );
}
include( MUDDER_CORE.$admin->tplname );
}
if ( !$in_ajax )
{
if ( in_array( $act, $R9702B7A88A910873E2263A41450DC9B5 ) )
{
break;
}
else
{
cpfooter( );
}
}
}
else if ( isset( $_G['modules'][$module] ) )
{
if ( !$admin->check_access( $module ) )
{
redirect( "global_op_access" );
}
$RC068ABF2DAB8261A35D84F5EBF50C6E6 = "modules".DS.$module;
require_once( MUDDER_CORE.$RC068ABF2DAB8261A35D84F5EBF50C6E6.DS."common.php" );
if ( preg_match( "/^[0-9a-z\\_\\.]+\$/i", $act ) )
{
$RE8075232DAAE3481BAEFB25BCC782D6C = MOD_ROOT."admin".DS.$act.".inc.php";
if ( !is_file( $RE8075232DAAE3481BAEFB25BCC782D6C ) )
{
show_error( lang( "global_file_not_exist", $_G['modules'][$module]['directory'].DS."admin".DS.$act.".inc.php" ) );
}
include( $RE8075232DAAE3481BAEFB25BCC782D6C );
if ( !$in_ajax )
{
cpheader( );
}
if ( $admin->tplname )
{
if ( !is_file( MUDDER_CORE.$admin->tplname ) )
{
show_error( lang( "global_file_not_exist", $admin->tplname ) );
include( MUDDER_CORE.$admin->tplname );
}
include( MUDDER_CORE.$admin->tplname );
}
if ( $in_ajax )
{
break;
}
cpfooter( );
}
else
{
show_error( lang( "global_op_unkown" ) );
}
}
else
{
show_error( lang( "global_not_found_module", $module ) );
} while ( 0 );
}
?>
do {
show_error( lang( "global_not_found_module", $module ) );
} while ( 0 );
}
?>
/*********************/
/* */
/* Version : 5.1.0 */
/* Author : RM */
/* Comment : 071223 */
/* */
/*********************/define( "IN_ADMIN", TRUE );
define( "SCRIPTNAV", "admincp" );
require( dirname( __FILE__ )."/core/init.php" );
$_G['loader']->helper( "admincp,license" );
define( "MUDDER_ADMIN", MUDDER_CORE."admin".DS );
$_G['loader']->model( "admin", FALSE );
$_G['admin'] =& $_G['loader']->model( "cpuser" );
$admin =& $_G['admin'];
if ( _get( "logout" ) )
{
$admin->logout( );
exit( );
}
if ( empty( $admin->access ) )
{
if ( !$_POST['loginsubmit'] )
{
include( MUDDER_ADMIN."cplogin.inc.php" );
exit( );
}
$admin->login( );
}
else if ( $admin->access == "1" )
{
if ( !_post( "admin_pw" ) && md5( _post( "admin_pw" ) ) != $admin->password )
{
include( MUDDER_ADMIN."cplogin.inc.php" );
exit( );
}
$admin->update_sessions( );
redirect( "admincp_login_wait", SELF );
}
else if ( $admin->access == "2" )
{
redirect( "admincp_login_op_without", SELF."?logout=yes" );
}
else if ( $admin->access == "3" )
{
redirect( "admincp_cpuser_colsed", SELF."?logout=yes" );
}
else if ( $admin->access == "4" )
{
redirect( lang( "admincp_cpuser_city_access", $REE2F6A197E455A22562E4E6EB2A333C2['name'] ), SELF."?logout=yes" );
}
if ( empty( $admin->id ) || $admin->id < 0 || !$admin->isLogin )
{
redirect( "admincp_not_login", SELF );
}
$module = _input( "module" );
$act = _input( "act" );
$in_ajax = 0;
$in_ajax = _input( "in_ajax" );
$_G['loader']->helper( "form" );
if ( empty( $module ) || $module == "modoer" )
{
do
{
$module = "modoer";
if ( empty( $act ) )
{
$tab = "home";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\r\n<html><head>\r\n<title>";
echo lang( "admincp_title" );
echo "</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $_G['charset'];
echo "\">\r\n<script type=\"text/javascript\" src=\"./static/javascript/jquery.js\"></script>\r\n<script type=\"text/javascript\" src=\"./static/javascript/admin.js\"></script>\r\n<script type=\"text/javascript\">\r\n\$(document).ready(function() {\r\n\t\$(document).keydown(resetEscAndF5);\r\n});\r\n</script>\r\n</head>\r\n<body style=\"margin: 0px\" scroll=\"no\">\r\n<div style=\"position: absolute;top: 0px;left: 0px; z-index: 2;height: 55px;width: 100%\">\r\n<iframe frameborder=\"0\" id=\"header\" name=\"header\" src=\"";
echo cpurl( "modoer", "cpheader" );
echo "\" scrolling=\"no\" style=\"height: 55px; visibility: inherit; width: 100%; z-index: 1;\"></iframe>\r\n</div>\r\n<table border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" height=\"100%\" width=\"100%\" style=\"table-layout: fixed;\">\r\n<tr><td width=\"173\" height=\"55\"></td><td></td></tr>\r\n<tr>\r\n<td width=\"173\"><iframe frameborder=\"0\" id=\"menu\" name=\"menu\" src=\"";
echo SELF;
echo "?module=modoer&act=cpmenu&tab=";
echo $tab;
echo "\" scrolling=\"auto\" style=\"height:100%;visibility:inherit;width:100%;z-index:1;overflow-x:hidden;overflow-y:auto; \"></iframe></td>\r\n<td width=\"*\"><iframe frameborder=\"0\" id=\"main\" name=\"main\" src=\"";
echo cpurl( "modoer", "cphome" );
echo "\" scrolling=\"yes\" style=\"height: 100%; visibility: inherit; width: 100%; z-index: 1;overflow: auto;\"></iframe></td>\r\n</tr></table>\r\n</body>\r\n</html>\r\n";
exit( 0 );
}
if ( !$admin->check_access( "modoer" ) || !in_array( $act, array( "cpheader", "cpmenu", "cphome", "help", "admin" ) ) )
{
redirect( "global_op_access" );
}
$RE8075232DAAE3481BAEFB25BCC782D6C = MUDDER_ADMIN.$act.".inc.php";
if ( !is_file( $RE8075232DAAE3481BAEFB25BCC782D6C ) )
{
show_error( lang( "global_file_not_exist", "[ADMIN_DIR]".DS.$act.".inc.php" ) );
}
include( $RE8075232DAAE3481BAEFB25BCC782D6C );
$R9702B7A88A910873E2263A41450DC9B5 = array( "cpheader", "cpmenu" );
if ( !$in_ajax || !in_array( $act, $R9702B7A88A910873E2263A41450DC9B5 ) )
{
cpheader( );
}
if ( $admin->tplname )
{
if ( !is_file( MUDDER_CORE.$admin->tplname ) )
{
show_error( sprintf( lang( "global_file_not_exist" ), $admin->tplname ) );
}
include( MUDDER_CORE.$admin->tplname );
}
if ( !$in_ajax )
{
if ( in_array( $act, $R9702B7A88A910873E2263A41450DC9B5 ) )
{
break;
}
else
{
cpfooter( );
}
}
else if ( isset( $_G['modules'][$module] ) )
{
if ( !$admin->check_access( $module ) )
{
redirect( "global_op_access" );
}
$RC068ABF2DAB8261A35D84F5EBF50C6E6 = "modules".DS.$module;
require_once( MUDDER_CORE.$RC068ABF2DAB8261A35D84F5EBF50C6E6.DS."common.php" );
if ( preg_match( "/^[0-9a-z\\_\\.]+\$/i", $act ) )
{
$RE8075232DAAE3481BAEFB25BCC782D6C = MOD_ROOT."admin".DS.$act.".inc.php";
if ( !is_file( $RE8075232DAAE3481BAEFB25BCC782D6C ) )
{
show_error( lang( "global_file_not_exist", $_G['modules'][$module]['directory'].DS."admin".DS.$act.".inc.php" ) );
}
include( $RE8075232DAAE3481BAEFB25BCC782D6C );
if ( !$in_ajax )
{
cpheader( );
}
if ( $admin->tplname )
{
if ( !is_file( MUDDER_CORE.$admin->tplname ) )
{
show_error( lang( "global_file_not_exist", $admin->tplname ) );
include( MUDDER_CORE.$admin->tplname );
}
include( MUDDER_CORE.$admin->tplname );
}
if ( $in_ajax )
{
break;
}
cpfooter( );
}
else
{
show_error( lang( "global_op_unkown" ) );
}
}
else
{
show_error( lang( "global_not_found_module", $module ) );
}
} while ( 0 );
}
?>