-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPluginPage.class.php
52 lines (46 loc) · 1.09 KB
/
PluginPage.class.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* LiveStreet CMS
* Copyright © 2013 OOO "ЛС-СОФТ"
*
* ------------------------------------------------------
*
* Official site: www.livestreetcms.com
* Contact e-mail: office@livestreetcms.com
*
* GNU General Public License, version 2:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* ------------------------------------------------------
*
* @link http://www.livestreetcms.com
* @copyright 2013 OOO "ЛС-СОФТ"
* @author Maxim Mzhelskiy <rus.engine@gmail.com>
*
*/
/**
* Запрещаем напрямую через браузер обращение к этому файлу.
*/
if (!class_exists('Plugin')) {
die('Hacking attempt!');
}
class PluginPage extends Plugin
{
protected $aInherits = array(
'module' => array(
'ModuleMedia' => 'PluginPage_ModuleMedia',
)
);
public function Init()
{
$this->Media_AddTargetType('page', array('allow_preview' => false));
}
public function Activate()
{
return true;
}
public function Deactivate()
{
return true;
}
}