Changeset 43

Show
Ignore:
Timestamp:
07/31/07 04:44:01 (1 year ago)
Author:
comix
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • website/forum/func/func_mkbutton.php

    r40 r43  
    11<? 
    22 
    3 function make_button($name,$link,$title){ 
     3function make_button($name, $link, $title) { 
     4?> 
     5<td> 
    46 
    5         echo '<td>'. 
     7<table cellpadding="1" cellspacing="0" style="height: 20px; margin-right: 10px;"> 
     8<tr bgcolor="#333333"> 
     9        <td width="10"></td> 
    610 
    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<? 
    1723} 
    1824 
     
    2531} 
    2632 
    27 ?>  
     33?> 
  • website/forum/func/func_show_all.php

    r40 r43  
    66 
    77        $search=$_GET['search']; 
    8          
     8 
    99        if($show_last_posts=="" and $search!="true" and $__show_mode!="unread"){ 
    1010 
     
    3535 
    3636                } 
    37                  
     37 
    3838        } elseif ($__show_mode=="unread") { 
    39          
     39 
    4040                if(count($newposts)==0){ 
    41                  
     41 
    4242                        $results=false; 
    43                          
     43 
    4444                        echo '<div class="forumBody">'."\n"; 
    4545                        echo "You have no unread posts."; 
    4646                        echo '</div>'."\n"; 
    47                          
     47 
    4848                } else { 
    49                  
     49 
    5050                        global $lastlogin; 
    51                          
     51 
    5252                        $i=0; 
    53                          
     53 
    5454                        foreach($newposts as $thread=>$id){ 
    55                                  
     55 
    5656                                $i++; 
    57                                  
     57 
    5858                                if($i==count($newposts) or $i>=45){ 
    5959                                        $list.=$thread; 
     
    6161                                        $list.=$thread.", "; 
    6262                                } 
    63                                  
     63 
    6464                                if($i>=45) break; 
    65                                  
    66                         } 
    67                  
     65 
     66                        } 
     67 
    6868                        $add_query="where id in ($list)"; 
    6969                        $limit="limit 45"; 
    70                  
     70 
    7171                        $ok=true; 
    7272                        $results=true; 
    73                  
    74                 } 
    75          
     73 
     74                } 
     75 
    7676        } else { 
    7777 
    7878                $add_query=""; 
    7979                $limit="limit $show_last_posts"; 
    80                  
     80 
    8181                $ok=true; 
    8282                $results=true; 
    83                  
     83 
    8484                echo '<h1>'.str_replace("%s",$show_last_posts,$tr['last x posts']).'</h1>'; 
    8585 
     
    8787 
    8888        global $ph_max_threads; 
    89          
     89        global $site_root; 
     90 
    9091        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>'; 
    97123 
    98124                $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"; 
    99125                $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&amp;thread='.$t.'&amp;fid='.$thisfid.'&amp;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&amp;thread='.$t.'&amp;fid='.$thisfid.'&amp;page='.$allpages.'">'.$allpages.'</a>'; 
    124159                                        else { 
    125                                                 $displaypages.='<a class="pageSubject" href="?action=show_thread&amp;thread='.$t.'&amp;fid='.$thisfid.'&amp;page='.$allpages.'">'.$allpages.'</a>, '; 
     160                                                $displaypages .= '<a class="pageSubject" href="?action=show_thread&amp;thread='.$t.'&amp;fid='.$thisfid.'&amp;page='.$allpages.'">'.$allpages.'</a>, '; 
    126161                                        } 
    127162                                } 
    128                                  
    129                                 $pages=" <small>(p: $displaypages)</small>"; 
    130                                  
     163 
     164                                $pages = " <small>(p: $displaypages)</small>"; 
     165 
    131166                        } else { 
    132                                 $pages=""; 
    133                         } 
    134                          
     167                                $pages = ""; 
     168                        } 
     169 
    135170                        $date=date("H:i d-m-Y",$thread['unix_timestamp(lastpost)']); 
    136171 
     
    140175                                $image='<img src="pixmaps/env_read.png" title="'.$tr['no_new_msg'].'" alt="[-]" />'; 
    141176                        } 
    142                          
     177 
    143178                        if($locked){ 
    144179                                $status="<small>[locked]</small> "; 
     
    150185                                } 
    151186                        } 
    152                          
    153                         echo '<tr>'. 
    154                         '<td class="f_subject">'.$image.'&nbsp;'.$status.'<a class="forum_thread" href="?action=show_thread&amp;thread='.$t.'&amp;fid='.$thisfid.'&amp;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&amp;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&amp;name='.$last_poster.'" title="'.$tr['show_user_info_for'].' '.$last_poster.'">'.$last_poster.'</a>'. 
    160                         ' <a class="f_s_link" href="?action=show_thread&amp;thread='.$t.'&amp;fid='.$thisfid.'&amp;page=last#'.$last_id.'" title="'.$tr['go_to_last_post'].'"><img src="pixmaps/fZ2arrows.png" alt="&gt;&gt;" /></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 ?>&nbsp;<? echo $status ?> 
     209                <a 
     210                href="?action=show_thread&amp;thread=<? echo $t ?>&amp;fid=<? echo $thisfid ?>&amp;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&amp;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&amp;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&amp;thread=<? echo $t ?>&amp;fid=<? echo $thisfid ?>&amp;page=last#'.$last_id.'" title="'.$tr['go_to_last_post'].'"><img border="0" src="pixmaps/fZ2arrows.png" alt="&gt;&gt;"/></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                        } 
    164246                } 
    165247 
    166248                echo "</table>"; 
    167                  
     249 
    168250                if($__show_mode=="unread"){ 
    169251                        echo '<div style="padding: 4px; text-align: right;">'."\n"; 
     
    173255 
    174256        } 
    175          
    176          
    177          
     257 
     258 
     259 
    178260} 
    179261 
  • website/forum/func/func_show_forums.php

    r40 r43  
    44 
    55        global $tr; 
     6        global $site_root; 
     7?> 
     8<tr height="25px"> 
     9        <td ><img src="<? echo $site_root ?>/images/title_background_left.png"></td> 
    610 
    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<? 
    1131} 
    1232 
     33 
     34 
    1335function show_start_table(){ 
    14         echo '<table style="width: 100%; margin-bottom: 4px;">'; 
     36        echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">'; 
    1537} 
    1638 
    17 function show_end_table(){ 
     39 
     40 
     41function show_end_table() 
     42
    1843        echo "</table>"; 
    1944} 
     45 
     46 
     47function show_forum_spacer() 
     48{ 
     49        echo '<tr height="20px"><td colspan="6">&nbsp;</td></tr>'; 
     50} 
     51 
     52 
    2053 
    2154function show_forum($fid){ 
     
    3063                $date=date("H:i d-m-Y",$__forum_latest_posts[$fid]['maxdate']); 
    3164        } 
    32          
     65 
    3366        $last_poster=$__forum_latest_posts[$fid]["lastposter"]; 
    34          
     67 
    3568        $num_t=$__forum_latest_posts[$fid]['threads']; 
    3669        $num_m=$__forum_latest_posts[$fid]['messages']; 
    37          
     70 
    3871        if(!$num_t) $num_t="0"; 
    3972        if(!$num_m) $num_m="0"; 
    40          
     73 
    4174        if($newposts_fid[$fid]){ 
    4275                $image='<img src="pixmaps/env_unread.png" title="'.$tr['new_msg'].'" alt="[+]" style="margin-right: 3px;" />'; 
     
    4679 
    4780        if($date){ 
    48                 $last_post_data=$date.' <a class="user" href="?p=user_info&amp;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.'&nbsp;<a class="smallfont" href="?p=user_info&amp;name='.$last_poster.'" title="'.$tr['show_user_info_for'].' '.$last_poster.'">'.$last_poster.'</a></div>'."\n"; 
     82        } else { 
    5083                $last_post_data="n/a"; 
    5184        } 
    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>'. 
    5591        $image. 
    5692        '<a class="forum_title" title="'.$tr['browse_this_section'].'" href="?action=show_all&amp;fid='.$fid.'">'. 
     
    6197 
    6298        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>'. 
    66102        '</tr>'."\n\n"; 
    67103 
  • website/forum/func/func_show_thread.php

    r40 r43  
    99        $query_str="select id, poster, subject, message, attach, unix_timestamp(post_date) from $table where thread='$t' order by id $order $limit"; 
    1010        $query_stat=mysql_query($query_str); 
    11          
     11 
     12        $rows = 0; 
    1213        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                } 
    1621                $id=$post['id']; 
    1722                $poster=$post['poster']; 
    1823                $attach=$post['attach']; 
    19                  
     24 
    2025                $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 
    2429                if($post['subject']){ 
    2530                        $subject="&nbsp;<b>".$post['subject']."</b>"; 
     
    2732                        $subject=""; 
    2833                } 
    29                  
     34 
    3035                if($_COOKIE[$t]<$id) setcookie($t,$id,0,"/"); 
    3136 
    3237                $message=$post['message']; 
    33                  
     38 
    3439                $user_name=$post['poster']; 
    35                  
     40 
    3641                if($mode=="full"){ 
    37                  
     42 
    3843                        if(!$user_posts[$user_name]){ 
    39                  
     44 
    4045                                $query_str="select posts from $users_table where name='$user_name'"; 
    4146                                $query=mysql_query($query_str); 
    42                                  
     47 
    4348                                while($user_data=mysql_fetch_array($query,MYSQL_BOTH)){ 
    4449                                        $user_posts[$user_name]=$user_data['posts']; 
     
    4651                        } 
    4752                } 
    48                  
     53 
    4954                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 
    5358                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"; 
    5661 
    5762                // comix 
     
    6671                } 
    6772                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<? 
    6985                } 
    7086 
    71                  
     87 
    7288                $status=""; 
    73                          
     89 
    7490                if($mode=="full"){ 
    75                  
     91 
    7692                        foreach($config['moderators'] as $name){ 
    7793                                if($name==$user_name){ 
     
    7995                                } 
    8096                        } 
    81                          
     97 
    8298                        foreach($config['admins'] as $name){ 
    8399                                if($name==$user_name){ 
     
    85101                                } 
    86102                        } 
    87                          
     103 
    88104                        if($status==""){ 
    89105                                $status="Member"; 
    90106                        } 
    91                          
    92                         echo "\n<br/><small>$status</small>\n"; 
    93                  
     107 
     108                        echo "<small>$status</small>\n"; 
     109 
    94110                        echo '<br/>'; 
    95                          
     111 
    96112                        echo '<small>'.$user_posts[$user_name].' '.$tr['posts'].'</small>'."\n"; 
    97                          
     113 
    98114                } 
    99115 
    100116                echo '<br/><br/>'."\n"; 
    101                  
    102                 echo $date_full
    103                  
     117 
     118                echo '<div class="smallfont">'.$date_full.'</div>'
     119 
    104120                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); 
    113129                        echo '<div class="message_box" style="margin-top: 15px;"><small>Attachment:<br/><a href="'.$file.'">'.$attach.'</a> ('.$size.' KB)</small></div>'; 
    114130                } 
    115131 
    116132                echo '</td></tr>'."\n"; 
    117                  
    118                 echo '<tr><td class="message_box_lower_left"></td><td class="message_box_lower_right">'."\n"; 
    119133 
    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 
    122138                if($mode=="full"){ 
    123                          
     139 
    124140                        if(!$ph['currentThreadIsLocked']){ 
    125141                                make_button($tr['REPLY'],'?p=new&amp;action=new_message&amp;thread='.$t,$tr['post_a_message_in_this_thread']); 
    126142                        } 
    127                          
     143 
    128144                        if(!$ph['currentThreadIsLocked'] and $login_name==$post['poster']){ 
    129145                                make_button($tr['EDIT'],'?p=edit&amp;fid='.$fid.'&amp;id='.$id.'&amp;page='.$page,$tr['edit_this_post']); 
     
    131147 
    132148                } 
    133                  
     149 
    134150                if($adminmode and $mode=="full"){ 
    135                  
    136                         $back=base64_encode($_SERVER['QUERY_STRING']); 
    137                  
     151 
     152                        $back = base64_encode($_SERVER['QUERY_STRING']); 
     153 
    138154                        echo '<td class="admin">&nbsp;<small> message:</small> '. 
    139155                        '<a class="admin" href="?p=admin/delete&amp;id='.$id.'&amp;back='.$back.'">delete</a> - '. 
     
    141157                        '</td>'."\n"; 
    142158                } 
    143                  
     159 
    144160                echo '</table>'."\n"; 
    145161 
    146162                echo "</td></tr>\n"; 
    147                  
     163 
    148164                echo "</table>\n\n"; 
    149                  
     165 
    150166        } 
    151          
     167 
    152168        if($adminmode and $mode=="full"){ 
    153          
     169 
    154170                        echo '<p class="admin"><small>thread:</small> '. 
    155171                        '<a class="admin" href="?p=admin/move&amp;thread='.$t.'&amp;fid='.$fid.'&amp;back='.$back.'">move</a> - '; 
    156                                          
     172 
    157173                        if($ph['currentThreadIsSticky']) 
    158174                                echo '<a class="admin" href="?p=admin/sticky&amp;sticky=1&amp;thread='.$t.'&amp;back='.$back.'">unstick</a> - '; 
    159175                        else 
    160176                                echo '<a class="admin" href="?p=admin/sticky&amp;sticky=0&amp;thread='.$t.'&amp;back='.$back.'">stick</a> - '; 
    161                                  
     177 
    162178                        if($ph['currentThreadIsLocked']) 
    163179                                echo '<a class="admin" href="?p=admin/lock&amp;lock=0&amp;thread='.$t.'&amp;back='.$back.'">unlock</a>'; 
    164180                        else 
    165181                                echo '<a class="admin" href="?p=admin/lock&amp;lock=1&amp;thread='.$t.'&amp;back='.$back.'">lock</a>'; 
    166                          
     182 
    167183                        echo ' - <a class="admin" href="?p=admin/delete&amp;thread='.$t.'&amp;fid='.$fid.'">delete</a>'; 
    168                                  
     184 
    169185                } 
    170          
     186 
    171187} 
    172188 
  • website/forum/func/jumpMenu.php

    r40 r43  
    88 
    99<td class="midmid"> 
    10 jump to: 
     10Jump to:&nbsp; 
    1111</td> 
    1212 
     
    1818 
    1919        link=document.getElementById("goToLink").value; 
    20          
     20 
    2121        if(link!=""){ 
    2222                document.location=link; 
     
    2424                alert("Error: please select a link/section!"); 
    2525        } 
    26          
     26 
    2727} 
    2828 
     
    3939<option value="">--- <? echo $config['siteLinksTitle'] ?> ---</option> 
    4040 
    41 <?  
     41<? 
    4242 
    4343foreach($config['siteLinks'] as $linkName=>$linkUrl){ 
     
    4545} 
    4646 
    47 endif;  
     47endif; 
    4848 
    4949?> 
     
    5656 
    5757        $i=0; 
    58          
     58 
    5959        foreach($contents as $forum){ 
    60          
     60 
    6161                $i++; 
    62                  
     62 
    6363                if($i==1){ 
    64                  
     64 
    6565                        echo '<option value="">&nbsp;'.$forum.'</option>'; 
    66                          
    67                 } else {  
    68                                  
     66 
     67                } else { 
     68 
    6969                        if($fid==$forum and $fid!="all"){ 
    7070                                echo '<option value="index.php?action=show_all&amp;fid='.$forum.'" selected="selected">&nbsp;&nbsp;&bull;&nbsp;'.$ph[$forum].'</option>'."\n"; 
     
    7373                        } 
    7474                } 
    75                  
     75 
    7676        } 
    7777} 
     
    8484 
    8585<td class="midmid"> 
    86 <input type="button" value="go" onmousedown="javascript:jump();" /
     86<!--<input type="button" value="go" onmousedown="javascript:jump();" />--
    8787</td> 
    8888 
  • website/forum/func/showOnline.php

    r40 r43  
    4242                $suff=""; 
    4343        } 
    44          
     44 
    4545        echo "$numonline user$suff online: "; 
    4646 
     
    6767} else { 
    6868 
    69         echo "No users currently online."; 
     69        echo "<i>No users currently online.</i>"; 
    7070 
    7171} 
  • website/forum/index.php

    r40 r43  
    1 <?  
     1<? 
    22 
    3 ob_start();  
    4   
     3$page = "forums"; 
     4$page_description = "Involution Games Forum"; 
     5 
     6 
     7 
     8ob_start(); 
     9include "../utils.inc"; 
     10include "../header.inc"; 
     11 
    512include "pheng.php"; 
    613 
    7 ob_end_flush();  
     14include "../footer.inc"; 
     15 
     16ob_end_flush(); 
    817 
    918?> 
  • 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%"> 
    74<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> 
    2217 
    2318<?php 
     
    4439 
    4540        echo '<tr>' 
    46         .'<td