diff --git a/upload/modules/wrapper/add.php b/upload/modules/wrapper/add.php index f3e75785..a29dfa6d 100644 --- a/upload/modules/wrapper/add.php +++ b/upload/modules/wrapper/add.php @@ -1,25 +1,32 @@ . + * + * @author Website Baker Project, LEPTON Project, Black Cat Development + * @copyright 2004-2010, Website Baker Project + * @copyright 2011-2012, LEPTON Project + * @copyright 2013, Black Cat Development + * @link http://blackcat-cms.org + * @license http://www.gnu.org/licenses/gpl.html + * @category CAT_Module + * @package wrapper * */ -// include class.secure.php to protect this file and the whole CMS! -if (defined('CAT_PATH')) { - include(CAT_PATH.'/framework/class.secure.php'); +if (defined('CAT_PATH')) { + include(CAT_PATH.'/framework/class.secure.php'); } else { $root = "../"; $level = 1; @@ -27,13 +34,12 @@ $root .= "../"; $level += 1; } - if (file_exists($root.'/framework/class.secure.php')) { - include($root.'/framework/class.secure.php'); + if (file_exists($root.'/framework/class.secure.php')) { + include($root.'/framework/class.secure.php'); } else { trigger_error(sprintf("[ %s ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR); } } -// end include class.secure.php global $database, $page_id, $section_id; diff --git a/upload/modules/wrapper/delete.php b/upload/modules/wrapper/delete.php index 2b3634e0..a66080d4 100644 --- a/upload/modules/wrapper/delete.php +++ b/upload/modules/wrapper/delete.php @@ -1,25 +1,32 @@ . + * + * @author Website Baker Project, LEPTON Project, Black Cat Development + * @copyright 2004-2010, Website Baker Project + * @copyright 2011-2012, LEPTON Project + * @copyright 2013, Black Cat Development + * @link http://blackcat-cms.org + * @license http://www.gnu.org/licenses/gpl.html + * @category CAT_Module + * @package wrapper * */ -// include class.secure.php to protect this file and the whole CMS! -if (defined('CAT_PATH')) { - include(CAT_PATH.'/framework/class.secure.php'); +if (defined('CAT_PATH')) { + include(CAT_PATH.'/framework/class.secure.php'); } else { $root = "../"; $level = 1; @@ -27,13 +34,12 @@ $root .= "../"; $level += 1; } - if (file_exists($root.'/framework/class.secure.php')) { - include($root.'/framework/class.secure.php'); + if (file_exists($root.'/framework/class.secure.php')) { + include($root.'/framework/class.secure.php'); } else { trigger_error(sprintf("[ %s ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR); } } -// end include class.secure.php // Delete page from mod_wrapper $database->query("DELETE FROM ".CAT_TABLE_PREFIX."mod_wrapper WHERE section_id = '$section_id'"); diff --git a/upload/modules/wrapper/htt/iframe.lte b/upload/modules/wrapper/htt/iframe.tpl similarity index 100% rename from upload/modules/wrapper/htt/iframe.lte rename to upload/modules/wrapper/htt/iframe.tpl diff --git a/upload/modules/wrapper/htt/modify.lte b/upload/modules/wrapper/htt/modify.tpl similarity index 98% rename from upload/modules/wrapper/htt/modify.lte rename to upload/modules/wrapper/htt/modify.tpl index 091c6bcc..b88ac16e 100644 --- a/upload/modules/wrapper/htt/modify.lte +++ b/upload/modules/wrapper/htt/modify.tpl @@ -1,4 +1,4 @@ -