aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_users.php
diff options
context:
space:
mode:
authorthe_systech <the_systech@users.sourceforge.net>2002-03-18 19:16:44 +0000
committerthe_systech <the_systech@users.sourceforge.net>2002-03-18 19:16:44 +0000
commitc925defded4bd05365cfb47176074196c3027d2d (patch)
tree7c0c5450f1d18c9786addd4427a997dc552cdc4f /phpBB/admin/admin_users.php
parentfab0474d48e7331ddae41575fe6b31f01d1ab713 (diff)
downloadforums-c925defded4bd05365cfb47176074196c3027d2d.tar
forums-c925defded4bd05365cfb47176074196c3027d2d.tar.gz
forums-c925defded4bd05365cfb47176074196c3027d2d.tar.bz2
forums-c925defded4bd05365cfb47176074196c3027d2d.tar.xz
forums-c925defded4bd05365cfb47176074196c3027d2d.zip
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
Diffstat (limited to 'phpBB/admin/admin_users.php')
-rw-r--r--phpBB/admin/admin_users.php78
1 files 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
//