/** * Search initialization */ public function init() { parent::init(); $this->getRandomAccount(); // Set dir for cookies $this->temporaryDir = __DIR__ . '/tmp/cookie/'; if (!is_dir($this->temporaryDir)) { mkdir($this->temporaryDir, 0775, true); } $this->cookieFile = $this->temporaryDir . md5($this->_params['user'] . $this->_params['password']) . '.txt'; }
function init() { global $_config; if (!$_config) { require_once SYSTEM_ROOT . './config.inc.php'; } $this->init_header(); $this->init_useragent(); CACHE::pre_fetch('setting', 'plugin', 'plugins'); Updater::init(); $this->init_syskey(); $this->init_cookie(); cloud::init(); HOOK::INIT(); $this->init_final(); }