mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 20:27:40 +02:00
Monstra Library: basic core improvments
This commit is contained in:
@@ -1,32 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Backup plugin
|
||||
*
|
||||
* @package Monstra
|
||||
* @subpackage Plugins
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version 1.0.0
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Backup plugin
|
||||
*
|
||||
* @package Monstra
|
||||
* @subpackage Plugins
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version 1.0.0
|
||||
*
|
||||
*/
|
||||
|
||||
// Register plugin
|
||||
Plugin::register( __FILE__,
|
||||
__('Backup', 'backup'),
|
||||
__('Backup manager', 'backup'),
|
||||
'1.0.0',
|
||||
'Awilum',
|
||||
'http://monstra.org/',
|
||||
null,
|
||||
'box');
|
||||
// Register plugin
|
||||
Plugin::register( __FILE__,
|
||||
__('Backup', 'backup'),
|
||||
__('Backup manager', 'backup'),
|
||||
'1.0.0',
|
||||
'Awilum',
|
||||
'http://monstra.org/',
|
||||
null,
|
||||
'box');
|
||||
|
||||
if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) {
|
||||
|
||||
// Include Backup Admin
|
||||
Plugin::admin('backup', 'box');
|
||||
|
||||
if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) {
|
||||
|
||||
// Include Backup Admin
|
||||
Plugin::admin('backup', 'box');
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user