[ Index ] |
|
Code source de PHP NUKE 7.9 |
1 <?php 2 3 /************************************************************************/ 4 /* PHP-NUKE: Web Portal System */ 5 /* =========================== */ 6 /* */ 7 /* Copyright (c) 2005 by Francisco Burzi */ 8 /* http://phpnuke.org */ 9 /* */ 10 /* This program is free software. You can redistribute it and/or modify */ 11 /* it under the terms of the GNU General Public License as published by */ 12 /* the Free Software Foundation; either version 2 of the License. */ 13 /************************************************************************/ 14 15 if (!defined('MODULE_FILE')) { 16 die("You can't access this file directly..."); 17 } 18 19 if (!is_user($user)) { 20 exit("Access Denied"); 21 } 22 23 require_once ("mainfile.php"); 24 get_lang("Your_Account"); 25 26 function menuimg($gfile) { 27 $ThemeSel = get_theme(); 28 if (file_exists("themes/$ThemeSel/images/menu/$gfile")) { 29 $menuimg = "themes/$ThemeSel/images/menu/$gfile"; 30 } else { 31 $menuimg = "modules/Your_Account/images/$gfile"; 32 } 33 return($menuimg); 34 } 35 36 function nav($main_up=0) { 37 global $module_name, $articlecomm; 38 $thmcount = 0; 39 $handle=opendir('themes'); 40 while ($file = readdir($handle)) { 41 if ( (!ereg("[.]",$file)) ) { 42 $thmcount++; 43 } 44 } 45 closedir($handle); 46 echo "<table border=\"0\" width=\"100%\" align=\"center\"><tr><td width=\"10%\">"; 47 48 $menuimg = menuimg("info.gif"); 49 echo "<font class=\"content\">" 50 ."<center><a href=\"modules.php?name=Your_Account&op=edituser\"><img src=\"$menuimg\" border=\"0\" alt=\""._CHANGEYOURINFO."\" title=\""._CHANGEYOURINFO."\"></a><br>" 51 ."<a href=\"modules.php?name=Your_Account&op=edituser\">"._CHANGEYOURINFO."</a>" 52 ."</center></font></td>"; 53 54 $menuimg = menuimg("home.gif"); 55 echo "<td width=\"10%\"><font class=\"content\">" 56 ."<center><a href=\"modules.php?name=Your_Account&op=edithome\"><img src=\"$menuimg\" border=\"0\" alt=\""._CHANGEHOME."\" title=\""._CHANGEHOME."\"></a><br>" 57 ."<a href=\"modules.php?name=Your_Account&op=edithome\">"._CHANGEHOME."</a>" 58 ."</center></form></font></td>"; 59 60 if ($articlecomm == 1) { 61 $menuimg = menuimg("comments.gif"); 62 echo "<td width=\"10%\"><font class=\"content\">" 63 ."<center><a href=\"modules.php?name=Your_Account&op=editcomm\"><img src=\"$menuimg\" border=\"0\" alt=\""._CONFIGCOMMENTS."\" title=\""._CONFIGCOMMENTS."\"></a><br>" 64 ."<a href=\"modules.php?name=Your_Account&op=editcomm\">"._CONFIGCOMMENTS."</a>" 65 ."</center></form></font></td>"; 66 } 67 68 if (is_active("Private_Messages")) { 69 $menuimg = menuimg("messages.gif"); 70 echo "<td width=\"10%\"><font class=\"content\">" 71 ."<center><a href=\"modules.php?name=Private_Messages\"><img src=\"$menuimg\" border=\"0\" alt=\""._PRIVATEMESSAGES."\" title=\""._PRIVATEMESSAGES."\"></a><br>" 72 ."<a href=\"modules.php?name=Private_Messages\">"._MESSAGES."</a>" 73 ."</center></form></font></td>"; 74 } 75 76 if (is_active("Journal")) { 77 $menuimg = menuimg("journal.gif"); 78 echo "<td width=\"10%\"><font class=\"content\">" 79 ."<center><a href=\"modules.php?name=Journal&file=edit\"><img src=\"$menuimg\" border=\"0\" alt=\""._JOURNAL."\" title=\""._JOURNAL."\"></a><br>" 80 ."<a href=\"modules.php?name=Journal&file=edit\">"._JOURNAL."</a>" 81 ."</center></form></font></td>"; 82 } 83 84 if ($thmcount > 1) { 85 $menuimg = menuimg("themes.gif"); 86 echo "<td width=\"10%\"><font class=\"content\">" 87 ."<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a><br>" 88 ."<a href=\"modules.php?name=Your_Account&op=chgtheme\">"._SELECTTHETHEME."</a>" 89 ."</center></form></font></td>"; 90 } 91 92 $menuimg = menuimg("exit.gif"); 93 echo "<td width=\"10%\"><font class=\"content\">" 94 ."<center><a href=\"modules.php?name=Your_Account&op=logout\"><img src=\"$menuimg\" border=\"0\" alt=\""._LOGOUTEXIT."\" title=\""._LOGOUTEXIT."\"></a><br>" 95 ."<a href=\"modules.php?name=Your_Account&op=logout\">"._LOGOUTEXIT."</a>" 96 ."</center></form></font>"; 97 98 echo "</td></tr></table>"; 99 if ($main_up != 1) { 100 echo "<br><center>[ <a href=\"modules.php?name=Your_Account\">"._RETURNACCOUNT."</a> ]</center>\n"; 101 } 102 } 103 104 ?>
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 |