X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-themes.php;h=c35eaacc6025e508aaf81804a19135fea1fb136c;hp=1d7b578dfe84bf5cb15f9ad22d01f45da7693de0;hb=63f159414369b5ea19a8ca75d8cd8033c45d8341;hpb=a454def0bfba8288ffc839d034c710f034cf4728 diff --git a/inc/modules/guest/action-themes.php b/inc/modules/guest/action-themes.php index 1d7b578dfe..c35eaacc60 100644 --- a/inc/modules/guest/action-themes.php +++ b/inc/modules/guest/action-themes.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -37,7 +37,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } elseif (!isBlockModeEnabled()) { // Non-block mode detected return; @@ -57,7 +57,10 @@ if (isAdmin()) { $num_themes = countSumTotalData('Y', 'themes', 'id', 'theme_active', true); } +// Default is no box $OUT = ''; + +// Choose from it if ($num_themes > 1) { // If more than 1 is installed output selection box $OUT = generateThemeSelectionBox();