国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6KB

  1. <?php
  2. require_once(dirname(__FILE__).'/../include/common.inc.php');
  3. $moduleCacheFile = dirname(__FILE__).'/modules.tmp.inc';
  4. include($moduleCacheFile);
  5. $modules = split(',',$selModule);
  6. $insLockfile = dirname(__FILE__).'/install_lock.txt';
  7. if(file_exists($insLockfile))
  8. {
  9. echo <<<EOT
  10. <link href="style.css" rel="stylesheet" type="text/css" />
  11. <div class="over-link fs-14" style="padding:0px;">
  12. <a href="../index.php?upcache=1" target='_top'>访问网站首页</a>
  13. <a href="../dede" target='_top'>登录网站后台</a>
  14. </div>
  15. EOT;
  16. exit();
  17. }
  18. $module_autos=array(
  19. '606c658db048ea7328ffe1c7ae2a732f'=>array(
  20. 'name'=>'changyan_autoreg',
  21. 'title'=>'畅言模块'
  22. )
  23. );
  24. $logs = '';
  25. foreach($module_autos as $hh=>$module_auto)
  26. {
  27. if(!in_array($hh, $modules)) continue;
  28. $autofile = dirname(__FILE__).'/module_autos/'.$module_auto['name'].'.php';
  29. if(file_exists($autofile)) require_once($autofile);
  30. else continue;
  31. $clsname = ucfirst($module_auto['name']);
  32. $macls = new $clsname();
  33. if(!$macls->run()) $logs .= "初始化{$module_auto['title']}出错:".$macls->errmsg."<br/>";
  34. else $logs .= "成功初始化{$module_auto['title']}<br/>";
  35. }
  36. $fp = fopen($insLockfile,'w');
  37. fwrite($fp,'ok');
  38. fclose($fp);
  39. @unlink('./modules.tmp.inc');
  40. echo <<<EOT
  41. <link href="style.css" rel="stylesheet" type="text/css" />
  42. <div class="over-link fs-14" style="padding:0px;">
  43. <a href="../index.php?upcache=1" target='_top'>访问网站首页</a>
  44. <a href="../dede" target='_top'>登录网站后台</a>
  45. </div>
  46. EOT;
  47. ?>