<?php
if (!eregi("modules.php", $_SERVER[PHP_SELF])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- "._USERSJOURNAL."";
include("header.php");
include("modules/$module_name/functions.php");
cookiedecode($user);
$username = $cookie[1];
startjournal($sitename,$user);
function all($bgcolor1, $bgcolor2, $bgcolor3, $username) {
global $prefix, $user_prefix, $db, $module_name;
OpenTable();
echo ("
<table align=center border=0 cellpadding=0 cellspacing=10>");
echo ("<td bgcolor=#ffffff width=200>Lista degli Autori</td>");
$sql = "SELECT j.id, j.joid, j.nop, j.ldp, j.ltp, j.micro, u.user_id, u.username FROM ".$prefix."_journal_stats j, ".$user_prefix."_users u where u.username=j.joid ORDER BY 'joid' ASC";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
if ($dcount >= 1000000000) {
echo "</table>";
CloseTable();
journalfoot();
die();
} else {
print ("<tr>");
printf ("<td bgcolor=#ffffff><a href=\"modules.php?name=$module_name&file=search&b ywhat=aid&exact=1&forwhat=%s\">%s</a></td>", $row[joid], $row[joid]);
echo "</tr>";
}
}
echo "</table>
";
CloseTable();
}
echo "
";
echo "
";
switch($op) {
case "last":
last20($bgcolor1,$bgcolor2,$bgcolor3, $username);
break;
case "all":
all($bgcolor1,$bgcolor2,$bgcolor3,$sitename, $username);
break;
default:
all($bgcolor1,$bgcolor2,$bgcolor3,$sitename, $username);
break;
}
journalfoot();
?>