Re: Redirecionamento após aprovar tópicos - Página em branco
Ai sim, hein, tá tenso :D
1- Não restaurei backup
2- Verifiquei todos os arquivos de idiomas e estavam com a codificação correta (UTF-8 SEM BOM)
3 - Realizei a ordenação dos arquivos, e segue abaixo o resultado, não sei se é bom ou ruim rsrs
Lembrando que o fórum é uma instalação atualizada para o 3.0.11
Functions_content.php > modificada somente a edição da MOD prime link
Arquivo Functions.php contém algumas linhas, não citadas, sobre a MOD prime link
Removidas linhas:
Original - Linhas 269 a 289:
Código: Selecionar todos
* Wrapper for getdate() which returns the equivalent array for UTC timestamps.
*
* @param int $time Unix timestamp (optional)
*
* @return array Returns an associative array of information related to the timestamp.
* See http://www.php.net/manual/en/function.getdate.php
*/
function phpbb_gmgetdate($time = false)
{
if ($time === false)
{
$time = time();
}
// getdate() interprets timestamps in local time.
// What follows uses the fact that getdate() and
// date('Z') balance each other out.
return getdate($time - date('Z'));
}
/**
Original - Linhas 623 a 650:
Código: Selecionar todos
* Wrapper for version_compare() that allows using uppercase A and B
* for alpha and beta releases.
*
* See http://www.php.net/manual/en/function.version-compare.php
*
* @param string $version1 First version number
* @param string $version2 Second version number
* @param string $operator Comparison operator (optional)
*
* @return mixed Boolean (true, false) if comparison operator is specified.
* Integer (-1, 0, 1) otherwise.
*/
function phpbb_version_compare($version1, $version2, $operator = null)
{
$version1 = strtolower($version1);
$version2 = strtolower($version2);
if (is_null($operator))
{
return version_compare($version1, $version2);
}
else
{
return version_compare($version1, $version2, $operator);
}
}
/**
Original:
Código: Selecionar todos
global $db, $tracking_topics, $user, $config, $auth;
Código: Selecionar todos
global $db, $tracking_topics, $user, $config;
Original Linhas 1906 a 1909: Removidas no atual
Código: Selecionar todos
// Handle update of unapproved topics info.
// Only update for moderators having m_approve permission for the forum.
$sql_update_unapproved = ($auth->acl_get('m_approve', $forum_id)) ? '': 'AND t.topic_approved = 1';
Original:
Código: Selecionar todos
$sql = 'SELECT t.topic_id
FROM ' . TOPICS_TABLE . ' t
WHERE t.forum_id = ' . $forum_id . '
AND t.topic_last_post_time > ' . $mark_time_forum . '
AND t.topic_moved_id = 0 ' .
$sql_update_unapproved;
Código: Selecionar todos
$sql = 'SELECT topic_id
FROM ' . TOPICS_TABLE . '
WHERE forum_id = ' . $forum_id . '
AND topic_last_post_time > ' . $mark_time_forum . '
AND topic_moved_id = 0';
Modificadas Linha 2139: Não tenho no atual os <span class="page-dots">
Origina 2139l:
Código: Selecionar todos
$page_string .= ($start_cnt > 1) ? '<span class="page-dots"> ... </span>' : $seperator;
Código: Selecionar todos
$page_string .= ($start_cnt > 1) ? ' ... ' : $seperator;
Modificada Linha 2150:
Original(2150):
Código: Selecionar todos
$page_string .= ($end_cnt < $total_pages) ? '<span class="page-dots"> ... </span>' : $seperator;
Código: Selecionar todos
$page_string .= ($end_cnt < $total_pages) ? ' ... ' : $seperator;
Original:
Código: Selecionar todos
if ($params === '' || (is_array($params) && empty($params)))
{
// Do not append the ? if the param-list is empty anyway.
$params = false;
}
Linhas que há no meu fórum, mas não existem no original:
Atual Fórum (2671 até 2676)
Código: Selecionar todos
else if (!empty($_SERVER['HTTP_VERSION']))
{
// I cannot remember where I got this from.
// This code path may never be reachable in reality.
$version = $_SERVER['HTTP_VERSION'];
}
Código: Selecionar todos
global $phpbb_root_path;
Código: Selecionar todos
$path = phpbb_realpath($phpbb_root_path);
Código: Selecionar todos
foreach ($backtrace as $number => $trace)
{
Código: Selecionar todos
if ($number == 0)
{
continue;
}
Original: 3417
Código: Selecionar todos
unset($backtrace[0]);
Código: Selecionar todos
$trace['file'] = (empty($trace['file'])) ? '(not given by php)' : htmlspecialchars(phpbb_filter_root_path($trace['file']));
$trace['line'] = (empty($trace['line'])) ? '(not given by php)' : $trace['line'];
Há no meu fórum, mas não no original. Linhas 3514 a 3523:
Código: Selecionar todos
if (empty($trace['file']))
{
$trace['file'] = '';
}
else
{
$trace['file'] = str_replace(array($path, '\\'), array('', '/'), $trace['file']);
$trace['file'] = substr($trace['file'], 1);
}
$args = array();
Código: Selecionar todos
// Only show function arguments for include etc.
// Other parameters may contain sensible information
$argument = '';
if (!empty($trace['args'][0]) && in_array($trace['function'], array('include', 'require', 'include_once', 'require_once')))
{
$argument = htmlspecialchars(phpbb_filter_root_path($trace['args'][0]));
Código: Selecionar todos
unset($trace['args']);
}
else
{
// Path...
if (!empty($trace['args'][0]))
{
$argument = htmlspecialchars($trace['args'][0]);
$argument = str_replace(array($path, '\\'), array('', '/'), $argument);
$argument = substr($argument, 1);
$args[] = "'{$argument}'";
}
}
Original 3437:
Código: Selecionar todos
$output .= '<b>FILE:</b> ' . $trace['file'] . '<br />';
Código: Selecionar todos
$output .= '<b>FILE:</b> ' . htmlspecialchars($trace['file']) . '<br />';
Original 3440:
Código: Selecionar todos
$output .= '<b>CALL:</b> ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function']);
Código: Selecionar todos
$output .= '<b>CALL:</b> ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function']) . '(' . ((sizeof($args)) ? implode(', ', $args) : '') . ')<br />';
Não contém em meu fórum:
original 3441:
Código: Selecionar todos
$output .= '(' . (($argument !== '') ? "'$argument'" : '') . ')<br />';
Original 3503 até 3506:
Código: Selecionar todos
case 'table_prefix':
return '#^[a-zA-Z][a-zA-Z0-9_]*$#';
break;
Original 3739:
Código: Selecionar todos
break;
Há no meu e no original não 3845:
Código: Selecionar todos
case 'A':
Código: Selecionar todos
// AAAA records returned by nslookup on Windows XP/2003 have this format.
// Later Windows versions use the A record format below for AAAA records.
if (stripos($line, "$host AAAA IPv6 address") === 0)
{
return true;
}
// No break
case 'A':
Original Linhas 3820 e 3821:
Código: Selecionar todos
$errfile = phpbb_filter_root_path($errfile);
$msg_text = phpbb_filter_root_path($msg_text);
Código: Selecionar todos
// remove complete path to installation, with the risk of changing backslashes meant to be there
$errfile = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $errfile);
$msg_text = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $msg_text
Original, linhas 4012 até 4034:
Código: Selecionar todos
* Removes absolute path to phpBB root directory from error messages
* and converts backslashes to forward slashes.
*
* @param string $errfile Absolute file path
* (e.g. /var/www/phpbb3/phpBB/includes/functions.php)
* Please note that if $errfile is outside of the phpBB root,
* the root path will not be found and can not be filtered.
* @return string Relative file path
* (e.g. /includes/functions.php)
*/
function phpbb_filter_root_path($errfile)
{
static $root_path;
if (empty($root_path))
{
$root_path = phpbb_realpath(dirname(__FILE__) . '/../');
}
return str_replace(array($root_path, '\\'), array('[ROOT]', '/'), $errfile);
}
/**
Original 4401:
Código: Selecionar todos
global $db, $config, $template, $SID, $_SID, $_EXTRA_URL, $user, $auth, $phpEx, $phpbb_root_path;
Código: Selecionar todos
global $db, $config, $template, $SID, $_SID, $user, $auth, $phpEx, $phpbb_root_path;
Não tenho no meu fórum:
Original 4554:
Código: Selecionar todos
if (!empty($_EXTRA_URL))
Linha 4556:
Código: Selecionar todos
foreach ($_EXTRA_URL as $url_param)
Linha 4634:
Código: Selecionar todos
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0,
Linhas 4694 até 4699:
Código: Selecionar todos
if (!empty($user->data['is_bot']))
{
// Let reverse proxies know we detected a bot.
header('X-PHPBB-IS-BOT: yes');
}