View Single Post
  #8  
Old 20th September 2009, 22:18
Dimaches's Avatar
Dimaches Dimaches is offline
Senior Member
 
Join Date: Sep 2009
Germany
Posts: 21
Default re
I undarstand what do you whant you don't whant the unregisterd users to aces your statistics by this example http://www.yourtraker.com/statistics.php its very easy you must use this kind of php lines in all your pages that you don't whant acces from unwanted users ,such php code is:

PHP Code:
<?php
require "include/bittorrent.php";
dbconn(false);

loggedinorreturn();

if (
get_user_class() < UC_MODERATOR)
stderr("Sorry""Access denied.");

you simply add after loggedinorreturn():


PHP Code:
if (get_user_class() < UC_MODERATOR)
stderr("Sorry""Access denied."); 
that code from up now if someone tries to acces those files by the comand i gave you example it whil say to him Sorry acces denied :)

Easy as that .For more question ask here .And by the way you can give acces to difrent classes by modify <UC_MODERATOR whit <UC_USER etc.

Cheers man.
Reply With Quote