[Debug] If the ENVIRONMENT variable is set to development show debug options
这个提交包含在:
父节点
627f1d8013
当前提交
2396aec9d6
共有 2 个文件被更改,包括 5 次插入 和 1 次删除
|
|
@ -7,6 +7,9 @@ class Debug extends CI_Controller {
|
|||
|
||||
$this->load->model('user_model');
|
||||
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
||||
if(ENVIRONMENT != "development") {
|
||||
show_error("You must have global enviroment set to development", '403', $heading = 'An Error Was Encountered');
|
||||
}
|
||||
}
|
||||
|
||||
/* User Facing Links to Backup URLs */
|
||||
|
|
|
|||
|
|
@ -146,10 +146,11 @@
|
|||
|
||||
<a class="dropdown-item" href="<?php echo site_url('update');?>" title="Update Country Files"><i class="fas fa-sync"></i> Update Country Files</a>
|
||||
|
||||
<?php if(ENVIRONMENT == "development") { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
|
||||
<a class="dropdown-item" href="<?php echo site_url('debug');?>" title="Debug Information"><i class="fas fa-tools"></i> Debug Information</a>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
|
|
|||
正在加载…
在新工单中引用