[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/modules/Journal/ -> edit.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  /************************************************************************/

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

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

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

  36      /* Journal 2.0 Enhanced and Debugged 2004                               */

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

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

  39      /************************************************************************/

  40  if ( !defined('MODULE_FILE') )
  41  {
  42      die("You can't access this file directly...");
  43  }
  44  
  45  require_once ("mainfile.php");
  46  $module_name = basename(dirname(__FILE__));
  47  get_lang($module_name);
  48  
  49  $pagetitle = "- "._USERSJOURNAL."";
  50  
  51  include ("header.php");
  52  include("modules/$module_name/functions.php");
  53      include("modules/$module_name/kses.php");
  54      if (is_user($user)) {
  55          cookiedecode($user);
  56          $username = $cookie[1];
  57          $user = filter($user, "nohtml");
  58          $username = filter($username, "nohtml");
  59          $sitename = filter($sitename, "nohtml");
  60          if (isset($title)) { $title = filter($title, "nohtml");
  61          $title = addslashes($title); }
  62          else { $title = ""; }
  63          if (isset($jbodytext)) { $jbodytext = kses(ADVT_stripslashes($jbodytext), $allowed);
  64          $jbodytext = addslashes($jbodytext); }
  65          else { $jbodytext = ""; }
  66          if (isset($mood)) { $mood = filter($mood, "nohtml"); }
  67          else { $mood = ""; }
  68          if (isset($status)) { $status = filter($status, "nohtml"); }
  69          else { $status = ""; }
  70          if (isset($jid)) { $jid = intval($jid); }
  71          else { $jid = ""; }
  72          if (isset($edit) AND ($edit == intval(1))) {
  73      $htime = date("h");
  74      $mtime = date("i");
  75      $ntime = date("a");
  76      $mtime = "$htime:$mtime $ntime";
  77      $mdate = date("m");
  78      $ddate = date("d");
  79      $ydate = date("Y");
  80      $ndate = "$mdate-$ddate-$ydate";
  81      $pdate = $ndate;
  82      $ptime = $mtime;
  83      $micro = microtime();
  84      $sql = "SELECT * FROM ".$prefix."_journal WHERE jid = '$jid'";
  85      $result = $db->sql_query($sql);
  86      while ($row = $db->sql_fetchrow($result)) {
  87                  if (!is_admin($admin)):
  88      if ($username != $row['aid']):
  89              echo ("<br>");
  90          openTable();
  91          echo ("<div align=center>".NOTYOURS."</div>");
  92          closeTable();
  93          journalfoot();
  94                  die();
  95                  endif;
  96                  endif;
  97              }
  98              echo ("<div align=center><strong>"._UPDATEOK."</strong></div><br>");
  99              $sql = "UPDATE ".$prefix."_journal SET title='$title', bodytext='$jbodytext', mood='$mood', status='$status', mdate='$ndate', mtime='$mtime' WHERE jid='$jid'";
 100              $db->sql_query($sql);
 101              $edited = "<br><br><center><b>"._UPDATED."</b></center>";
 102          } else {
 103              $edited = "";
 104          }
 105          if ($debug == "true") :
 106          echo ("UserName:$username<br>SiteName: $sitename");
 107          endif;
 108          startjournal($sitename, $user);
 109          echo "<br>";
 110          OpenTable();
 111          echo ("<div align=center class=title>"._JOURNALFOR." $username</div><br>");
 112          echo ("<div align=center> [ <a href=\"modules.php?name=$module_name&file=add\">"._ADDENTRY."</a> | <a href=\"modules.php?name=$module_name&file=edit&disp=last\">"._YOURLAST20."</a> | <a href=\"modules.php?name=$module_name&file=edit&disp=all\">"._LISTALLENTRIES."</a> ]</div>");
 113          echo "$edited";
 114          CloseTable();
 115          echo "<br>";
 116          function list20($username, $bgcolor1, $bgcolor2, $bgcolor3) {
 117      global $prefix, $user_prefix, $db, $module_name;
 118              openTable();
 119              echo ("<div align=\"center\" class=title>"._LAST20FOR." $username</div><br>");
 120              echo ("<table align=center border=1 width=\"90%\">");
 121              echo ("<tr>");
 122              echo ("<td align=center bgcolor=$bgcolor1 width=70><strong><div align=\"center\">"._DATE."</div></strong></td>");
 123              echo ("<td align=center bgcolor=$bgcolor1 width=70><strong><div align=\"center\">"._TIME."</div></strong></td>");
 124              echo ("<td align=center bgcolor=$bgcolor1><strong>"._TITLE."</strong> "._CLICKTOVIEW."</td>");
 125              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._PUBLIC."</div></strong></td>");
 126              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._EDIT."</div></strong></td>");
 127              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._DELETE."</div></strong></td>");
 128              echo ("</tr>");
 129      $sql = "SELECT jid, aid, title, pdate, ptime, mdate, mtime, status, mood FROM ".$prefix."_journal WHERE aid='$username' order by 'jid' DESC";
 130              $result = $db->sql_query($sql);
 131              $dcount = 1;
 132              while ($row = $db->sql_fetchrow($result)) {
 133                  if ($dcount >= 21) :
 134                  echo ("</tr></table>");
 135                  closeTable();
 136                  echo ("<br>");
 137                  journalfoot();
 138                  die();
 139                  else :
 140                  $dcount = $dcount + 1;
 141                  print ("<tr>");
 142                  $jid = intval($row['jid']);
 143                  $title = filter($row['title'], "nohtml");
 144                  $jaid = filter($row['aid'], "nohtml");
 145                  $pdate = filter($row['pdate'], "nohtml");
 146                  $ptime = filter($row['ptime'], "nohtml");
 147                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $pdate);
 148                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $ptime);
 149                  printf ("<td align=left bgcolor=$bgcolor2>&nbsp;<a href=\"modules.php?name=$module_name&file=display&jid=%s\">%s</a>", $jid, $title);
 150                  $sqlscnd = "SELECT cid from ".$prefix."_journal_comments where rid='$jaid'";
 151                  $rstscnd = $db->sql_query($sqlscnd);
 152                  $scndcount = 0;
 153                  while ($rowscnd = $db->sql_fetchrow($rstscnd)) {
 154                      $scndcount = $scndcount + 1;
 155                  }
 156                  if ($scndcount == 1) {
 157                      printf (" &#151;&#151; $scndcount "._COMMENT."</td>");
 158                  } else {
 159                      printf (" &#151;&#151; $scndcount "._COMMENTS."</td>");
 160                  }
 161                  if ($row['status'] == "yes") {
 162                      $row['status'] = _YES;
 163                  } else {
 164                      $row['status'] = _NO;
 165                  }
 166                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $row['status']);
 167                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\"><a href=\"modules.php?name=$module_name&file=modify&jid=%s\"><img src='modules/$module_name/images/edit.gif' border='0' alt=\""._EDIT."\" title=\""._EDIT."\"></a></div></td>", $jid, $title);
 168                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\"><a href=\"modules.php?name=$module_name&file=delete&jid=%s\"><img src='modules/$module_name/images/trash.gif' border='0' alt=\""._DELETE."\" title=\""._DELETE."\"></a></div></td>", $jid, $title);
 169                  print ("</tr>");
 170                  endif;
 171              }
 172              echo ("</table>");
 173              closeTable();
 174          }
 175          function listall($username, $bgcolor1, $bgcolor2, $bgcolor3, $sitename) {
 176              global $prefix, $user_prefix, $db, $module_name;
 177              openTable();
 178              echo ("<div align=\"center\" class=title>"._COMPLETELIST." $username</div><br>");
 179              echo ("<table align=center border=1 width=\"90%\">");
 180              echo ("<tr>");
 181              echo ("<td align=center bgcolor=$bgcolor1 width=70><strong><div align=\"center\">"._DATE."</div></strong></td>");
 182              echo ("<td align=center bgcolor=$bgcolor1 width=70><strong><div align=\"center\">"._TIME."</div></strong></td>");
 183              echo ("<td align=center bgcolor=$bgcolor1><strong>"._TITLE."</strong></td>");
 184              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._PUBLIC."</div></strong></td>");
 185              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._EDIT."</div></strong></td>");
 186              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._DELETE."</div></strong></td>");
 187              echo ("</tr>");
 188              $sql = "SELECT jid, aid, title, pdate, ptime, mdate, mtime, status, mood FROM ".$prefix."_journal WHERE aid='$username' order by 'jid' DESC";
 189              $result = $db->sql_query($sql);
 190              $dcount = 0;
 191              $pubcount = 0;
 192              $prvcount = 0;
 193              while ($row = $db->sql_fetchrow($result)) {
 194                  $jid = intval($row['jid']);
 195                  $title = filter($row['title'], "nohtml");
 196                  $jaid = filter($row['aid'], "nohtml");
 197                  $pdate = filter($row['pdate'], "nohtml");
 198                  $ptime = filter($row['ptime'], "nohtml");
 199                  $dcount = $dcount + 1;
 200                  if ($row['status'] == "yes"):
 201                      $pubcount = $pubcount +1;
 202                  $row['status'] = _YES;
 203                  else:
 204                      $prvcount = $prvcount + 1;
 205                  $row['status'] = _NO;
 206                  endif;
 207                  print ("<tr>");
 208                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $row['pdate']);
 209                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $row['ptime']);
 210                  printf ("<td align=left bgcolor=$bgcolor2><a href=\"modules.php?name=$module_name&file=display&jid=%s\">%s</a>", $jid, $title);
 211          $sqlscnd = "SELECT cid from ".$prefix."_journal_comments where rid='".intval($row['jid'])."'";
 212                  $rstscnd = $db->sql_query($sqlscnd);
 213                  $scndcount = 0;
 214                  while ($rowscnd = $db->sql_fetchrow($rstscnd)) {
 215                      $scndcount = $scndcount + 1;
 216                  }
 217                  if ($scndcount == 1) {
 218                      printf (" &#151;&#151; $scndcount "._COMMENT."</td>");
 219                  } else {
 220                      printf (" &#151;&#151; $scndcount "._COMMENTS."</td>");
 221                  }
 222                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $row['status']);
 223                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\"><a href=\"modules.php?name=$module_name&file=modify&jid=%s\"><img src='modules/$module_name/images/edit.gif' border='0' alt='"._EDIT."'></a></div></td>", $row['jid']);
 224                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\"><a href=\"modules.php?name=$module_name&file=delete&jid=%s\"><img src='modules/$module_name/images/trash.gif' border='0' alt='"._DELETE."'></a></div></td>", $row['jid']);
 225                  print ("</tr>");
 226              }
 227              echo ("</table>");
 228              if ($prvcount == "") {
 229                  $prvcount = 0;
 230              }
 231              if ($pubcount == "") {
 232                  $pubcount = 0;
 233              }
 234              if ($dcount == "") {
 235                  $dcount = 0;
 236              }
 237              echo "<br><div align=center>$pubcount "._PUBLICENTRIES." - " ."$prvcount "._PRIVATEENTRIES." - " ."$dcount "._TOTALENTRIES."</div>";
 238              closeTable();
 239          }
 240          if (!isset($disp)) { $disp = ""; }
 241          switch($disp) {
 242              case "last":
 243              list20($username, $bgcolor1, $bgcolor2, $bgcolor3);
 244              break;
 245              case "all":
 246              listall($username, $bgcolor1, $bgcolor2, $bgcolor3, $sitename);
 247              break;
 248              default:
 249              list20($username, $bgcolor1, $bgcolor2, $bgcolor3);
 250              break;
 251          }
 252          journalfoot();
 253      }
 254      if (is_admin($admin)) {
 255          $username = filter($username, "nohtml");
 256          $sitename = filter($sitename, "nohtml");
 257          $jbodytext = kses(ADVT_stripslashes($jbodytext), $allowed);
 258          $jbodytext = addslashes($jbodytext);
 259          $jid = intval($jid);
 260          if ($edit == intval(1)) {
 261              $htime = date(h);
 262              $mtime = date(i);
 263              $ntime = date(a);
 264              $mtime = "$htime:$mtime $ntime";
 265              $mdate = date(m);
 266              $ddate = date(d);
 267              $ydate = date(Y);
 268              $ndate = "$mdate-$ddate-$ydate";
 269              $pdate = $ndate;
 270              $ptime = $mtime;
 271              $micro = microtime();
 272              $sql = "SELECT * FROM ".$prefix."_journal WHERE jid = '$jid'";
 273              $result = $db->sql_query($sql);
 274              while ($row = $db->sql_fetchrow($result)) {
 275              }
 276              echo ("<div align=center><strong>"._UPDATEOK."</strong></div><br>");
 277              $sql = "UPDATE ".$user_prefix."_journal SET title='$title', bodytext='$jbodytext', mood='$mood', status='$status', mdate='$ndate', mtime='$mtime' WHERE jid='$jid'";
 278              $db->sql_query($sql);
 279              $edited = "<br><br><center><b>"._UPDATED."</b></center>";
 280          } else {
 281              $edited = "";
 282          }
 283          if ($debug == "true") :
 284          echo ("UserName:$username<br>SiteName: $sitename");
 285          endif;
 286          startjournal($sitename, $user);
 287          echo "<br>";
 288          OpenTable();
 289          echo ("<div align=center class=title>"._JOURNALFOR." $username</div><br>");
 290          echo ("<div align=center> [ <a href=\"modules.php?name=$module_name&file=add\">"._ADDENTRY."</a> | <a href=\"modules.php?name=$module_name&file=edit&disp=last\">"._YOURLAST20."</a> | <a href=\"modules.php?name=$module_name&file=edit&disp=all\">"._LISTALLENTRIES."</a> ]</div>");
 291          echo "$edited";
 292          CloseTable();
 293          echo "<br>";
 294          function list20($username, $bgcolor1, $bgcolor2, $bgcolor3) {
 295              global $prefix, $user_prefix, $db, $module_name;
 296              openTable();
 297              echo ("<div align=\"center\" class=title>"._LAST20FOR." $username</div><br>");
 298              echo ("<table align=center border=1 width=\"90%\">");
 299              echo ("<tr>");
 300              echo ("<td align=center bgcolor=$bgcolor1 width=70><strong><div align=\"center\">"._DATE."</div></strong></td>");
 301              echo ("<td align=center bgcolor=$bgcolor1 width=70><strong><div align=\"center\">"._TIME."</div></strong></td>");
 302              echo ("<td align=center bgcolor=$bgcolor1><strong>"._TITLE."</strong> "._CLICKTOVIEW."</td>");
 303              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._PUBLIC."</div></strong></td>");
 304              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._EDIT."</div></strong></td>");
 305              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._DELETE."</div></strong></td>");
 306              echo ("</tr>");
 307              $sql = "SELECT jid, aid, title, pdate, ptime, mdate, mtime, status, mood FROM ".$prefix."_journal WHERE aid='$username' order by 'jid' DESC";
 308              $result = $db->sql_query($sql);
 309              $dcount = 1;
 310              while ($row = $db->sql_fetchrow($result)) {
 311                  if ($dcount >= 21) :
 312                  echo ("</tr></table>");
 313                  closeTable();
 314                  echo ("<br>");
 315                  journalfoot();
 316                  die();
 317                  else :
 318                  $dcount = $dcount + 1;
 319                  print ("<tr>");
 320                  $jid = intval($row['jid']);
 321                  $title = filter($row['title'], "nohtml");
 322                  $jaid = filter($row['aid'], "nohtml");
 323                  $pdate = filter($row['pdate'], "nohtml");
 324                  $ptime = filter($row['ptime'], "nohtml");
 325                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $pdate);
 326                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $ptime);
 327                  printf ("<td align=left bgcolor=$bgcolor2>&nbsp;<a href=\"modules.php?name=$module_name&file=display&jid=%s\">%s</a>", $jid, $title);
 328                  $sqlscnd = "SELECT cid from ".$prefix."_journal_comments where rid='$jaid'";
 329                  $rstscnd = $db->sql_query($sqlscnd);
 330                  $scndcount = 0;
 331                  while ($rowscnd = $db->sql_fetchrow($rstscnd)) {
 332                      $scndcount = $scndcount + 1;
 333                  }
 334                  if ($scndcount == 1) {
 335                      printf (" &#151;&#151; $scndcount "._COMMENT."</td>");
 336                  } else {
 337                      printf (" &#151;&#151; $scndcount "._COMMENTS."</td>");
 338                  }
 339                  if ($row['status'] == "yes") {
 340                      $row['status'] = _YES;
 341                  } else {
 342                      $row['status'] = _NO;
 343                  }
 344                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $row['status']);
 345                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\"><a href=\"modules.php?name=$module_name&file=modify&jid=%s\"><img src='modules/$module_name/images/edit.gif' border='0' alt=\""._EDIT."\" title=\""._EDIT."\"></a></div></td>", $jid, $title);
 346                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\"><a href=\"modules.php?name=$module_name&file=delete&jid=%s\"><img src='modules/$module_name/images/trash.gif' border='0' alt=\""._DELETE."\" title=\""._DELETE."\"></a></div></td>", $jid, $title);
 347                  print ("</tr>");
 348                  endif;
 349              }
 350              echo ("</table>");
 351              closeTable();
 352          }
 353          function listall($username, $bgcolor1, $bgcolor2, $bgcolor3, $sitename) {
 354              global $prefix, $user_prefix, $db, $module_name;
 355              openTable();
 356              echo ("<div align=\"center\" class=title>"._COMPLETELIST." $username</div><br>");
 357              echo ("<table align=center border=1 width=\"90%\">");
 358              echo ("<tr>");
 359              echo ("<td align=center bgcolor=$bgcolor1 width=70><strong><div align=\"center\">"._DATE."</div></strong></td>");
 360              echo ("<td align=center bgcolor=$bgcolor1 width=70><strong><div align=\"center\">"._TIME."</div></strong></td>");
 361              echo ("<td align=center bgcolor=$bgcolor1><strong>"._TITLE."</strong></td>");
 362              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._PUBLIC."</div></strong></td>");
 363              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._EDIT."</div></strong></td>");
 364              echo ("<td align=center bgcolor=$bgcolor1 width=\"5%\"><strong><div align=\"center\">"._DELETE."</div></strong></td>");
 365              echo ("</tr>");
 366              $sql = "SELECT jid, aid, title, pdate, ptime, mdate, mtime, status, mood FROM ".$prefix."_journal WHERE aid='$username' order by 'jid' DESC";
 367              $result = $db->sql_query($sql);
 368              $dcount = 0;
 369              $pubcount = 0;
 370              $prvcount = 0;
 371              while ($row = $db->sql_fetchrow($result)) {
 372                  $jid = intval($row['jid']);
 373                  $title = filter($row['title'], "nohtml");
 374                  $jaid = filter($row['aid'], "nohtml");
 375                  $pdate = filter($row['pdate'], "nohtml");
 376                  $ptime = filter($row['ptime'], "nohtml");
 377                  $dcount = $dcount + 1;
 378                  if ($row['status'] == "yes"):
 379                      $pubcount = $pubcount +1;
 380                  $row['status'] = _YES;
 381                  else:
 382                      $prvcount = $prvcount + 1;
 383                  $row['status'] = _NO;
 384                  endif;
 385                  print ("<tr>");
 386                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $row['pdate']);
 387                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $row['ptime']);
 388                  printf ("<td align=left bgcolor=$bgcolor2><a href=\"modules.php?name=$module_name&file=display&jid=%s\">%s</a>", $jid, $title);
 389                  $sqlscnd = "SELECT cid from ".$user_prefix."_journal_comments where rid=".intval($row['jid']);
 390                  $rstscnd = $db->sql_query($sqlscnd);
 391                  $scndcount = 0;
 392                  while ($rowscnd = $db->sql_fetchrow($rstscnd)) {
 393                      $scndcount = $scndcount + 1;
 394                  }
 395                  if ($scndcount == 1) {
 396                      printf (" &#151;&#151; $scndcount "._COMMENT."</td>");
 397                  } else {
 398                      printf (" &#151;&#151; $scndcount "._COMMENTS."</td>");
 399                  }
 400                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\">%s</div></td>", $row['status']);
 401                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\"><a href=\"modules.php?name=$module_name&file=modify&jid=%s\"><img src='modules/$module_name/images/edit.gif' border='0' alt='"._EDIT."'></a></div></td>", $row['jid']);
 402                  printf ("<td align=center bgcolor=$bgcolor2><div align=\"center\"><a href=\"modules.php?name=$module_name&file=delete&jid=%s\"><img src='modules/$module_name/images/trash.gif' border='0' alt='"._DELETE."'></a></div></td>", $row['jid']);
 403                  print ("</tr>");
 404              }
 405              echo ("</table>");
 406              if ($prvcount == "") {
 407                  $prvcount = 0;
 408              }
 409              if ($pubcount == "") {
 410                  $pubcount = 0;
 411              }
 412              if ($dcount == "") {
 413                  $dcount = 0;
 414              }
 415              echo "<br><div align=center>$pubcount "._PUBLICENTRIES." - " ."$prvcount "._PRIVATEENTRIES." - " ."$dcount "._TOTALENTRIES."</div>";
 416              closeTable();
 417          }
 418          if (!isset($disp)) { $disp = ""; }
 419          switch($disp) {
 420              case "last":
 421              list20($username, $bgcolor1, $bgcolor2, $bgcolor3);
 422              break;
 423              case "all":
 424              listall($username, $bgcolor1, $bgcolor2, $bgcolor3, $sitename);
 425              break;
 426              default:
 427              list20($username, $bgcolor1, $bgcolor2, $bgcolor3);
 428              break;
 429          }
 430          journalfoot();
 431      } else {
 432          $pagetitle = "- "._YOUMUSTBEMEMBER."";
 433          $pagetitle = filter($pagetitle, "nohtml");
 434          OpenTable();
 435          echo "<center><b>"._YOUMUSTBEMEMBER."</b></center>";
 436          CloseTable();
 437          include ("footer.php");
 438          die();
 439      }
 440  
 441  ?>


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