📄 upto.php
字号:
<?
include("global.php");
if(!$job){
die("<a href=?job=2>点击开始转换1.6的数据到2.0<br>注,因为数据结构变化太大,只能转换文章主题,给你带来不便,敬请原谅</a>");
}
$db->query("TRUNCATE TABLE `lfj_sort`");
$query=$db->query(" select * from lfj_news_sort ");
while( @extract( $db->fetch_array($query) ) ){
$db->query("insert into lfj_sort (id,name,fid,class,sons,allowpost,ifadminfather,admin) values ('$id','$name','$fid','$class','$sons','$allowpost','$ifadminfather','$admin')");
$filedb->write("./php168/sort/$id.php",'');
}
$db->query("TRUNCATE TABLE `lfj_artic`");
$db->query("TRUNCATE TABLE `lfj_reply`");
$query=$db->query(" select * from lfj_news_artic ");
while( @extract( $db->fetch_array($query) ) ){
$db->query("insert into lfj_artic (id,title,fid,hits,replies,replies_page,lastpost,lastposter,posttime,author,authorid,list) values ('$id','$title','$fid','$hits','$replies','$replies_page','$posttime','$author','$posttime','$author','$authorid','$posttime')");
$db->query("insert into lfj_reply (r_fid,r_usr,r_uid,r_time,r_title,r_content,r_aid,r_main) values ('$fid','$author','$r_uid','$posttime','$title','$concent','$id','1')");
}
echo "<a href=admin/index.php>升级完毕,点击进入后台,更新缓存</a>";
unlink ("upto.php");
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -