Changeset 43
- Timestamp:
- 07/31/07 04:44:01 (1 year ago)
- Files:
-
- website/faq.php (added)
- website/forum/func/func_mkbutton.php (modified) (2 diffs)
- website/forum/func/func_show_all.php (modified) (7 diffs)
- website/forum/func/func_show_forums.php (modified) (4 diffs)
- website/forum/func/func_show_thread.php (modified) (8 diffs)
- website/forum/func/jumpMenu.php (modified) (8 diffs)
- website/forum/func/showOnline.php (modified) (2 diffs)
- website/forum/index.php (modified) (1 diff)
- website/forum/info.php (modified) (3 diffs)
- website/forum/login_form.php (modified) (2 diffs)
- website/forum/members.php (modified) (7 diffs)
- website/forum/pheng.php (modified) (12 diffs)
- website/forum/show.php (modified) (5 diffs)
- website/forum/user_info.php (modified) (14 diffs)
- website/header.inc (modified) (1 diff)
- website/menubar.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
website/forum/func/func_mkbutton.php
r40 r43 1 1 <? 2 2 3 function make_button($name,$link,$title){ 3 function make_button($name, $link, $title) { 4 ?> 5 <td> 4 6 5 echo '<td>'. 7 <table cellpadding="1" cellspacing="0" style="height: 20px; margin-right: 10px;"> 8 <tr bgcolor="#333333"> 9 <td width="10"></td> 6 10 7 '<table cellpadding="0" cellspacing="0" style="height: 12px; margin: 2px; margin-right: 3px;"><tr>'. 8 '<td style="width: 4px;"><img src="pixmaps/button_chunk_1.png" alt="" /></td>'. 9 '<td class="thread_button_td">'. 10 '<a class="thread_button" href="'.$link.'" title="'.$title.'"><nobr>'.$name.'</nobr></a>'. 11 '</td>'. 12 '<td style="width: 4px;"><img src="pixmaps/button_chunk_3.png" alt="" /></td>'. 13 '</tr></table>'."\n\n". 14 15 '</td>'; 16 11 <td> 12 <a 13 href="<? echo $link ?>" 14 title="<? echo $title ?>"><nobr><font color="#EEEEEE" class="smallfont"><? echo $name ?></font></nobr></a> 15 </td> 16 17 <td width="10"></td> 18 </tr> 19 </table> 20 21 </td> 22 <? 17 23 } 18 24 … … 25 31 } 26 32 27 ?> 33 ?> website/forum/func/func_show_all.php
r40 r43 6 6 7 7 $search=$_GET['search']; 8 8 9 9 if($show_last_posts=="" and $search!="true" and $__show_mode!="unread"){ 10 10 … … 35 35 36 36 } 37 37 38 38 } elseif ($__show_mode=="unread") { 39 39 40 40 if(count($newposts)==0){ 41 41 42 42 $results=false; 43 43 44 44 echo '<div class="forumBody">'."\n"; 45 45 echo "You have no unread posts."; 46 46 echo '</div>'."\n"; 47 47 48 48 } else { 49 49 50 50 global $lastlogin; 51 51 52 52 $i=0; 53 53 54 54 foreach($newposts as $thread=>$id){ 55 55 56 56 $i++; 57 57 58 58 if($i==count($newposts) or $i>=45){ 59 59 $list.=$thread; … … 61 61 $list.=$thread.", "; 62 62 } 63 63 64 64 if($i>=45) break; 65 66 } 67 65 66 } 67 68 68 $add_query="where id in ($list)"; 69 69 $limit="limit 45"; 70 70 71 71 $ok=true; 72 72 $results=true; 73 74 } 75 73 74 } 75 76 76 } else { 77 77 78 78 $add_query=""; 79 79 $limit="limit $show_last_posts"; 80 80 81 81 $ok=true; 82 82 $results=true; 83 83 84 84 echo '<h1>'.str_replace("%s",$show_last_posts,$tr['last x posts']).'</h1>'; 85 85 … … 87 87 88 88 global $ph_max_threads; 89 89 global $site_root; 90 90 91 if($ok and $results){ 91 92 echo "<table width=100%>". 93 '<tr><td style="width: 40%" class="forumTableHead">'.$tr['subject'].'</td>'. 94 '<td style="width: 20%" class="forumTableHead">'.$tr['thread_starter'].'</td>'. 95 '<td style="width: 10%" class="forumTableHead">'.$tr['replies'].'</td>'. 96 '<td style="width: 30%" class="forumTableHead">'.$tr['last_post'].'</td></tr>'."\n\n"; 92 93 ?> 94 95 <table width=100% border="0" cellspacing="0" cellpadding="0"> 96 <tr height="25px"> 97 98 <td ><img src="<? echo $site_root ?>/images/title_background_left.png"></td> 99 100 <td width="90%" background="<? echo $site_root ?>/images/title_background.png" nowrap> 101 <font color="#EEEEEE"><b><? echo $tr['subject'] ?></b></font> 102 </td> 103 104 <td align="center" width="150px" background="<? echo $site_root ?>/images/title_background.png" nowrap> 105 <font color="#EEEEEE"><b><? echo $tr['thread_starter'] ?></b></font> 106 </td> 107 108 <td align="center" width="80px" background="<? echo $site_root ?>/images/title_background.png" nowrap> 109 <font color="#EEEEEE"><b><? echo $tr['replies'] ?></b></font> 110 </td> 111 112 <td align="center" width="200px" background="<? echo $site_root ?>/images/title_background.png" nowrap> 113 <font color="#EEEEEE"><b><? echo $tr['last_post'] ?></b></font> 114 </td> 115 116 <td><img src="<? echo $site_root ?>/images/title_background_right.png"></td> 117 118 </tr> 119 120 <? 121 // spazio tra un thread e un altro 122 echo '<tr height="5"><td colspan="6"></td</tr>'; 97 123 98 124 $query_str_stat="select id, fid, subject, starter, started, lastposter, replies, unix_timestamp(lastpost), maxid, sticky, locked from $threads_table $add_query order by sticky, lastpost desc $limit"; 99 125 $query_stat=mysql_query($query_str_stat); 100 101 while($thread=mysql_fetch_array($query_stat,MYSQL_BOTH)){ 102 103 $last_poster=$thread['lastposter']; 104 $subject=$thread['subject']; 105 $starter=$thread['starter']; 106 107 $sticky=$thread['sticky']; 108 $locked=$thread['locked']; 109 110 $t=$thread['id']; 111 $thisfid=$thread['fid']; 112 $last_id=$thread['maxid']; 113 $replies=$thread['replies']; 114 115 $pages=floor(($thread['replies'])/$ph_max_messages)+1; 116 117 if($pages>1){ 118 119 $displaypages=""; 120 121 for($allpages=1;$allpages<=$pages;$allpages++){ 122 if($allpages==$pages) 123 $displaypages.='<a class="pageSubject" href="?action=show_thread&thread='.$t.'&fid='.$thisfid.'&page='.$allpages.'">'.$allpages.'</a>'; 126 127 $rows = 0; 128 $even = false; 129 130 while ($thread = mysql_fetch_array($query_stat, MYSQL_BOTH)) { 131 $rows += 1; 132 if (($rows % 2) == 0) { 133 $even = true; 134 } 135 else { 136 $even = false; 137 } 138 139 $last_poster = $thread['lastposter']; 140 $subject = $thread['subject']; 141 $starter = $thread['starter']; 142 143 $sticky = $thread['sticky']; 144 $locked = $thread['locked']; 145 146 $t = $thread['id']; 147 $thisfid = $thread['fid']; 148 $last_id = $thread['maxid']; 149 $replies = $thread['replies']; 150 151 $pages = floor(($thread['replies'])/$ph_max_messages)+1; 152 153 if ($pages > 1) { 154 $displaypages = ""; 155 156 for ($allpages = 1; $allpages <= $pages; $allpages++) { 157 if ($allpages == $pages) 158 $displaypages .= '<a class="pageSubject" href="?action=show_thread&thread='.$t.'&fid='.$thisfid.'&page='.$allpages.'">'.$allpages.'</a>'; 124 159 else { 125 $displaypages .='<a class="pageSubject" href="?action=show_thread&thread='.$t.'&fid='.$thisfid.'&page='.$allpages.'">'.$allpages.'</a>, ';160 $displaypages .= '<a class="pageSubject" href="?action=show_thread&thread='.$t.'&fid='.$thisfid.'&page='.$allpages.'">'.$allpages.'</a>, '; 126 161 } 127 162 } 128 129 $pages =" <small>(p: $displaypages)</small>";130 163 164 $pages = " <small>(p: $displaypages)</small>"; 165 131 166 } else { 132 $pages ="";133 } 134 167 $pages = ""; 168 } 169 135 170 $date=date("H:i d-m-Y",$thread['unix_timestamp(lastpost)']); 136 171 … … 140 175 $image='<img src="pixmaps/env_read.png" title="'.$tr['no_new_msg'].'" alt="[-]" />'; 141 176 } 142 177 143 178 if($locked){ 144 179 $status="<small>[locked]</small> "; … … 150 185 } 151 186 } 152 153 echo '<tr>'. 154 '<td class="f_subject">'.$image.' '.$status.'<a class="forum_thread" href="?action=show_thread&thread='.$t.'&fid='.$thisfid.'&page=1"'. 155 ' title="'.$tr['read_messages_in_this_thread'].'">'.$subject.'</a>'.$pages.'</td>'. 156 '<td class="fmm_border"><a class="user" href="?p=user_info&name='.$starter.'" title="'.$tr['show_user_info_for'].' '.$starter.'">'.$starter.'</a></td>'. 157 '<td class="fmm_border">'.$replies.'</td>'. 158 '<td class="fmm_border">'.$date. 159 ' <a class="user" href="?p=user_info&name='.$last_poster.'" title="'.$tr['show_user_info_for'].' '.$last_poster.'">'.$last_poster.'</a>'. 160 ' <a class="f_s_link" href="?action=show_thread&thread='.$t.'&fid='.$thisfid.'&page=last#'.$last_id.'" title="'.$tr['go_to_last_post'].'"><img src="pixmaps/fZ2arrows.png" alt=">>" /></a></td>'. 161 162 '</tr>'."\n\n"; 163 187 188 189 // spazio tra un thread e un altro 190 if ($even) { 191 echo '<tr bgcolor="#E0E0E0" height="5"><td colspan="6"></td</tr>'; 192 } 193 else { 194 echo '<tr height="5"><td colspan="6"></td</tr>'; 195 } 196 197 198 if ($even) { 199 echo '<tr bgcolor="#E0E0E0">'; 200 } 201 else { 202 echo "<tr>"; 203 } 204 ?> 205 206 <td></td> 207 <td valign="middle"> 208 <? echo $image ?> <? echo $status ?> 209 <a 210 href="?action=show_thread&thread=<? echo $t ?>&fid=<? echo $thisfid ?>&page=1" 211 title="<? echo $tr['read_messages_in_this_thread']?>"><? echo $subject ?> 212 </a> 213 <? echo $pages ?> 214 </td> 215 216 <td align="center"> 217 <a class="smallfont" 218 href="?p=user_info&name=<? echo $starter ?>" 219 title="<? echo $tr['show_user_info_for'] ?> <? echo $starter ?>"><? echo $starter ?> 220 </a> 221 </td> 222 223 <td align="center"><?echo $replies ?></td> 224 <td align="center"> 225 <div class="smallfont"> 226 <? echo $date ?> 227 <a 228 class="smallfont" 229 href="?p=user_info&name=<?echo $last_poster ?>" title="<? echo $tr['show_user_info_for'] ?> <? echo $last_poster ?>"><? echo $last_poster ?> 230 </a> 231 232 <a href="?action=show_thread&thread=<? echo $t ?>&fid=<? echo $thisfid ?>&page=last#'.$last_id.'" title="'.$tr['go_to_last_post'].'"><img border="0" src="pixmaps/fZ2arrows.png" alt=">>"/></a> 233 </div> 234 </td> 235 <td/> 236 </tr> 237 238 <? 239 // spazio tra un thread e un altro 240 if ($even) { 241 echo '<tr bgcolor="#E0E0E0" height="5"><td colspan="6"></td</tr>'; 242 } 243 else { 244 echo '<tr height="5"><td colspan="6"></td</tr>'; 245 } 164 246 } 165 247 166 248 echo "</table>"; 167 249 168 250 if($__show_mode=="unread"){ 169 251 echo '<div style="padding: 4px; text-align: right;">'."\n"; … … 173 255 174 256 } 175 176 177 257 258 259 178 260 } 179 261 website/forum/func/func_show_forums.php
r40 r43 4 4 5 5 global $tr; 6 global $site_root; 7 ?> 8 <tr height="25px"> 9 <td ><img src="<? echo $site_root ?>/images/title_background_left.png"></td> 6 10 7 echo '<tr><td style="width: 50%;" class="forumSectionTitle">'.$sectionTitle.'</td>'; 8 echo '<td style="width: 10%;" class="forumTableHead">'.$tr['threads'].'</td>'; 9 echo '<td style="width: 10%;" class="forumTableHead">'.$tr['messages'].'</td>'; 10 echo '<td style="width: 30%;" class="forumTableHead">'.$tr['last_post'].'</td></tr>'."\n\n"; 11 <td width="90%" background="<? echo $site_root ?>/images/title_background.png" nowrap> 12 <font color="#EEEEEE"><b><? echo $sectionTitle ?></b></font> 13 </td> 14 15 <td align="center" width="100px" background="<? echo $site_root ?>/images/title_background.png" nowrap> 16 <font color="#EEEEEE" class="smallfont"><b><? echo $tr['threads'] ?></b></font> 17 </td> 18 19 <td align="center" width="100px" background="<? echo $site_root ?>/images/title_background.png" nowrap> 20 <font color="#EEEEEE" class="smallfont"><b><? echo $tr['messages'] ?></b></font> 21 </td> 22 23 <td align="center" width="200px" background="<? echo $site_root ?>/images/title_background.png" nowrap> 24 <font color="#EEEEEE" class="smallfont"><b><? echo $tr['last_post'] ?></b></font> 25 </td> 26 27 <td><img src="<? echo $site_root ?>/images/title_background_right.png"></td> 28 29 </tr> 30 <? 11 31 } 12 32 33 34 13 35 function show_start_table(){ 14 echo '<table style="width: 100%; margin-bottom: 4px;">';36 echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">'; 15 37 } 16 38 17 function show_end_table(){ 39 40 41 function show_end_table() 42 { 18 43 echo "</table>"; 19 44 } 45 46 47 function show_forum_spacer() 48 { 49 echo '<tr height="20px"><td colspan="6"> </td></tr>'; 50 } 51 52 20 53 21 54 function show_forum($fid){ … … 30 63 $date=date("H:i d-m-Y",$__forum_latest_posts[$fid]['maxdate']); 31 64 } 32 65 33 66 $last_poster=$__forum_latest_posts[$fid]["lastposter"]; 34 67 35 68 $num_t=$__forum_latest_posts[$fid]['threads']; 36 69 $num_m=$__forum_latest_posts[$fid]['messages']; 37 70 38 71 if(!$num_t) $num_t="0"; 39 72 if(!$num_m) $num_m="0"; 40 73 41 74 if($newposts_fid[$fid]){ 42 75 $image='<img src="pixmaps/env_unread.png" title="'.$tr['new_msg'].'" alt="[+]" style="margin-right: 3px;" />'; … … 46 79 47 80 if($date){ 48 $last_post_data =$date.' <a class="user" href="?p=user_info&name='.$last_poster.'" title="'.$tr['show_user_info_for'].' '.$last_poster.'">'.$last_poster.'</a>'."\n";49 } else { 81 $last_post_data = '<div class="smallfont">'.$date.' <a class="smallfont" href="?p=user_info&name='.$last_poster.'" title="'.$tr['show_user_info_for'].' '.$last_poster.'">'.$last_poster.'</a></div>'."\n"; 82 } else { 50 83 $last_post_data="n/a"; 51 84 } 52 53 echo '<tr>'. 54 '<td style="width: 50%;" class="f_subject">'. 85 86 // spazio tra un thread e un altro 87 echo '<tr height="10"><td colspan="6"></td</tr>'; 88 89 echo '<tr><td></td>'. 90 '<td>'. 55 91 $image. 56 92 '<a class="forum_title" title="'.$tr['browse_this_section'].'" href="?action=show_all&fid='.$fid.'">'. … … 61 97 62 98 echo '</td>'. 63 '<td style="width: 10%;" class="fmm_border">'.$num_t.'</td>'.64 '<td style="width: 10%;" class="fmm_border">'.$num_m.'</td>'.65 '<td style="width: 30%;" class="fmm_border">'.$last_post_data.'</td>'.99 '<td align="center">'.$num_t.'</td>'. 100 '<td align="center">'.$num_m.'</td>'. 101 '<td align="center">'.$last_post_data.'</td>'. 66 102 '</tr>'."\n\n"; 67 103 website/forum/func/func_show_thread.php
r40 r43 9 9 $query_str="select id, poster, subject, message, attach, unix_timestamp(post_date) from $table where thread='$t' order by id $order $limit"; 10 10 $query_stat=mysql_query($query_str); 11 11 12 $rows = 0; 12 13 while($post=mysql_fetch_array($query_stat,MYSQL_BOTH)){ 13 14 echo '<table cellpadding="0" cellspacing="0" style="width: 100%; margin: 2px; margin-bottom: 3px;">'; 15 14 $rows += 1; 15 if (($rows % 2) == 0) { 16 echo '<table border="0" cellpadding="5" cellspacing="0" style="width: 100%; margin: 2px; margin-bottom: 10px;">'; 17 } 18 else { 19 echo '<table border="0" cellpadding="5" cellspacing="0" style="width: 100%; margin: 2px; margin-bottom: 10px;" bgcolor="#E0E0E0">'; 20 } 16 21 $id=$post['id']; 17 22 $poster=$post['poster']; 18 23 $attach=$post['attach']; 19 24 20 25 $date=$post['unix_timestamp(post_date)']; 21 22 $date_full =date("H:i",$date)." <small>GMT</small>\n<br/>".date("j ",$date).$month_array[date("n",$date)].date(" Y",$date);23 26 27 $date_full = date("H:i",$date)." GMT\n<br/>".date("j ",$date).$month_array[date("n",$date)].date(" Y",$date); 28 24 29 if($post['subject']){ 25 30 $subject=" <b>".$post['subject']."</b>"; … … 27 32 $subject=""; 28 33 } 29 34 30 35 if($_COOKIE[$t]<$id) setcookie($t,$id,0,"/"); 31 36 32 37 $message=$post['message']; 33 38 34 39 $user_name=$post['poster']; 35 40 36 41 if($mode=="full"){ 37 42 38 43 if(!$user_posts[$user_name]){ 39 44 40 45 $query_str="select posts from $users_table where name='$user_name'"; 41 46 $query=mysql_query($query_str); 42 47 43 48 while($user_data=mysql_fetch_array($query,MYSQL_BOTH)){ 44 49 $user_posts[$user_name]=$user_data['posts']; … … 46 51 } 47 52 } 48 53 49 54 echo '<tr>'; 50 51 echo '<td class="message_box_upper_left" style="width: 25%;">'."\n";52 55 56 echo '<td valign="top" style="width: 25%;">'."\n"; 57 53 58 echo '<a name="'.$id.'"></a>'."\n"; 54 55 echo '<a class="user" href="?p=user_info&name='.$user_name.'" title="'.$tr['show_user_info_for'].' '.$user_name.'">'.$user_name.'</a>'."\n";59 60 echo '<a href="?p=user_info&name='.$user_name.'" title="'.$tr['show_user_info_for'].' '.$user_name.'">'.$user_name.'</a><br>'."\n"; 56 61 57 62 // comix … … 66 71 } 67 72 if ($picExists) { 68 echo '<br><img src="'.$userPic.'"/>'; 73 ?> 74 <br> 75 <table cellspacing="0" cellpadding="0"><tr><td> 76 77 <a 78 href="?p=user_info&name=<? echo $user_name ?>" 79 title="<? echo $tr['show_user_info_for'] ?> <? echo $user_name ?>" 80 > 81 <div class="img-shadow"><img border="0" src="<? echo $userPic ?>"/></div></a> 82 83 </td></tr></table> 84 <? 69 85 } 70 86 71 87 72 88 $status=""; 73 89 74 90 if($mode=="full"){ 75 91 76 92 foreach($config['moderators'] as $name){ 77 93 if($name==$user_name){ … … 79 95 } 80 96 } 81 97 82 98 foreach($config['admins'] as $name){ 83 99 if($name==$user_name){ … … 85 101 } 86 102 } 87 103 88 104 if($status==""){ 89 105 $status="Member"; 90 106 } 91 92 echo " \n<br/><small>$status</small>\n";93 107 108 echo "<small>$status</small>\n"; 109 94 110 echo '<br/>'; 95 111 96 112 echo '<small>'.$user_posts[$user_name].' '.$tr['posts'].'</small>'."\n"; 97 113 98 114 } 99 115 100 116 echo '<br/><br/>'."\n"; 101 102 echo $date_full;103 117 118 echo '<div class="smallfont">'.$date_full.'</div>'; 119 104 120 echo '</td>'."\n"; 105 106 echo '<td class="message_box_upper_right" style="width: 75%">'.$subject."\n";107 108 echo '<div class="message_box">'.process($message).'</div>';109 110 if ($attach!=""){111 $file ='pub/attach/'.$attach;112 $size =round(filesize($file)/1024,2);121 122 echo '<td valign="top" style="width: 75%">'.$subject."<br><br>"; 123 124 echo process($message); 125 126 if ($attach != "") { 127 $file = 'pub/attach/'.$attach; 128 $size = round(filesize($file) / 1024, 2); 113 129 echo '<div class="message_box" style="margin-top: 15px;"><small>Attachment:<br/><a href="'.$file.'">'.$attach.'</a> ('.$size.' KB)</small></div>'; 114 130 } 115 131 116 132 echo '</td></tr>'."\n"; 117 118 echo '<tr><td class="message_box_lower_left"></td><td class="message_box_lower_right">'."\n";119 133 120 echo '<table cellpadding="0" cellspacing="0">'."\n"; 121 134 echo '<tr><td></td><td align="right">'."\n"; 135 136 echo '<table border="0" cellpadding="0" cellspacing="0">'."\n"; 137 122 138 if($mode=="full"){ 123 139 124 140 if(!$ph['currentThreadIsLocked']){ 125 141 make_button($tr['REPLY'],'?p=new&action=new_message&thread='.$t,$tr['post_a_message_in_this_thread']); 126 142 } 127 143 128 144 if(!$ph['currentThreadIsLocked'] and $login_name==$post['poster']){ 129 145 make_button($tr['EDIT'],'?p=edit&fid='.$fid.'&id='.$id.'&page='.$page,$tr['edit_this_post']); … … 131 147 132 148 } 133 149 134 150 if($adminmode and $mode=="full"){ 135 136 $back =base64_encode($_SERVER['QUERY_STRING']);137 151 152 $back = base64_encode($_SERVER['QUERY_STRING']); 153 138 154 echo '<td class="admin"> <small> message:</small> '. 139 155 '<a class="admin" href="?p=admin/delete&id='.$id.'&back='.$back.'">delete</a> - '. … … 141 157 '</td>'."\n"; 142 158 } 143 159 144 160 echo '</table>'."\n"; 145 161 146 162 echo "</td></tr>\n"; 147 163 148 164 echo "</table>\n\n"; 149 165 150 166 } 151 167 152 168 if($adminmode and $mode=="full"){ 153 169 154 170 echo '<p class="admin"><small>thread:</small> '. 155 171 '<a class="admin" href="?p=admin/move&thread='.$t.'&fid='.$fid.'&back='.$back.'">move</a> - '; 156 172 157 173 if($ph['currentThreadIsSticky']) 158 174 echo '<a class="admin" href="?p=admin/sticky&sticky=1&thread='.$t.'&back='.$back.'">unstick</a> - '; 159 175 else 160 176 echo '<a class="admin" href="?p=admin/sticky&sticky=0&thread='.$t.'&back='.$back.'">stick</a> - '; 161 177 162 178 if($ph['currentThreadIsLocked']) 163 179 echo '<a class="admin" href="?p=admin/lock&lock=0&thread='.$t.'&back='.$back.'">unlock</a>'; 164 180 else 165 181 echo '<a class="admin" href="?p=admin/lock&lock=1&thread='.$t.'&back='.$back.'">lock</a>'; 166 182 167 183 echo ' - <a class="admin" href="?p=admin/delete&thread='.$t.'&fid='.$fid.'">delete</a>'; 168 184 169 185 } 170 186 171 187 } 172 188 website/forum/func/jumpMenu.php
r40 r43 8 8 9 9 <td class="midmid"> 10 jump to: 10 Jump to: 11 11 </td> 12 12 … … 18 18 19 19 link=document.getElementById("goToLink").value; 20 20 21 21 if(link!=""){ 22 22 document.location=link; … … 24 24 alert("Error: please select a link/section!"); 25 25 } 26 26 27 27 } 28 28 … … 39 39 <option value="">--- <? echo $config['siteLinksTitle'] ?> ---</option> 40 40 41 <? 41 <? 42 42 43 43 foreach($config['siteLinks'] as $linkName=>$linkUrl){ … … 45 45 } 46 46 47 endif; 47 endif; 48 48 49 49 ?> … … 56 56 57 57 $i=0; 58 58 59 59 foreach($contents as $forum){ 60 60 61 61 $i++; 62 62 63 63 if($i==1){ 64 64 65 65 echo '<option value=""> '.$forum.'</option>'; 66 67 } else { 68 66 67 } else { 68 69 69 if($fid==$forum and $fid!="all"){ 70 70 echo '<option value="index.php?action=show_all&fid='.$forum.'" selected="selected"> • '.$ph[$forum].'</option>'."\n"; … … 73 73 } 74 74 } 75 75 76 76 } 77 77 } … … 84 84 85 85 <td class="midmid"> 86 < input type="button" value="go" onmousedown="javascript:jump();" />86 <!--<input type="button" value="go" onmousedown="javascript:jump();" />--> 87 87 </td> 88 88 website/forum/func/showOnline.php
r40 r43 42 42 $suff=""; 43 43 } 44 44 45 45 echo "$numonline user$suff online: "; 46 46 … … 67 67 } else { 68 68 69 echo " No users currently online.";69 echo "<i>No users currently online.</i>"; 70 70 71 71 } website/forum/index.php
r40 r43 1 <? 1 <? 2 2 3 ob_start(); 4 3 $page = "forums"; 4 $page_description = "Involution Games Forum"; 5 6 7 8 ob_start(); 9 include "../utils.inc"; 10 include "../header.inc"; 11 5 12 include "pheng.php"; 6 13 7 ob_end_flush(); 14 include "../footer.inc"; 15 16 ob_end_flush(); 8 17 9 18 ?> website/forum/info.php
r40 r43 1 <div class="f_head"> 2 <? echo $tr['forum information']; ?> 3 </div> 4 5 <table cellspacing="2" cellpadding="0" style="width: 100%"> 6 1 <? draw_title($tr['forum information']); ?> 2 3 <table cellspacing="2" cellpadding="5" style="width: 100%"> 7 4 <tr> 8 9 <td style="width: 50%; border: 1px #dcdcdc solid"> 10 11 <div class="subhead">top 15 members</div> 12 13 <div style="padding-left: 8px"> 14 15 <table cellspacing="2" cellpadding="2"> 16 17 <tr> 18 <td style="width: 200px; vertical-align: bottom"><b><? echo $tr['login_name']; ?></b></td> 19 <td style="width: 60px; vertical-align: bottom"><b><? echo $tr['posts']; ?></b></td> 20 <td style="width: 150px; vertical-align: bottom"><b>% of forum posts</b></td> 21 </tr> 5 <td style="width: 50%; border: 1px #aaa solid" valign="top"> 6 <b>Top 15 members</b><br><br> 7 8 <div style="padding-left: 8px"> 9 10 <table cellspacing="2" cellpadding="2" border=0 width="100%"> 11 12 <tr align="center"> 13 <td><b><? echo $tr['login_name']; ?></b></td> 14 <td><b><? echo $tr['posts']; ?></b></td> 15 <td><b>% of forum posts</b></td> 16 </tr> 22 17 23 18 <?php … … 44 39 45 40 echo '<tr>' 46 .'<td
