2022-01-20 15:38:11 +08:00
|
|
|
<?php
|
2022-03-19 21:51:13 +08:00
|
|
|
@header ("Content-type:text/html;charset=utf-8");
|
2022-03-12 15:23:32 +08:00
|
|
|
define('IN_CRONLITE', true);
|
2022-02-19 23:39:52 +08:00
|
|
|
define('SYS_KEY', 'lylme_key');
|
|
|
|
define('SYSTEM_ROOT', dirname(__FILE__).'/');
|
|
|
|
define('ROOT', dirname(SYSTEM_ROOT).'/');
|
2022-05-02 00:53:17 +08:00
|
|
|
error_reporting(0);
|
2022-03-12 15:23:32 +08:00
|
|
|
require ROOT.'config.php';
|
2022-03-19 21:51:13 +08:00
|
|
|
if(!defined('SQLITE') && (!$dbconfig['user']||!$dbconfig['pwd']||!$dbconfig['dbname']))
|
2022-03-12 15:23:32 +08:00
|
|
|
{
|
|
|
|
@unlink(ROOT.'install/install.lock');
|
|
|
|
header('Content-type:text/html;charset=utf-8');
|
|
|
|
echo '你还没安装!<a href="install/">点此安装</a>';
|
|
|
|
exit();
|
2022-01-20 15:38:11 +08:00
|
|
|
}
|
2022-03-12 15:23:32 +08:00
|
|
|
include_once(SYSTEM_ROOT."db.class.php");
|
|
|
|
$DB=new DB($dbconfig['host'],$dbconfig['user'],$dbconfig['pwd'],$dbconfig['dbname'],$dbconfig['port']);
|
|
|
|
$rs= $DB->query("SELECT * FROM `lylme_config`");
|
2022-03-20 01:17:55 +08:00
|
|
|
while($row = $DB->fetch($rs)) $conf[$row['k']]=$row['v'];
|
2022-06-12 02:24:05 +08:00
|
|
|
include_once(SYSTEM_ROOT."lists.php");
|
2022-02-19 23:39:52 +08:00
|
|
|
include_once(SYSTEM_ROOT."function.php");
|
|
|
|
include_once(SYSTEM_ROOT."member.php");
|
2022-02-22 02:54:24 +08:00
|
|
|
include_once(SYSTEM_ROOT."tj.php");
|
2022-05-03 14:05:12 +08:00
|
|
|
include_once(SYSTEM_ROOT."version.php");
|
|
|
|
include_once(SYSTEM_ROOT."updbase.php");
|
2022-03-12 15:23:32 +08:00
|
|
|
$linksrows=$DB->num_rows($DB->query("SELECT * FROM `lylme_links`"));
|
|
|
|
$groupsrows=$DB->num_rows($DB->query("SELECT * FROM `lylme_groups`"));
|
2022-03-26 12:37:28 +08:00
|
|
|
$cdnpublic = cdnpublic($conf['cdnpublic']);
|
2022-05-01 23:06:33 +08:00
|
|
|
$templatepath ='./template/'.$conf["template"];
|
|
|
|
$template = $templatepath.'/index.php';
|
2022-05-02 00:49:03 +08:00
|
|
|
$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; }
|
2022-03-12 15:23:32 +08:00
|
|
|
?>
|