-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (26 loc) · 861 Bytes
/
index.php
File metadata and controls
31 lines (26 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Posts browser
*
* @package BardCanvas
* @subpackage posts
* @author Alejandro Caballero - lava.caballero@gmail.com
* @var template $template
* @var account $account
*/
use hng2_base\account;
use hng2_base\template;
include "../config.php";
include "../includes/bootstrap.inc";
if( ! $account->_exists )
{
$template->page_contents_include = "contents/request_login.inc";
$template->set_page_title($current_module->language->index->title);
include "{$template->abspath}/admin.php";
die();
}
if( $account->state != "enabled" ) throw_fake_401();
if( $account->level < (int) $settings->get("modules:posts.required_level_to_post") ) throw_fake_401();
$template->page_contents_include = "contents/index.inc";
$template->set_page_title($current_module->language->index->title);
include "{$template->abspath}/admin.php";