[ Index ] |
|
Code source de PHP NUKE 7.9 |
1 <?php 2 3 /************************************************************************/ 4 /* Journal § 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 § 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 41 require_once ("mainfile.php"); 42 $module_name = basename(dirname(__FILE__)); 43 get_lang($module_name); 44 45 $pagetitle = "- "._USERSJOURNAL.""; 46 include ("header.php"); 47 include("modules/$module_name/functions.php"); 48 if (is_user($user)) { 49 cookiedecode($user); 50 $username = $cookie[1]; 51 $htime = date("h"); 52 $mtime = date("i"); 53 $ntime = date("a"); 54 $mtime = "$htime:$mtime $ntime"; 55 $mdate = date("m"); 56 $ddate = date("d"); 57 $ydate = date("Y"); 58 $ndate = "$mdate-$ddate-$ydate"; 59 $username = filter($username, "nohtml"); 60 $sitename = filter($sitename, "nohtml"); 61 $ndate = filter($ndate, "nohtml"); 62 $debug = filter($debug, "nohtml"); 63 if ($debug == "true") : 64 echo ("UserName:$username<br>SiteName: $sitename"); 65 endif; 66 67 $onwhat = intval($onwhat); 68 startjournal($sitename,$user); 69 70 function dropcomment($username,$onwhat,$mtime,$ndate) { 71 global $module_name; 72 $onwhat = intval($onwhat); 73 echo "<br>"; 74 OpenTable(); 75 echo ("<div align=center class=title>"._LEAVECOMMENT."</div><br><br>"); 76 echo ("<form action='modules.php?name=$module_name&file=commentsave' method='post'><input type='hidden' name='rid' value='$onwhat'>"); 77 echo ("<div align=center>"._COMMENTBOX.":<br><textarea name=\"comment\" cols=70 rows=15></textarea><br>"._HTMLNOTALLOWED."<br><input type='submit' name='submit' value='"._POSTCOMMENT."'></div>"); 78 echo ("</form><br>"); 79 echo ("<center>"._COMMENTSNOTE."</center>"); 80 CloseTable(); 81 } 82 } 83 if (!is_user($user)) : 84 echo ("<br>"); 85 openTable(); 86 echo ("<div align=center>"._YOUMUSTBEMEMBER."<br></div>"); 87 closeTable(); 88 journalfoot(); 89 die(); 90 else: 91 dropcomment($username,$onwhat,$mtime,$ndate); 92 endif; 93 94 journalfoot(); 95 96 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 11:11:59 2007 | par Balluche grâce à PHPXref 0.7 |