View Single Post
  #3  
Old 05-13-2014, 12:47 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 22,609
IntoRain is on a distinguished road
Default

What Kyttias said, but remember the page won't disappear, users can still access it if they have the URL (if they have experience with other mysidia websites, they might know). Add this to the changestyle.php file, to make it accessible to only admins

if(!($mysidia->user instanceof Admin)) throw new NoPermissionException("No permission to access this page.");

after this part:

PHP Code:
public function index(){
        
$mysidia Registry::get("mysidia");
//add here
... 
Quote:
Originally Posted by voni View Post
Hi

I have tried to find what file the links are situated in but so far have been unable.
Something about this, most of the site settings (such as links) and information on users/pets/items/... is not in any file at all, they are usually stored in database and then on the php side they are retrieved by the page and formatted to be displayed, that's why you couldn't find them.
__________________


asp.net stole my soul.
Reply With Quote