[ Index ] |
|
Code source de PHP NUKE 7.9 |
1 <?php 2 3 $thename = "Cuadriculado"; 4 $bgcolor1 = "#cccccc"; 5 $bgcolor2 = "#999999"; 6 $bgcolor3 = "#cccccc"; 7 $textcolor1 = "#ffffff"; 8 $textcolor2 = "#000000"; 9 10 function OpenTable() { 11 global $bgcolor1, $bgcolor2; 12 echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n"; 13 echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n"; 14 } 15 16 function CloseTable() { 17 echo "</td></tr></table></td></tr></table>\n"; 18 } 19 20 function OpenTable2() { 21 global $bgcolor1, $bgcolor2; 22 echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n"; 23 echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n"; 24 } 25 26 function CloseTable2() { 27 echo "</td></tr></table></td></tr></table>\n"; 28 } 29 30 function FormatStory($thetext, $notes, $aid, $informant) { 31 global $anonymous; 32 if (!empty($notes)) { 33 $notes = "<b>"._NOTE."</b> <i>$notes</i>\n"; 34 } else { 35 $notes = ""; 36 } 37 if ("$aid" == "$informant") { 38 echo "<font class=\"content\" color=\"#505050\">$thetext<br>$notes</font>\n"; 39 } else { 40 if(!empty($informant)) { 41 $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> "; 42 } else { 43 $boxstuff = "$anonymous "; 44 } 45 $boxstuff .= "writes <i>\"$thetext\"</i> $notes\n"; 46 echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n"; 47 } 48 } 49 50 function themeheader() { 51 echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#000000\" vlink=\"#000000\">" 52 ."<br>"; 53 ads(0); 54 echo "<br>" 55 ."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"FFFFFF\">" 56 ."<tr><td width=\"100%\">" 57 ."<a href=\"index.php\"><img src=\"themes/Traditional/images/logo.gif\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>" 58 ."</td><td align=\"right\">" 59 ."<form action=\"modules.php?name=Search\" method=\"post\">" 60 ."<input type=\"text\" name=\"query\" width=\"20\" size=\"15\" length=\"20\">" 61 ."</td>" 62 ."<td width=\"60\" align=\"left\"><input type=\"submit\" value=\""._SEARCH."\"></td>" 63 ."</tr></table></form>" 64 ."<br>"; 65 $public_msg = public_message(); 66 echo "$public_msg<br>"; 67 echo "<table border=\"0\" width=\"100%\" cellspacing=\"5\"><tr><td valign=\"top\">"; 68 } 69 70 function themefooter() { 71 if (defined('INDEX_FILE')) { 72 echo "<td> </td><td valign=\"top\" width=\"200\">"; 73 blocks("left"); 74 blocks("right"); 75 } 76 echo "</td></tr></table></td></tr></table>"; 77 echo "<center>"; 78 footmsg(); 79 echo "</center>"; 80 } 81 82 function themesidebox($title, $content) { 83 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"200\" bgcolor=\"#000000\"><tr><td>" 84 ."<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"3\"><tr><td bgcolor=\"#cccccc\">" 85 ."<img src=\"themes/Traditional/images/tic.gif\" border=\"0\" alt=\"\">" 86 ."<font class=\"option\">$title</font></td></tr>" 87 ."<tr><td bgcolor=\"#ffffff\">" 88 ."<font class=\"content\">$content</font>" 89 ."</td></tr></table></td></tr></table>" 90 ."<br>"; 91 } 92 93 94 95 function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) { 96 global $anonymous, $tipath; 97 $ThemeSel = get_theme(); 98 if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { 99 $t_image = "themes/$ThemeSel/images/topics/$topicimage"; 100 } else { 101 $t_image = "$tipath$topicimage"; 102 } 103 if ("$aid" == "$informant") { ?> 104 105 106 <table border=0 cellpadding=3 cellspacing=1 width=100%> 107 <tr><td bgcolor=CCCCCC> 108 <font class=title> 109 <b><?php echo"$title"; ?></b><br> 110 </td></tr><tr><td bgcolor=FFFFFF> 111 <a href="modules.php?name=News&new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a> 112 <font class=tiny> 113 Posted by <b><?php formatAidHeader($aid); echo "$aid"; ?></b> on <?php echo"$time $timezone"; ?><br>(<?php echo $counter; ?> reads) 114 </font><br><br> 115 <font class=content> 116 <?php echo"$thetext<br><br></font> 117 </td></tr><tr><td align=left> 118 <font class=content>$morelink"; ?></font> 119 </td> 120 </tr> 121 </table> 122 <br> 123 124 125 <?php } else { 126 if(!empty($informant)) $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> "; 127 else $boxstuff = "$anonymous "; 128 $boxstuff .= "writes <i>\"$thetext\"</i> $notes"; 129 ?> 130 131 <table border=0 cellpadding=3 cellspacing=1 width=100%> 132 <tr><td bgcolor=CCCCCC> 133 <font class=title> 134 <b><?php echo"$title"; ?></b><br> 135 <font class=option> 136 </td></tr><tr><td bgcolor=FFFFFF> 137 <a href="modules.php?name=News&new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a> 138 <font class=option> 139 Posted by <?php formatAidHeader($aid); ?> on <?php echo"$time $timezone"; ?><br>(<?php echo $counter; ?> reads) 140 <br><br> 141 </font> 142 <font class=content> 143 <?php echo"$boxstuff<br><br></font> 144 </td></tr><tr><td align=left> 145 <font class=option>$morelink"; ?></font> 146 </td> 147 </tr> 148 </table> 149 <br> 150 151 <?php } 152 } 153 154 function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) { 155 global $admin, $sid, $tipath, $admin_file; 156 $ThemeSel = get_theme(); 157 if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { 158 $t_image = "themes/$ThemeSel/images/topics/$topicimage"; 159 } else { 160 $t_image = "$tipath$topicimage"; 161 } 162 if ("$aid" == "$informant") { 163 echo" 164 165 <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%> 166 <tr><td> 167 168 <table border=0 cellpadding=3 cellspacing=1 width=100%> 169 <tr><td bgcolor=CCCCCC> 170 $font2 171 <b>$title</b><br>$font2 Enviado el $datetime 172 "; 173 if ($admin) { 174 echo " $font2 [ <a href=".$admin_file.".php?op=EditStory&sid=$sid>Edit</a> | <a href=".$admin_file.".php?op=RemoveStory&sid=$sid>Delete</a> ]"; 175 } 176 echo " 177 </td> 178 </tr> 179 <tr> 180 <td bgcolor=ffffff> 181 <a href=modules.php?name=News&new_topic=$topic><img src=$t_image border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a> 182 $thetext 183 </td> 184 </tr> 185 </table> 186 </td> 187 </tr> 188 </table><br> 189 "; 190 191 } else { 192 if(!empty($informant)) $informant = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> "; 193 else $boxstuff = "$anonymous "; 194 $boxstuff .= "writes <i>\"$thetext\"</i> $notes"; 195 echo " 196 197 <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%> 198 <tr><td> 199 <table border=0 cellpadding=3 cellspacing=1 width=100%> 200 <tr><td bgcolor=CCCCCC> 201 $font3 202 <b>$title</b><br>$font2 Contributed by $informant on $datetime</font> 203 "; 204 if ($admin) { 205 echo " $font2 [ <a href=".$admin_file.".php?op=EditStory&sid=$sid>Edit</a> | <a href=".$admin_file.".php?op=RemoveStory&sid=$sid>Delete</a> ]"; 206 } 207 echo " 208 </td> 209 </tr> 210 <tr> 211 <td bgcolor=ffffff> 212 <a href=modules.php?name=News&new_topic=$topic><img src=$t_image border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a> 213 $font3 $thetext 214 </td> 215 </tr> 216 </table> 217 </td> 218 </tr> 219 </table><br> 220 "; 221 222 } 223 } 224 225 ?>
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 |