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
nadym89 Junior · 10 posts #121

Another question about forums of wapdesire script:

When I try to make some posts /or edit some of them....Sometimes, I get errors (Sometimes "Error Posting Message" and other times "Database error")....

Why is that? and what is the solution?

ethanhunt Developer · 143 posts #122

please tel me how to increase points in admin mode how admin increase users points

HUNT

nenadic Newbie · 6 posts #124

I Can't register i placed register globals on in .htaccess and also tryed with php.ini but still no it's just refreshing register.php page

ori Lead · 512 posts #125

did u put the php.ini in allfolders containing php files?

nenadic Newbie · 6 posts #127

hi, ori and waptech. Unfortunaly nothing works 4me i chmoded folders to 777, used php.txt ori has atached in 1st pos as php.ini used also php.rar that subzero writed as php.ini placed php.ini in all folders but no stil can't register it just refreshing register.php page.Used this script on 2 difrent hosts on one of them i have 2 other community scripts instaled with no problem 🙁

wapxtech Developer · 189 posts #128

try to add this in your .htaccess to display the error.. I think something goes wrong, not on the register_globals but in the script

php_flag display_errors On

if your server is running on phpsuexec mode, php_flag wont work and return to 500 internal server error, you can try using php.ini instead..

[php]
display_errors = On

External image (may be gone) http://wapx.amob.com Applications, Games, Wallpapers, Ringtones, Videos, Themes, Screensaver and More!!!

pinastxt Newbie · 9 posts #129

pls help me on main.inc... where i can put my database pls tell me... thx coderszz

<?php function incfile($file,$d="") { while(!is_file($d.$file)){$d.="../";} require($d.$file); } incfile('./core/register.inc'); incfile('./core/functions.inc'); incfile('./core/xhtml.inc'); incfile('./core/admin.inc'); incfile('./core/userinfo.inc'); incfile('./core/header.inc'); $databasehost="localhost"; $databaseuser="root"; $databasepass="rootwdp"; $databasename="teaze_chat"; mysql_connect($databasehost, $databaseuser, $databasepass) or die("Could not connect to the database"); mysql_select_db($databasename); putenv("TZ=".timezone()); //if($username=="")$username="guest"; $key0="accesskey=\"0\""; $zerokey="**0**"; $key1="accesskey=\"1\""; $onekey="**1**"; $key2="accesskey=\"2\""; $twokey="**2**"; $key3="accesskey=\"3\""; $threekey="**3**"; $key4="accesskey=\"4\""; $fourkey="**4**"; $key5="accesskey=\"5\""; $fivekey="**5**"; $key6="accesskey=\"6\""; $sixkey="**6**"; $key7="accesskey=\"7\""; $sevenkey="**7**"; $key8="accesskey=\"8\""; $eightkey="**8**"; $key9="accesskey=\"9\""; $ninekey="**9**"; $keyS="accesskey=\"*\""; $Skey="*****"; $keN="accesskey=\"#\""; $Nkey="**#**"; $row_users=mysql_fetch_array(mysql_query("select * from users where username='".getnick_sid($sid)."'")); $row_profiles=mysql_fetch_array(mysql_query("select * from profiles where uid='".getuid_sid($sid)."'")); $row_quiz=mysql_fetch_array(mysql_query("select * from quiz")); $count_popup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM popups WHERE unread='1' AND toid='".getuid_sid($sid)."'")); $query="select * from settings"; $result=mysql_query($query); $num_rows=mysql_num_rows($result); $row=mysql_fetch_array($result); $sitename=sitename(); $align=align(); $vars=$_GET; function isreq($str) { $req="a.p.b.g"; $pos=strpos($req, $str); if($pos===false){return false;} return true; } foreach($vars as $var=>$val){ if(!isreq($var)){ $uname=$var; break; } } if(end(explode("/",$_SERVER['SCRIPT_FILENAME']))=="index.php"&&isuser(getuid_nick($uname))){ header("location: ./wapsites/wapsite.php?$uname"); exit; } $total="3"; $file_type=".png"; $start="1"; $random=mt_rand($start, $total); $image_name=$random . $file_type; $logo="logo_".$image_name; if(mobile())$logo="logo_".$image_name."&amp;f=png&amp;w=150"; $banner="banner_".$image_name; if(mobile())$banner="banner_".$image_name."&amp;f=png&amp;w=128"; $ver="<marquee loop=\"800\" bgcolor=\"red\" direction=\"left\">$sitename</marquee>"; $copyright="© ".sitename()." ".gmdate("Y"); $emailaddress=email(site); $max_buds=100;
wap2010v2 Junior · 44 posts #130

$databaseuser="DATABASE USERNAME HERE_DATABASE USERNAME HERE"; $databasepass="DATABASE PASS HERE"; $databasename="DATABASE NAME HERE_DATABASE NAME HERE";

pinastxt Newbie · 9 posts #131

like this ...... $databaseuser="mctbm_6732099"; $databasepass="123456"; $databasename="mctbm_6732099_wapper21";

ori Lead · 512 posts #132

yes that wil connect the database

convictor Developer · 114 posts #133

if chmod folders: downloads, gallery and smilies dont work with 777, what can one do? Im helping someone setting up his site, but that 3 folders is a problem for me, he uses iwap9.in. On my server(paid) I don't have the problem

Why cry for a soul set free?

ori Lead · 512 posts #134

tell him to delete the folders and make them in cpanel do not alter the permissions some hosts seem to allow uploading on folders created by that user

convictor Developer · 114 posts #135

ok thanks a lot, I will tell him:D

Why cry for a soul set free?

pugay Newbie · 5 posts #136

hey how about the logo idk how... i try to upload logo_1.png but it doesn't show help me just pm me.. and the profile pic... help me on my hosting too in freei.me the downloads and galley didn't work... i can upload but can't download the file... help just pm me pls.. i'm just a noob in coding. and in gallery the preview doesn't show..

sughie Junior · 12 posts #138

r u sure gdlibrary enabled on your host? Gallery, logo, etc require gdlibrary

I'm not a programmer i'm just a newbie join us at wapID

Furcifer Newbie · 1 posts #139

Wow, all users have access to "hidden" tools?

Edit:

Never mind I guess that is just for the ID 1

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