May anyone help plz Im looking for the CARD BBcode the is sent Auto in wapdesire when

Started on the old forum in January 2012 · view the original in the archive · old links redirect here

3 replies · 333 views · started 14 years ago · 1 min read

3 participants
carebear Developer · 68 posts #1

its someone's birthday.. so if u can share that be gr8 thanks 🙂

ozziemale31 Lead · 861 posts #2
function cleardata()

{

  $timeto = 120;

  $timenw = time();

  $timeout = $timenw - $timeto;

  $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");

  $timeto = 300;

  $timenw = time();

  $timeout = $timenw - $timeto;

  $exec = mysql_query("DELETE FROM ibwf_chat WHERE timesent<'".$timeout."'");

  $timeto = 60*60;

  $timenw = time();

  $timeout = $timenw - $timeto;

  $exec = mysql_query("DELETE FROM ibwf_search WHERE stime<'".$timeout."'");

  

  ///delete expired rooms

  $timeto = 5*60;

  $timenw = time();

  $timeout = $timenw - $timeto;

  $rooms = mysql_query("SELECT id FROM ibwf_rooms WHERE static='0' AND lastmsg<'".$timeout."'");

  while ($room=mysql_fetch_array($rooms))

  {

    $ppl = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE rid='".$room[0]."'"));

    if($ppl[0]==0)

    {

        $exec = mysql_query("DELETE FROM ibwf_rooms WHERE id='".$room[0]."'");

    }

  }

  $lbpm = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='lastbpm'"));

  $td = date("Y-m-d");

  //echo $lbpm[0];

  

  if ($td!=$lbpm[0])

  {

    //echo "boo";

    $sql = "SELECT id, name, birthday  FROM ibwf_users where  month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) =  dayofmonth(curdate())";

    $ppl = mysql_query($sql);

    while($mem = mysql_fetch_array($ppl))

    {

        $msg = "[card=008]to you $mem[1]"."[/card] $sitename team wish  you a day full of joy and happiness and many happy  returns[br/]*fireworks*[br/][small][i]p.s: this is an automated  pm[/i][/small]";

        autopm($msg, $mem[0]);

    }

    mysql_query("UPDATE ibwf_settings SET value='".$td."' WHERE name='lastbpm'");

  }

}

External image (may be gone) External image (may be gone)

External image (may be gone)

*****

**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***

woody Developer · 176 posts #3

carebear wrote: its someone's birthday.. so if u can share that be gr8 thanks :)

i think the original lavalair script has it in

carebear Developer · 68 posts #4

Thanks Andy I worked out away around it.. 🙂

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close