Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] ◆精◆黑色大气质感模板,最新发布,基本DISUCZX2.5最新更新制作!◆细节美化◆

[复制链接]
站长素材站 发表于 2013-4-26 12:50:52 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

站长素材站 发表于 2013-4-26 13:00:30 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

站长素材站 发表于 2013-4-26 13:16:45 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

同城资讯 发表于 2013-4-26 13:35:40 | 显示全部楼层

  1. <P><?php</P>
  2. <P>require_once 'common.php';
  3. filter_injection($$$$_REQUEST);
  4. if(!file_exists(APP_ROOT_PATH.'public/runtime/app/'))
  5. {
  6. mkdir(APP_ROOT_PATH.'public/runtime/app/',0777);
  7. }
  8. $$$$city_count = $$$$GLOBALS['db']->getOne("select count(id) from ".DB_PREFIX."deal_city where is_effect = 1 and is_delete = 0");
  9. $$$$city_name = trim(addslashes($$$$_REQUEST['city']));
  10. $$$$deal_city = '';
  11. if($$$$city_name)
  12. {
  13. if($$$$city_name=='all')
  14. $$$$deal_city = $$$$GLOBALS['db']->getRow("select * from ".DB_PREFIX."deal_city where pid = 0");
  15. else
  16. $$$$deal_city = $$$$GLOBALS['db']->getRow("select * from ".DB_PREFIX."deal_city where uname='".$$$$city_name."' and is_effect = 1 and is_delete = 0");
  17. }
  18. if(!$$$$deal_city)
  19. $$$$deal_city = get_current_deal_city();
  20. es_cookie::set("deal_city",$$$$deal_city['id'],24*3600*30);
  21. $$$$GLOBALS['tmpl']->assign("deal_city",$$$$deal_city);
  22. $$$$deal_city_list = get_deal_citys();
  23. $$$$GLOBALS['tmpl']->assign("deal_city_list",$$$$deal_city_list['ls']);
  24. $$$$GLOBALS['tmpl']->assign("deal_city_list_zm",$$$$deal_city_list['zm']);
  25. $$$$GLOBALS['tmpl']->assign("shop_info",get_shop_info());
  26. $$$$GLOBALS['tmpl']->assign("deal_city",$$$$deal_city);
  27. $$$$GLOBALS['tmpl']->assign("show_city_title",true);
  28. if(count($$$$deal_city_list['ls'])>1)
  29. {
  30. $$$$GLOBALS['tmpl']->assign("city_title",$$$$deal_city['name']);
  31. }
  32. if(app_conf("SHOP_OPEN")==0)
  33. {
  34. $$$$GLOBALS['tmpl']->assign("page_title",$$$$GLOBALS['lang']['SHOP_CLOSE']);
  35. $$$$GLOBALS['tmpl']->assign("html",app_conf("SHOP_CLOSE_HTML"));
  36. $$$$GLOBALS['tmpl']->display("shop_close.html");
  37. exit;
  38. }
  39. $$$$GLOBALS['tmpl']->assign("APP_ROOT",APP_ROOT);
  40. if(!file_exists(get_real_path()."public/runtime/app/lang.js"))
  41. {
  42. $$$$str = "var LANG = {";
  43. foreach($$$$lang as $$$$k=>$$$$lang_row)
  44. {
  45. $$$$str .= """.$$$$k."":"".str_replace("nbr","<A href='file://\\n",addslashes($$$$lang_row))."\'>\\n",addslashes($$$$lang_row))."\</A>",";
  46. }
  47. $$$$str = substr($$$$str,0,-1);
  48. $$$$str .="};";
  49. @file_put_contents(get_real_path()."public/runtime/app/lang.js",$$$$str);
  50. }
  51. $$$$cookie_uname = es_cookie::get("user_name")?es_cookie::get("user_name"):'';
  52. $$$$cookie_upwd = es_cookie::get("user_name")?es_cookie::get("user_pwd"):'';
  53. if($$$$cookie_uname!=''&&$$$$cookie_upwd!=''&&!es_session::get("user_info"))
  54. {
  55. require_once APP_ROOT_PATH."system/libs/user.php";
  56. auto_do_login_user($$$$cookie_uname,$$$$cookie_upwd);
  57. }
  58. $$$$user_info = es_session::get('user_info');
  59. $$$$user_info = $$$$GLOBALS['db']->getRow("select * from ".DB_PREFIX."user where is_delete = 0 and is_effect = 1 and id = ".intval($$$$user_info['id']));
  60. es_session::set('user_info',$$$$user_info);
  61. if($$$$user_info)
  62. {
  63. $$$$GLOBALS['tmpl']->assign("user_info",$$$$user_info);
  64. if(check_ipop_limit(get_client_ip(),"auto_send_msg",30,$$$$user_info['id']))  
  65. {
  66. $$$$msg_systems = $$$$GLOBALS['db']->getAll("select * from ".DB_PREFIX."msg_system where (end_time = 0 or end_time > ".get_gmtime().") and user_ids = '' or user_ids like '%".$$$$user_info['id']."|%'");
  67. foreach($$$$msg_systems as $$$$msg)
  68. {
  69. if($$$$GLOBALS['db']->getOne("select count(*) from ".DB_PREFIX."msg_box where to_user_id = ".$$$$user_info['id']." and system_msg_id = ".$$$$msg['id'])==0)
  70. {
  71. send_user_msg($$$$msg['title'],$$$$msg['content'],0,$$$$user_info['id'],$$$$msg['create_time'],$$$$msg['id'],true);
  72. }
  73. }
  74. }
  75. }
  76. if($$$$_REQUEST['r'])
  77. {
  78. $$$$rid = intval(base64_decode($$$$_REQUEST['r']));
  79. $$$$ref_uid = intval($$$$GLOBALS['db']->getOne("select id from ".DB_PREFIX."user where id = ".intval($$$$rid)));
  80. es_cookie::set("REFERRAL_USER",intval($$$$ref_uid));
  81. }
  82. else
  83. {
  84. if(intval(es_cookie::get("REFERRAL_USER"))>0)
  85. $$$$ref_uid = intval($$$$GLOBALS['db']->getOne("select id from ".DB_PREFIX."user where id = ".intval(es_cookie::get("REFERRAL_USER"))));
  86. }
  87. if(!es_cookie::get("referer_url"))
  88. {
  89. if(!preg_match("/".urlencode(get_domain().APP_ROOT)."/",urlencode($$$$_SERVER["HTTP_REFERER"])))
  90. es_cookie::set("referer_url",$$$$_SERVER["HTTP_REFERER"]);
  91. }
  92. $$$$referer = es_cookie::get("referer_url");
  93. if(check_ipop_limit(get_client_ip(),"auto_refresh_data",30,intval($$$$user_info['id'])))
  94. {
  95. $$$$GLOBALS['db']->query("delete from ".DB_PREFIX."deal_cart where ".get_gmtime()." - update_time > 3600");
  96. $$$$GLOBALS['db']->query("update ".DB_PREFIX."user set lottery_mobile = '',lottery_verify = '', verify_create_time = '' where verify_create_time > 0 and lottery_verify <> '' and ".get_gmtime()." - verify_create_time > 1800");
  97. }
  98. if($$$$GLOBALS["user_info"])
  99. {
  100. if($$$$GLOBALS["user_info"]['step']==0&&strtolower($$$$_REQUEST['ctl'])!='user'&&strtolower($$$$_REQUEST['ctl'])!='avatar'&&strtolower($$$$_REQUEST['ctl'])!='uc_account'&&strtolower($$$$_REQUEST['ctl'])!='ajax')
  101. {
  102. $$$$redirect = url("shop","user#stepone");
  103. app_redirect($$$$redirect);
  104. }
  105. }
  106. 
  107. ?></P>
复制代码
回复

使用道具 举报

站长素材站 发表于 2013-4-26 13:44:42 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

站长素材站 发表于 2013-4-26 14:15:42 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

站长素材站 发表于 2013-4-26 14:26:31 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

站长素材站 发表于 2013-4-26 14:45:44 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

站长素材站 发表于 2013-4-26 14:53:24 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

站长素材站 发表于 2013-4-26 15:15:36 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-16 21:36 , Processed in 0.258664 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表