mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
insatll do not use do_log func
This commit is contained in:
@@ -42,18 +42,18 @@ class Install
|
|||||||
for ($i = 1; $i < $step; $i++) {
|
for ($i = 1; $i < $step; $i++) {
|
||||||
$progressKey = $this->getProgressKey($i);
|
$progressKey = $this->getProgressKey($i);
|
||||||
if (!isset($_SESSION[$progressKey])) {
|
if (!isset($_SESSION[$progressKey])) {
|
||||||
do_log("check step: $i, session doesn't have, session: " . json_encode($_SESSION));
|
$this->doLog("check step: $i, session doesn't have, session: " . json_encode($_SESSION));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
do_log("check step: $step, can access, session: " . json_encode($_SESSION));
|
$this->doLog("check step: $step, can access, session: " . json_encode($_SESSION));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function doneStep($step)
|
public function doneStep($step)
|
||||||
{
|
{
|
||||||
$progressKey = $this->getProgressKey($step);
|
$progressKey = $this->getProgressKey($step);
|
||||||
do_log("doneStep: $step, $progressKey = 1");
|
$this->doLog("doneStep: $step, $progressKey = 1");
|
||||||
$_SESSION[$progressKey] = 1;
|
$_SESSION[$progressKey] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user