}
if (!mysql_select_db($GLOBALS['mysql_db'])) {
    print "Connection attempt to database failed. Please run <a href=\"install.php\">install.php</a> with valid  database configuration information.";
    exit;
}
/* check for mysql tables, if non-existent, point to install.php */
$failed = 0;
if (!mysql_table_exists("{$GLOBALS['mysql_prefix']}user")) {
    print "MySQL table '{$GLOBALS['mysql_prefix']}user' is missing<BR />";
    $failed = 1;
}
if ($failed) {
    print "One or more database tables is missing.  Please run <a href=\"install.php\">install.php</a> with valid database configuration information.";
    exit;
}
$expiry = expires();
// note global
require_once 'login.inc.php';
// 8/21/10
require_once 'status_cats.inc.php';
// 12/03/10
function remove_nls($instr)
{
    // 10/20/09
    $nls = array("\r\n", "\n", "\r");
    // note order
    return str_replace($nls, " ", $instr);
}
// end function
function mysql_table_exists($table)
{
    $a = true;
} else {
    if (substr($f, -3) == '.js') {
        $t = 'js';
    } elseif (substr($f, -4) == '.css') {
        $t = 'css';
    }
}
if ($t == 'js') {
    header('Content-Type:application/x-javascript;Charset=UTF-8');
} elseif ($t == 'css') {
    header('Content-Type:text/css;Charset=UTF-8');
} else {
    header('Content-Type:text/plain;Charset=UTF-8');
}
expires(12000000);
$basePath = realpath("./{$p}");
$contentList = array();
$loadedFileList = array();
$treeContentList = array();
$treeIndex = 0;
$startTime = microtime(true);
if ($basePath == false) {
    if ($t == 'js') {
        echo "alert('路径: {$p} 未找到');\n";
    } else {
        echo "/*路径: {$p} 未找到'*/\n";
    }
}
function expires($seconds = 1800)
{