chat script cdwap.tk

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

    chat script cdwap.tk

    This script is not compleated, but this can be use for create your own chat site.
    instalaion help is included in Readme.txt file

    there is a sad story behinde the script. never mind. the demo is Welcome To cdwap


    enjoy it!
    Attached Files
    Last edited by praneethwap; 01.04.12, 13:33.

    #2
    good script just need to add more features in it..

    Comment


      #3
      nice script buddy

      Comment


        #4
        Just view ur profile and u will see a link on your prfile pic, edit pfile.
        Code for spil pages on inbox can be use for members page esyly. Gift cards page is not coded. Thought the script will be useful for beginer who lv to learn php. I dnt have time to code this. Bt if i code new pages, shuar, i will upload them hear.

        If you want your new users to auto validate when registered, then replase this code with original code in the reg.php


        PHP Code:
        <?php 
        include ("seting.php");
        include (
        "inc/list.php");

        echo 
        "<title>$site Checking</title>";
        echo 
        "<div class=\"box2\">";
        echo 
        "<h5>$sname Checking ...</h5>";

        //get input values as strings
        $name $_POST["name"];
        $password1 $_POST["password1"];
        $password $_POST["password1"];
        $password2 $_POST["password2"];
        $bdy $_POST["bdy"];
        $bdm $_POST["bdm"];
        $bdd $_POST["bdd"];
        $sex $_POST["sex"];

        //start check
        $kanchi $_GET["actionk"];

        //check for alredy registered users
        $check_user mysql_query("SELECT * FROM kan_user");
        while(
        $user_ok mysql_fetch_array($check_user))
        $u $user_ok['name'];

         if (
        $u==$name) {echo "$x Error <br/> Sorry Username alredy registered, Please use another one <br/>";}
         else if (
        $name=="") { echo "$x Error <br/> Enter a username <br/>";}
         else if (
        strlen("$name")<4) {echo "$x Error <br/> Username must be more than 4 leters <br/>";}
         else if (
        $password1=="") {echo "$x Error <br/> Enter a password <br/>";}
         else if (
        strlen("$password1")<4) {echo "$x Error <br/> Password must be more than 4 leters <br/>";}
         else if (
        $password1!==$password2) {echo "$x Error <br/> Password did not match <br/>";}
         else if (
        $bdy=="" $bdm=="" $bdd=="") {echo "$x Error <br/> Enter Your Birthday <br/>";}

        else {
        mysql_query("INSERT INTO kan_user (name,password,bdy,bdm,bdd,sex,validated) VALUES ('$name','$password1','$bdy','$bdm','$bdd','$sex','1')") or die(mysql_error());
        $sql =mysql_query("SELECT id FROM kan_user WHERE name='$name'");
        while (
        $ss mysql_fetch_array($sql))
        $toid $ss["id"];
        mysql_query("INSERT INTO kan_pm (too,frome,text,toid,fromid) VALUES ('$name','CDWAP-ANGEL','<b>This massage is from CDWAP auto pm servise!</b><br/>Hello dear $usernane<br/>Oyawa ape punchi wap ekata saadarayen piligannawa.<br/>Dan oya ape wap eke kotasak wela iwarayi.<br/>Oyata puluwan aluth yaluwo hoyagena eyalath ekka chat karanna, massage yawanna, gift yawanna, thawa godak dewal thiyanawa CDWAP ekee.<br/>Ithin oyata site eka gena theren nethi deyak tiyanawanam ape staff member kenekgen ahala denaganna puluwan <a href=\"onlineadmin.php\">Methanin</a><br/>Oya hamadama ape punchi wap ekath ekka innawa kiyala api hithanawa.<br/>Oyata suba dawasak wewa!!<br/>','$toid','1')") or die(mysql_error());
        mysql_query("INSERT INTO kan_memo (user,memo,rankk) VALUES('$name','0','0')")or die(mysql_error());

        echo 
        "$ok Ok <br/> Now you are registerd in $sname<br/>";
        echo 
        "$user Your user name : $name <br/>";
        echo 
        "$key Your password : $password <br/>";
        echo 
        "You may login now <br/>";
        echo 
        "<h6>Login Now</h6>";
        echo 
        "<form id=\"loginform\" name=\"loginform\" action=\"login.php\" method=\"post\">";
        echo 
        "$user User Name <br/> ";
        echo 
        "<input name=\"login\" type=\"text\" id=\"login\"> <br/> ";
        echo 
        "$key Password <br/> ";
        echo 
        "<input name=\"password\" type=\"password\" id=\"password\"> <br/> ";
        echo 
        "<input type=\"submit\" name=\"submit\" value=\"Login\"> <br/> ";
        echo 
        "</form>";
        }

        echo 
        "<a href=\"signup.php\">$back Back</a>";
        echo 
        "<h6>-</h6>";
        echo 
        "<a href=\"index.php\">$home Home</a>";
        echo 
        "</div>";
        ?>
        A new user register in the site this massage will be send to him/her

        Oyawa ape punchi wap ekata saadarayen piligannawa.<br/>Dan oya ape wap eke kotasak wela iwarayi.<br/>Oyata puluwan aluth yaluwo hoyagena eyalath ekka chat karanna, massage yawanna, gift yawanna, thawa godak dewal thiyanawa CDWAP ekee.<br/>Ithin oyata site eka gena theren nethi deyak tiyanawanam ape staff member kenekgen ahala denaganna puluwan <a href=\"onlineadmin.php\">Methanin</a><br/>Oya hamadama ape punchi wap ekath ekka innawa kiyala api hithanawa.<br/>Oyata suba dawasak wewa!!



        You can edit it, it was located in reg.php

        Also you can set user online time, i have set it to 120 minuets, if you want to edit that time, open auth.php and replase this value

        PHP Code:
        $ontimee 120
        replase 120 as you wish

        Added after 7 minutes:

        Also you can edit home page and login page massages from hear.

        Open database in phpmyadmin and go to kan_seting table, edit msg1 msg2 msg3 also you can create a tool for update this values with php
        Last edited by metulj; 19.04.12, 08:44.

        Comment


          #5
          help

          Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Bilinen böyle bir ana makine yok. in D:\Program Files\xampp\htdocs\test\login.php on line 17

          Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: Bilinen böyle bir (trying to connect via tcp://MysqlHost:3306) in D:\Program Files\xampp\htdocs\test\login.php on line 17

          Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Bilinen böyle bir ana makine yok. in D:\Program Files\xampp\htdocs\test\login.php on line 17
          Failed to connect to server:

          Comment


            #6
            Originally posted by eynesilli View Post
            Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Bilinen böyle bir ana makine yok. in D:\Program Files\xampp\htdocs\test\login.php on line 17

            Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: Bilinen böyle bir (trying to connect via tcp://MysqlHost:3306) in D:\Program Files\xampp\htdocs\test\login.php on line 17

            Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Bilinen böyle bir ana makine yok. in D:\Program Files\xampp\htdocs\test\login.php on line 17
            Failed to connect to server:
            and the line 17 says
            PHP Code:
            $link mysql_connect(DB_HOSTDB_USERDB_PASSWORD); 
            enough said...
            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


              #7


              Originally posted by metulj View Post
              and the line 17 says
              PHP Code:
              $link mysql_connect(DB_HOSTDB_USERDB_PASSWORD); 
              enough said...
              I do not know how to fix this error

              Comment


                #8
                You must enter your db host, db user and db password there....

                Comment


                  #9
                  Originally posted by eynesilli View Post
                  I do not know how to fix this error
                  create a database .... import the .sql file into the database
                  and then put the database details into your config.php

                  Comment

                  Working...
                  X