query("SELECT * FROM `lylme_config`");
if(empty($web_config)) {
exit("
LyLme Spage Error: MySQL config table is empty(code:404)");
}
while($row = $DB->fetch($web_config)) {
$conf[$row['k']] = $row['v'];
}
require SYSTEM_ROOT . "lists.php";
require SYSTEM_ROOT . "function.php";
require SYSTEM_ROOT . "member.php";
require SYSTEM_ROOT . "tj.php";
require SYSTEM_ROOT . "version.php";
require SYSTEM_ROOT . "updbase.php";
require SYSTEM_ROOT . "site.php";
$cdnpublic = cdnpublic($conf['cdnpublic']);
$templatepath = './template/' . $conf["template"];
$template = $templatepath . '/index.php';
$background = $conf["background"];
$wap_background = $conf["wap_background"];
if(checkmobile()) {
if(!empty($wap_background)) {
$background_img = $wap_background;
} else {
$background_img = $background;
}
} else {
$background_img = $background;
}