uawdijnntqw1x1x1
IP : 216.73.217.142
Hostname : localhost.localdomain
Kernel : Linux localhost.localdomain 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
forum-e-syn
/
FUDforum
/
scripts
/
..
/
sql
/
..
/
src
/
autocomplete.php.t
/
/
<?php /** * copyright : (C) 2001-2018 Advanced Internet Designs Inc. * email : forum@prohost.org * $Id: autocomplete.php.t 6146 2018-04-09 18:45:58Z naudefj $ * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. **/ /*{PRE_HTML_PHP}*/ /* Validate request. */ if ( !isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') { std_error('access'); } /*{POST_HTML_PHP}*/ /* Return DB values for AJAX autocomplete of fields. */ if (!empty($_GET['lookup']) && !empty($_GET['term'])) { /* Only for logged in users. */ if (!_uid) { std_error('access'); } $lookup = ($_GET['lookup'] == 'email') ? 'email' : 'alias'; $term = _esc($_GET['term'] .'%'); $c = uq(q_limit('SELECT '. $lookup .' FROM {SQL_TABLE_PREFIX}users WHERE '. $lookup .' LIKE '. $term .' AND '. q_bitand('users_opt', 1073741824) .'= 0', 10)); $rows = array(); while ($r = db_rowarr($c)) { $rows[] = array('value' => $r[0]); } echo json_encode($rows); exit; } /* Check if supplied login/ e-mail address is in-use. */ if (!empty($_GET['check']) && !empty($_GET['term'])) { $lookup = ($_GET['check'] == 'email') ? 'email' : 'login'; $term = $_GET['term']; if ($lookup == 'login' && strlen($term) < 2) { echo 0; // UserID too short. exit; } if ($lookup == 'email' && !filter_var($term, FILTER_VALIDATE_EMAIL)) { echo 0; // Invalid e-mail address. exit; } if (q_singleval('SELECT '. $lookup .' FROM {SQL_TABLE_PREFIX}users WHERE '. $lookup .' = '. _esc($term))) { echo 0; // Not available - already taken. } else { echo 1; // Available for use. } exit; }
/var/www/forum-e-syn/FUDforum/scripts/../sql/../src/autocomplete.php.t