Changeset 29
- Timestamp:
- 07/17/07 20:48:32 (1 year ago)
- Files:
-
- website/forum/pheng.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
website/forum/pheng.php
r27 r29 75 75 76 76 if(!$_COOKIE['last_login']){ 77 77 78 78 $query_str="select unix_timestamp(last_login) from $logins_table where name='$login_name'"; 79 79 $query_stat=mysql_query($query_str); … … 84 84 85 85 setcookie("last_login",$u_last_login); 86 87 } 88 89 } else { 90 86 87 } 88 89 } else { 90 91 91 if(!$_COOKIE['last_login']){ 92 92 93 93 if(!$_COOKIE['saved_login']){ 94 94 … … 96 96 setcookie("last_login",getgmttime()); 97 97 $u_last_login=getgmttime(); 98 98 99 99 } else { 100 100 … … 102 102 $u_last_login=$u_saved_login; 103 103 setcookie("last_login",$u_saved_login); 104 104 105 105 } 106 106 … … 108 108 109 109 setcookie("saved_login",getgmttime(),getgmttime()+24*60*3600); 110 110 111 111 } 112 112 … … 177 177 /* now start html generation */ 178 178 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.'">' 182 182 183 183 ?> … … 191 191 192 192 ?> 193 193 <? 194 /* 194 195 <title><? echo $config['forumTitle'].$addtitle; ?></title> 195 196 … … 204 205 205 206 <body> 206 207 */ 208 ?> 207 209 <? if($login): ?> 208 210 … … 265 267 <td class="menuGroupLogo"> 266 268 <a href="/"> 267 <? 269 <? 268 270 if($config['forumLogo']!="") 269 echo '<img src="pixmaps/'.$config['forumLogo'].'" alt="'.$config['forumName'].'" />'; 271 echo '<img src="pixmaps/'.$config['forumLogo'].'" alt="'.$config['forumName'].'" />'; 270 272 else 271 273 echo '<strong style="font-size: 13px;">'.$config['forumName'].'</strong>'; … … 286 288 echo "Logged in as $login_name"; 287 289 288 if($adminmode) 290 if($adminmode) 289 291 echo ' <small>/moderator/</small> '; 290 292 291 293 echo ' (<a class="actionLink" href="logout.php" title="">'.$tr['logout'].'</a>)'; 292 294 293 295 } else { 294 296 … … 327 329 <ul class="menuGroup"> 328 330 329 <? 331 <? 330 332 331 333 include "func/func_get_new_posts.php"; … … 339 341 if($unreadThreads>1) 340 342 $suff1="s"; 341 343 342 344 if($newpostscount>1) 343 345 $suff2="s"; … … 362 364 ?> 363 365 364 <li><small>latest posts:</small> 366 <li><small>latest posts:</small> 365 367 <a class="actionLink" href="?action=show_all&fid=all&show_last_posts=15">15</a> 366 368 <a class="actionLink" href="?action=show_all&fid=all&show_last_posts=30">30</a> 367 </li> 369 </li> 368 370 369 371 </ul> … … 385 387 ?> 386 388 387 <li><small>auto refresh:</small> 389 <li><small>auto refresh:</small> 388 390 <? autoRefreshLink(1) ?> <? autoRefreshLink(2) ?> <? autoRefreshLink(5) ?> 389 </li> 391 </li> 390 392 391 393 </ul> … … 429 431 430 432 if(file_exists($p)){ 431 433 432 434 include $p; 433 435 434 436 } else { 435 437 436 438 include "show.php"; 437 439 438 440 if($action=="show_forums"){ 439 441 440 442 echo '<h1>Online users</h1>'; 441 443 442 444 include "func/showOnline.php"; 443 445 444 446 echo '<h1>Forum information</h1>'; 445 447 446 448 echo '<div class="forumBody"><ul>'; 447 449 448 450 include "func/showNewestMembers.php"; 449 451 include "func/showModerators.php"; 450 452 451 453 echo '</ul></div>'; 452 454 }
