update($v['rid'],['pathmd5'=>$pathmd5])){ $j++; } } $donum = ($i-1)*$perpage+$j; if($donum < $count){ $i += 1; show_msg('升级属性表数据:'.$donum.'/'.$count, getglobal('siteurl').'index.php?mod=pichome&op=ceshi&i='.$i.'&count='.$count); }else{ show_msg('升级完成'); } function show_msg($message, $url_forward='', $time = 1, $noexit = 0, $notice = '') { if($url_forward) { $url_forward = $_GET['from'] ? $url_forward.'&from='.rawurlencode($_GET['from']).'&frommd5='.rawurlencode($_GET['frommd5']) : $url_forward; $message = "$message (跳转中...)$notice"; } show_header(); print<< $message END; show_footer(); !$noexit && exit(); } function show_header() { global $config; $nowarr = array($_GET['step'] => ' class="current"'); if(in_array($_GET['step'], array('waitingdb','prepare'))) { $nowarr = array('sql' => ' class="current"'); } print<< 数据库升级程序 升级工具 END; } function show_footer() { print<< END; }