";
echo "";
echo "";
connectdb();
$action = $_GET["action"];
$sid = $_GET["sid"];
$name = $_POST["name"];
$uid = getuid_sid($sid);
$theme = mysql_fetch_array(mysql_query("SELECT theme FROM lib3rtymrc_users WHERE id='".$uid."'"));
$perm = mysql_fetch_array(mysql_query("SELECT perm FROM lib3rtymrc_users WHERE id='".$uid."'"));
// Test if the user is logged
if(islogged($sid) == false)
{
echo "
";
echo "
$sitte";
echo "
";
echo "";
echo "";
echo "
";
echo "Nu esti autentificat
";
echo "sau sesiunea ta a expirat
";
echo "Autentificare";
echo "
";
echo "";
echo "";
exit();
}
// Test if the user is banned
if(isbanned($uid))
{
echo "
";
echo "
$sitte";
echo "
";
echo "";
echo "";
echo "
";
echo "
";
echo "Esti Banat(a)
";
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM lib3rtymrc_penalties WHERE uid='".$uid."' AND penalty='1'"));
$banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM lib3rtymrc_users WHERE id='".$uid."'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Timp ramas pana la debanare: $rmsg
";
echo "Motiv Ban: $banres[0]";
//echo "Login";
echo "
";
echo "";
echo "