Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     if (!is_sadmin()) {
         show_error('Access Denied. You are not an admin. Get out of here.');
     }
 }
Exemplo n.º 2
0
 /**
  * Constructor method
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // Load the required classes
     $this->load->model('group_m');
     $this->lang->load('groups');
     is_sadmin() or access_denied();
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     if (!is_sadmin()) {
         show_error('Access Denied. You are not an admin. Get out of here.');
     }
     $this->cache_path = APPPATH . 'cache/' . SITE_REF . '/';
     $this->_log_folder = APPPATH . 'logs/';
     $this->_cron_log_folder = APPPATH . 'cache/' . SITE_REF . '/cron_log/';
     $this->config->load('system');
     $this->lang->load('system');
     $this->lang->load('cronlogs');
     $this->lang->load('logs');
     $this->load->helper('directory');
     $this->load->helper('file');
     $this->template->append_css('module::admin.css');
 }
Exemplo n.º 4
0
								<li><?php 
    echo anchor('admin/system/phpinfo', __('system:phpinfo'));
    ?>
 </li>
								<li class="divider"></li>
								<li><?php 
    echo anchor('admin/modules', __('system:modules'));
    ?>
 </li>
							 </ul>
						</li>
						<?php 
}
?>
						<?php 
if (is_sadmin() or isset($this->permissions['users'])) {
    ?>
						<li>
							<?php 
    echo anchor('admin/users', __('global:users'));
    ?>
						</li>

						<?php 
}
?>

						   <li><button class="btn btn-info" onclick="TogetherJS(this); return false;">Collaborate</button>
						   </li>
						   <br>
						   <li>
Exemplo n.º 5
0
               
            <?php 
foreach ($users as $user) {
    ?>
                    <tr>
                            <td><?php 
    echo anchor('admin/users/edit/' . $user['id'], $user['first_name'] . ' ' . $user['last_name']);
    ?>
</td>
                            <td><?php 
    echo mailto($user['email']);
    ?>
</td>

                            <?php 
    if (is_sadmin()) {
        ?>
                            <td><?php 
        echo anchor('admin/groups/edit/' . $user['group_id'], $user['group_description']);
        ?>
</td>
                            <?php 
    } else {
        ?>
                            <td><?php 
        echo $user['group_description'];
        ?>
</td>
                            <?php 
    }
    ?>