[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_admin/ -> comment.php (source)

   1  <?php
   2  /*
   3  + ----------------------------------------------------------------------------+
   4  |     e107 website system
   5  |
   6  |     ©Steve Dunstan 2001-2002
   7  |     http://e107.org
   8  |     jalist@e107.org
   9  |
  10  |     Released under the terms and conditions of the
  11  |     GNU General Public License (http://gnu.org).
  12  |
  13  |     $Source: /cvsroot/e107/e107_0.7/e107_admin/comment.php,v $
  14  |     $Revision: 1.4 $
  15  |     $Date: 2005/12/25 01:26:59 $
  16  |     $Author: sweetas $
  17  +----------------------------------------------------------------------------+
  18  */
  19  require_once ("../class2.php");
  20  if (!getperms("B")) {
  21      header("location:".e_BASE."index.php");
  22      exit;
  23  }
  24      
  25  if (e_QUERY) {
  26      $temp = explode("-", e_QUERY);
  27      $action = $temp[0];
  28      $id = intval($temp[1]);
  29      $item = $temp[2];
  30      $c_item = $temp[3];
  31      if ($action == "block") {
  32          $sql->db_Update("comments", "comment_blocked='1' WHERE comment_id='$id' ");
  33      }
  34      if ($action == "unblock") {
  35          $sql->db_Update("comments", "comment_blocked='0' WHERE comment_id='$id' ");
  36      }
  37      if ($action == "delete") {
  38          $sql->db_Delete("comments", "comment_id='$id' ");
  39      }
  40      if (!$e107cache->clear($item)) {
  41          $tmp = explode("?", $item);
  42          $item = $tmp[0]."?news.".$c_item;
  43          $e107cache->clear($item);
  44      }
  45  }
  46  echo "<script type='text/javascript'>window.history.go(-1);</script>\n";
  47  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7