From c925defded4bd05365cfb47176074196c3027d2d Mon Sep 17 00:00:00 2001 From: the_systech Date: Mon, 18 Mar 2002 19:16:44 +0000 Subject: [PATCH] Oops typo... Plus admin_users needed functions_validate as well, which did away with the need to have the extra fields validation function here in admin_users... git-svn-id: file:///svn/phpbb/trunk@2323 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_users.php | 78 +------------------------------------ 1 file changed, 2 insertions(+), 76 deletions(-) diff --git a/phpBB/admin/admin_users.php b/phpBB/admin/admin_users.php index 2875465317..e7eda09bcb 100644 --- a/phpBB/admin/admin_users.php +++ b/phpBB/admin/admin_users.php @@ -38,7 +38,8 @@ $phpbb_root_dir = "./../"; require('pagestart.inc'); include($phpbb_root_dir . 'includes/bbcode.'.$phpEx); include($phpbb_root_dir . 'includes/post.'.$phpEx); -include($phpbb_root_dir . 'includes/funtions_selects.'.$phpEx); +include($phpbb_root_dir . 'includes/functions_selects.'.$phpEx); +include($phpbb_root_dir . 'includes/functions_validate.'.$phpEx); // // // @@ -51,81 +52,6 @@ else $mode = ""; } -// --------- -// Functions -// -function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$location, &$occupation, &$interests, &$sig) -{ - // ICQ number has to be only numbers. - if (!preg_match("/^[0-9]+$/", $icq)) - { - $icq = ""; - } - - // AIM address has to have length >= 2. - if (strlen($aim) < 2) - { - $aim = ""; - } - - // MSNM address has to have length >= 2. - if (strlen($msnm) < 2) - { - $msnm = ""; - } - - // YIM address has to have length >= 2. - if (strlen($yim) < 2) - { - $yim = ""; - } - - // website has to start with http://, followed by something with length at least 3 that - // contains at least one dot. - if($website != "") - { - if( !preg_match("#^http:\/\/#i", $website) ) - { - $website = "http://" . $website; - } - - if ( !preg_match("#^http\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i", $website) ) - { - $website = ""; - } - } - - // location has to have length >= 2. - if (strlen($location) < 2) - { - $location = ""; - } - - // occupation has to have length >= 2. - if (strlen($occupation) < 2) - { - $occupation = ""; - } - - // interests has to have length >= 2. - if (strlen($interests) < 2) - { - $interests = ""; - } - - // sig has to have length >= 2. - if (strlen($sig) < 2) - { - $sig = ""; - } - - return; -} -// -// End Functions -// - - // // Begin program //