[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/modules/Journal/ -> commentkill.php (source)

   1  <?php
   2  
   3  /************************************************************************/

   4  /* Journal &#167 ZX                                                     */

   5  /* ================                                                     */

   6  /*                                                                      */

   7  /* Original work done by Joseph Howard known as Member's Journal, which */

   8  /* was based on Trevor Scott's vision of Atomic Journal.                */

   9  /*                                                                      */

  10  /* Modified on 25 May 2002 by Paul Laudanski (paul@computercops.biz)    */

  11  /* Copyright (c) 2002 Modifications by Computer Cops.                   */

  12  /* http://computercops.biz                                              */

  13  /*                                                                      */

  14  /* Required: PHPNuke 5.5 ( http://www.phpnuke.org/ ) and phpbb2         */

  15  /* ( http://bbtonuke.sourceforge.net/ ) forums port.                    */

  16  /*                                                                      */

  17  /* Member's Journal did not work on a PHPNuke 5.5 portal which had      */

  18  /* phpbb2 port integrated.  Thus was Journal &#167 ZX created with the  */

  19  /* Member's Journal author's blessings.                                 */

  20  /*                                                                      */

  21  /* To install, backup everything first and then FTP the Journal package */

  22  /* files into your site's module directory.  Also run the tables.sql    */

  23  /* script so the proper tables and fields can be created and used.  The */

  24  /* default table prefix is "nuke" which is hard-coded throughout the    */

  25  /* entire system as a left-over from Member's Journal.  If a demand     */

  26  /* exists, that can be changed for a future release.                    */

  27  /*                                                                      */

  28  /* This program is free software. You can redistribute it and/or modify */

  29  /* it under the terms of the GNU General Public License as published by */

  30  /* the Free Software Foundation; either version 2 of the License.       */

  31  /************************************************************************/

  32  /* Additional security checking code 2003 by chatserv                   */

  33  /* http://www.nukefixes.com -- http://www.nukeresources.com             */

  34  /************************************************************************/

  35      /* Journal 2.0 Enhanced and Debugged 2004                               */

  36      /* by sixonetonoffun -- http://www.netflake.com --                      */

  37      /* Images Created by GanjaUK -- http://www.GanjaUK.com                  */

  38      /************************************************************************/

  39  if ( !defined('MODULE_FILE') )
  40  {
  41      die("You can't access this file directly...");
  42  }
  43  
  44  require_once ("mainfile.php");
  45  $module_name = basename(dirname(__FILE__));
  46  get_lang($module_name);
  47  
  48  $pagetitle = "- "._USERSJOURNAL."";
  49  
  50  include ("header.php");
  51  include("modules/$module_name/functions.php");
  52           if (is_admin($admin)) {
  53  cookiedecode($user);
  54  $username = $cookie[1];
  55          $username = filter($username, "nohtml");
  56          $sitename = filter($sitename, "nohtml");
  57          $debug = filter($debug, "nohtml");
  58  if ($debug == "true") :
  59      echo ("UserName:$username<br>SiteName: $sitename");
  60  endif;
  61  
  62  startjournal($sitename,$user);
  63  $onwhat = intval($onwhat);
  64  $sql = "DELETE FROM ".$prefix."_journal_comments WHERE cid = '$onwhat'";
  65  $db->sql_query($sql);
  66          echo "<br>";
  67          openTable();
  68          echo ("<div align=center>"._COMMENTDELETED."<br><br>");
  69          echo ("[ <a href=\"modules.php?name=$module_name&file=display&jid=$ref\">"._RETURNJOURNAL."</a> ]</div>");
  70          closeTable();
  71          journalfoot();
  72      } else {
  73          if (is_user($user)) {
  74              cookiedecode($user);
  75              $username = $cookie[1];
  76              if ($debug == "true") :
  77              echo ("UserName:$username<br>SiteName: $sitename");
  78              endif;
  79              startjournal($sitename, $user);
  80              $onwhat = intval($onwhat);
  81              $sql = "DELETE FROM ".$prefix."_journal_comments WHERE cid = '$onwhat' AND aid = '$username'";
  82              $db->sql_query($sql);
  83              echo "<br>";
  84              openTable();
  85              echo ("<div align=center>"._COMMENTDELETED."<br><br>");
  86              echo ("[ <a href=\"modules.php?name=$module_name&file=display&jid=$ref\">"._RETURNJOURNAL."</a> ]</div>");
  87              closeTable();
  88              journalfoot();
  89          }
  90      }
  91      if (!is_user($user) && !is_admin($admin)) {
  92          $pagetitle = "- "._YOUMUSTBEMEMBER."";
  93          $pagetitle = filter($pagetitle, "nohtml");
  94          OpenTable();
  95          echo "<center><b>"._YOUMUSTBEMEMBER."</b></center>";
  96          CloseTable();
  97          include ("footer.php");
  98          die();
  99      }
 100  
 101  ?>


Généré le : Sun Apr 1 11:11:59 2007 par Balluche grâce à PHPXref 0.7