📄 index.php
字号:
<?php
$pagestarttime = microtime( );
include_once( "inc/auth.php" );
include_once( "inc/reg_check.php" );
if ( $OA_REG_ON != 2 )
{
exit( );
}
echo "\r\n<html>\r\n<head>\r\n<title>我的办公桌</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
echo "<s";
echo "cript Language=JavaScript>\r\nwindow.setTimeout('this.location.reload();',200000);\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" leftmargin=\"5\">\r\n\r\n\r\n<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"65%\" valign=\"top\">\r\n\r\n<!-------------------------------------- 左半部分 ----------------------------------->\r\n\r\n\r\n";
$I = 0;
if ( $handle = opendir( "./left" ) )
{
while ( false !== ( $file = readdir( $handle ) ) )
{
if ( $file != "." && $file != ".." )
{
$LEFT_ARRAY[$I++] = $file;
}
}
closedir( $handle );
}
if ( 0 < sizeof( $LEFT_ARRAY ) )
{
sort( $LEFT_ARRAY );
reset( $LEFT_ARRAY );
}
$I = 0;
for ( ; $I < sizeof( $LEFT_ARRAY ); ++$I )
{
echo " <table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\">\r\n";
include_once( "left/{$LEFT_ARRAY[$I]}" );
echo " </table><br>\r\n";
}
is_registered( );
if ( !$IS_REGISTERED_MYOA )
{
echo "<br><br>\r\n<div align=\"center\">\r\n <input type=\"submit\" value=\"软件尚未注册,请点击这里注册\" class=\"BigButton\" onclick=\"location='/inc/reg.php'\">\r\n</div>\r\n\r\n";
}
echo " </td>\r\n <td width=\"5%\"></td>\r\n\r\n<!-------------------------------------- 右半部分 ----------------------------------->\r\n <td width=\"30%\" align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellspacing=\"1\" width=\"250\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\">\r\n";
$I = 0;
if ( $handle = opendir( "./right" ) )
{
while ( false !== ( $file = readdir( $handle ) ) )
{
if ( $file != "." && $file != ".." )
{
$RIGHT_ARRAY[$I++] = $file;
}
}
closedir( $handle );
}
if ( 0 < sizeof( $RIGHT_ARRAY ) )
{
sort( $RIGHT_ARRAY );
reset( $RIGHT_ARRAY );
}
$I = 0;
for ( ; $I < sizeof( $RIGHT_ARRAY ); ++$I )
{
include_once( "right/{$RIGHT_ARRAY[$I]}" );
}
echo " </table>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n";
if ( $LOGIN_USER_ID == "admin" )
{
$pageendtime = microtime( );
$starttime = explode( " ", $pagestarttime );
$endtime = explode( " ", $pageendtime );
$beforetime = abs( $endtime[1] - $starttime[1] + $endtime[0] - $starttime[0] );
echo "<br><span class=big3>管理员提示:本页面执行时间 ".$beforetime." 秒</span>";
}
echo "</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -