| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Security checkpoint |
| | | if($_SESSION['s']['user']['typ'] != 'admin'){ |
| | |
| | | if(!@is_file($filename)){ |
| | | die("File not found: $filename"); |
| | | } |
| | | include_once($filename); |
| | | include_once $filename; |
| | | |
| | | $items = ($action == 'UPDATE') ? $module['nav'][$nav_id]['items'] : array(); |
| | | |
| | |
| | | if($nav_id != '') { |
| | | //* Data record exists |
| | | if($error == '') { |
| | | include_once('../'.$module_name.'/lib/module.conf.php'); |
| | | include_once '../'.$module_name.'/lib/module.conf.php'; |
| | | $record = $module['nav'][$nav_id]; |
| | | } else { |
| | | //* error |
| | |
| | | |
| | | $app->tpl->setVar($record); |
| | | |
| | | include_once('lib/lang/'.$_SESSION['s']['language'].'_module_nav_edit.lng'); |
| | | include_once 'lib/lang/'.$_SESSION['s']['language'].'_module_nav_edit.lng'; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |