Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Delta Force (https://novahq.net/forum/forumdisplay.php?f=101)
-   -   [DFLW] DFLW Babstats (https://novahq.net/forum/showthread.php?t=48107)

~BLÃÐE~ 04-05-2017 07:49 PM

DFLW Babstats
 
I got the file from
http://www.novahq.net/files.php?ID=108

I have 2 files, app + zip
Zip contains babstat files, make new folder Babstats and extract it all into it, upload folder, install....

Problem is i get errors on the site
Code:

Notice: Undefined variable: HTTP_POST_VARS in /home/novaoutp/public_html/Babstats/getvars.php on line 17

Notice: Undefined variable: HTTP_COOKIE_VARS in /home/novaoutp/public_html/Babstats/getvars.php on line 23

Notice: Undefined variable: HTTP_GET_VARS in /home/novaoutp/public_html/Babstats/getvars.php on line 29

Notice: Undefined variable: HTTP_SERVER_VARS in /home/novaoutp/public_html/Babstats/getvars.php on line 35

Notice: Undefined variable: HTTP_ENV_VARS in /home/novaoutp/public_html/Babstats/getvars.php on line 41

Also nothing happens when you click the links Killl Stats/Weapons Stats..
Also no Admin section, should be on bottom left but i have nothing there?

Anyone know what might be going on?

ÇÕLÐFÜSÎÓN 04-05-2017 08:31 PM

maybe there is a newer/fixed version of babstats somewhere?

since HTTP_*_VARS were removed since php 5.4.0
http://php.net/manual/en/ini.core.ph...er-long-arrays

Scott 04-05-2017 10:40 PM

Quote:

Originally Posted by ÇÕLÐFÜSÎÓN (Post 386497)
maybe there is a newer/fixed version of babstats somewhere?

since HTTP_*_VARS were removed since php 5.4.0
http://php.net/manual/en/ini.core.ph...er-long-arrays

This is correct. Bab Stats is very old and making it compatible with newer versions of PHP takes a lot of work. Those php verbs haven't been used since like php 5.3. I do not know of another version of BAB stats that works with newer versions of PHP. My host tool does support almost all stats, but nothing for it like bab stats exists quite yet.

You could try replacing the contents of that getenv.php file with something like this:

Code:

        <?php

        if($_POST)  foreach($_POST  as $Key=>$Value) $$Key = $Value;
        if($_GET)    foreach($_GET    as $Key=>$Value) $$Key = $Value;
        if($_COOKIE) foreach($_COOKIE as $Key=>$Value) $$Key = $Value;
        if($_SERVER)  foreach($_SERVER  as $Key=>$Value) $$Key = $Value;
        if($_ENV) foreach($_ENV as $Key=>$Value) $$Key = $Value;

        ?>

But I would recommend you isolate that babstats install so they can't get into anything else on your server.

~BLÃÐE~ 04-06-2017 04:32 AM

Thanks Scott, got rid of the errors.
I think i will give this one a miss, just getting to old without lots of coding to bring it up to date.


All times are GMT -5. The time now is 06:13 AM.

Powered by vBulletin®