* adjust the misc-downNotify for new notify.

This commit is contained in:
azhi
2013-09-26 09:22:06 +08:00
parent c9e031e86f
commit 3c3b7d8662
+4 -4
View File
@@ -95,7 +95,7 @@ class misc extends control
$notifyDir = $this->app->getBasePath() . 'www/data/notify/';
$packageFile = $notifyDir . 'notify.zip';
$tmpDir = $notifyDir . 'notify';
$loginFile = $tmpDir . '/notify/logininfo';
$loginFile = $tmpDir . '/tmp/.logininfo';
$this->app->loadClass('pclzip', true);
$sourceZip = new pclzip($packageFile);
@@ -103,9 +103,9 @@ class misc extends control
if($files == 0) die("Error : ".$sourceZip->errorInfo(true));
$loginInfo = new stdclass();
$loginInfo->account = $this->app->user->account;
$loginInfo->password = $this->app->user->password;
$loginInfo->zentaoRoot = common::getSysURL() . $this->config->webRoot;
$loginInfo->account = $this->app->user->account;
$loginInfo->password = $this->app->user->password;
$loginInfo->zentaourl = common::getSysURL() . $this->config->webRoot;
$loginInfo = json_encode($loginInfo);
file_put_contents($loginFile, $loginInfo);