function install() { if (!$this->xCopy(dirname(__FILE__) . '/scarebuying', dirname(dirname(dirname(__FILE__))) . '/widgets/scarebuying', 1)) { echo '安装失败!'; exit; } return parent::install(); }
function install() { if ($this->system->getConf('certificate.id')) { if ($this->system->getConf('app.tencent_share.apikey') == '') { $this->system->setConf('app.tencent_share.apikey', '36f6e95453c7472b879fdb1fbe765385'); $this->system->setConf('app.tencent_share.appsecret', 'b06605154f048b25b01abd224bb8fd7d'); } $this->copy_file(); parent::install(); return true; } }
function install() { parent::install(); $sqlContent = file_get_contents(dirname(__FILE__) . "/dbdata/taobao_region.sql"); foreach ($this->db->splitSql($sqlContent) as $sql) { if (!$this->db->exec($sql, true)) { echo '<h3>Sql Error</h3><textarea style="width:500px;height:300px">' . htmlspecialchars($sql) . '</textarea><br />'; echo $this->db->errorInfo(); exit; } } return true; }
function install() { if ($this->system->getConf('certificate.id')) { $obj = $this->system->loadModel("plugins/openid_taobao/openid_taobao_center_send"); $obj->save_api_key(); $return = $obj->edit_app_status("open"); if ($return['result'] == 'succ') { return parent::install(); } else { echo "启用失败"; return false; } } }
function install() { parent::install(); return true; }
function install() { $this->cop_file(); parent::install(); return true; }