Esempio n. 1
0
 function pfcInfo($serverid, $data_private_path = "")
 {
     // check if the cache already exists
     // if it doesn't exists, just stop the process
     // because we can't initialize the chat from the external API
     if ($data_private_path == "") {
         $data_private_path = dirname(__FILE__) . "/../data/private";
     }
     $cachefile = pfcGlobalConfig::_GetCacheFile($serverid, $data_private_path);
     if (!file_exists($cachefile)) {
         $this->errors[] = _pfc("Error: the cached config file doesn't exists");
         return;
     }
     // then intitialize the pfcglobalconfig
     $params = array();
     $params["serverid"] = $serverid;
     $params["data_private_path"] = $data_private_path;
     $this->c =& pfcGlobalConfig::Instance($params);
 }