artoodetoo пишет:не помочь может в одном случае - если для этого файла указана кодировка через header.
признавайся, ты уже воткнул туда
header('Content-Type: text/html; charset=windows-1251');
убирай
и вообще что значит "какая должна быть кодировка в этом файле"? никакой явно указанной кодировки блядь в этом файле быть не должно. не надо параллельно с моими советами пробовать все лекарства подряд!
Имелось ввиду в какой кодировке сохранять в AkelPad, после редактирования..
После переустановки форума делаю только то что ты говоришь.
Пожалуйста. Вот содержимое нынешнего залитого на фтп файла.
<?php
/***********************************************************************
Copyright (C) 2002, 2003, 2004 Rickard Andersson (rickard@punbb.org)
This file is part of PunBB.
PunBB 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; either version 2 of the License,
or (at your option) any later version.
PunBB is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
************************************************************************/
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/parser.php';
if(!$pun_config['o_pms_enabled'] || $pun_user['g_pm'] == 0)
message($lang_common['No permission']);
if ($pun_user['is_guest'])
message($lang_common['Login required']);
if(isset($_GET['id']))
{
$id = intval($_GET['id']);
$result_messages = $db->query('SELECT owner, sender, posted, subject FROM '.$db->prefix.'messages WHERE status=0 AND id='.$_GET['id']) or error('Unable check owner popup', __FILE__, __LINE__, $db->error());
$return = $db->fetch_assoc($result_messages);
if ($return['owner'] != $pun_user['id'])
{
message($lang_common['No permission']);
}
}
else
{
message($lang_common['No permission']);
}
//require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
//require PUN_ROOT.'lang/'.$pun_user['language'].'/topic.php';
// Load the message.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/pms.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="<?php echo $lang_common['lang_direction'] ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $lang_common['lang_encoding'] ?>" />
<title><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?>: Private Message Services</title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />
</head>
<body>
<script language='javascript'>
<!--
function goto_inbox() {
opener.document.location.href = 'message_list.php?box=0';
window.close();
}
function goto_this_inbox() {
window.resizeTo('700','500');
document.location.href = 'message_list.php';
}
function go_read_msg() {
window.resizeTo('800','800');
document.location.href = 'message_list.php?id=<?php echo $id ?>&p=1&box=0';
}
//-->
</script>
<div id="punwrap">
<div id="punmessage_list" class="pun">
<div class="class="block">
<div class="blockform">
<h2><span><?php echo $lang_pms['New messages'] ?></span></h2>
<div class="box" style="text-align:center">
<p><?php echo $lang_pms['Popup new'], pun_htmlspecialchars($return['sender']), $lang_pms['Popup subj'], pun_htmlspecialchars($return['subject']) ?><br><?php echo $lang_pms['Popup send'], format_time($return['posted']) ?></p>
<ul>
<li><a href='javascript:go_read_msg();'><?php echo $lang_pms['Popup open msg'] ?></a></li>
<li><a href='javascript:goto_inbox();'><?php echo $lang_pms['Popup go in'] ?></a> ( <a href='javascript:goto_this_inbox();'><?php echo $lang_pms['Popup open this'] ?></a>)</li>
<li><a href='javascript:window.close();'><?php echo $lang_pms['Popup close'] ?></a></li>
</ul>
</div>
</div>
<div class="clearer"></div>
</div>
</div>
</div>