XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
urls.php
Go to the documentation of this file.
1 <?php
2 //error_reporting(0);
3 $xoopsOption["nocommon"] = 1;
4 
5 include_once('../../../../../mainfile.php');
6 
7 foreach($_GET as $k => $v){
8  $$k = $v;
9 }
10 
11 $path = pathinfo(str_replace(XOOPS_URL, XOOPS_ROOT_PATH, $url));
12 $base = str_replace($path['filename'].'.'.$path['extension'], '', $url);
13 $base = str_replace('tpls/', '', $base);
14 $path['dirname'] = str_replace('/tpls', '', $path['dirname']);
15 if(is_file($path['dirname'].'/lang/'.$lang.'.php')){
16  include $path['dirname'].'/lang/'.$lang.'.php';
17 } else {
18  @include $path['dirname'].'/lang/en.php';
19 }
20 
21 define('RMCPATH', XOOPS_ROOT_PATH.'/modules/rmcommon');
22 define('RMCURL', XOOPS_URL.'/modules/rmcommon');
23 
24 include str_replace(XOOPS_URL, XOOPS_ROOT_PATH, $url);
25 $rmc_config['theme'] = $theme;
26 define('RMCVERSION', $version);
27 
28 include XOOPS_ROOT_PATH.'/modules/rmcommon/class/template.php';
29 
30 ?>
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'); ?>" />');
35  });
36 </script>
37