wapdesire v2 xhtml (teaze-n-plz.com)

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

    #16
    Originally posted by DarkRaven View Post
    lol damn noobs, php_flag register_globals on
    PHP Code:
    <?php
    function registration()
    {
    $sql="select * from settings where name='registration'";
    $query=mysql_query($sql);
    $array=mysql_fetch_array($query);
    if(
    $array["value"]=='1'){return true;}
    else{return 
    false;}
    }

    function 
    spacesin($word)
    {
    $pos=strpos($word," ");
    if(
    $pos===false)
    {
    return 
    false;
    }
    else
    {
    return 
    true;
    }
    }

    function 
    scharin($word)
    {
    $chars="abcdefghijklmnopqrstuvwxyz0123456789-_";
    for(
    $i=0;$i<strlen($word);$i++)
    {
    $ch=substr($word,$i,1);
    $nol=substr_count($chars,$ch);
    if(
    $nol==0)
    {
    return 
    true;
    }
    }
    return 
    false;
    }

    function 
    isdigitf($word)
    {
    $chars="abcdefghijklmnopqrstuvwxyz0123456789";
    $ch=substr($word,0,1);
    $sres=ereg("[0-9]",$ch);
    $ch=substr($word,0,1);
    $nol=substr_count($chars,$ch);
    if(
    $nol==0){return true;}
    return 
    false;
    }

    function 
    checknick($uid)
    {
    $chk=0;
    $uid=strtolower($uid);
    $nick=mysql_fetch_array(mysql_query("SELECT id, name, nicklvl FROM nicks WHERE name='".$uid."'"));
    if(
    $nick[0]!=""){$chk=$nick[2];}
    return 
    $chk;
    }

    function 
    register($name,$pass,$usex,$email)
    {
    $execms=mysql_query("SELECT * FROM users WHERE username='".$name."'");
    if(
    mysql_num_rows($execms)>0){return 1;}
    else{
    $pass=md5($pass);
    $validation=mysql_fetch_array(mysql_query("SELECT value FROM settings WHERE name='validation'"));
    if(
    $validation[0]==1){$validated=0;}
    else{
    $validated=1;}
    $reg=mysql_query("INSERT INTO users SET username='".$name."', password='".$pass."', regdate='".time()."', validated='".$validated."', ipaddress='".ip()."', browser='".browser()."', host='".subno()."'");
    $pro=mysql_query("INSERT INTO profiles SET uid='".getuid_nick($name)."', sex='".$usex."', email='".$email."', script='xhtml'");
    if((
    $reg)&&($pro)){
    addonline(getuid_nick($name),"Just Registered","");
    $delonline=mysql_query("DELETE FROM online WHERE uid='".getuid_nick($name)."'");
    $msg="Hello /reader =). Greetings from all ".sitename()." staff, we are happy to have you here, welcome to our big happy family!, If You Have any questions or comments about the site feel free to message me or any of the other staff members online. ENJOY!(excited)[br/] u can gain points by using forums and chat wich will unlock other site parts bare in mind that site is stil under construction but where up and running finally YaY :o)[small][i][br/]p.s: this is an automated pm[/i][/small]";
    $msg=mysql_escape_string($msg);
    autopm($msg,getuid_nick($name));
    return 
    0;
    }else{
    return 
    2;
    }

    }

    ?>

    php_flag register_globals? theres none

    Comment


      #17
      Originally posted by n00b View Post
      PHP Code:
      <?php
      function registration()
      {
      $sql="select * from settings where name='registration'";
      $query=mysql_query($sql);
      $array=mysql_fetch_array($query);
      if(
      $array["value"]=='1'){return true;}
      else{return 
      false;}
      }

      function 
      spacesin($word)
      {
      $pos=strpos($word," ");
      if(
      $pos===false)
      {
      return 
      false;
      }
      else
      {
      return 
      true;
      }
      }

      function 
      scharin($word)
      {
      $chars="abcdefghijklmnopqrstuvwxyz0123456789-_";
      for(
      $i=0;$i<strlen($word);$i++)
      {
      $ch=substr($word,$i,1);
      $nol=substr_count($chars,$ch);
      if(
      $nol==0)
      {
      return 
      true;
      }
      }
      return 
      false;
      }

      function 
      isdigitf($word)
      {
      $chars="abcdefghijklmnopqrstuvwxyz0123456789";
      $ch=substr($word,0,1);
      $sres=ereg("[0-9]",$ch);
      $ch=substr($word,0,1);
      $nol=substr_count($chars,$ch);
      if(
      $nol==0){return true;}
      return 
      false;
      }

      function 
      checknick($uid)
      {
      $chk=0;
      $uid=strtolower($uid);
      $nick=mysql_fetch_array(mysql_query("SELECT id, name, nicklvl FROM nicks WHERE name='".$uid."'"));
      if(
      $nick[0]!=""){$chk=$nick[2];}
      return 
      $chk;
      }

      function 
      register($name,$pass,$usex,$email)
      {
      $execms=mysql_query("SELECT * FROM users WHERE username='".$name."'");
      if(
      mysql_num_rows($execms)>0){return 1;}
      else{
      $pass=md5($pass);
      $validation=mysql_fetch_array(mysql_query("SELECT value FROM settings WHERE name='validation'"));
      if(
      $validation[0]==1){$validated=0;}
      else{
      $validated=1;}
      $reg=mysql_query("INSERT INTO users SET username='".$name."', password='".$pass."', regdate='".time()."', validated='".$validated."', ipaddress='".ip()."', browser='".browser()."', host='".subno()."'");
      $pro=mysql_query("INSERT INTO profiles SET uid='".getuid_nick($name)."', sex='".$usex."', email='".$email."', script='xhtml'");
      if((
      $reg)&&($pro)){
      addonline(getuid_nick($name),"Just Registered","");
      $delonline=mysql_query("DELETE FROM online WHERE uid='".getuid_nick($name)."'");
      $msg="Hello /reader =). Greetings from all ".sitename()." staff, we are happy to have you here, welcome to our big happy family!, If You Have any questions or comments about the site feel free to message me or any of the other staff members online. ENJOY!(excited)[br/] u can gain points by using forums and chat wich will unlock other site parts bare in mind that site is stil under construction but where up and running finally YaY :o)[small][i][br/]p.s: this is an automated pm[/i][/small]";
      $msg=mysql_escape_string($msg);
      autopm($msg,getuid_nick($name));
      return 
      0;
      }else{
      return 
      2;
      }

      }

      ?>

      php_flag register_globals? theres none
      its in the htaacess file bru have a look in there
      ________________
      Jacques
      jacques@gw-designs.co.za
      http://coding.biz.tm
      Come join and lets make it a place to learn all the noobies how to code
      __________________

      NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

      Comment


        #18
        .htaccess can exist on every directory but it not necessarily exists. each time i upload my htaccess file i cant find it?

        Comment


          #19
          new group 4 modded this wapdesire:
          if like my post click:

          http://coding-talk.com/images/totall...ost_thanks.gif

          Comment


            #20
            Originally posted by sweetangel View Post
            new group 4 modded this wapdesire:
            http://coding-talk.com/groups/wapdesire-v2/
            WapDesire V2

            Group Maintained by sweetangel

            group 4 modded new wapdesire
            ***********************************

            LOL are you gonna post your mods then???:rolleyes:
            It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
            ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
            ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
            キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

            Comment


              #21
              can use php.ini or htacess or iniset for the globals ill upload a demo

              Comment


                #22
                if u cannot see ur htaccess file once uploading enable hidden files in cpanel or use ftp

                Comment


                  #23
                  Thanks for share!Nice script!

                  Comment


                    #24
                    i cant upload a demo as the server i use wont allow register globals have tried all methods if any1 has uploaded it let me no

                    Comment


                      #25
                      ori but not is finish this versioN???
                      if like my post click:

                      http://coding-talk.com/images/totall...ost_thanks.gif

                      Comment


                        #26
                        it is finished lol demo url is http://chat.wapdesire.com

                        Comment


                          #27
                          ok heres a bit of a list of the features added that would stand out (from what i can remember lol)

                          u can block ips, browsers, or networks in owner tools
                          block words from being typed and make them report only, auto ban or both
                          u set each admins forums that they moderate so they will only have tools in those forums
                          users can bookmark forum topis in the site for easy access to them
                          hang man now has tools built in so u can add categories and words as tools
                          each admin u must select what tools they have access too no matter what there level is
                          users can make there own theme and css codes are not in the source
                          quiz added users cannot reload pages for more points either

                          theres so much added thats jus a lil bit of the work i have done to it

                          Comment


                            #28
                            some problem

                            how to change site name n not working uploader error is(
                            Warning: move_uploaded_file(./ajoy(1).jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/loversuk/public_html/rockon/gallery/upload.php on line 93

                            Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phplriVf7' to './ajoy(1).jpg' in /home/loversuk/public_html/rockon/gallery/upload.php on line 93)..........plz............slove........:rolleyes :

                            Comment


                              #29
                              Originally posted by partho View Post
                              how to change site name n not working uploader error is(
                              Warning: move_uploaded_file(./ajoy(1).jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/loversuk/public_html/rockon/gallery/upload.php on line 93

                              Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phplriVf7' to './ajoy(1).jpg' in /home/loversuk/public_html/rockon/gallery/upload.php on line 93)..........plz............slove........:rolleyes :
                              did you CHMOD folder gallery ?:rolleyes:
                              It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                              ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                              ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                              キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                              Comment


                                #30
                                no i am just upload wapdesire v2 xhtml script but i dnt kw why this problem?

                                Comment

                                Working...
                                X