5 include_once(
'../../../../../mainfile.php');
7 foreach($_GET as $k => $v){
11 $path = pathinfo(str_replace(XOOPS_URL, XOOPS_ROOT_PATH,
$url));
14 $path[
'dirname'] = str_replace(
'/tpls',
'',
$path[
'dirname']);
15 if(is_file(
$path[
'dirname'].
'/lang/'.
$lang.
'.php')){
16 include
$path[
'dirname'].
'/lang/'.
$lang.
'.php';
18 @include
$path[
'dirname'].
'/lang/en.php';
21 define(
'RMCPATH', XOOPS_ROOT_PATH.
'/modules/rmcommon');
22 define(
'RMCURL', XOOPS_URL.
'/modules/rmcommon');
24 include str_replace(XOOPS_URL, XOOPS_ROOT_PATH,
$url);
26 define(
'RMCVERSION', $version);
28 include XOOPS_ROOT_PATH.
'/modules/rmcommon/class/template.php';
31 <script type=
"text/javascript">
32 var exmPopup = window.parent.<?php echo $name; ?>;
33 $(document).ready(
function(){
34 $(
"head").prepend(
'<link rel="stylesheet" type="text/css" href="<?php echo RMTemplate::get()->style_url('editor-popups.css
', 'rmcommon
'); ?>" />');