Example #1
0
 function makecache_action()
 {
     set_time_limit(200);
     extract($_POST);
     include LIB_PATH . "cache.class.php";
     $cacheclass = new cache("../plus/", $this->obj);
     if (@in_array("1", $cache)) {
         $makecache = $cacheclass->city_cache("city.cache.php");
     }
     if (@in_array("2", $cache)) {
         $makecache = $cacheclass->industry_cache("industry.cache.php");
     }
     if (@in_array("3", $cache)) {
         $makecache = $cacheclass->job_cache("job.cache.php");
     }
     if (@in_array("4", $cache)) {
         $makecache = $cacheclass->user_cache("user.cache.php");
     }
     if (@in_array("5", $cache)) {
         $makecache = $cacheclass->com_cache("com.cache.php");
     }
     if (@in_array("6", $cache)) {
         $makecache = $cacheclass->menu_cache("menu.cache.php");
     }
     if (@in_array("7", $cache)) {
         $makecache = $this->tpl->clear_all_cache();
     }
     if (@in_array("8", $cache)) {
         $makecache = $cacheclass->seo_cache("seo.cache.php");
     }
     if (@in_array("9", $cache)) {
         $makecache = $cacheclass->domain_cache("domain_cache.php");
     }
     if (@in_array("10", $cache)) {
         $makecache = $cacheclass->keyword_cache("keyword.cache.php");
     }
     if (@in_array("11", $cache)) {
         $makecache = $cacheclass->link_cache("link.cache.php");
     }
     if (@in_array("12", $cache)) {
         $makecache = $cacheclass->group_cache("group.cache.php");
     }
     if ($makecache) {
         $this->obj->ACT_layer_msg("生成(ID:{$makecache})成功!", 9, "index.php?m=cache&c=cache", 2, 1);
     } else {
         $this->obj->ACT_layer_msg("生成(ID:{$makecache})失败!", 8, "index.php?m=cache&c=cache");
     }
 }
 function cache_action()
 {
     include LIB_PATH . "cache.class.php";
     $cacheclass = new cache(PLUS_PATH, $this->obj);
     $makecache = $cacheclass->industry_cache("industry.cache.php");
 }
Example #3
0
 function makecache_action()
 {
     set_time_limit(200);
     extract($_POST);
     include LIB_PATH . "cache.class.php";
     $cacheclass = new cache(PLUS_PATH, $this->obj);
     if (@in_array("1", $cache)) {
         $makecache = $cacheclass->city_cache("city.cache.php");
     }
     if (@in_array("2", $cache)) {
         $makecache = $cacheclass->industry_cache("industry.cache.php");
     }
     if (@in_array("3", $cache)) {
         $makecache = $cacheclass->job_cache("job.cache.php");
     }
     if (@in_array("4", $cache)) {
         $makecache = $cacheclass->user_cache("user.cache.php");
     }
     if (@in_array("5", $cache)) {
         $makecache = $cacheclass->com_cache("com.cache.php");
     }
     if (@in_array("6", $cache)) {
         $makecache = $cacheclass->menu_cache("menu.cache.php");
     }
     if (@in_array("7", $cache)) {
         $makecache = $this->del_dir("../data/templates_c", 1);
         $makecache = $this->del_dir("../data/cache", 1);
     }
     if (@in_array("8", $cache)) {
         $makecache = $cacheclass->seo_cache("seo.cache.php");
     }
     if (@in_array("9", $cache)) {
         $makecache = $cacheclass->domain_cache("domain_cache.php");
     }
     if (@in_array("10", $cache)) {
         $makecache = $cacheclass->keyword_cache("keyword.cache.php");
     }
     if (@in_array("11", $cache)) {
         $makecache = $cacheclass->link_cache("link.cache.php");
     }
     if (@in_array("12", $cache)) {
         $makecache = $cacheclass->group_cache("group.cache.php");
     }
     if (@in_array('13', $cache)) {
         $makecache = $cacheclass->desc_cache("desc.cache.php");
     }
     if (@in_array('14', $cache)) {
         include_once "model/model/advertise_class.php";
         $adver = new advertise($this->obj);
         $adver->model_ad_arr_action();
     }
     $makecache = $cacheclass->database_cache("dbstruct.cache.php");
     if ($makecache) {
         $this->ACT_layer_msg("生成(ID:{$makecache})成功!", 9, "index.php?m=cache&c=cache", 2, 1);
     } else {
         $this->ACT_layer_msg("生成(ID:{$makecache})失败!", 8, "index.php?m=cache&c=cache");
     }
 }