コード例 #1
0
 public function update_settings_cache()
 {
     $settings = t_paths::js_cache($this->owner->apikey);
     if (file_exists($settings)) {
         unlink($settings);
     }
     return;
 }
コード例 #2
0
ファイル: api.php プロジェクト: plusjade/pluspanda-php
function load_testimonials_env()
{
    $js_cache = t_paths::js_cache($_GET['apikey']);
    if (!file_exists($js_cache) or !file_exists(t_paths::init_cache())) {
        return;
    }
    readfile($js_cache);
    readfile(t_paths::init_cache());
    die('/*=D*/');
}
コード例 #3
0
 private function widget()
 {
     $settings_file = t_paths::js_cache($this->apikey);
     $init_file = t_paths::init_cache();
     if (!file_exists($settings_file)) {
         $this->cache_settings($settings_file);
     }
     if (!file_exists($init_file)) {
         self::cache_init();
     }
     readfile($settings_file);
     readfile($init_file);
     die;
 }