Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function user_functions()
- {
- if ($_SESSION['class'] == U_ROOT) {
- $action = isset($_GET["action"]) ? $_GET["action"] : '';
- $ad_actions = array('adduser' => 'adduser',
- 'deleteuser' => 'deleteuser',
- 'updateuser' => 'updateuser',
- 'deletepost' => 'deletepost',
- 'updatepost' => 'updatepost',
- 'newpost' => 'newpost'
- );
- if( in_array($action, $ad_actions) AND file_exists( "../quote/admin/{$ad_actions[ $action ]}.php"))
- {
- require_once "../quote/admin/{$ad_actions[ $action ]}.php";
- }
- else
- {
- require_once "../quote/add.php";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment