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.
Want something coded email me at sales@webnwaphost.com for a prices.
Started on the old forum in March 2008 · view the original in the archive · old links redirect here
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.
Want something coded email me at sales@webnwaphost.com for a prices.
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.
<?php
function createRandomPassword() {
$chars = "abcdefghijkmnopqrstuvwxyz023456789";
srand((double)microtime()*1000000);
$i = 0; $pass = '';
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('Y-m-d H:i:s');
$phone=$_SERVER['HTTP_USER_AGENT'];
$Connect = mysql_connect("$server","$user","$pass");
mysql_select_db("$dbname");
$sql_username_check = mysql_query("SELECT * FROM members WHERE username='$username'");
$sql_email_check = mysql_query("SELECT * FROM members WHERE email='$email'");
$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='$cookieid'");
$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['HTTP_X_UP_SUBNO'];
$date = date('Y-m-d H:i:s');
$validated="no";
$sql = "INSERT INTO members (username,password,phone,subno,lastpost,email,registerdate,lastloggedin,valid
ted,device) VALUES
('$username','$password','$phone','$subno','$lastpost','$email','$date','$date','$validated','$cookieid')";
$result = mysql_query($sql);
$sql = "INSERT INTO profile (username,name,age,sex,location,about,picture) VALUES
('$username','$name','$age','$sex','$location','$about','$picture')";
$result = mysql_query($sql);
$sql = "INSERT INTO mood (username) VALUES
('$username')";
$result = mysql_query($sql);
$sql = "SELECT * FROM members Where username='$to_username'";
$sql = "UPDATE members SET lastpost='$time2' WHERE username='$username'";
$result = mysql_query($sql);
$sql = "INSERT INTO privatemessage (to_username, from_username, date_sent, has_it_been_read, pm_message) VALUES ('$username','b1tch','$date','no','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')";
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&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.
<?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='$username' and password='$password'");
$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'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='$username' and request='0'";
$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&limit=0&password=$password\">new request</a>
";
}
$datime=date("H:i");
$dadate=(date("j/m/y"));
$sqlthing = mysql_query("SELECT * FROM highest WHERE id='$id'");
$highest=(mysql_result($sqlthing,0,"highest"));
if ($highest < $uonline)
{
$highest=$uonline;
$query = "update highest set highest='$highest' where id='$id'";
mysql_query($query); //send the query!
}
echo "Highest Members Online: $highest
";
if(!isset($_GET['page'])){
$page = 1;
} else {
$page = $_GET['page'];
}
$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['ip'];
$resultST=mysql_query("select * from members where username='$name' and stars='1'");
$number_of_rowsST = mysql_num_rows($resultST);
if ($number_of_rowsST == 1){
$stars = "*";
}
else
{
$stars = "";
}
$sqlM = mysql_query("SELECT * FROM mood WHERE username='$name'");
$gbvalues=(mysql_result($sqlM,0,"mood"));
$gbvalues4=(mysql_result($sqlM,0,"mood"));
include("smilies.inc.php");
$sqlSHY = mysql_query("SELECT * FROM members WHERE username='$name'");
$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&username=$username&password=$password\">$name</a>
($gbvalues)
";
}
}
if($page < $total_pages){
$next = ($page + 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$next&username=$username&password=$password\">(Next)</a>
";
}
if($page > 1){
$prev = ($page - 1);
echo "
<a href=\"".$_SERVER['PHP_SELF']."?page=$prev&username=$username&password=$password\">(Prev)</a>
";
}
$i = 1; $i <= $total_pages; $i++;
?>
<?php
$sqlthing = mysql_query("SELECT * FROM members WHERE username='$username'");
$pmname=(mysql_result($sqlthing,0,"pmname"));
$buddyname=(mysql_result($sqlthing,0,"buddyname"));
echo "<a title=\"Enter\" href=\"pm.php?username=$username&password=$password\">($pmname Menu)</a> ";
echo "
<a title=\"Enter\" href=\"moodset.php?username=$username&password=$password\">(Change Mood)</a> ";
echo "
<a href=\"forumindex.php?username=$username&password=$password\">(Forums)</a>";
echo "
<a href=\"chatindex.php?username=$username&password=$password\">(ChatRooms)</a> ";
$result5=mysql_query("select * from buddylist where username1='$username' and request='1'");
$result=mysql_query("select * from buddylist where username1='$username' and request='1'");
$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='$name'");
$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='$username' and request='1'");
$number_of_rows5 = mysql_num_rows($result5);//
echo "
<a title=\"Enter\" href=\"buddylist.php?username=$username&password=$password\">(Buddies($count1/$number_of_rows5)</a> ";
echo "
<a title=\"Enter\" href=\"welcome.php?username=$username&password=$password\">(Main Menu)</a>";
echo "[/size]";
}
$sql = "update members SET here='online list' WHERE username='$username'";
$result = mysql_query($sql);
echo "</p>";
echo "</body>";
echo "</html>";
$contents = ob_get_contents();
ob_end_clean();
$contents = str_replace("&", "&", $contents);
$contents = str_replace("&", "&", $contents);
print($contents);
?>
defualt mood added and few other minor changes
Want something coded email me at sales@webnwaphost.com for a prices.
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.
hi, do you have demo link?
all get one sorted later on 2day m8
Want something coded email me at sales@webnwaphost.com for a prices.
not able to register it shows " Please wait until you are validated before logging in" thats it
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.
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.
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.
is it still i thought i made sure that i removed everything that i converted for you and left it as standaard oops,
lol i aint downloaded it i just saw the check.php lol
Is an lavalair modded script (have more php pages)
Answers In The Title of Topic
Want something coded email me at sales@webnwaphost.com for a prices.
i cant loggin it keeps deleteing me automativly
lol try validating yourself in db lol
i cant loggin it keeps deleteing me automativly
wel have you put in htaccess fie ? php_flag register_globals on
Want something coded email me at sales@webnwaphost.com for a prices.
whats your website url ?
Want something coded email me at sales@webnwaphost.com for a prices.