usersave.php
来自「仿榕树下文章系统春节版 1. 将makpass.php文件的root_pass修」· PHP 代码 · 共 173 行
PHP
173 行
<?include ("admin_log.php");include ("../makepass.php");if ($mod=="zs" and $act=="tg") { $user_array=file("../data/$user/user.mail"); $file_count=count($user_array)-1; $wait_array=file("../data/$user/user.mailwait"); $wait_count=count($user_array)-1; $yz=0; for ($counter=$file_count;$counter>=0;$counter--) { if ($counter==$id){ $file_new_name=explode("|",$user_array[$counter]); for ($waitid=$wait_count;$waitid>=0;$waitid--) { $wait_new_name=explode("|",$wait_array[$waitid]); if ($file_new_name[0]==$wait_new_name[0] and $file_new_name[2]==$wait_new_name[2] ) $yz=1;} if ($yz==0){ $fp=fopen("../data/$user/user.mailwait", "a+"); flock($fp,3); fwrite($fp,$user_array[$counter]); fclose($fp);} } } echo "<html><head><title>添加文章</title><meta http-equiv=refresh content=3;URL='mailuser.php'></head><BODY BGCOLOR='EFEFEF'> <center><br><br><br><br><br><br><br><br><span style=font:11pt><font color=#336699>-==订阅用户成功修改-程式2秒自动返回==-</font></span></body></html>";exit;}if ($mod=="zs" and $act=="del") { $user_array=file("../data/$user/user.mail"); $file_count=count($user_array)-1; $fp=fopen("../data/$user/user.mail", "w"); flock($fp,3); fclose($fp); for ($counter=$file_count;$counter>=0;$counter--) { if ($counter!=$id){ $fp=fopen("../data/$user/user.mail", "a+"); flock($fp,3); fwrite($fp,$user_array[$counter]); fclose($fp);} } echo "<html><head><title>添加文章</title><meta http-equiv=refresh content=3;URL='mailuser.php'></head><BODY BGCOLOR='EFEFEF'> <center><br><br><br><br><br><br><br><br><span style=font:11pt><font color=#336699>-==订阅用户成功修改-程式2秒自动返回==-</font></span></body></html>";exit; }if ($mod=="dd" and $act=="tg") { $user_array=@file("../data/$user/user.mailwait"); $file_count=count($user_array)-1; $wait_array=@file("../data/$user/user.mail"); $wait_count=count($user_array)-1; $yz=0; for ($counter=$file_count;$counter>=0;$counter--) { if ($counter==$id){ $file_new_name=explode("|",$user_array[$counter]); for ($waitid=$wait_count;$waitid>=0;$waitid--) { $wait_new_name=explode("|",$wait_array[$waitid]); if ($file_new_name[0]==$wait_new_name[0] and $file_new_name[2]==$wait_new_name[2] ) $yz=1;} if ($yz==0){ $fp=fopen("../data/$user/user.mail", "a+"); flock($fp,3); fwrite($fp,$user_array[$counter]); fclose($fp);} } } echo "<html><head><title>添加文章</title><meta http-equiv=refresh content=3;URL='mailuser.php'></head><BODY BGCOLOR='EFEFEF'> <center><br><br><br><br><br><br><br><br><span style=font:11pt><font color=#336699>-==订阅用户成功修改-程式2秒自动返回==-</font></span></body></html>";exit; }if ($mod=="dd" and $act=="del") { $user_array=file("../data/$user/user.mailwait"); $file_count=count($user_array)-1; $fp=fopen("../data/$user/user.mailwait", "w"); flock($fp,3); fclose($fp); for ($counter=$file_count;$counter>=0;$counter--) { if ($counter!=$id){ $fp=fopen("../data/$user/user.mailwait", "a+"); flock($fp,3); fwrite($fp,$user_array[$counter]); fclose($fp);} } echo "<html><head><title>添加文章</title><meta http-equiv=refresh content=3;URL='mailuser.php'></head><BODY BGCOLOR='EFEFEF'> <center><br><br><br><br><br><br><br><br><span style=font:11pt><font color=#336699>-==订阅用户成功修改-程式2秒自动返回==-</font></span></body></html>";exit; }/////////////////////////////////////////////////////////////////////////////if ($mod=="postzs" and $act=="tg") { $user_array=file("../data/$user/user.pub"); $file_count=count($user_array)-1; $wait_array=file("../data/$user/user.pubwait"); $wait_count=count($user_array)-1; $yz=0; for ($counter=$file_count;$counter>=0;$counter--) { if ($counter==$id){ $file_new_name=explode("|",$user_array[$counter]); for ($waitid=$wait_count;$waitid>=0;$waitid--) { $wait_new_name=explode("|",$wait_array[$waitid]); if ($file_new_name[0]==$wait_new_name[0] and $file_new_name[2]==$wait_new_name[2] ) $yz=1;} if ($yz==0){ $fp=fopen("../data/$user/user.pubwait", "a+"); flock($fp,3); fwrite($fp,$user_array[$counter]); fclose($fp);} } } echo "<html><head><title>注册用户</title><meta http-equiv=refresh content=3;URL='postuser.php'></head><BODY BGCOLOR='EFEFEF'> <center><br><br><br><br><br><br><br><br><span style=font:11pt><font color=#336699>-==注册用户成功修改-程式2秒自动返回==-</font></span></body></html>";exit;}if ($mod=="postzs" and $act=="del") { $user_array=file("../data/$user/user.pub"); $file_count=count($user_array)-1; $fp=fopen("../data/$user/user.pub", "w"); flock($fp,3); fclose($fp); for ($counter=$file_count;$counter>=0;$counter--) { if ($counter!=$id){ $fp=fopen("../data/$user/user.pub", "a+"); flock($fp,3); fwrite($fp,$user_array[$counter]); fclose($fp);} } echo "<html><head><title>注册用户</title><meta http-equiv=refresh content=3;URL='postuser.php'></head><BODY BGCOLOR='EFEFEF'> <center><br><br><br><br><br><br><br><br><span style=font:11pt><font color=#336699>-==注册用户成功修改-程式2秒自动返回==-</font></span></body></html>";exit; }if ($mod=="postdd" and $act=="tg") { $user_array=@file("../data/$user/user.pubwait"); $file_count=count($user_array)-1; $wait_array=@file("../data/$user/user.pub"); $wait_count=count($user_array)-1; $yz=0; for ($counter=$file_count;$counter>=0;$counter--) { if ($counter==$id){ $file_new_name=explode("|",$user_array[$counter]); for ($waitid=$wait_count;$waitid>=0;$waitid--) { $wait_new_name=explode("|",$wait_array[$waitid]); if ($file_new_name[0]==$wait_new_name[0] and $file_new_name[2]==$wait_new_name[2] ) $yz=1;} if ($yz==0){ $fp=fopen("../data/$user/user.pub", "a+"); flock($fp,3); fwrite($fp,$user_array[$counter]); fclose($fp);} } } echo "<html><head><title>注册用户</title><meta http-equiv=refresh content=3;URL='postuser.php'></head><BODY BGCOLOR='EFEFEF'> <center><br><br><br><br><br><br><br><br><span style=font:11pt><font color=#336699>-==注册用户成功修改-程式2秒自动返回==-</font></span></body></html>";exit;}if ($mod=="postdd" and $act=="del") { $user_array=file("../data/$user/user.pubwait"); $file_count=count($user_array)-1; $fp=fopen("../data/$user/user.pubwait", "w"); flock($fp,3); fclose($fp); for ($counter=$file_count;$counter>=0;$counter--) { if ($counter!=$id){ $fp=fopen("../data/$user/user.pubwait", "a+"); flock($fp,3); fwrite($fp,$user_array[$counter]); fclose($fp);} } echo "<html><head><title>注册用户</title><meta http-equiv=refresh content=3;URL='postuser.php'></head><BODY BGCOLOR='EFEFEF'> <center><br><br><br><br><br><br><br><br><span style=font:11pt><font color=#336699>-==注册用户成功修改-程式2秒自动返回==-</font></span></body></html>";exit; }/////////////////////////////////////////////////////////////////////////?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?