-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathj00005channelmanagement_jomres2jomres.class.php
executable file
·46 lines (40 loc) · 1.53 KB
/
j00005channelmanagement_jomres2jomres.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
<?php
/**
* Jomres CMS Agnostic Plugin
* @author Woollyinwales IT <sales@jomres.net>
* @version Jomres 9
* @package Jomres
* @copyright 2005-2020 Vince Wooll
* Jomres (tm) PHP files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project.
**/
// ################################################################
defined( '_JOMRES_INITCHECK' ) or die( 'Direct Access to this file is not allowed.' );
// ################################################################
class j00005channelmanagement_jomres2jomres
{
function __construct($componentArgs)
{
// Must be in all minicomponents. Minicomponents with templates that can contain editable text should run $this->template_touch() else just return
$MiniComponents = jomres_getSingleton('mcHandler');
if ($MiniComponents->template_touch) {
$this->template_touchable = false;
return;
}
$ePointFilepath = get_showtime('ePointFilepath');
if (file_exists($ePointFilepath . 'language' . JRDS . get_showtime('lang') . '.php'))
require_once($ePointFilepath . 'language' . JRDS . get_showtime('lang') . '.php');
else {
if (file_exists($ePointFilepath . 'language' . JRDS . 'en-GB.php'))
require_once($ePointFilepath . 'language' . JRDS . 'en-GB.php');
}
require_once($ePointFilepath . 'functions.php');
if(!defined('JOMRES2JOMRES_PLUGIN_ROOT')) {
define ('JOMRES2JOMRES_PLUGIN_ROOT' , $ePointFilepath );
}
}
// This must be included in every Event/Mini-component
function getRetVals()
{
return null;
}
}