Ejemplo n.º 1
0
 function _resetSettingCache()
 {
     $setting = $this->getSettingNoCache();
     $setting = $setting ? $setting : array();
     $output = "<?php\r\n! defined ( 'CLOUDWIND' ) && exit ( 'Forbidden' );\r\n";
     $output .= "return " . CloudWind_varExport($setting) . ";\r\n?>";
     CloudWind_writeover($this->_getSettingPath(), $output, 'w');
     return $setting;
 }
 function _resetSettingCache()
 {
     $config = $this->_getVerifySettingNoCache();
     if (!$config) {
         return array();
     }
     $output = "<?php\r\n! defined ( 'CLOUDWIND' ) && exit ( 'Forbidden' );\r\n";
     $output .= "return " . CloudWind_varExport($config) . ";\r\n?>";
     CloudWind_writeover($this->_getVerifySettingPath(), $output, 'w');
     return $config;
 }
Ejemplo n.º 3
0
 function _initPostInfo()
 {
     $filepath = D_P . 'data/bbscache/cloudwind_postinfo.php';
     if (!is_file($filepath) || CloudWind_filemtime($filepath) + 300 <= CloudWind_getConfig('g_timestamp')) {
         $postInfo = $this->_initPostInfoNoCache();
         $postInfo && CloudWind_writeover($filepath, "<?php\r\n\$postInfo=" . CloudWind_varExport($postInfo) . ";\r\n?>");
     } else {
         require $filepath;
     }
     return $postInfo;
 }