20)||($luna=="02" && $ziua<19)){
return "
Varsator";
}else if(($luna=="02" && $ziua>18)||($luna=="03" && $ziua<21)){
return "
Pesti";
}else if(($luna=="03" && $ziua>20)||($luna=="04" && $ziua<20)){
return "
Berbec";
}else if(($luna=="04" && $ziua>19)||($luna=="05" && $ziua<21)){
return "
Taur";
}else if(($luna=="05" && $ziua>20)||($luna=="06" && $ziua<22)){
return "
Gemeni";
}else if(($luna=="06" && $ziua>21)||($luna=="07" && $ziua<23)){
return "
Rac";
}else if(($luna=="07" && $ziua>22)||($luna=="08" && $ziua<23)){
return "
Leu";
}else if(($luna=="08" && $ziua>22)||($luna=="09" && $ziua<23)){
return "
Fecioara";
}else if(($luna=="09" && $ziua>22)||($luna=="10" && $ziua<24)){
return "
Balanta";
}else if(($luna=="10" && $ziua>23)||($luna=="11" && $ziua<23)){
return "
Scorpion";
}else if(($luna=="11" && $ziua>22)||($luna=="12" && $ziua<22)){
return "
Sagetator";
}else if(($luna=="12" && $ziua>21)||($luna=="01" && $ziua<21)){
return "
Capricorn";
}else {
return "
nesetata";
}
}
///////////////////////////////iconite si coduri des folosite
$wmega = "
";
/////////////////////////////////////////////////////////////zodia pana aici.....
/////////////////////// auto pm
function pmautomat($msg, $who)
{
mysql_query("INSERT INTO lib3rtymrc_private SET text='".$msg."', byuid='4', touid='".$who."', unread='1', timesent='".time()."'");
}
///////////////////////////mesaj automat
function autonot($uid)
{
$getval = mysql_fetch_array(mysql_query("SELECT automsg FROM lib3rtymrc_users WHERE id='".$uid."'"));
if($getval[0]=='1')
{
return true;
}else
{
return false;
}
}
///////////////////////////if accepts auto msgs
function automsgs($uid)
{
$getval = mysql_fetch_array(mysql_query("SELECT automsgs FROM lib3rtymrc_users WHERE id='".$uid."'"));
if($getval[0]=='1')
{
return true;
}else
{
return false;
}
}
///////////////////////////////iconite si coduri des folosite
$pmsend = "
";
$next = "
";
$prew = "
";
$n = "inainte»";
$p = "«inapoi ";
///////////////////////////operatori
function operatori($ip)
{
$result = wmega("SELECT * FROM wmega_operatori ORDER BY ip, subip","n");
while($ranges = mysql_fetch_array($result))
{
if(ipstatut($ip, $ranges[1], $ranges[2]))
{
return $ranges["name"];
}
}
}
///////////////////////////////////////////BANN CHAT
function ischatban($uid)
{
$del = mysql_query("DELETE FROM lib3rtymrc_penalties WHERE timeto<'".time()."'");
$not = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_penalties WHERE uid='".$uid."' AND penalty='4'"));
if($not[0]>0)
{
return true;
}else{
return false;
}
}
///////////////////////////////////////////BANN FORUM
function isforumban($uid)
{
$del = mysql_query("DELETE FROM lib3rtymrc_penalties WHERE timeto<'".time()."'");
$not = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_penalties WHERE uid='".$uid."' AND penalty='3'"));
if($not[0]>0)
{
return true;
}else{
return false;
}
}
/////////////////////////////////////////////Live Echipa
function live($sid)
{
$shbox = "";
$shbox .= "";
$lshout = mysql_fetch_array(mysql_query("SELECT shout, shouter, id FROM wmega_live ORDER BY shtime DESC LIMIT 1"));
$shnick = getnick_uid($lshout[1]);
//$shbox .= "
".$shnick." ";
$shbox .= parsepm($lshout[0],$sid);
$shbox .= "
";
//$shbox .= "
[+] ";
//$shbox .= "
scrie";
//if (ismod(getuid_sid($sid))){
//$shbox .= "
,sterge";
//}
$shbox .= "";
return $shbox;
}
/////////////////////////////////////////////Dezbateri
function dezb($sid)
{
$shbox = "";
$shbox .= "";
$lshout = mysql_fetch_array(mysql_query("SELECT shout, shouter, id FROM wmega_dezbateri ORDER BY shtime DESC LIMIT 1"));
$shnick = getnick_uid($lshout[1]);
$shbox .= "
".$shnick." ";
$shbox .= "
Probleme/Dezbateri ";
$shbox .= "";
return $shbox;
}
/////////////////////////////////////////////////////////CONECTATI FORUM
function addtoforum($uid)
{
$timeto = 90;
$timenw = time();
$timeout = $timenw - $timeto;
$exec = mysql_query("DELETE FROM wmega_onlineforum WHERE lton<'".$timeout."'");
$res = mysql_query("INSERT INTO wmega_onlineforum SET lton='".time()."', uid='".$uid."'");
if(!$res)
{
mysql_query("UPDATE wmega_onlineforum SET lton='".time()."' WHERE uid='".$uid."'");
}
}
/////////////////////////////////////////////Function shoutbox
function getshoutbox($sid){
$shbox = "";
//$shbox .= "
Mesaje ";
$lshout = mysql_fetch_array(mysql_query("SELECT shout, shouter, id FROM lib3rtymrc_shouts ORDER BY shtime DESC LIMIT 1"));
$shnick = getnick_uid($lshout[1]);
$shbox .= "
".$shnick." ";
$shbox .= parsepm($lshout[0],$sid);
$shbox .= "
";
$shbox .= "
[+] ";
//$shbox .= "
scrie";
//if (ismod(getuid_sid($sid))){
//$shbox .= "
,sterge";
//}
$shbox .= "";
return $shbox;
}
/////////////////////sari index
function getjumper($action, $sid,$pgurl)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari index
function getnot($action, $sid,$notificare)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari dezbateri
function saridezbateri($action, $sid,$dezbateri)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari dezbateri
function sarimag($action, $sid,$magazin)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari top
function saritop($action, $sid,$top)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari dedicatii
function saridedicatii($action, $sid,$dedicatii)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari live
function sarilive($action, $sid,$live)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari download
function saridescarca($action, $sid,$descarca)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari top
function sariemotii($action, $sid,$emotii)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari lists
function sarilists($action, $sid,$lists)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////sari lists
function sarilists2($action, $sid,$lists)
{
$rets = "sari la pagina
";
return $rets;
}
/////////////////////mergi
function mergin($sid)
{
echo "
";
echo "
";
echo "
";
echo"
";
echo "";
echo "
";
echo "
";
echo "
";
}
/////////////////////mergi
function mergico($sid)
{
echo "
";
echo "
";
echo "
";
echo"
";
echo "";
echo "
";
echo "
";
echo "
";
}
/////////////////////mergi
function mergich($sid)
{
echo "
";
echo "
";
echo "
";
echo"
";
echo "";
echo "
";
echo "
";
echo "
";
}
/////////////////////mergi
function mergifo($sid)
{
echo "
";
echo "
";
echo "
";
echo"
";
echo "";
echo "
";
echo "
";
echo "
";
}
/////////////////////mergi
function mergial($sid)
{
echo "
";
echo "
";
echo "
";
echo"
";
echo "";
echo "
";
echo "
";
echo "
";
}
/////////////////////mergi
function mergido($sid)
{
echo "
";
echo "
";
echo "
";
echo"
";
echo "";
echo "
";
echo "
";
echo "
";
}
/////////////////////mergi
function mergist($sid)
{
echo "
";
echo "
";
echo "
";
echo"
";
echo "";
echo "
";
echo "
";
echo "
";
}
/////////////////////mergi
function mergis($sid)
{
echo "
";
echo "
";
echo "
";
echo"
";
echo "";
echo "
";
echo "
";
echo "
";
}
/////////////////////inainte inapoi
function iitop($sid)
{
if($page>1)
{
$ppage = $page-1;
echo "
« $ppage";
}
echo " $page ";
if($page<$num_pages)
{
$npage = $page+1;
echo "
$npage »";
echo "din
$num_pages";
}
echo "
";
}
/////////////////////////////////////////////////////
/////////////////////////////////////////////////////FUNCTII MMS
/////////////////////////mms hours
/*function addhours(){
return 15*60*60;
}
//////////////
function getmmscount($uid,$view="all"){
if($view=="all"){
$nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mms WHERE touid='".$uid."'"));
}else if($view =="snt"){
$nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mms WHERE byuid='".$uid."'"));
}else if($view =="str"){
$nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mms WHERE touid='".$uid."' AND starred='1'"));
}else if($view =="urd"){
$nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mms WHERE touid='".$uid."' AND unread='1'"));
}
return $nopm[0];
}
function getunreadmms($uid){
$nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mms WHERE touid='".$uid."' AND unread='1'"));
return $nopm[0];
}
////////////////////////////////////////////get forum message
function getfmsg()
{
$getdata = mysql_fetch_array(mysql_query("SELECT value FROM lib3rtymrc_settings WHERE name='4ummsg'"));
return $getdata[0];
}
*/
/////////////////////////////////////////////////////
?>