大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> PHP专区 -> 挑战最棒的留言本的源码(三)

挑战最棒的留言本的源码(三)

时间: 2021-07-31 作者:daque

action.php文献 <?php require('config.php');   $action=$arr_request['action']; $key_liuyan=$arr_request['key_liuyan']; if (!isset($php_auth_user))    {     header('www-authenticate:basic realm="处置留言"');     header('http/1.0 401 unauthorized');     echo '须要授权,你没有这权力!<br>';     echo '单击革新来重试.<br>';     exit;           } else   {          if (strlen($php_auth_user)!=0)             {              if ($action=="delete")                 echo "抱歉,你没有简略留言的权力!!!<br>";              else if ($action="huifu")               echo "抱歉,你姑且还不许回复,此刻惟有版主有这权力!!!<br>";              else                echo "抱歉,你没有处置留言本的权力!!!";               exit;                }                    $pass=$php_auth_pw;         // echo $pass;            $result=0;          while($pass%10!=0)              {                 $result=$result+$pass%10;                 $pass=($pass-$pass%10)/10;                // echo $result;                // echo "<br>";                 }           $tt=$result*222;          //echo $tt;          if (!checkpass($tt,$action,$db_name,$table_name_control,$id_link))             {              if ($action=="delete")                 echo "抱歉,你没有简略留言的权力!!!<br>";              else if ($action="huifu")               echo "抱歉,你姑且还不许回复,此刻惟有版主有这权力!!!<br>";              else                echo "抱歉,你没有处置留言本的权力!!!";               exit;                }   } if ($action=="delete")   {    //printf("delete");    //echo $key_liuyan;    $str_sql="delete from $table_name where key_liuyan=$key_liuyan";    $re=mysql_db_query($db_name,$str_sql,$id_link);        if (!$re)       {         echo "简略堕落";       }    else         {           echo "胜利简略";             echo "<!doctype html public "-//w3c//dtd html 4.0 transitional//en">";           echo "<html><head><title>公布作品</title>";           echo "<meta content="text/html; charset=utf8" http-equiv=content-type>";           echo "<meta http-equiv="refresh" content="2;url=display.php">";           echo "</head><body topmargin="0"><br>";           echo "<ul>恢复胜利,将机动表露留言实质";           echo " <br>";           echo "<a href=display.php>即使你的欣赏器没有机动的归来到留言簿首页,请点击这边";           echo "</a></ul>";        }              } else if ($action=="huifu")     {    //printf("huifu");   // echo $key_liuyan;         ?>    <form action="action.php?action=ok" method="post">    <input type="hidden" name="key" value="<?php echo $key_liuyan?>">      <textarea name="huifu" cols="50" rows="6"></textarea>    <input type="submit" value="恢复">       </form> <?php   } else if ($action=="ok")    {         $key=$arr_request['key'];       $huifuold=$huifu;              $time=date('y/m/d h:i:s');       $time='('.$time . ')<br>';       $huifuold=$time .$huifuold ;                      $huifu_ok=computer_message($huifuold,$hang_zifu_number);                if (strlen($key)==0)          {  echo "error";             exit;             }       $str_sql="update $table_name set huifu_biaozi=1,                   huifu='$huifu_ok'  where key_liuyan=$key";          //   echo $str_sql;              $re=mysql_db_query($db_name,$str_sql,$id_link);           if (!$re)          {             echo "革新堕落";          }       else           {               echo "恢复胜利";                         echo "<!doctype html public "-//w3c//dtd html 4.0 transitional//en">";             echo "<html><head><title>公布作品</title>";             echo "<meta content="text/html; charset=utf8" http-equiv=content-type>";             echo "<meta http-equiv="refresh" content="2;url=display.php">";             echo "</head><body topmargin="0"><br>";             echo "<ul>恢复胜利,将机动表露留言实质";             echo " <br>";             echo "<a href=display.php>即使你的欣赏器没有机动的归来到留言簿首页,?             请点这边归来.";             echo "</a></ul>";             exit;               }           } else   printf("error");     ?> 【正文版权归作家与奥索网共通具有,如需连载,请证明作家及根源】    

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.