PHP Classes

File: _server/app/modules/admin/config/perms.inc.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Spooky   _server/app/modules/admin/config/perms.inc.php   Download  
File: _server/app/modules/admin/config/perms.inc.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Spooky
System to manage content extensible using modules
Author: By
Last change:
Date: Yesterday
Size: 527 bytes
 

 

Contents

Class file image Download
<?php
/**
 * @author Pierre-Henry Soria <[email protected]>
 * @copyright (c) 2014, Pierre-Henry Soria. All Rights Reserved.
 * @license See H2O.LICENSE.txt and H2O.COPYRIGHT.txt in the root directory.
 * @link http://hizup.com
 */

namespace H2O;
defined('H2O') or exit('Access denied');

if (!
Admin::auth() && Application::getAction() != 'login')
{
   
redirect('?m=admin&a=login');
}

if (
Admin::auth() && Application::getAction() == 'login')
{
   
redirect('?m=admin&a=index');
}