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

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

163 replies · 29,612 views · started 17 years ago · 1 min read

TL;DR · summary of 163 replies
  • -chmod upload folders to 777 needs to be done for specific directories like gallery, downloads, and smilies.
  • -For adding points to users, it involves modifying the database or using a custom function in PHP as suggested by quiksilverX.
  • -php.txt is used when register globals are not enabled, requiring renaming it to php.ini and placing it in relevant folders.
  • -Database configuration needs to be set up with correct information for wapdesire v2.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

62 participants
ori Lead · 512 posts #1

here it is dnt forget 2 chmod upload folders to 777 enjoy :o)

also have added php.txt for those that have trouble getting register globals to work all you need to do is rename it to php.ini and place in all the folders containing scripts including the base folder

👍 1
Share
riderz Lead · 975 posts #2

whats new in this wapdesire script sorry im not using wapdesire but are surely interseted


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

n00b Developer · 61 posts #4

cant sign up can you help?

Guest #5

i am sorry but here the bloody hell do i make the db settings?

Vicelord Junior · 19 posts #6

thanks Ori

in folder "core" and main.inc

n00b Developer · 61 posts #7

/public_html/core/main.inc for the database 😀

DarkRaven Junior · 11 posts #11

lol damn noobs, php_flag register_globals on

riderz Lead · 975 posts #12

DarkRaven wrote: lol damn noobs, php_flag register_globals on

When i have htaac in my script its throwing page cannot be displayed so i have to delte it to show or what must i do then


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

riderz Lead · 975 posts #14

whats the use im asking for help if u say "sorry cant tell me"


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

n00b Developer · 61 posts #16

DarkRaven wrote: lol damn noobs, php_flag register_globals on

<?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 🙁

riderz Lead · 975 posts #17

n00b wrote:

<?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][br/]p.s: this is an automated pm[/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

n00b Developer · 61 posts #18

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

metulj Super moderator Principal · 1,726 posts #20

sweetangel wrote: 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???🙄

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ノ刀ノイリ!

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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