aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/SwiftThemeCreator/theme_creator.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SwiftThemeCreator/theme_creator.php')
-rw-r--r--plugins/SwiftThemeCreator/theme_creator.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/SwiftThemeCreator/theme_creator.php b/plugins/SwiftThemeCreator/theme_creator.php
index 6ac86c54f..ab122d5fb 100644
--- a/plugins/SwiftThemeCreator/theme_creator.php
+++ b/plugins/SwiftThemeCreator/theme_creator.php
@@ -131,7 +131,18 @@ if (isset($_POST['submit']) and (!is_adviser()))
array_push($errors,
l10n('Header picture is not found, check its path and name.'));
- // 5 - Width and Height control
+ // 5 - Expected Width and Height limits control
+ if ( !(is_numeric($_POST['picture_width']) and ($_POST['picture_width'] < 12
+ or $_POST['picture_width'] > 4096 )) )
+ array_push($errors,
+ '['.$_POST['picture_width'].'] : '
+ . l10n('incorrect width value [12-4096].'));
+ if ( !(is_numeric($_POST['picture_height']) and ($_POST['picture_height'] < 12
+ or $_POST['picture_height'] > 200 )) )
+ array_push($errors,
+ '['.$_POST['picture_width'].'] : '
+ . l10n('incorrect width value [12-4096].'));
+
// 6 - Generate missing colors values
/*