| 206 |
// block to stop renaming of 'mainmenu' menutype |
// block to stop renaming of 'mainmenu' menutype |
| 207 |
if ( $old_menutype == 'mainmenu' ) { |
if ( $old_menutype == 'mainmenu' ) { |
| 208 |
if ( $menutype <> 'mainmenu' ) { |
if ( $menutype <> 'mainmenu' ) { |
| 209 |
echo "<script> alert(".T_('You cannot rename the "mainmenu" Menu as this will disrupt the proper operation of Mambo')."); window.history.go(-1); </script>\n"; |
echo "<script> alert('".T_('You cannot rename the "mainmenu" Menu as this will disrupt the proper operation of Mambo')."'); window.history.go(-1); </script>\n"; |
| 210 |
exit; |
exit; |
| 211 |
} |
} |
| 212 |
} |
} |
| 222 |
$pparser = new mosParameters($menu); |
$pparser = new mosParameters($menu); |
| 223 |
$params = $pparser->getParams(); |
$params = $pparser->getParams(); |
| 224 |
if ( $params->menutype == $menutype ) { |
if ( $params->menutype == $menutype ) { |
| 225 |
echo "<script> alert(".T_('A menu already exists with that name - you must enter a unique Menu Name')."); window.history.go(-1); </script>\n"; |
echo "<script> alert('".T_('A menu already exists with that name - you must enter a unique Menu Name')."'); window.history.go(-1); </script>\n"; |
| 226 |
exit; |
exit; |
| 227 |
} |
} |
| 228 |
} |
} |
| 325 |
global $database; |
global $database; |
| 326 |
|
|
| 327 |
if ( $type == 'mainmenu' ) { |
if ( $type == 'mainmenu' ) { |
| 328 |
echo "<script> alert(".T_('You cannot delete the "mainmenu" menu as it is a core menu')."); window.history.go(-1); </script>\n"; |
echo "<script> alert('".T_('You cannot delete the "mainmenu" menu as it is a core menu')."'); window.history.go(-1); </script>\n"; |
| 329 |
exit(); |
exit(); |
| 330 |
} |
} |
| 331 |
|
|
| 375 |
global $database; |
global $database; |
| 376 |
|
|
| 377 |
if ( $type == 'mainmenu' ) { |
if ( $type == 'mainmenu' ) { |
| 378 |
echo "<script> alert(".T_('You cannot delete the "mainmenu" menu as it is a core menu')."); window.history.go(-1); </script>\n"; |
echo "<script> alert('".T_('You cannot delete the "mainmenu" menu as it is a core menu')."'); window.history.go(-1); </script>\n"; |
| 379 |
exit(); |
exit(); |
| 380 |
} |
} |
| 381 |
|
|
| 466 |
$pparser = new mosParameters($menu); |
$pparser = new mosParameters($menu); |
| 467 |
$params = $pparser->getParams(); |
$params = $pparser->getParams(); |
| 468 |
if ( $params->menutype == $menu_name ) { |
if ( $params->menutype == $menu_name ) { |
| 469 |
echo "<script> alert(".T_('A menu with that name already exists - you must enter a unique Menu Name')."); window.history.go(-1); </script>\n"; |
echo "<script> alert('".T_('A menu with that name already exists - you must enter a unique Menu Name')."'); window.history.go(-1); </script>\n"; |
| 470 |
exit; |
exit; |
| 471 |
} |
} |
| 472 |
} |
} |