[ Index ] |
|
Code source de PHP NUKE 7.9 |
1 <?php 2 3 ######################################################### 4 # Sunset theme for PHPNuke 5.0 # 5 # Translation by Ivan Stojmirov [stojmir@linux.net.mk] # 6 # Originaly made by Francisco # 7 ######################################################### 8 9 10 11 $thename = "Sunset"; 12 $lnkcolor = "#035D8A"; 13 $bgcolor1 = "#FFFFE6"; 14 $bgcolor2 = "#006699"; 15 $bgcolor3 = "#FFFFE6"; 16 $bgcolor4 = "#FFC53A"; 17 $textcolor1 = "FFFFFF"; 18 $textcolor2 = "000000"; 19 $hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor 20 21 22 function OpenTable() { 23 global $bgcolor1, $bgcolor2; 24 echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n"; 25 echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n"; 26 } 27 28 function OpenTable2() { 29 global $bgcolor1, $bgcolor2; 30 echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n"; 31 echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n"; 32 } 33 34 function CloseTable() { 35 echo "</td></tr></table></td></tr></table>\n"; 36 } 37 38 function CloseTable2() { 39 echo "</td></tr></table></td></tr></table>\n"; 40 } 41 42 function FormatStory($thetext, $notes, $aid, $informant) { 43 global $anonymous; 44 if (!empty($notes)) { 45 $notes = "<b>"._NOTE."</b> <i>$notes</i>\n"; 46 } else { 47 $notes = ""; 48 } 49 if ("$aid" == "$informant") { 50 echo "<font size=\"2\" color=\"#505050\">$thetext<br>$notes</font>\n"; 51 } else { 52 if(!empty($informant)) { 53 $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> "; 54 } else { 55 $boxstuff = "$anonymous "; 56 } 57 $boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n"; 58 echo "<font size=\"2\" color=\"#505050\">$boxstuff</font>\n"; 59 } 60 } 61 62 63 function themeheader() { 64 global $slogan, $sitename, $banners; 65 echo "<body bgcolor=\"#FFC53A\" text=\"#000000\" link=\"#035D8A\" vlink=\"#035D8A\">"; 66 echo "<br><center><table border=0 width=100% cellpadding=3 cellspacing=0><tr><td>\n\n"; 67 echo "<a href=$nuke_url><img src=themes/Sunset/images/logo.gif Alt=\""._WELCOMETO." $sitename\" border=0></a>\n"; 68 echo "</td>\n"; 69 echo "<td>"; 70 ads(0); 71 echo "</td>"; 72 echo "<td align=right>\n"; 73 echo "<form action=modules.php?name=Search method=post><font size=2 color=000000>\n"; 74 echo ""._SEARCH." \n"; 75 echo "<input type=text name=query>\n"; 76 echo "</form>\n"; 77 echo "</td></tr></table>\n"; 78 echo "<br>\n"; 79 $public_msg = public_message(); 80 echo "$public_msg<br>"; 81 echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top width=140>\n"; 82 83 blocks("left"); 84 85 echo "</td><td> </td><td valign=top width=100%>\n\n\n"; 86 } 87 88 function themefooter() { 89 if (defined('INDEX_FILE')) { 90 echo "</td><td> </td><td valign=top width=200>\n"; 91 blocks("right"); 92 echo "</td>"; 93 } 94 echo "</td></tr></table></td></tr></table>"; 95 footmsg(); 96 } 97 98 99 function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) { 100 global $anonymous, $tipath; 101 $ThemeSel = get_theme(); 102 if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { 103 $t_image = "themes/$ThemeSel/images/topics/$topicimage"; 104 } else { 105 $t_image = "$tipath$topicimage"; 106 } 107 echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=035D8A><tr><td>\n"; 108 echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" bgcolor=FFFFFF><tr><td>\n"; 109 echo "<a href=modules.php?name=News&new_topic=$topic><img src=$t_image Alt=\"$topictext\" border=0 align=right></a>\n"; 110 echo "<img src=\"themes/Sunset/images/bullet.gif\" border=0 hspace=3><font size=3><b>$title</b></font><br>\n"; 111 echo "<font size=1 color=035D8A>"._POSTEDBY." "; 112 formatAidHeader($aid); 113 echo " "._ON." $time $timezone ($counter "._READS.")<br><br></font>\n"; 114 if ("$aid" == "$informant") { 115 echo "<font size=2 color=000000>$thetext</font><br><br>\n"; 116 } else { 117 if (!empty($informant)) { 118 $boxstuff = "<a href=modules.php?name=Your_Account&op=userinfo&username=$informant>$informant</a> "; 119 } else { 120 $boxstuff = "$anonymous "; 121 } 122 $boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n"; 123 echo "<font size=2 color=000000>$boxstuff</font><br><br>\n"; 124 } 125 echo "<font size=2>$morelink</font><br><img src=themes/Sunset/images/line.gif border=0 vspace=4>\n"; 126 echo "</td></tr></table>\n"; 127 echo "</td></tr></table>\n"; 128 echo "<br>\n\n\n"; 129 } 130 131 132 133 function themearticle($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) { 134 global $admin, $sid, $tipath, $admin_file; 135 $ThemeSel = get_theme(); 136 if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { 137 $t_image = "themes/$ThemeSel/images/topics/$topicimage"; 138 } else { 139 $t_image = "$tipath$topicimage"; 140 } 141 echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=035D8A><tr><td>\n"; 142 echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" bgcolor=FFFFFF><tr><td>\n"; 143 echo "<a href=modules.php?name=News&new_topic=$topic><img src=$t_image Alt=\"$topictext\" border=0 align=right></a>\n"; 144 echo "<img src=\"themes/Sunset/images/bullet.gif\" border=0 hspace=3><font size=2><b>$title</b></font>\n"; 145 if ($admin) { 146 echo " [ <a href=".$admin_file.".php?op=EditStory&sid=$sid>"._EDIT."</a> | <a href=".$admin_file.".php?op=RemoveStory&sid=$sid>"._DELETE."</a> ]<br>\n"; 147 } else { 148 echo "<br>\n"; 149 } 150 echo "<font size=1 color=035D8A>"._POSTEDBY.""; 151 formatAidHeader($aid); 152 echo " "._ON." $datetime<br>\n"; 153 if (!empty($informant)) { 154 echo ""._CONTRIBUTEDBY." <a href=modules.php?name=Your_Account&op=userinfo&username=$informant>$informant</a><br><br>\n"; 155 } else { 156 echo ""._CONTRIBUTEDBY." $anonymous<br><br></font>\n"; 157 } 158 echo "<font size=2 color=000000>$thetext</font><br><br>\n"; 159 echo "</td></tr></table>\n"; 160 echo "</td></tr></table>\n\n"; 161 } 162 163 164 165 function themesidebox($title, $content) { 166 mt_srand((double)microtime()*1000000); 167 $rcolor = mt_rand(1, 4); 168 if ($rcolor == 1) { 169 $tcolor = "006699"; 170 } elseif ($rcolor == 2) { 171 $tcolor = "941C31"; 172 } elseif ($rcolor == 3) { 173 $tcolor = "009983"; 174 } elseif ($rcolor == 4) { 175 $tcolor = "0066FF"; 176 } 177 echo "<table width=\"165\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>\n"; 178 echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td>\n"; 179 echo "<img src=\"themes/Sunset/images/left$rcolor.gif\" alt=\"\" border=\"0\" width=\"5\" height=\"19\"></td>\n"; 180 echo "<td bgcolor=$tcolor width=\"100%\"><b><font size=\"2\" color=\"#FFFFFF\">$title</font></b></td>\n"; 181 echo "<td align=\"right\"><img src=\"themes/Sunset/images/right$rcolor.gif\" alt=\"\" border=\"0\" width=\"5\" height=\"19\"></td></tr></table>\n"; 182 echo "</td></tr><tr><td align=\"center\" valign=\"top\">\n"; 183 echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=$tcolor><tr><td width=100%>\n"; 184 echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\" bgcolor=$tcolor><tr><td width=\"100%\" valign=\"top\" bgcolor=\"#FFFFE6\">\n"; 185 echo "$content\n"; 186 echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td>\n"; 187 echo "<img src=\"pixel.gif\" width=\"1\" height=\"4\" alt=\"\" border=\"0\"></td></tr></table>\n"; 188 echo "</td></tr></table>\n"; 189 echo "</td></tr></table>\n"; 190 echo "</td></tr><tr>\n"; 191 echo "<td align=\"center\" valign=\"bottom\">\n"; 192 echo "<img width=\"100%\" height=\"5\" src=\"themes/Sunset/images/bottom$rcolor.gif\" vspace=\"0\" border=\"0\"></td></tr></table>\n"; 193 echo "<br>\n\n\n"; 194 } 195 196 ?>
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 |