";
echo "";
echo "Nu esti autentificat
";
echo "sau sesiunea ta a expirat
";
echo "Autentificare";
echo "
";
echo "";
echo "";
exit();
}
///////////////////////////////////time
$res = mysql_fetch_array(mysql_query("SELECT lastact FROM lib3rtymrc_users WHERE id='".$uid."'"));
$lastact = $res[0];
$atime = time() - $lastact;
if($atime<1800){
$res = mysql_fetch_array(mysql_query("SELECT otime, mtime FROM lib3rtymrc_users where id='".$uid."'"));
$otime = $res[0] + $atime;
$mtime = $res[1] + $atime;
$res = mysql_query("UPDATE lib3rtymrc_users SET otime='".$otime."', mtime='".$mtime."' where id='".$uid."'");
}
///
addonline(getuid_sid($sid),"Administrare album foto","");
if($action=="addgal")
{
$user = $_POST["user"];
$itemurl = $_POST["itemurl"];
$uid = getuid_nick($user);
$nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$uid."'"));
if($nopl[0]=='M')
{
$usex = "M";
}else if($nopl[0]=='F'){
$usex = "F";
}else{
$usex = "M";
}
echo "
";
echo "";
$res = mysql_query("INSERT INTO lib3rtymrc_gallery SET uid='".$uid."', itemurl='".$itemurl."', sex='".$usex."'");
if($res)
{
echo "Poza user adaugata
";
}else{
echo "Eroare in baza de date
";
}
echo "";
echo "Album CP
";
echo "";
echo "prim";
echo "
";
echo "";
echo "";
echo "Nu stiu cum ai ajuns aici, dar nu ai ce vedea
";
echo "";
echo "Prim";
echo "