Author |
Message |
toadeny
Junior WebHelper

Joined: 11 Mar 2003
Posts: 7
|
Posted:
Tue Mar 11, 2003 8:58 am (22 years, 1 month ago) |
  |
Hi there, i have seen on various other sites, statistics that are like
taken from the database and displayed on one off the sites pages. for
example this site has a users and forum stats on the main page as you all may know. i was wondering if someone knew what type of code i need to extract from my ppbb files or even what the code used here is to
get this on my page. also i guess i can redo the code in the index.php and
other phpbb files so that the um stats and who is online sections are
worded differently?
if anyone has any idea on this can they please reply. i thank you for your time.
thanks |
|
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Mar 11, 2003 1:34 pm (22 years, 1 month ago) |
  |
|
    |
 |
toadeny
Junior WebHelper

Joined: 11 Mar 2003
Posts: 7
|
Posted:
Wed Mar 12, 2003 4:58 am (22 years, 1 month ago) |
  |
Once i installed that file and set it up with the correect db values i previewed it on my server. it said 'hacking attempt' i got a stat working, well some from moding the code. check it out.
http://www.chchwang.org.nz/new.php
i am going to add extra stuff to this and intend to put it on the sidebar of that site. i dont know what to do with that code. it says hacking attempt when i load it. any help is welcomed |
Last edited by toadeny on Wed Mar 12, 2003 7:07 am, edited 1 time in total |
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Mar 12, 2003 6:59 am (22 years, 1 month ago) |
  |
I can't access the URL you gave. But it doesn't surprise me you got a hacking attempt error. That security check was introduced in a more recent version of phpBB, and some scripts haven't taken it into account yet, thus producing the "hacking attempt" error.
All you need is to add this line to the top of any script producing that error:
Code: | define('IN_PHPBB', true); |
|
________________________________
 |
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Mar 12, 2003 2:47 pm (22 years, 1 month ago) |
  |
I would appreciate not getting 5 PMs from you in half a day There is an edit function which works until your PM is read .
Anyway, could you please add the code I posted above to your PHP file, on the first line. That should solve the hacking attempt error. |
________________________________
 |
|
    |
 |
toadeny
Junior WebHelper

Joined: 11 Mar 2003
Posts: 7
|
Posted:
Wed Mar 12, 2003 6:41 pm (22 years, 1 month ago) |
  |
sorry for the pms. that code does not work. (it is already in that file you linked!)
it just returns the error
Hacking attempt
I don't know if you could, but it would be nice to have a list of the variables used and how to get them(from this sites main page stats) or even that code. thanks a lot. |
|
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Mar 12, 2003 6:52 pm (22 years, 1 month ago) |
  |
I don't understand what's not working, since http://www.chchwang.org.nz/new.php seems fine. The list of variables, as you put it, is already with the script (http://www.phpbb.com/mods/downloads/uploads/phpbb_fetch_info.txt): newest_userid, total_posts, etc... |
________________________________
 |
|
    |
 |
|
Page generation time: 0.136029 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme