From 159b97507d21e67dea0b99cb29cab85aeb0a5b01 Mon Sep 17 00:00:00 2001 From: vdigital Date: Tue, 22 Jul 2008 18:38:56 +0000 Subject: Swift Theme Creator (minor changes): non functional version yet (2). git-svn-id: http://piwigo.org/svn/trunk@2449 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/SwiftThemeCreator/theme_creator.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'plugins/SwiftThemeCreator/theme_creator.php') 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 /* -- cgit v1.2.3