Skip to content
Browse files

Bugs fixed:

* Wrong charset encoding in some pages
* Fixed an ambiguous field in digest sql
* Fixed wrong Flags query in profile


git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@150 e0e46c49-be69-4f5a-ad62-21024a331aea
  • Loading branch information...
1 parent 1bb79ff commit 8fc4521fa4b585a9b2f8cc8bd74e39285ab610b6 @MightyGorgon committed Dec 12, 2009
View
1 blocks/ads_tla.php
@@ -84,6 +84,7 @@ function tla_ads($xml_filename, $inventory_key, $box_type)
}
$ads_content .= empty($box_type) ? "\n</ul>\n" : '';
}
+ $ads_content = empty($box_type) ? $ads_content : ('<div class="gensmall" style="text-align: center;">' . $ads_content . '</div>');
return $ads_content;
}
View
1 cms_ajax.php
@@ -36,6 +36,7 @@
define('AJAX_HEADERS', true);
$useragent = (isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT'));
$encoding_charset = (strpos($useragent, 'MSIE') ? $lang['ENCODING'] : $lang['ENCODING_ALT']);
+$encoding_charset = !empty($encoding_charset) ? $encoding_charset : 'UTF-8';
// Send AJAX headers - this is to prevent browsers from caching possible error pages
AJAX_headers();
View
2 digests.php
@@ -219,7 +219,7 @@
$sql = 'SELECT f.forum_id, f.forum_name, c.forum_order AS cat_order, f.forum_order
FROM ' . FORUMS_TABLE . ' f, ' . FORUMS_TABLE . ' c
WHERE f.parent_id = c.forum_id
- AND auth_read IN (' . AUTH_ALL. ',' . AUTH_REG .')
+ AND f.auth_read IN (' . AUTH_ALL. ',' . AUTH_REG .')
ORDER BY c.forum_order, f.forum_order';
$result = $db->sql_query($sql);
View
2 docs/faqs.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta name="author" content="Icy Phoenix Team" />
View
2 docs/ip_coding_standards.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta name="author" content="Icy Phoenix Team" />
View
2 docs/readme_english.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta name="author" content="Icy Phoenix Team" />
View
2 download.php
@@ -414,7 +414,7 @@ function send_file_to_browser($attachment, $upload_dir)
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $redirect_path);
- echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $redirect_path . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $redirect_path . '">HERE</a> to be redirected</div></body></html>';
+ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="refresh" content="0; url=' . $redirect_path . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $redirect_path . '">HERE</a> to be redirected</div></body></html>';
exit;
}
View
2 includes/ajax_shoutbox_inc.php
@@ -56,7 +56,7 @@
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
- header('Content-type: text/xml; charset=utf-8');
+ header('Content-type: text/xml; charset=UTF-8');
// Define the XML Template
$template->set_filenames(array('xml' => 'ajax_shoutbox_xml.tpl'));
View
9 includes/digest_emailer.php
@@ -240,14 +240,15 @@ function send($is_html)
$this->subject = (($this->subject != '') ? $this->subject : 'No Subject');
}
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
if (preg_match('#^(Charset:(.*?))$#m', $this->msg, $match))
{
- $this->encoding = (trim($match[2]) != '') ? trim($match[2]) : trim($lang['ENCODING']);
+ $this->encoding = (trim($match[2]) != '') ? trim($match[2]) : trim($encoding_charset);
$drop_header .= '[\r\n]*?' . preg_quote($match[1], '#');
}
else
{
- $this->encoding = trim($lang['ENCODING']);
+ $this->encoding = trim($encoding_charset);
}
if ($drop_header != '')
@@ -338,9 +339,11 @@ function encode($str)
function attachFile($filename, $mimetype = "application/octet-stream", $szFromAddress, $szFilenameToDisplay)
{
global $lang;
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
+
$mime_boundary = "--==================_846811060==_";
- $this->msg = '--' . $mime_boundary . "\nContent-Type: text/plain;\n\tcharset=\"" . $lang['ENCODING'] . "\"\n\n" . $this->msg;
+ $this->msg = '--' . $mime_boundary . "\nContent-Type: text/plain;\n\tcharset=\"" . $encoding_charset . "\"\n\n" . $this->msg;
if ($mime_filename)
{
View
8 includes/emailer.php
@@ -245,14 +245,15 @@ function send()
$this->subject = (($this->subject != '') ? $this->subject : 'No Subject');
}
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
if (preg_match('#^(Charset:(.*?))$#m', $this->msg, $match))
{
- $this->encoding = (trim($match[2]) != '') ? trim($match[2]) : trim($lang['ENCODING']);
+ $this->encoding = (trim($match[2]) != '') ? trim($match[2]) : trim($encoding_charset);
$drop_header .= '[\r\n]*?' . preg_quote($match[1], '#');
}
else
{
- $this->encoding = trim($lang['ENCODING']);
+ $this->encoding = trim($encoding_charset);
}
if ($drop_header != '')
@@ -346,9 +347,10 @@ function encode($str)
function attachFile($filename, $mimetype = "application/octet-stream", $szFromAddress, $szFilenameToDisplay)
{
global $lang;
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
$mime_boundary = "--==================_846811060==_";
- $this->msg = '--' . $mime_boundary . "\nContent-Type: text/html;\n\tcharset=\"" . $lang['ENCODING'] . "\"\n\n" . $this->msg;
+ $this->msg = '--' . $mime_boundary . "\nContent-Type: text/html;\n\tcharset=\"" . $encoding_charset . "\"\n\n" . $this->msg;
if ($mime_filename)
{
View
13 includes/functions.php
@@ -1299,10 +1299,11 @@ function redirect($url, $return = false)
{
header('Refresh: 0; URL=' . $url);
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml" dir="' . $lang['DIRECTION'] . '" lang="' . $lang['HEADER_LANG'] . '" xml:lang="' . $lang['HEADER_XML_LANG'] . '">';
echo '<head>';
- echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />';
+ echo '<meta http-equiv="content-type" content="text/html; charset=' . $encoding_charset . '" />';
echo '<meta http-equiv="refresh" content="0; url=' . str_replace('&', '&amp;', $url) . '" />';
echo '<title>' . $lang['Redirect'] . '</title>';
echo '</head>';
@@ -3101,6 +3102,7 @@ function page_header($title = '', $parse_template = false)
$phpbb_meta .= '<meta name="description" content="' . str_replace('"', '', $meta_content['description']) . '" />' . "\n";
$phpbb_meta .= '<meta name="keywords" content="' . str_replace('"', '', $meta_content['keywords']) . '" />' . "\n";
$phpbb_meta .= '<meta name="category" content="general" />' . "\n";
+ $phpbb_meta .= '<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />' . "\n";
if (defined('IN_ADMIN') || defined('IN_CMS') || defined('IN_SEARCH') || defined('IN_POSTING'))
{
@@ -4059,8 +4061,8 @@ function page_header($title = '', $parse_template = false)
if (!defined('AJAX_HEADERS'))
{
// application/xhtml+xml not used because of IE
- $header_lang = !empty($lang['HEADER_LANG']) ? $lang['HEADER_LANG'] : 'utf8';
- header('Content-type: text/html; charset=' . $header_lang);
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
+ header('Content-type: text/html; charset=' . $encoding_charset);
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');
@@ -4546,10 +4548,13 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
*/
function html_message($msg_title, $msg_text, $return_url)
{
+ global $lang;
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
+
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">';
echo '<head>';
- echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />';
+ echo '<meta http-equiv="content-type" content="text/html; charset=' . $encoding_charset . '" />';
echo '<title>' . $msg_title . '</title>';
echo '<style type="text/css">';
echo "\n" . '/* <![CDATA[ */' . "\n";
View
31 includes/functions_cms_admin.php
@@ -252,15 +252,16 @@ function count_blocks_in_layout($table_name, $l_id_list, $is_special = false, $o
function get_blocks_files_list($blocks_dir, $blocks_prefix)
{
$blocks_array = array();
- $blocks = opendir($blocks_dir);
- while ($file = readdir($blocks))
+ $blocks = @opendir($blocks_dir);
+ while ($file = @readdir($blocks))
{
$ext = substr(strrchr($file, '.'), 1);
if ((substr($file, 0, strlen($blocks_prefix)) == $blocks_prefix) && ($ext == PHP_EXT))
{
$blocks_array[] = substr(substr($file, strlen($blocks_prefix)), 0, (strlen($ext) * -1) - 1);
}
}
+ @closedir($blocks_dir);
sort($blocks_array);
return $blocks_array;
@@ -275,8 +276,8 @@ function get_layouts_details($layout_dir, $layout_extension, $common_cms_templat
$layout_details = array();
$num_layout = 0;
- $layouts = opendir($layout_dir);
- while ($file = readdir($layouts))
+ $layouts = @opendir($layout_dir);
+ while ($file = @readdir($layouts))
{
$pos = strpos($file, $layout_extension);
if (($pos !== false) && ($file != 'index.html'))
@@ -300,6 +301,7 @@ function get_layouts_details($layout_dir, $layout_extension, $common_cms_templat
$num_layout++;
}
}
+ @closedir($layout_dir);
return $layout_details;
}
@@ -310,21 +312,24 @@ function get_layouts_details_select($layout_dir, $layout_extension)
{
global $l_info;
- $layout_details = '';
- $layouts = opendir($layout_dir);
- while ($file = readdir($layouts))
+ $layouts_array = array();
+ $layouts = @opendir($layout_dir);
+ while ($file = @readdir($layouts))
{
$pos = strpos($file, $layout_extension);
if (($pos !== false) && ($file != 'index.html'))
{
- $layout_details .= '<option value="' . $file .'" ';
- if(!empty($l_info) && ($l_info['template'] == $file))
- {
- $layout_details .= 'selected="selected"';
- }
- $layout_details .= '>' . $file . '</option>';
+ $layouts_array[] = $file;
}
}
+ @closedir($layout_dir);
+
+ $layout_details = '';
+ foreach ($layouts_array as $k => $v)
+ {
+ $layout_details .= '<option value="' . $v .'" ' . ((!empty($l_info) && ($l_info['template'] == $v)) ? 'selected="selected"' : '') . '>' . $v . '</option>';
+ }
+
return $layout_details;
}
View
3 includes/pafiledb/modules/pa_download.php
@@ -413,11 +413,12 @@ function pa_redirect($file_url)
if (@preg_match('#Microsoft|WebSTAR|Xitami#', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $url);
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml" dir="' . $lang['DIRECTION'] . '" lang="' . $lang['HEADER_LANG'] . '" xml:lang="' . $lang['HEADER_XML_LANG'] . '">';
echo '<head>';
- echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />';
+ echo '<meta http-equiv="content-type" content="text/html; charset=' . $encoding_charset . '" />';
echo '<meta http-equiv="refresh" content="0; url=' . str_replace('&', '&amp;', $file_url) . '" />';
echo '<title>' . $lang['Redirect'] . '</title>';
echo '</head>';
View
18 includes/usercp_register.php
@@ -2034,26 +2034,28 @@ function show_coppa()
// Flag Start
// Query to get the list of flags
- $sql = "SELECT * FROM " . FLAG_TABLE . " ORDER BY flag_id";
+ $sql = "SELECT * FROM " . FLAG_TABLE . " ORDER BY flag_name";
$flags_result = $db->sql_query($sql, 0, 'flags_');
- $flag_row = $db->sql_fetchrowset($ranksresult);
- $num_flags = $db->sql_numrows($ranksresult) ;
+ $flag_row = $db->sql_fetchrowset($flags_result);
+ $num_flags = sizeof($flag_row);
+ $db->sql_freeresult($flags_result);
// Build the html select statement
$flag_start_image = 'blank.gif' ;
- $selected = (isset($user_flag)) ? '' : ' selected="selected"';
+ $selected = (!empty($user_flag)) ? '' : ' selected="selected"';
$flag_select = '<select name="user_flag" onChange="document.images[\'user_flag\'].src = \'images/flags/\' + this.value;" >';
$flag_select .= '<option value="blank.gif"' . $selected . '>' . $lang['Select_Country'] . '</option>';
for ($i = 0; $i < $num_flags; $i++)
{
$flag_name = $flag_row[$i]['flag_name'];
$flag_image = $flag_row[$i]['flag_image'];
- $selected = (isset($user_flag)) ? (($user_flag == $flag_image) ? 'selected="selected"' : '') : '' ;
- $flag_select .= "\t" . '<option value="' . $flag_image . '"' . $selected . '>' . $flag_name . '</option>';
- if (isset($user_flag) && ($user_flag == $flag_image))
+ $selected = '';
+ if (!empty($user_flag) && ($user_flag == $flag_image))
{
- $flag_start_image = $flag_image ;
+ $selected = ' selected="selected"';
+ $flag_start_image = $flag_image;
}
+ $flag_select .= '<option value="' . $flag_image . '"' . $selected . '>' . $flag_name . '</option>';
}
$flag_select .= '</select>';
// Flag End
View
3 install/includes/functions.php
@@ -965,11 +965,12 @@ function redirect($url, $return = false)
if (@preg_match('#Microsoft|WebSTAR|Xitami#', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $url);
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml" dir="' . $lang['DIRECTION'] . '" lang="' . $lang['HEADER_LANG'] . '" xml:lang="' . $lang['HEADER_XML_LANG'] . '">';
echo '<head>';
- echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />';
+ echo '<meta http-equiv="content-type" content="text/html; charset=' . $encoding_charset . '" />';
echo '<meta http-equiv="refresh" content="0; url=' . str_replace('&', '&amp;', $url) . '" />';
echo '<title>' . $lang['Redirect'] . '</title>';
echo '</head>';
View
3 install/includes/functions_install.php
@@ -961,11 +961,12 @@ class ip_page
function page_header($page_title, $content, $form_action = false, $write_form = true, $extra_css = false, $extra_js = false, $meta_refresh = '')
{
global $lang;
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
echo('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n");
echo('<html>' . "\n");
echo('<head>' . "\n");
- echo(' <meta http-equiv="Content-Type" content="text/html; charset=' . $lang['ENCODING'] . '" />' . "\n");
+ echo(' <meta http-equiv="Content-Type" content="text/html; charset=' . $encoding_charset . '" />' . "\n");
echo(' <meta http-equiv="content-style-type" content="text/css" />' . "\n");
echo(' <meta name="author" content="Icy Phoenix Team" />' . "\n");
if ($meta_refresh != '')
View
7 mail_digests.php
@@ -508,16 +508,15 @@
$digest_emailer->extra_headers('From: ' . $lang['digest_from_text_name'] . ' <' . $lang['digest_from_email_address'] . '>' . "\n");
+ $encoding_charset = !empty($lang['ENCODING']) ? $lang['ENCODING'] : 'UTF-8';
if ($html)
{
$digest_emailer->extra_headers('MIME-Version: 1.0');
- //$digest_emailer->extra_headers('Content-type: text/html; charset=iso-8859-1');
- $digest_emailer->extra_headers('Content-type: text/html; charset=' . $lang['ENCODING']);
+ $digest_emailer->extra_headers('Content-type: text/html; charset=' . $encoding_charset);
}
else
{
- //$digest_emailer->extra_headers('Content-Type: text/plain; charset=us-ascii');
- $digest_emailer->extra_headers('Content-Type: text/plain; charset=' . $lang['ENCODING']);
+ $digest_emailer->extra_headers('Content-Type: text/plain; charset=' . $encoding_charset);
}
$digest_emailer->email_address($to);
View
1 rss.php
@@ -136,6 +136,7 @@
$sql_topics_only_where = ($display == 'topics') ? ' AND p.post_id = t.topic_first_post_id' : '';
$encoding_charset = (strpos($useragent, 'MSIE') ? $lang['ENCODING'] : $lang['ENCODING_ALT']);
+$encoding_charset = !empty($encoding_charset) ? $encoding_charset : 'UTF-8';
// BEGIN Session management
// Check user
View
1 sitemap.php
@@ -50,6 +50,7 @@
}
$encoding_charset = (strpos($useragent, 'MSIE') ? $lang['ENCODING'] : $lang['ENCODING_ALT']);
+$encoding_charset = !empty($encoding_charset) ? $encoding_charset : 'UTF-8';
// GZip - BEGIN
$do_gzip_compress = true;
View
6 statistics.php
@@ -46,6 +46,10 @@
$cms_auth_level = (isset($cms_config_layouts[$cms_page['page_id']]['view']) ? $cms_config_layouts[$cms_page['page_id']]['view'] : AUTH_ALL);
check_page_auth($cms_page['page_id'], $cms_auth_level);
+$meta_content['page_title'] = $lang['Statistics_title'];
+page_header($lang['Statistics_title'], true);
+$template->set_filenames(array('body' => 'statistics.tpl'));
+
$__module_rows = get_module_list_from_db();
$__stat_module_data = get_module_data_from_db();
$return_limit = $__stats_config['return_limit'];
@@ -170,6 +174,6 @@
$template->assign_block_vars('main_bottom',array());
-full_page_generation('statistics.tpl', $lang['Statistics_title'], '', '');
+page_footer(true, 'body', true);
?>
View
2 templates/default/stats_modules/site_hist_week_top_posters.tpl
@@ -9,7 +9,7 @@
<!-- BEGIN stats_row -->
<tr class="{stats_row.CLASS}h">
<td class="{stats_row.CLASS} row-center" style="background: none;" width="10%"><span class="gen">{stats_row.RANK}</span></td>
- <td class="{stats_row.CLASS}" style="background: none;" width="10%"><span class="gen"><a href="{stats_row.URL}">{stats_row.USERNAME}</a></span></td>
+ <td class="{stats_row.CLASS}" style="background: none;" width="10%"><span class="gen">{stats_row.USERNAME}</span></td>
<td class="{stats_row.CLASS} row-center" style="background: none;" width="10%"><span class="gen">{stats_row.POSTS}</span></td>
<td class="{stats_row.CLASS} row-center" style="background: none;" width="10%"><span class="gen">{stats_row.PERCENTAGE}%</span></td>
<td class="{stats_row.CLASS}" style="background: none;" width="50%"><table cellspacing="0" cellpadding="0" border="0" align="left"><tr><td width="1%" nowrap="nowrap"><img src="<!-- IF stats_row.PERCENTAGE > 66 -->{G_LEFT_GRAPH_IMAGE}<!-- ELSEIF stats_row.PERCENTAGE > 33 -->{B_LEFT_GRAPH_IMAGE}<!-- ELSE -->{R_LEFT_GRAPH_IMAGE}<!-- ENDIF -->" height="13" alt="" /><img src="<!-- IF stats_row.PERCENTAGE > 66 -->{G_GRAPH_IMAGE}<!-- ELSEIF stats_row.PERCENTAGE > 33 -->{B_GRAPH_IMAGE}<!-- ELSE -->{R_GRAPH_IMAGE}<!-- ENDIF -->" width="{stats_row.BAR}%" height="13" alt="{stats_row.PERCENTAGE}%" /><img src="<!-- IF stats_row.PERCENTAGE > 66 -->{G_RIGHT_GRAPH_IMAGE}<!-- ELSEIF stats_row.PERCENTAGE > 33 -->{B_RIGHT_GRAPH_IMAGE}<!-- ELSE -->{R_RIGHT_GRAPH_IMAGE}<!-- ENDIF -->" height="13" alt="" /></td></tr></table></td>
View
10 templates/default/stats_modules/users_gender.tpl
@@ -8,11 +8,11 @@
</tr>
<!-- BEGIN stats_row -->
<tr class="{stats_row.CLASS}h">
- <td class="{stats_row.CLASS} row-center" style="background: none;" style="background: none;"><span class="gen">{stats_row.RANK}</span></td>
- <td class="{stats_row.CLASS} row-center" style="background: none;" style="background: none;" width="10%"><span class="gen">{stats_row.GENDER}</span></td>
- <td class="{stats_row.CLASS} row-center" style="background: none;" style="background: none;" width="10%"><span class="gen">{stats_row.USERS}</span></td>
- <td class="{stats_row.CLASS} row-center" style="background: none;" style="background: none;" width="10%"><span class="gen">{stats_row.PERCENTAGE}%</span></td>
- <td class="{stats_row.CLASS}" style="background: none;" style="background: none;" width="50%"><table cellspacing="0" cellpadding="0" border="0" align="left"><tr><td width="1%" nowrap="nowrap"><img src="<!-- IF stats_row.PERCENTAGE > 66 -->{G_LEFT_GRAPH_IMAGE}<!-- ELSEIF stats_row.PERCENTAGE > 33 -->{B_LEFT_GRAPH_IMAGE}<!-- ELSE -->{R_LEFT_GRAPH_IMAGE}<!-- ENDIF -->" height="13" alt="" /><img src="<!-- IF stats_row.PERCENTAGE > 66 -->{G_GRAPH_IMAGE}<!-- ELSEIF stats_row.PERCENTAGE > 33 -->{B_GRAPH_IMAGE}<!-- ELSE -->{R_GRAPH_IMAGE}<!-- ENDIF -->" width="{stats_row.BAR}%" height="13" alt="{stats_row.PERCENTAGE}%" /><img src="<!-- IF stats_row.PERCENTAGE > 66 -->{G_RIGHT_GRAPH_IMAGE}<!-- ELSEIF stats_row.PERCENTAGE > 33 -->{B_RIGHT_GRAPH_IMAGE}<!-- ELSE -->{R_RIGHT_GRAPH_IMAGE}<!-- ENDIF -->" height="13" alt="" /></td></tr></table></td>
+ <td class="{stats_row.CLASS} row-center" style="background: none;"><span class="gen">{stats_row.RANK}</span></td>
+ <td class="{stats_row.CLASS} row-center" style="background: none;" width="10%"><span class="gen">{stats_row.GENDER}</span></td>
+ <td class="{stats_row.CLASS} row-center" style="background: none;" width="10%"><span class="gen">{stats_row.USERS}</span></td>
+ <td class="{stats_row.CLASS} row-center" style="background: none;" width="10%"><span class="gen">{stats_row.PERCENTAGE}%</span></td>
+ <td class="{stats_row.CLASS}" style="background: none;" width="50%"><table cellspacing="0" cellpadding="0" border="0" align="left"><tr><td width="1%" nowrap="nowrap"><img src="<!-- IF stats_row.PERCENTAGE > 66 -->{G_LEFT_GRAPH_IMAGE}<!-- ELSEIF stats_row.PERCENTAGE > 33 -->{B_LEFT_GRAPH_IMAGE}<!-- ELSE -->{R_LEFT_GRAPH_IMAGE}<!-- ENDIF -->" height="13" alt="" /><img src="<!-- IF stats_row.PERCENTAGE > 66 -->{G_GRAPH_IMAGE}<!-- ELSEIF stats_row.PERCENTAGE > 33 -->{B_GRAPH_IMAGE}<!-- ELSE -->{R_GRAPH_IMAGE}<!-- ENDIF -->" width="{stats_row.BAR}%" height="13" alt="{stats_row.PERCENTAGE}%" /><img src="<!-- IF stats_row.PERCENTAGE > 66 -->{G_RIGHT_GRAPH_IMAGE}<!-- ELSEIF stats_row.PERCENTAGE > 33 -->{B_RIGHT_GRAPH_IMAGE}<!-- ELSE -->{R_RIGHT_GRAPH_IMAGE}<!-- ENDIF -->" height="13" alt="" /></td></tr></table></td>
</tr>
<!-- END stats_row -->
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
View
2 viewforum.php
@@ -267,7 +267,7 @@
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $url);
- echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $url . '"><title>' . $lang['Redirect'] . '</title></head><body><div align="center">' . sprintf($lang['Redirect_to'], '<a href="' . $url . '">', '</a>') . '</div></body></html>';
+ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="refresh" content="0; url=' . $url . '"><title>' . $lang['Redirect'] . '</title></head><body><div align="center">' . sprintf($lang['Redirect_to'], '<a href="' . $url . '">', '</a>') . '</div></body></html>';
exit;
}

0 comments on commit 8fc4521

Please sign in to comment.
Something went wrong with that request. Please try again.