-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·29 lines (27 loc) · 1.37 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
include('common.php');
$cache_category = cache::get('category');
$cache_category_arr = cache::get('category_arr');
$cache_class = cache::get('class');
$cache_class_arr = cache::get('class_arr');
$cache_menu = cache::get('menu');
$cache_link = cache::get('link');
$cache_ad = cache::get('ad');
pe_lead('hook/ad.hook.php');
pe_lead('hook/product.hook.php');
pe_lead('hook/category.hook.php');
pe_lead('hook/user.hook.php');
pe_lead('hook/wechat.hook.php');
wechat_run();
if (!$db->pe_num('iplog', array('iplog_ip'=>pe_dbhold(pe_ip()), 'iplog_adate'=>date('Y-m-d')))) {
$db->pe_insert('iplog', array('iplog_ip'=>pe_dbhold(pe_ip()), 'iplog_adate'=>date('Y-m-d'), 'iplog_atime'=>time()));
}
/*$info_list = $db->pe_selectall('huodongdata', " and `huodongdata_id` in(select `huodongdata_id` from `".dbpre."huodongdata` where `huodong_stime` <= '".time()."' and `huodong_etime` > '".time()."' order by `huodong_stime` asc) group by `product_id`");
foreach ($info_list as $v) {
$db->pe_update('product', array('product_id'=>$v['product_id']), array('product_money'=>$v['product_money'], 'product_hd_tag'=>$v['huodong_tag'], 'product_hd_stime'=>$v['huodong_stime'], 'product_hd_etime'=>$v['huodong_etime']));
}*/
if (in_array("{$mod}.php", pe_dirlist("{$pe['path_root']}module/{$module}/*.php"))) {
include("{$pe['path_root']}module/{$module}/{$mod}.php");
}
pe_result();
?>