Example #1
0
    function print_step_4()
    {
        $manual_script = $this->check->pass_val['manual_script'];
        if ($manual_script == NULL) {
            // illegal entry
            return;
        }
        $buf = $this->form_start();
        $ver = $this->check->pass_val['php_version'];
        $binname = 'lsphp-' . $ver;
        $repl = array('%%server_root%%' => SERVER_ROOT, '%%binname%%' => $binname, '%%phpver%%' => $ver[0]);
        $notes = '<ul><li>' . DMsg::UIStr('buildphp_binarylocnote', $repl) . '</li>';
        if ($this->check->pass_val['extentions'] != '') {
            $notes1 = BuildTool::getExtensionNotes($this->check->pass_val['extentions']);
            $notes .= "\n" . $notes1 . '</ul>';
        }
        $buf .= UIBase::info_divmesg($notes);
        $echo_cmd = 'echo "For security reason, please log in and manually run the pre-generated script to continue."';
        exec($echo_cmd . ' > ' . $this->check->pass_val['log_file']);
        exec($echo_cmd . ' > ' . $this->check->pass_val['progress_file']);
        $repl = array('%%manual_script%%' => $manual_script);
        $buf .= UIBase::warn_divmesg(DMsg::UIStr('buildphp_manualrunnotice', $repl));
        $buf .= '
				<h5>' . DMsg::ALbl('buildphp_mainstatus') . ': <span id="statusgraphzone"><i class="txt-color-teal fa fa-gear fa-spin"></i></span></h5>
				<div>
				<pre class="lst-statuszone" id="statuszone"></pre>
				</div>
				<h5>' . DMsg::ALbl('buildphp_detaillog') . ': </h5>
				<div >
				<pre class="lst-logzone" id="logzone">' . $cmd . '</pre>
						</div>';
        $buf .= $this->form_end();
        echo $buf;
    }