function echo_msg($msg,$flush = 0){ global $autouse; if($autouse) return; echo $msg; if($flush) flushNow($flush); }
flushNow(); } if (rmkdir(CFIMGTEMPPATH)) { user_note(CFIMGTEMPPATH . ' - ok', 2); flushNow(); } if (rmkdir(CFBULKUPLOADPATH)) { user_note(CFBULKUPLOADPATH . ' - ok', 2); flushNow(); } if (rmkdir(CFINCPATH)) { user_note(CFINCPATH . ' - ok', 2); flushNow(); } if (rmkdir(CFBACKUPPATH)) { user_note(CFBACKUPPATH . ' - ok', 2); flushNow(); } echo '</div>'; flushNow(); } // Check for extension if (!$Err_found) { echo '<form method="post" action="?i=db" class="ins"> <input type="submit" value="下一步:检查数据库" class="button" name="checks" /> </form>'; } else { echo '<div class="ibox">'; user_note('请先修复上面的错误后再继续', 1); echo '</div>'; }
function setProgressBarProgress($percentDone, $text = '') { $this->percentDone = $percentDone; $text = $text ? $text : number_format($this->percentDone, $this->decimals, '.', '').'%'; echo '<script type="text/javascript"> if (document.getElementById("'.$this->pbarid.'")) { document.getElementById("'.$this->pbarid.'").style.width = "'.$percentDone.'%";'; if ($percentDone == 100) echo 'document.getElementById("'.$this->pbid.'").style.display = "none";'; else echo 'document.getElementById("'.$this->tbarid.'").style.width = "'.(100-$percentDone).'%";'; if ($text) echo'document.getElementById("'.$this->textid.'").innerHTML = "'.htmlspecialchars($text).'";'; echo '}</script>'."\n"; flushNow(1); }