wapdesire error plz help

Started on the old forum in May 2011 · view the original in the archive · old links redirect here

11 replies · 938 views · started 15 years ago · 1 min read

7 participants
arnage Lead · 811 posts #3

Nothing. Needs register globals on to work. Where did they find these outdated things anyway...

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
kei_ki7 Senior · 431 posts #4

Check your database if your registration is off

Did I help you? You can help me too Your donations will help me finance my studies.

m4ster_v4 Developer · 125 posts #6

rajveer wrote: registration is on but register globals are of in my host tried to use htacess file got 500 eror used php.ini file to turn golbals on nothing happend when try to regis nothing hapeens n i stay on registration page ? plzhelp me

Put on .htaccess php_flag register_globals off

if won't work try turn it on.

does ur hosting support .htaccess? if not

try this in php.ini

register_globals=on/off

gud luckk 🙂

Visit my WEBSITE Project: http://www.aspirewap.net

woody Developer · 176 posts #7

m4ster_v4 wrote: Put on .htaccess php_flag register_globals off

if won't work try turn it on.

does ur hosting support .htaccess? if not

try this in php.ini

register_globals=on/off

gud luckk :)

or try register_globals 1 or 0

kei_ki7 Senior · 431 posts #8

First row should be

then second row should be register_globals = Off

turn On if you want to on.

Did I help you? You can help me too Your donations will help me finance my studies.

woody Developer · 176 posts #10

Insert this into /core/functions.inc

function register_globals($order = 'egpcs')
{
    // define a subroutine
    if(!function_exists('register_global_array'))
    {
        function register_global_array(array $superglobal)
        {
            foreach($superglobal as $varname => $value)
            {
                global $$varname;
                $$varname = $value;
            }
        }
    }
   
    $order = explode("\r\n", trim(chunk_split($order, 1)));
    foreach($order as $k)
    {
        switch(strtolower($k))
        {
            case 'e':    register_global_array($_ENV);        break;
            case 'g':    register_global_array($_GET);        break;
            case 'p':    register_global_array($_POST);        break;
            case 'c':    register_global_array($_COOKIE);    break;
            case 's':    register_global_array($_SERVER);    break;
        }
    }
}

and then in /core/main.inc add this line after the incfiles

register_globals();
Pavan Junior · 10 posts #12

rajveer wrote: Can u Plz tell any code to show on my site Index main page there is only online users can i add guest online n registers user means showing code online user8 geust 2 total register12o that way Added after 5 minutes: thnx u very much i am getting registerd now

what trick u use to registration working ?

Added after 50 minutes:

woody wrote: Insert this into /core/functions.inc

function register_globals($order = 'egpcs')
{
    // define a subroutine
    if(!function_exists('register_global_array'))
    {
        function register_global_array(array $superglobal)
        {
            foreach($superglobal as $varname => $value)
            {
                global $$varname;
                $$varname = $value;
            }
        }
    }
   
    $order = explode("\r\n", trim(chunk_split($order, 1)));
    foreach($order as $k)
    {
        switch(strtolower($k))
        {
            case 'e':    register_global_array($_ENV);        break;
            case 'g':    register_global_array($_GET);        break;
            case 'p':    register_global_array($_POST);        break;
            case 'c':    register_global_array($_COOKIE);    break;
            case 's':    register_global_array($_SERVER);    break;
        }
    }
}

and then in /core/main.inc add this line after the incfiles

register_globals();

in functions.inc where i put that code ?

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