本文整理汇总了PHP中double_udata函数的典型用法代码示例。如果您正苦于以下问题:PHP double_udata函数的具体用法?PHP double_udata怎么用?PHP double_udata使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了double_udata函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if (strxlen($query['comment']) > $config['maxaboutlength']) {
$error[] = $lang->phrase('admin_member_about_too_many_chars');
}
if (check_mail($query['email']) == false) {
$error[] = $lang->phrase('admin_member_no_valid_mail');
}
if (strxlen($query['name']) > $config['maxnamelength']) {
$error[] = $lang->phrase('admin_member_name_too_many_chars');
}
if (strxlen($query['name']) < $config['minnamelength']) {
$error[] = $lang->phrase('admin_member_too_less_chars');
}
if (strlen($query['email']) > 200) {
$error[] = $lang->phrase('admin_member_email_too_many_chars');
}
if ($user['mail'] != $_POST['email'] && double_udata('mail', $_POST['email']) == false) {
$error[] = $lang->phrase('email_already_used');
}
if (strxlen($query['signature']) > $config['maxsiglength']) {
$error[] = $lang->phrase('admin_member_signature_too_many_chars');
}
if (strlen($query['hp']) > 255) {
$error[] = $lang->phrase('admin_member_hp_too_many_chars');
}
if (!check_hp($query['hp'])) {
$query['hp'] = '';
}
if (strlen($query['location']) > 50) {
$error[] = $lang->phrase('admin_member_location_too_many_chars');
}
if ($query['gender'] != 'm' && $query['gender'] != 'w' && $query['gender'] != '') {
示例2: elseif
}
echo $request;
} elseif ($action == 'markforumread') {
$board = $gpc->get('id', int);
$my->p = $slog->Permissions($board);
if (!is_id($board) || $my->p['forum'] == 0) {
echo '0';
}
$slog->setForumRead($board);
$slog->updatelogged();
echo '1';
} elseif ($action == 'doubleudata') {
if (strlen($_GET['name']) > 3) {
$request = 1;
if (!$my->vlogin) {
if (double_udata('name', $_GET['name']) == false) {
$request = 5;
} else {
$request = 6;
}
}
echo $request;
} else {
echo 8;
}
} elseif ($action == 'searchmember') {
$request = 1;
if (strlen($_GET['name']) > 2) {
$result = $db->query('SELECT name FROM ' . $db->pre . 'user WHERE name LIKE "%' . $_GET['name'] . '%" ORDER BY name ASC LIMIT 50');
$user = array();
while ($row = $db->fetch_assoc($result)) {
示例3: array
$_POST['hp'] = "http://{$_POST['hp']}";
}
$error = array();
if (check_mail($_POST['email']) == false) {
$error[] = $lang->phrase('illegal_mail');
}
if ($my->mail != $_POST['email'] && double_udata('mail', $_POST['email']) == false) {
$error[] = $lang->phrase('email_already_used');
}
if ($config['changename_allowed'] == 1 && strxlen($_POST['name']) > $config['maxnamelength']) {
$error[] = $lang->phrase('name_too_long');
}
if ($config['changename_allowed'] == 1 && strxlen($_POST['name']) < $config['minnamelength']) {
$error[] = $lang->phrase('name_too_short');
}
if ($config['changename_allowed'] == 1 && strtolower($my->name) != strtolower($_POST['name']) && double_udata('name', $_POST['name']) == false) {
$error[] = $lang->phrase('username_registered');
}
if (strlen($_POST['email']) > 200) {
$error[] = $lang->phrase('email_too_long');
}
if (strlen($_POST['hp']) > 255) {
$error[] = $lang->phrase('editprofile_homepage_too_long');
}
if (!check_hp($_POST['hp'])) {
$_POST['hp'] = '';
}
if (strlen($_POST['location']) > 50) {
$error[] = $lang->phrase('editprofile_location_too_long');
}
if ($_POST['gender'] != 'm' && $_POST['gender'] != 'w' && $_POST['gender'] != '') {
示例4:
$error[] = $lang->phrase('veriword_mistake');
}
} else {
$error[] = $lang->phrase('veriword_failed');
}
}
if (flood_protect() == false) {
$error[] = $lang->phrase('flood_control');
}
if ($config['acceptrules'] == 1 && $_POST['temp'] != 1) {
$error[] = $lang->phrase('you_had_to_accept_agb');
}
if (double_udata('name', $_POST['name']) == false) {
$error[] = $lang->phrase('username_registered');
}
if (double_udata('mail', $_POST['email']) == false) {
$error[] = $lang->phrase('email_already_used');
}
if (strxlen($_POST['name']) > $config['maxnamelength']) {
$error[] = $lang->phrase('name_too_long');
}
if (strxlen($_POST['name']) < $config['minnamelength']) {
$error[] = $lang->phrase('name_too_short');
}
if (strxlen($_POST['pw']) > $config['maxpwlength']) {
$error[] = $lang->phrase('pw_too_long');
}
if (strxlen($_POST['pw']) < $config['minpwlength']) {
$error[] = $lang->phrase('pw_too_short');
}
if (strxlen($_POST['email']) > 200) {
示例5: editprofile_customfields
$maxy = $year - 6;
$miny = $year - 100;
$customfields = editprofile_customfields(1, $my->id);
($code = $plugins->load('editprofile_profile_prepared')) ? eval($code) : null;
echo $tpl->parse("editprofile/profile");
($code = $plugins->load('editprofile_profile_end')) ? eval($code) : null;
} elseif ($_GET['action'] == "profile2") {
$_POST['hp'] = trim($_POST['hp']);
if (strtolower(substr($_POST['hp'], 0, 4)) == 'www.') {
$_POST['hp'] = "http://{$_POST['hp']}";
}
$error = array();
if (check_mail($_POST['email']) == false) {
$error[] = $lang->phrase('illegal_mail');
}
if ($my->mail != $_POST['email'] && double_udata('mail', $_POST['email']) == false) {
$error[] = $lang->phrase('email_already_used');
}
if (strxlen($_POST['name']) > $config['maxnamelength'] && $config['changename_allowed'] == 1) {
$error[] = $lang->phrase('name_too_long');
}
if (strxlen($_POST['name']) < $config['minnamelength'] && $config['changename_allowed'] == 1) {
$error[] = $lang->phrase('name_too_short');
}
if (strxlen($_POST['email']) > 200) {
$error[] = $lang->phrase('email_too_long');
}
if (strxlen($_POST['hp']) > 254) {
$error[] = $lang->phrase('editprofile_homepage_too_long');
}
if (!check_hp($_POST['hp'])) {