XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
xoopseditor.inc.php
Go to the documentation of this file.
1 <?php
20 defined('XOOPS_ROOT_PATH') or die('Restricted access');
21 
22 if (! function_exists('xoopseditor_get_rootpath')) {
23  function xoopseditor_get_rootpath()
24  {
25  return XOOPS_ROOT_PATH . '/class/xoopseditor';
26  }
27 }
28 if (defined('XOOPS_ROOT_PATH')) {
29  return true;
30 }
31 
32 $mainfile = dirname(dirname(dirname(__FILE__))) . '/mainfile.php';
33 if (DIRECTORY_SEPARATOR != '/') {
34  $mainfile = str_replace(DIRECTORY_SEPARATOR, '/', $mainfile);
35 }
36 include $mainfile;
37 return defined('XOOPS_ROOT_PATH');
38 
39 ?>