Zeile 11 | Zeile 11 |
---|
/** * Build a select box list of forums the current user has permission to search *
|
/** * Build a select box list of forums the current user has permission to search *
|
* @param int The parent forum ID to start at * @param int The selected forum ID * @param int Add select boxes at this call or not * @param int The current depth
| * @param int $pid The parent forum ID to start at * @param int $selitem The selected forum ID * @param int $addselect Add select boxes at this call or not * @param string $depth The current depth
|
* @return string The forum select boxes */
|
* @return string The forum select boxes */
|
function make_searchable_forums($pid="0", $selitem='', $addselect="1", $depth='')
| function make_searchable_forums($pid=0, $selitem=0, $addselect=1, $depth='')
|
{ global $db, $pforumcache, $permissioncache, $mybb, $selecteddone, $forumlist, $forumlistbits, $theme, $templates, $lang, $forumpass; $pid = (int)$pid;
| { global $db, $pforumcache, $permissioncache, $mybb, $selecteddone, $forumlist, $forumlistbits, $theme, $templates, $lang, $forumpass; $pid = (int)$pid;
|
Zeile 88 | Zeile 88 |
---|
/** * Build a comma separated list of the forums this user cannot search *
|
/** * Build a comma separated list of the forums this user cannot search *
|
* @param int The parent ID to build from * @param int First rotation or not (leave at default) * @return return a CSV list of forums the user cannot search
| * @param int $pid The parent ID to build from * @param int $first First rotation or not (leave at default) * @return string return a CSV list of forums the user cannot search
|
*/
|
*/
|
function get_unsearchable_forums($pid="0", $first=1)
| function get_unsearchable_forums($pid=0, $first=1)
|
{ global $db, $forum_cache, $permissioncache, $mybb, $unsearchableforums, $unsearchable, $templates, $forumpass;
| { global $db, $forum_cache, $permissioncache, $mybb, $unsearchableforums, $unsearchable, $templates, $forumpass;
|
Zeile 173 | Zeile 173 |
---|
/** * Build a array list of the forums this user cannot search due to password protection *
|
/** * Build a array list of the forums this user cannot search due to password protection *
|
* @param int the fids to check (leave null to check all forums) * @return return a array list of password protected forums the user cannot search
| * @param array $fids the fids to check (leave blank to check all forums) * @return array return a array list of password protected forums the user cannot search
|
*/ function get_password_protected_forums($fids=array()) {
| */ function get_password_protected_forums($fids=array()) {
|
Zeile 224 | Zeile 224 |
---|
/** * Clean search keywords and make them safe for querying *
|
/** * Clean search keywords and make them safe for querying *
|
* @param string The keywords to be cleaned
| * @param string $keywords The keywords to be cleaned
|
* @return string The cleaned keywords */ function clean_keywords($keywords)
| * @return string The cleaned keywords */ function clean_keywords($keywords)
|
Zeile 254 | Zeile 254 |
---|
/** * Clean search keywords for fulltext searching, making them safe for querying *
|
/** * Clean search keywords for fulltext searching, making them safe for querying *
|
* @param string The keywords to be cleaned * @return string The cleaned keywords
| * @param string $keywords The keywords to be cleaned * @return string|bool The cleaned keywords or false on failure
|
*/ function clean_keywords_ft($keywords) {
| */ function clean_keywords_ft($keywords) {
|
Zeile 408 | Zeile 408 |
---|
/** * Perform a thread and post search under MySQL or MySQLi *
|
/** * Perform a thread and post search under MySQL or MySQLi *
|
* @param array Array of search data
| * @param array $search Array of search data
|
* @return array Array of search data with results mixed in */ function privatemessage_perform_search_mysql($search)
| * @return array Array of search data with results mixed in */ function privatemessage_perform_search_mysql($search)
|
Zeile 719 | Zeile 719 |
---|
/** * Perform a help document search under MySQL or MySQLi *
|
/** * Perform a help document search under MySQL or MySQLi *
|
* @param array Array of search data
| * @param array $search Array of search data
|
* @return array Array of search data with results mixed in */ function helpdocument_perform_search_mysql($search)
| * @return array Array of search data with results mixed in */ function helpdocument_perform_search_mysql($search)
|
Zeile 946 | Zeile 946 |
---|
/** * Perform a thread and post search under MySQL or MySQLi *
|
/** * Perform a thread and post search under MySQL or MySQLi *
|
* @param array Array of search data
| * @param array $search Array of search data
|
* @return array Array of search data with results mixed in */ function perform_search_mysql($search)
| * @return array Array of search data with results mixed in */ function perform_search_mysql($search)
|
Zeile 1420 | Zeile 1420 |
---|
/** * Perform a thread and post search under MySQL or MySQLi using boolean fulltext capabilities *
|
/** * Perform a thread and post search under MySQL or MySQLi using boolean fulltext capabilities *
|
* @param array Array of search data
| * @param array $search Array of search data
|
* @return array Array of search data with results mixed in */ function perform_search_mysql_ft($search)
| * @return array Array of search data with results mixed in */ function perform_search_mysql_ft($search)
|