chat script cdwap.tk

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

#cdwap

8 replies · 3,355 views · started 14 years ago · 1 min read

7 participants
praneethwap Newbie · 3 posts #1

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!

Learn yourself is the best way to be a good coder External image (may be gone) its not esy... bt its the best way

Attachments: cdwap2.zip
praneethwap Newbie · 3 posts #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 
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. Dan oya ape wap eke kotasak wela iwarayi. Oyata puluwan aluth yaluwo hoyagena eyalath ekka chat karanna, massage yawanna, gift yawanna, thawa godak dewal thiyanawa CDWAP ekee. Ithin oyata site eka gena theren nethi deyak tiyanawanam ape staff member kenekgen ahala denaganna puluwan <a href="onlineadmin.php">Methanin</a> Oya hamadama ape punchi wap ekath ekka innawa kiyala api hithanawa. 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

$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

Learn yourself is the best way to be a good coder External image (may be gone) its not esy... bt its the best way

eynesilli Junior · 22 posts #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:

metulj Super moderator Principal · 1,726 posts #6

eynesilli wrote: 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

$link = mysql_connect(DB_HOST, DB_USER, DB_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ノ刀ノイリ!

eynesilli Junior · 22 posts #7

🙁

metulj wrote: and the line 17 says

$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);

enough said...🤔

I do not know how to fix this error

laro696 Developer · 205 posts #8

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

something else Fellow · 2,296 posts #9

eynesilli wrote: 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 🙂

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