lavalair give love point

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    lavalair give love point

    see this script

    Added after 2 minutes:

    PHP Code:
    <?php


    include("config.php");

    include(
    "core.php");

    //session_start();

    header("Content-type: text/vnd.wap.wml");

    header("Cache-Control: no-store, no-cache, must-revalidate");

    echo 
    "<?xml version=\"1.0\" encoding=\"utf-8\"?>";

    echo 
    "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""" \"http://www.wapforum.org/DTD/wml_1.1.xml\"><!-- FOR HACKING PROOF/ANTI-DOS LL SCRIPT... Contact: devil bd-->";

    ?>

    <wml>

    <?php

    $bcon 
    connectdb();
    if (!
    $bcon)

    {

        echo 
    "<card id=\"main\" title=\"(ERROR!)\">";

        echo 
    "<p align=\"center\">";

        echo 
    "<img src=\"../images/exit.gif\" alt=\"!\"/><br/>";

        echo 
    "<b>Now Updating this site ...</b><br/><br/>";

        echo 
    "if there have any inquary please contact ...";

        echo 
    "</p>";

        echo 
    "</card>";

        echo 
    "</wml>";

        exit();

    }

    $brws explode("/",$HTTP_USER_AGENT);

    $ubr $brws[0];

    $uip getip();

    $action $_GET["action"];

    $sid $_GET["sid"];

    $page $_GET["page"];

    $who $_GET["who"];

    $uid getuid_sid($sid);

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

    $sitename $sitename[0];

    cleardata();



    if(
    isipbanned($uip,$brw))

      {

    if(!
    isshield(getuid_sid($sid)))

      {

      echo 
    "<card id=\"main\" title=\"$sitename\">";

      echo 
    "<p align=\"center\">";

      echo 
    "<img src=\"../images/notok.gif\" alt=\"x\"/><br/>";

      echo 
    "This IP address is blocked<br/>";

      echo 
    "<br/>";

      echo 
    "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over<br/><br/>";

      
    $banto mysql_fetch_array(mysql_query("SELECT  timeto FROM ibwf_penalties WHERE  penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 "));

      
    $remain =  $banto[0] - time();

      
    $rmsg gettimemsg($remain);

      echo 
    "<b>Time Left: </b>$rmsg<br/>";

      echo 
    "</p>";

      echo 
    "<p align=\"center\">";

      echo 
    "<b>Username:</b><br/><input name=\"loguid\" format=\"*x\" maxlength=\"20\"/><br/>";

      echo 
    "<b>Password:</b><br/><input type=\"password\" name=\"logpwd\"  maxlength=\"20\"/><br/>";

      echo 
    "<anchor>Login<go href=\"login.php\" method=\"get\">";

      echo 
    "<postfield name=\"loguid\" value=\"$(loguid)\"/>";

      echo 
    "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>";

      echo 
    "</go></anchor>";

      echo 
    "<br/><br/>Not registered yet? <br/><a href=\"register.php\">Register</a><br/>";


      echo 
    "</p>";

      echo 
    mobads();

      echo 
    "<p align=\"center\">";

       echo 
    "<b>©2008-09<br/>$sitename</b>";

      echo 
    "</p>";

      echo 
    "</card>";

      echo 
    "</wml>";

      exit();

      }

    }

    if((
    $action != "") && ($action!="main") && ($action!="terms") && ($action!="forumindx"))

    {

        
    $uid getuid_sid($sid);

        if((
    islogged($sid)==false)||($uid==0))

        {

            echo 
    "<card id=\"main\" title=\"$sitename\">";

          echo 
    "<p align=\"center\">";

          echo 
    "You are not logged in<br/>";

          echo 
    "Or Your session has been expired<br/><br/>";

          echo 
    "<a href=\"index.php\">Login</a>";

          echo 
    "</p>";

          echo 
    "</card>";

          echo 
    "</wml>";

          exit();

        }
    }

    //echo isbanned($uid);

    if(isbanned($uid))

        {

          echo 
    "<card id=\"main\" title=\"$sitename\">";

          echo 
    "<p align=\"center\">";

          echo 
    "<img src=\"../images/notok.gif\" alt=\"x\"/><br/>";

          echo 
    "<b>You are Banned</b><br/><br/>";

          
    $banto mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));

            
    $banres mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));

          
    $remain $banto[0]- time();

          
    $rmsg gettimemsg($remain);

          echo 
    "<b>Time Left: </b>$rmsg<br/>";

          
    $nick getnick_uid($banto[2]);

            echo 
    "<b>By: </b>$nick<br/>";

            echo 
    "<b>Reason: </b>$banto[1]";

      
          echo 
    "</p>";

          echo 
    "</card>";

          echo 
    "</wml>";

          exit();

        }

    ////////////////////////////////////////Give love

    else if($action=="givelove")
    {
      
    addonline(getuid_sid($sid),"Give Love","givelove.php?action=$action");
      
    echo 
    "<card id=\"main\" title=\"Give Love\">";

    echo 
    "<p align=\"center\">";

    $who=$_GET["who"];

    $unick=getnick_uid($uid);

    $whonick=getnick_uid($who);

    $bst time() + 6*60*60;
    $today gmstrftime("%d.%m.%Y",$bst);
    $isallowed mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_givelove WHERE uid='".$uid."' AND date='".$today."'"));
    if(
    $isallowed[0] == 0) {
    $res mysql_query("INSERT INTO ibwf_givelove SET uid='".$uid."',who='".$who."',date='".$today."'");
        if(
    $res)
        {
        
    $nick getnick_sid($sid);  
        
    $res mysql_query("INSERT INTO ibwf_notificare SET text='Congratulations $nick has sent you his/her love for today!', byuid='".$uid."', touid='".$who."', timesent='".$today."'");
      
        echo 
    "<img src=\"../images/ok.gif\" alt=\"O\"/>";
            
            echo 
    "You have now giving your Love for today<br />";
        }
        else
        {
            echo 
    "<img src=\"../images/notok.gif\" alt=\"X\"/><br />Database Error!<br />";
        }
    } else {
    $lrd=MySQL_Fetch_Array(MySQL_Query("SELECT COUNT(*) FROM ibwf_givelove where dscr='CLR'"));
    $lrd=StrToTime($lrd[0]);
    $nrd=MKTime(0,0,0,date("m",$lrd),date("d",$lrd)+1,date("Y",$lrd));
    $ttr=$nrd-Time();
    $dz=Ceil($ttr/60/60/24);
    $tm12=Time()-(12*60*60);
    $del=MySQL_Query("UPDATE ibwf_givelove SET hin='0', hout='0', dhits='0' WHERE time='".$tm12."'");
    $date=Date("H:i:s");
    $hr=Date("H");
    $hour=(23-$hr);
    $mn=Date("i");
    $min=(60-$mn);
    $min1=$min-1;

    echo 
    "<img src=\"../images/notok.gif\" alt=\"X\"/>";
                 echo
    "You have $hour Hour(s),$min1 Minute(s)<br/>";
        echo 
    "before you can give love again<br />";
    }
    echo 
    "<br /><a href=\"djmain.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
    echo 
    "Home</a><br /><br />";

         echo 
    "</p>";


       echo 
    "</card>";

    }


    ?>
    </wml>
    PHP Code:
    -- 
    -- 
    Table structure for table `ibwf_givelove`
    -- 

    CREATE TABLE IF NOT EXISTS `ibwf_givelove` (
      `
    idint(11NOT NULL AUTO_INCREMENT,
      `
    uidint(11NOT NULL,
      `
    whoint(11NOT NULL,
      `
    datevarchar(20NOT NULL,
    `
    dscrvarchar(200NOT NULL default '',
      
    PRIMARY KEY (`id`)
    ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=;

    -- 
    -- 
    Dumping data for table `ibwf_givelove`
    -- 
    Last edited by devil_bd; 21.01.11, 05:47.
Working...
X