edit.php
来自「仿榕树下文章系统春节版 1. 将makpass.php文件的root_pass修」· PHP 代码 · 共 37 行
PHP
37 行
<?
include ("admin_log.php");
include ("../makepass.php");
include ("../config.php");
include ("xqfunc.php");
#############################################
if ($mode=="add"){
$f_introduction=str_replace("\n","<br>",$f_introduction);
$f_introduction=str_replace("|","│",$f_introduction);
$f_introduction=str_replace("\t","",$f_introduction);
$f_introduction=str_replace("\r","",$f_introduction);
$f_introduction=str_replace('src=\"','&xqzpic',$f_introduction);
$f_introduction=str_replace('\"','&xqypic',$f_introduction);
$title=safe_cover($title);
$author=safe_cover($author);
$fromsite=safe_cover($fromsite);
$f_image=safe_cover($f_image);
$download=safe_cover($download);
$fromwho=safe_cover($fromwho);
$key=safe_cover($key);
$article ="$mingzi|$title|$author|$fromsite|$f_image|$download|$xqdate|$message|$key|$tuijian|$fromwho|$speid|$mode||=|$num_time|$a2|$a3|$a4|$a5|||";
$fp=fopen("../data/$type/$mingzi.num","w");
flock($fp,3);
fwrite($fp,$article);
fclose($fp);
$fp_txt=fopen("../data/$type/$mingzi.txt","w");
flock($fp_txt,3);
fwrite($fp_txt,$f_introduction);
fclose($fp_txt);
$msg="你已经成功修改文章";
$turn_page="javascript:history.back(1);";
error_1($msg,$turn_page);
exit;
//////////////////
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?