Changeset 29

Show
Ignore:
Timestamp:
07/17/07 20:48:32 (1 year ago)
Author:
comix
Message:

--

Files:

Legend:

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

    r27 r29  
    7575 
    7676        if(!$_COOKIE['last_login']){ 
    77          
     77 
    7878                $query_str="select unix_timestamp(last_login) from $logins_table where name='$login_name'"; 
    7979                $query_stat=mysql_query($query_str); 
     
    8484 
    8585                setcookie("last_login",$u_last_login); 
    86                  
    87         } 
    88          
    89 } else { 
    90          
     86 
     87        } 
     88 
     89} else { 
     90 
    9191        if(!$_COOKIE['last_login']){ 
    92          
     92 
    9393                if(!$_COOKIE['saved_login']){ 
    9494 
     
    9696                        setcookie("last_login",getgmttime()); 
    9797                        $u_last_login=getgmttime(); 
    98                  
     98 
    9999                } else { 
    100100 
     
    102102                        $u_last_login=$u_saved_login; 
    103103                        setcookie("last_login",$u_saved_login); 
    104          
     104 
    105105                } 
    106106 
     
    108108 
    109109                setcookie("saved_login",getgmttime(),getgmttime()+24*60*3600); 
    110                  
     110 
    111111        } 
    112112 
     
    177177/* now start html generation */ 
    178178 
    179 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n"; 
    180  
    181 echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$lang.'">' 
     179//echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n"; 
     180 
     181//echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$lang.'">' 
    182182 
    183183?> 
     
    191191 
    192192?> 
    193  
     193<? 
     194/* 
    194195<title><? echo $config['forumTitle'].$addtitle; ?></title> 
    195196 
     
    204205 
    205206<body> 
    206  
     207*/ 
     208?> 
    207209<? if($login): ?> 
    208210 
     
    265267<td class="menuGroupLogo"> 
    266268<a href="/"> 
    267 <?  
     269<? 
    268270if($config['forumLogo']!="") 
    269         echo '<img src="pixmaps/'.$config['forumLogo'].'" alt="'.$config['forumName'].'" />';  
     271        echo '<img src="pixmaps/'.$config['forumLogo'].'" alt="'.$config['forumName'].'" />'; 
    270272else 
    271273        echo '<strong style="font-size: 13px;">'.$config['forumName'].'</strong>'; 
     
    286288        echo "Logged in as $login_name"; 
    287289 
    288         if($adminmode)  
     290        if($adminmode) 
    289291                echo ' <small>/moderator/</small> '; 
    290                  
     292 
    291293        echo ' (<a class="actionLink" href="logout.php" title="">'.$tr['logout'].'</a>)'; 
    292          
     294 
    293295} else { 
    294296 
     
    327329<ul class="menuGroup"> 
    328330 
    329 <?  
     331<? 
    330332 
    331333include "func/func_get_new_posts.php"; 
     
    339341if($unreadThreads>1) 
    340342        $suff1="s"; 
    341          
     343 
    342344if($newpostscount>1) 
    343345        $suff2="s"; 
     
    362364?> 
    363365 
    364 <li><small>latest posts:</small>  
     366<li><small>latest posts:</small> 
    365367<a class="actionLink" href="?action=show_all&amp;fid=all&amp;show_last_posts=15">15</a> 
    366368<a class="actionLink" href="?action=show_all&amp;fid=all&amp;show_last_posts=30">30</a> 
    367 </li>  
     369</li> 
    368370 
    369371</ul> 
     
    385387?> 
    386388 
    387 <li><small>auto refresh:</small>  
     389<li><small>auto refresh:</small> 
    388390<? autoRefreshLink(1) ?> <? autoRefreshLink(2) ?> <? autoRefreshLink(5) ?> 
    389 </li>  
     391</li> 
    390392 
    391393</ul> 
     
    429431 
    430432if(file_exists($p)){ 
    431          
     433 
    432434        include $p; 
    433          
     435 
    434436} else { 
    435437 
    436438        include "show.php"; 
    437          
     439 
    438440        if($action=="show_forums"){ 
    439          
     441 
    440442                echo '<h1>Online users</h1>'; 
    441                  
     443 
    442444                include "func/showOnline.php"; 
    443          
     445 
    444446                echo '<h1>Forum information</h1>'; 
    445                  
     447 
    446448                echo '<div class="forumBody"><ul>'; 
    447                  
     449 
    448450                include "func/showNewestMembers.php"; 
    449451                include "func/showModerators.php"; 
    450                  
     452 
    451453                echo '</ul></div>'; 
    452454        }