[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" ); 4 5 /** 6 * \ingroup Action 7 * 8 * Extends the AdminAction class in a way that any class subclassing this one, 9 * will check if the user has SITE_ADMIN privileges to be here. The implementation is 10 * quite simple in the sense that if the UserInfo object that was trying to access 11 * this action doesn't have enough privileges, the action will show a really 12 * ugly message and all processing will stop. 13 * 14 * Hopefully future versions will improve this area and show a friendlier message. 15 */ 16 class SiteAdminAction extends AdminAction 17 { 18 19 function SiteAdminAction( $actionInfo, $request ) 20 { 21 $this->AdminAction( $actionInfo, $request ); 22 23 // we should check if the user has permissions to be here... 24 if( !$this->_userInfo->isSiteAdmin()) { 25 print("Sorry, you don't have enough privileges to access this area." ); 26 die(); 27 } 28 } 29 } 30 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |