All pastes #719655 Raw Edit

Miscellany

public text v1 · immutable
#719655 ·published 2007-09-29 13:55 UTC
rendered paste body
<?
require_once("./include/functions.php");
require_once("./include/config.php");
?>
<table width="100%" height="100%"  border="0">
<tr>
<td height="100" colspan="2">
    <table width=100%>
    <tr><td>
    <a href=./index.php><img border=0 src="<? echo $STYLEPATH ?>/logo.png"></a>
    </td></tr>
    </table>
    <table class=lista width=100%>
    <tr>
<?

if (!$CURUSER)
{
	// anonymous=guest
	print("<td class=header align=center>".WELCOME."Guest\n");
	print("<a href=login.php>(".LOGIN.")</a></td>");
}
elseif ($CURUSER["uid"]==1)
// anonymous=guest
{
	print("<td class=header align=center>".WELCOME." " . $CURUSER["username"] ." \n");
   print("<a href=login.php>(".LOGIN.")</a></td>\n");
}
else
{
	print("<td class=header align=center>".WELCOME_BACK." " . $CURUSER["username"] ." \n");
	print("<a href=logout.php>(".LOGOUT.")</a></td>\n");
}

print("<td class=header align=center><a href=./>".MNU_INDEX."</a></td>\n");

if ($CURUSER["view_torrents"]=="yes")
	print("<td class=header align=center><a href=torrents.php>".MNU_TORRENT."</a></td>\n");
if ($CURUSER["can_upload"]=="yes")
   	print("<td class=header align=center><a href=upload.php>".MNU_UPLOAD."</a></td>\n");
if ($CURUSER["view_users"]=="yes")
   	print("<td class=header align=center><a href=users.php>".MNU_MEMBERS."</a></td>\n");
if ($CURUSER["view_news"]=="yes")
   print("<td class=header align=center><a href=viewnews.php>".MNU_NEWS."</a></td>\n");
if ($CURUSER["view_forum"]=="yes")
{
   if ($GLOBALS["FORUMLINK"]=="" || $GLOBALS["FORUMLINK"]=="internal")
		print("<td class=header align=center><a href=forum.php>".MNU_FORUM."</a></td>\n");
   else
       print("<td class=header align=center><a href=$GLOBALS[FORUMLINK] target=_blank>".MNU_FORUM."</a></td>\n");
}

?>
  	</tr>
   	</table>
</td></tr>
<td width="20%" valign=top>
<?

   // portal menu
   menu_block();

   // user info and menů
   user_block();

   // info
   tracker_info();
   
?>
</td>
<td valign=top>