Open: mcp.php
Comments
Find
Tip: This may be a partial find and not the whole line.
Cod: Selectaţi tot
function mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by_sql, &$sort_order_sql, &$total, $forum_id = 0, $topic_id = 0, $where_sql = 'WHERE')
{
global $db, $user, $auth, $template;
$sort_days = request_var('st', 0);
$min_time = ($sort_days) ? time() - ($sort_days * 86400) : 0;
switch ($mode)
{
case 'viewforum':
$type = 'topics';
$default_key = 't';
$default_dir = 'd';
$sql = 'SELECT COUNT(topic_id) AS total
FROM ' . TOPICS_TABLE . "
$where_sql forum_id = $forum_id
AND topic_type NOT IN (" . POST_ANNOUNCE . ', ' . POST_GLOBAL . ")
Tip: This is a partial match of a line for in-line operations.
Cod: Selectaţi tot
. POST_GLOBAL .
Cod: Selectaţi tot
' , ' . POST_NEWS . ' , ' . POST_NEWS_GLOBAL .