Xhtml Sp Script (dated)

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

    Xhtml Sp Script (dated)

    <span style="font-family:Arial Black"><span style="font-size:14pt;line-height:100%">HERE IS THE SCRIPT PLEASE LEAVE THE LINE ON THE INDEX PAGE ON, THANK YOU

    ANY PROBS JUST ASK MY EMAIL ADDYS ON THE INDEX PAGE. </span></span>

    Download SRIPT HERE
    Download DATABASE HERE
    Want something coded email me at sales@webnwaphost.com for a prices.





    #2
    oh yeh as its php4 yu might have to put the bellow in your htaccess file.

    php_flag register_globals on
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      Code:
      <?php 
      
      
      function createRandomPassword() {  
      $chars = "abcdefghijkmnopqrstuvwxyz023456789";   
       srand((double)microtime()*1000000);  
        $i = 0;    $pass = &#39;&#39;; 
         while ($i <= 7) 
      {     
         $num = rand() % 33;        $tmp = substr($chars, $num, 1);  
           $pass = $pass . $tmp;        $i++;   
       } 
         return $pass;
      }// Usage
      $password2 = createRandomPassword();
      
      
      if(isset($HTTP_COOKIE_VARS["ChevysLounge"]))
       {
      $gotaccount = 1; 
      $cookieid = $HTTP_COOKIE_VARS["ChevysLounge"];
      }
       else 
      { 
      $gotaccount = 0; 
      setcookie("ChevysLounge",$password2); 
      $cookieid="$password2";
      } 
      
      
      
      
      include("config.inc.php");
      
      header("Cache-Control: no-cache, must-revalidate");
      echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
      echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
      echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
      
      
          echo "<head>";
          echo "<title>$stitle</title>";
          echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"theme/theme.css\" />";
          echo "</head>";
      
          echo "<body>";
      
          include("config.inc.php");
      
      
      
      echo "<p align=\"center\">";
      $permission = 40;
      $username = preg_replace("/(.*?)([A-Za-z0-9\s]*)(.*?)/", "$2", $username);
      $date = date(&#39;Y-m-d H:i:s&#39;);
      $phone=$_SERVER[&#39;HTTP_USER_AGENT&#39;];
      $Connect = mysql_connect("$server","$user","$pass");
      mysql_select_db("$dbname");
      
      $sql_username_check = mysql_query("SELECT * FROM members WHERE username=&#39;$username&#39;");
      $sql_email_check = mysql_query("SELECT * FROM members WHERE email=&#39;$email&#39;");
       $username_check = mysql_num_rows($sql_username_check);
       $email_check = mysql_num_rows($sql_email_check);
      
      $errors = 0;
      if((!$username) || (!$email)){
      $errors = 1;
          echo "You did not submit the following required information! 
      ";
          if(!$username){
              echo "username is a required field. Please go back.
      ";
          }
          if(!$email){
              echo "email is a required field. Please go back
      ";
          }}
      
      
       if(($username_check > 0)){
           echo "Please fix the following errors:
      ";
          $errors = 1;
          }
                if($username_check > 0){
               echo "The username you have selected is taken!
      ";
               unset($username);
             }
        
       if(($email_check > 0)){
           echo "Please fix the following errors:
      ";
          $errors = 1;
          }
                if($email_check > 0){
               echo "The email address you have gave has been entered before
      ";
               unset($email);
             }
      
      
      if($gotaccount > 0){
      
      $sql_banned_check = mysql_query("SELECT * FROM devices WHERE deviceid=&#39;$cookieid&#39;");
       $banned_check = mysql_num_rows($sql_banned_check);
       if(($banned_check > 0)){
      echo "Your device has been banned from using this service
      ";
      $errors=1;
      }
      
      
      
      }
      
      
      
      
      if($errors < 1){
      
       $lastpost = 20;
      $voted=0;
      $subno=$_SERVER[&#39;HTTP_X_UP_SUBNO&#39;];
      
      
      
      $date = date(&#39;Y-m-d H:i:s&#39;);
      
      
      $validated="no";
      $sql = "INSERT INTO members (username,password,phone,subno,lastpost,email,registerdate,lastloggedin,valid
      ted,device) VALUES
      (&#39;$username&#39;,&#39;$password&#39;,&#39;$phone&#39;,&#39;$subno&#39;,&#39;$lastpost&#39;,&#39;$email&#39;,&#39;$date&#39;,&#39;$date&#39;,&#39;$validated&#39;,&#39;$cookieid&#39;)";
      $result = mysql_query($sql);
      
      
      $sql = "INSERT INTO profile (username,name,age,sex,location,about,picture) VALUES
      (&#39;$username&#39;,&#39;$name&#39;,&#39;$age&#39;,&#39;$sex&#39;,&#39;$location&#39;,&#39;$about&#39;,&#39;$picture&#39;)";
      $result = mysql_query($sql);
      
      $sql = "INSERT INTO mood (username) VALUES
      (&#39;$username&#39;)";
      $result = mysql_query($sql);
      
      $sql = "SELECT * FROM members Where username=&#39;$to_username&#39;";  
      
      
      $sql = "UPDATE members SET lastpost=&#39;$time2&#39; WHERE username=&#39;$username&#39;"; 
      
      $result = mysql_query($sql);  
      
      $sql = "INSERT INTO privatemessage (to_username, from_username, date_sent, has_it_been_read, pm_message) VALUES (&#39;$username&#39;,&#39;b1tch&#39;,&#39;$date&#39;,&#39;no&#39;,&#39;Welcome to the site, Please enjoy your stay with us, if you have any problems or questions please contact any of our friendly helpful Admin Team, Have a nice day Dont forget to bring all your friends here. DO NOT REPLY TO THIS MSG AS ITS AUTOMATED THANKS&#39;)"; 
      
      
      
      if($gotaccount > 0){
      }
      echo "Sucess!
      ";
      echo "username: $username
      ";
      echo "password: $password
      ";
      echo "Please wait until you are validated before logging in";
      echo "
      <a href=\"login.php?password=$password&amp;username=$username\">Continue</a>
      
      "; 
      
      
      }
      
      echo "</p>"; 
      echo "</body>"; 
      echo "</html>"; 
      ?>
      replace the code in check.php with this one above fixed profile
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #4
        Code:
        <?php
        
        ob_start();
        
        
            include("config.inc.php");
        header("Content-type: text/html; charset=ISO-8859-1");
        echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
        echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
        echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
        
            echo "<head>";
        
            echo "<title>$stitle</title>";
            echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"theme/theme.css\" />";
            echo "</head>";
        
            echo "<body>";
        
        echo "<p align=\"center\">";
        
        $Connect = mysql_connect("$server","$user","$pass");
        mysql_select_db("$dbname");
        $result=mysql_query("select * from members where username=&#39;$username&#39; and password=&#39;$password&#39;");
        $number_of_rows = mysql_num_rows($result);
        if ($number_of_rows>0)
        {
            include("check.inc.php");
        }
        if ($ok>0)
        {
                include("smilies.inc.php");
        
        $uonline = mysql_num_rows(mysql_query("select * from latest"));
        //this variable might seem complicated, but it&#39;s really simple. The first thing it does is sends the query "select * from latest" to the database. This finds all the entries in the database. After that, it counts the number of entries with mysql_num_rows to find out exactly how many users are online.
        
        //print the variable on our page!
        //echo "<card id=\"card1\" title=\"$uonline Users Online\">"; 
        //echo "<p align=\"center\">";
        $id=1;
        ?>
        [img]onlinelist.gif[/img]
        
        [size="1"]
        <?php
        $sql = "SELECT * FROM buddylist where username2=&#39;$username&#39; and request=&#39;0&#39;";
        $result = mysql_query($sql);
        $number_of_rows2 = mysql_num_rows($result);
        $new_spam = $number_of_rows2;
        if(($number_of_rows2>0)){
        echo "
        <a title=\"Enter\" href=\"buddyreq.php?username=$username&amp;limit=0&amp;password=$password\">new request</a>
        ";
        }
        
        $datime=date("H:i");
        $dadate=(date("j/m/y"));
        $sqlthing = mysql_query("SELECT * FROM highest WHERE id=&#39;$id&#39;");
           $highest=(mysql_result($sqlthing,0,"highest"));
        if ($highest < $uonline)
        {
        $highest=$uonline;
        $query = "update highest set highest=&#39;$highest&#39; where id=&#39;$id&#39;";
        mysql_query($query); //send the query!
        }
        echo "Highest Members Online: $highest
        ";
        
        if(!isset($_GET[&#39;page&#39;])){ 
            $page = 1; 
        } else { 
            $page = $_GET[&#39;page&#39;]; 
        } 
        
        $max_results = 10; 
        $from = (($page * $max_results) - $max_results);  
        
        $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM latest"),0); 
        $total_pages = ceil($total_results / $max_results); 
        
        $sql = mysql_query("SELECT * FROM latest ORDER by ip asc LIMIT $from, $max_results"); 
        while($row = mysql_fetch_array($sql)){ 
        $name = $row[&#39;ip&#39;];
        
        
        
        $resultST=mysql_query("select * from members where username=&#39;$name&#39; and stars=&#39;1&#39;");
        $number_of_rowsST = mysql_num_rows($resultST);
        if ($number_of_rowsST == 1){
        $stars = "*";
        }
        else 
        {
        $stars = "";
        }
        
        
        
        $sqlM = mysql_query("SELECT * FROM mood WHERE username=&#39;$name&#39;"); 
         $gbvalues=(mysql_result($sqlM,0,"mood"));
         $gbvalues4=(mysql_result($sqlM,0,"mood"));
        
           include("smilies.inc.php");
        
        $sqlSHY = mysql_query("SELECT * FROM members WHERE username=&#39;$name&#39;"); 
         $SHY=(mysql_result($sqlSHY,0,"shy"));
         $here=(mysql_result($sqlSHY,0,"here"));
        
        
        if($gbvalues4=="")
        {
        $gbvalues = "To BusY Havin a Chin Wag <img src=\"image/lol.gif\" alt=\"member\"/> ";
        }
        
        
        if ($SHY=="1"){
        echo "";
        }
        else
        {
        echo "$stars";
        
        
        
        echo "<a href=\"profile.php?name=$name&amp;username=$username&amp;password=$password\">$name</a>
        ($gbvalues)
        ";
        
        }
        
        }
        
        if($page < $total_pages){ 
            $next = ($page + 1); 
            echo "<a href=\"".$_SERVER[&#39;PHP_SELF&#39;]."?page=$next&amp;username=$username&amp;password=$password\">(Next)</a>
        "; 
        } 
        if($page > 1){ 
            $prev = ($page - 1);
            echo "
        <a href=\"".$_SERVER[&#39;PHP_SELF&#39;]."?page=$prev&amp;username=$username&amp;password=$password\">(Prev)</a>
        "; 
        } 
        $i = 1; $i <= $total_pages; $i++;
        
        ?>
        
        
        <?php
        $sqlthing = mysql_query("SELECT * FROM members WHERE username=&#39;$username&#39;");
           $pmname=(mysql_result($sqlthing,0,"pmname"));
           $buddyname=(mysql_result($sqlthing,0,"buddyname"));
        
        
        echo "<a title=\"Enter\" href=\"pm.php?username=$username&amp;password=$password\">($pmname Menu)</a>  ";
        echo "
        <a title=\"Enter\" href=\"moodset.php?username=$username&amp;password=$password\">(Change Mood)</a>  ";
        echo "
        <a href=\"forumindex.php?username=$username&amp;password=$password\">(Forums)</a>";
        echo "
        <a href=\"chatindex.php?username=$username&amp;password=$password\">(ChatRooms)</a> ";  
        $result5=mysql_query("select * from buddylist where username1=&#39;$username&#39; and request=&#39;1&#39;");
        $result=mysql_query("select * from buddylist where username1=&#39;$username&#39; and request=&#39;1&#39;");
        $number_of_rows = mysql_num_rows($result);
        $count=0;
        while ($count<$number_of_rows){
        $name=(mysql_result($result,$count,"username2"));
        $result2=mysql_query("select * from latest where ip=&#39;$name&#39;");
        $number_of_rows2 = mysql_num_rows($result2);
        if($number_of_rows2>0){
        
        $count1=$count1+1;
        
        }
        
        $count=$count+1;
        }
        $result5=mysql_query("select * from buddylist where username1=&#39;$username&#39; and request=&#39;1&#39;");
        $number_of_rows5 = mysql_num_rows($result5);//
        echo "
        <a title=\"Enter\" href=\"buddylist.php?username=$username&amp;password=$password\">(Buddies($count1/$number_of_rows5)</a>  ";
        echo "
        <a title=\"Enter\" href=\"welcome.php?username=$username&amp;password=$password\">(Main Menu)</a>";
        echo "[/size]";
        }
        
        $sql = "update members SET here=&#39;online list&#39; WHERE username=&#39;$username&#39;";
        
        $result = mysql_query($sql);
        
        
        
        echo "</p>"; 
        echo "</body>"; 
        echo "</html>";
        $contents = ob_get_contents();
        ob_end_clean();
        $contents = str_replace("&amp;", "&", $contents);
        $contents = str_replace("&", "&amp;", $contents);
        print($contents);
        ?>
        defualt mood added and few other minor changes
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          <span style='font-family: "Arial Black"'><span style="font-size:14pt;line-height:100%">HERE IS THE SCRIPT PLEASE LEAVE THE LINE ON THE INDEX PAGE ON, THANK YOU

          ANY PROBS JUST ASK MY EMAIL ADDYS ON THE INDEX PAGE. </span></span>

          Download SRIPT HERE
          Download DATABASE HERE[/b]
          hi, do you have demo link?
          http://ngeo.ro

          Comment


            #6
            all get one sorted later on 2day m8
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


              #7
              not able to register it shows " Please wait until you are validated before logging in" thats it
              sigpic

              Comment


                #8
                you have to validated yourself in the database via clikin on your name then the pensil, then wer it says validated put yes and click go and your sorted
                Want something coded email me at sales@webnwaphost.com for a prices.




                Comment


                  #9
                  Okay !!
                  but how can i log in into chat as owner ?
                  sigpic

                  Comment


                    #10
                    once again in database put 1 for owner 1 for stars 1 - then validation - pass put 1
                    Want something coded email me at sales@webnwaphost.com for a prices.




                    Comment


                      #11
                      i see some my writing in there too m8 its all good tho lol

                      Comment


                        #12
                        is it still i thought i made sure that i removed everything that i converted for you and left it as standaard oops,
                        Want something coded email me at sales@webnwaphost.com for a prices.




                        Comment


                          #13
                          is it still i thought i made sure that i removed everything that i converted for you and left it as standaard oops,[/b]


                          lol i aint downloaded it i just saw the check.php lol

                          Comment


                            #14
                            Is an lavalair modded script (have more php pages)

                            Comment


                              #15
                              Is an lavalair modded script (have more php pages)[/b]
                              Answers In The Title of Topic
                              Want something coded email me at sales@webnwaphost.com for a prices.




                              Comment

                              Working...
                              X