[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/modules/Journal/ -> functions.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      /* Journal 2.0 Enhanced and Debugged 2004                               */

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

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

  35      /************************************************************************/

  36  if ( !defined('MODULE_FILE') )
  37  {
  38      die("You can't access this file directly...");
  39  }
  40      require_once ("mainfile.php");
  41      $module_name = basename(dirname(__FILE__));
  42      get_lang($module_name);
  43  
  44      /* User Settings */

  45      $debug = "false";
  46  
  47      /* Change Smiles Path Here */

  48      $jsmiles = "./modules/Journal/images/moods";
  49  
  50      /* KSES array see KSES readme to tweak settings */

  51      $allowed_protocols = array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'gopher', 'mailto');
  52      // KSES allowed tags array

  53      // This is a loose filtering array

  54      $allowed = array('pre' => array('align' => 1),
  55          'strong' => array(),
  56          'hr' => array(),
  57          'div' => array('align' => 1),
  58          'img' => array('alt' => 1, 'src' => 1, 'hspace' => 1, 'vspace' => 1, 'border' => 1),
  59          'table' => array('align' => 1, 'border' => 1, 'cell' => 1),
  60          'tr' => array('align' => 1),
  61          'td' => array(),
  62          'ul' => array(),
  63          'li' => array(),
  64          'ol' => array(),
  65          'a' => array('href' => 1, 'target' => 1,
  66          'title' => array('minlen' => 4, 'maxlen' => 120)),
  67          'font' => array('face' => 1, 'style' => 1, 'color' => 1,
  68          'size' => array('minval' => 1, 'maxval' => 7)),
  69          'p' => array('align' => 1),
  70          'b' => array(),
  71          'i' => array(),
  72          'u' => array(),
  73          'em' => array(),
  74          'br' => array());
  75      // End KSES Options

  76      function ADVT_stripslashes($text ) {
  77          if (get_magic_quotes_gpc() == 1 ) {
  78              return(filter($text, "nohtml"));
  79          }
  80          return($text );
  81      }
  82      function journalfoot() {
  83          include ("footer.php");
  84      }
  85      function startjournal($sitename, $user) {
  86          global $module_name;
  87          $user = filter($user, "nohtml");
  88          $sitename = filter($sitename, "nohtml");
  89          if (is_user($user)) {
  90              $j_user1 = "<center>[ <a href=\"modules.php?name=$module_name\">"._JOURNALDIR."</a> | <a href=\"modules.php?name=$module_name&file=edit\">"._YOURJOURNAL."</a> ]</center>";
  91              $j_user2 = "";
  92          } else {
  93              $j_user1 = "<center>[ <a href=\"modules.php?name=$module_name\">"._JOURNALDIR."</a> | <a href=\"modules.php?name=Your_Account&op=new_user\">"._CREATEACCOUNT."</a> ]</center>";
  94              $j_user2 = "<br><center><font class=\"tiny\">"._MEMBERSCAN."</font></center>";
  95          }
  96          title("$sitename: "._USERSJOURNAL."");
  97          if (is_user($user)) {
  98              include ("modules/Your_Account/navbar.php");
  99              OpenTable();
 100              nav();
 101              CloseTable();
 102              echo "<br>";
 103          }
 104          OpenTable();
 105          echo "<center><img src=modules/$module_name/images/bgimage.gif><br><font class=title><b>"._USERSJOURNAL."</b></font></center>";
 106          echo "$j_user1";
 107          echo "$j_user2";
 108          CloseTable();
 109      }
 110  
 111  ?>


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