<?php
/************************************************************************
- * MXChange v0.2.1 Start: 09/27/2003 *
- * =============== Last change: 12/13/2004 *
+ * Mailer v0.2.1-FINAL Start: 09/27/2003 *
+ * =================== Last change: 12/13/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-admin_add.php *
addMenuDescription('admin', __FILE__);
// Check if the admin has entered title and what-php file name...
-if (((!isPostRequestElementSet('title')) || (!isPostRequestElementSet(('menu'))) || (!isPostRequestElementSet(('descr')))) && (isFormSent())) {
+if (((!isPostRequestElementSet('title')) || (!isPostRequestElementSet('menu')) || (!isPostRequestElementSet(('descr')))) && (isFormSent())) {
unsetPostRequestElement('ok');
} // END - if
// Load sub menus :)
foreach ($menus as $key_main => $value_main) {
- $result = SQL_QUERY_ESC("SELECT what, title, sort FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort`",
+ $result = SQL_QUERY_ESC("SELECT `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort`",
array($value_main), __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// Init arrays
}
}
$OUT = " <select class=\"admin_select\" name=\"sort\" size=\"1\">
- <option value=\"0\">".IS_FIRST_MENU."</option>\n";
+ <option value=\"0\">{--IS_FIRST_MENU--}</option>\n";
foreach ($below as $key => $m) {
if (is_array($m)) {
foreach ($m as $key2 => $m2) {
loadTemplate('admin_admin_add', false, $content);
} elseif (!isDemoModeActive()) {
// Insert new menu entry
- if (isPostRequestElementSet(('menu'))) {
+ if (isPostRequestElementSet('menu')) {
// Add sub menu
SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('%s','%s','%s','%s','%s')",
array(