?? upgrade.php
字號:
<?php
require "include/config.inc.php";
require "include/class_basic_record_file.php";
require "include/classes.php";
if($action == "upgrade"){
upgrade($f_srcpath, $f_despath);
exit;
}
// prompt to input source and destination file path
printHeader();
echo"
<b>歡樂使用PKY產品升級程序-------</b><br>
<hr>
注意:<br>
1、此程序用于將pky下載系統V1.01的數據轉換為新版本(V1.5)數據;<br>
2、舊版本與新版本請不要使用相同數據目錄,以避免數據沖突;<br>
3、此版本為測試版,轉換完成后,請保留就系統與數據,作為備份;<br>
4、轉換后數據將添加到新版本數據中,如果要再次轉換,請先清除以避免重復。<br>
</td></tr>
<form method=post action='upgrade.php'>
<input type=hidden name=action value=\"upgrade\">
<tr>
<td colspan = 2 align = center><br><br><input type=submit value=\"開始轉換\">
</tr></table></form>
";
printFooter();
function printHeader()
{
echo "<HTML><HEAD><TITLE>PKY產品升級程序[pkyDown V1.01->V1.5(2.0)]</TITLE>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">
<style type=\"text/css\">
<!--
A:link {text-decoration:none}
A:visited {text-decoration:none}
A:hover { text-decoration:underline; color:brown;}
p,br,body,td,table,tr,input,select, option, textarea, form {font-family: \"MS Shell Dlg\",\"Verdana\", \"宋體\"; color:black; font-size:9pt;}
-->
</style>
</HEAD>
<BODY bgcolor=\"f5f5f5\" text=\"000000\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\" link=\"000000\" vlink=\"000000\" alink=\"000000\"><br><center>
<table width=\"88%\" height=\"88%\"border=\"0\" cellspacing=\"1\" cellpadding=\"3\" bgcolor=\"6394bd\">
<tr>
<td bgcolor=\"dee7ef\" align=center><table width=\"76%\"border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td align=\"left\">";
}
function printFooter()
{
echo "</td>
</tr>
</table><center><p>
Copyright © 2002 <a href=\"http://www.puterkey.com\" target=_blank>歡樂家庭網</a>. All rights Reserved
</center> </td>
</tr>
</table>
</BODY>
</HTML>";
}
function upgrade($srcpath, $despath)
{
$aUser = new CUser;
$aUser->checkSystem();
$newSoft = new CSoft;
$newSoft->open();
$newSoft->moveFirst();
for($i = 0; $i <$newSoft->getRecordCount(); $i++)
{
$newSoft->canshow = "1";
$newSoft->keywords = "";
$newSoft->username = "admin";
$newSoft->canhtml = "0";
$newSoft->update();
$newSoft->moveNext();
}
$newSoft->close();
MsgBox();
}
function MsgBox()
{
printHeader();
echo "<center>PKY產品升級程序</center><p><center>
<b>歡迎您使用歡樂家庭網的最新軟件</b><br>
<br><br> <font color=red>您已經成功升級了您的系統。</font><br><br><b><a href=\"index.php\"> >> 系統首頁 <<</a></b>";
printFooter();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -