diff options
author | vdigital <vdigital@piwigo.org> | 2008-07-22 18:38:56 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2008-07-22 18:38:56 +0000 |
commit | 159b97507d21e67dea0b99cb29cab85aeb0a5b01 (patch) | |
tree | 415470c6e41bdb8054aeca8d52902cde5a36e2fc /plugins/SwiftThemeCreator | |
parent | 4322abb39fe8672ba0179e9a460a73ae65fdfffc (diff) |
Swift Theme Creator (minor changes): non functional version yet (2).
git-svn-id: http://piwigo.org/svn/trunk@2449 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | plugins/SwiftThemeCreator/theme_creator.php | 13 |
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 /* |