Téléchargement
illégal
Posez votre question Signaler

Fatal error: Cannot redeclare utf8RawUrlDecod

cerbr 15Messages postés 1 mai 2011Date d'inscription 20 août 2011Dernière intervention - Dernière réponse le 4 août 2011 à 15:58
Bonjour,
J'ai un probleme :
Fatal error: Cannot redeclare utf8RawUrlDecode() (previously declared in /home/httpd/c/e/r/cerbr/numericdoor.franceserv.com/chatbox.php:50) in /home/httpd/c/e/r/cerbr/numericdoor.franceserv.com/lang/French/chatbox.php on line 86
La page: http://numericdoor.franceserv.com/chatbox.php
Voici le code php de chatbox.php:
<?php
/***********************************************************************
Copyright (C) 2002-2005 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
************************************************************************/
// Is it integrated with other page?
$inside = (basename($_SERVER['SCRIPT_FILENAME']) != 'chatbox.php');
if (!$inside)
{
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
}
require PUN_ROOT.'include/parser.php';
if (!$pun_config['cb_pbb_version'])
message('Poki BB Chatbox is not installed correctly. Please make sure you have launch install_mod.php');
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
$ajax = isset($_REQUEST['ajax']);
$errors = array();
// Load the chatbox.php and post.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/chatbox.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/post.php';
// Same funtion that php native rawurldecode() but with utf8 support
function utf8RawUrlDecode ($source)
{
$decodedStr = "";
$pos = 0;
$len = strlen($source);
while ($pos < $len)
{
$charAt = substr($source, $pos, 1);
if ($charAt == '%')
{
$pos++;
$charAt = substr($source, $pos, 1);
if ($charAt == 'u')
{
// We got a unicode character
$pos++;
$unicodeHexVal = substr($source, $pos, 4);
$unicode = hexdec($unicodeHexVal);
$entity = "&#". $unicode . ';';
$decodedStr .= utf8_encode($entity);
$pos += 4;
}
else
{
// We have an escaped ascii character
$hexVal = substr($source, $pos, 2);
$decodedStr .= chr(hexdec($hexVal));
$pos += 2;
}
} else
{
$decodedStr .= $charAt;
$pos++;
}
}
return $decodedStr;
}
// Error function for ajax queries
function error_ajax($message, $file = false, $line = false, $db_error = false)
{
global $pun_config, $db, $lang_chatbox, $errors, $ajax;
// Defaut error reponse
$error = $pun_config['cb_ajax_errors'];
$error = str_replace('<pun_error>', $lang_chatbox['Error Title'], $error);
$error = str_replace('<pun_date>', format_time(time()), $error);
$error_ajax_msg = '';
if (!defined('PUN_DEBUG') && $file != false && $line != false)
{
$error_ajax_msg .= '<strong>File:</strong> '.$file.'<br /><strong>Line:</strong> '.$line.'<br /><br /><strong>PunBB reported</strong>: '.$message;
if ($db_error)
{
$error_ajax_msg .= '<br /><br /><strong>Database reported:</strong> '.pun_htmlspecialchars($db_error['error_msg']).(($db_error['error_no']) ? ' (Errno: '.$db_error['error_no'].')' : '');
if ($db_error['error_sql'] != '')
$error_ajax_msg .= '<br /><br /><strong>Failed query:</strong> '.pun_htmlspecialchars($db_error['error_sql']);
}
}
else
$error_ajax_msg .= $message;
if (!$ajax)
{
$errors[] = $error_ajax_msg;
return;
}
// If a database connection was established (before this error) we close it
$db->end_transaction();
$db->close();
exit('error;<div class="error">'.str_replace('<pun_error_text>', $error_ajax_msg, $error).'</div>');
}
// If it's AJAX request
if ($ajax)
{
// Send no-cache headers
header('Expires: Thu, 21 Jul 1977 07:30:00 GMT'); // When yours truly first set eyes on this world! :)
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache'); // For HTTP/1.0 compability
header('Content-type: text/html; charset=utf-8');
}
if (isset($_GET['delete_message']))
{
$msg_id = intval($_GET['delete_message']);
if (!$pun_user['is_admmod'])
error_ajax($lang_common['No permission']);
if (empty($errors))
{
// We are not deleting message, but only "hide"
$db->query('UPDATE '.$db->prefix.'chatbox_msg SET poster_id=-1, posted='.time().' WHERE id='.$msg_id.' LIMIT 1') or error_ajax('Unable to delete post', __FILE__, __LINE__, $db->error());
}
if ($ajax)
{
echo 'delete;'.$msg_id;
$db->end_transaction();
$db->close();
exit;
}
}
if (isset($_POST['form_sent']))
{
// If new message was submit
if (isset($_POST['ajax']))
{
// Decode
$_POST['req_message'] = utf8RawUrlDecode($_POST['req_message']);
$_POST['form_user'] = utf8RawUrlDecode($_POST['form_user']);
if (isset($_POST['req_username']))
$_POST['req_username'] = utf8RawUrlDecode($_POST['req_username']);
if (isset($_POST['req_email']))
$_POST['req_email'] = utf8RawUrlDecode($_POST['req_email']);
if (isset($_POST['email']))
$_POST['email'] = utf8RawUrlDecode($_POST['email']);
}
// Make sure form_user is correct
if (($pun_user['is_guest'] && $_POST['form_user'] != 'Guest') || (!$pun_user['is_guest'] && $_POST['form_user'] != $pun_user['username']))
error_ajax($lang_common['Bad request']);
// Do we have permission to post?
if ($pun_user['g_post_chatbox'] != '1')
error_ajax($lang_chatbox['No Post Permission']);
// Flood protection
if (!$pun_user['is_guest'] && $pun_user['last_post_chatbox'] != '' && (time() - $pun_user['last_post_chatbox']) < $pun_user['g_post_flood_chatbox'])
error_ajax($lang_post['Flood start'].' '.$pun_user['g_post_flood_chatbox'].' '.$lang_post['flood end']);
// If it's Guest
if ($pun_user['is_guest'])
{
$result = $db->query('SELECT id, poster_ip, posted FROM '.$db->prefix.'chatbox_msg WHERE poster_ip=\''.get_remote_address().'\' ORDER BY posted DESC LIMIT 1') or error_ajax('Unable to fetch messages for flood protection', __FILE__, __LINE__, $db->error());
$cur_post = $db->fetch_assoc($result);
if ((time() - $cur_post['posted']) < $pun_user['g_post_flood_chatbox'])
error_ajax($lang_post['Flood start'].' '.$pun_user['g_post_flood_chatbox'].' '.$lang_post['flood end']);
}
// If the user is logged in we get the username and e-mail from $pun_user
if (!$pun_user['is_guest'])
{
$username = $pun_user['username'];
$email = $pun_user['email'];
}
// Otherwise it should be in $_POST
else
{
$username = trim($_POST['req_username']);
$email = strtolower(trim(($pun_config['p_force_guest_email'] == '1') ? $_POST['req_email'] : $_POST['email']));
// Load the register.php/profile.php language files
require PUN_ROOT.'lang/'.$pun_user['language'].'/prof_reg.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/register.php';
// It's a guest, so we have to validate the username
if (strlen($username) < 2)
error_ajax($lang_prof_reg['Username too short']);
else if (!strcasecmp($username, 'Guest') || !strcasecmp($username, $lang_common['Guest']))
error_ajax($lang_prof_reg['Username guest']);
else if (preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/', $username))
error_ajax($lang_prof_reg['Username IP']);
if ((strpos($username, '[') !== false || strpos($username, ']') !== false) && strpos($username, '\'') !== false && strpos($username, '"') !== false)
error_ajax($lang_prof_reg['Username reserved chars']);
if (preg_match('#\[b\]|\/b\|\[u\]|\/u\|\[i\]|\/i\|\[color|\/color\|\[quote\]|\[quote=|\/quote\|\[code\]|\/code\|\[img\]|\/img\|\[url|\/url\|\[email|\/email\#i', $username))
error_ajax($lang_prof_reg['Username BBCode']);
// Check username for any censored words
$temp = censor_words($username);
if ($temp != $username)
error_ajax($lang_register['Username censor']);
// Check that the username (or a too similar username) is not already registered
$result = $db->query('SELECT username FROM '.$db->prefix.'users WHERE username=\''.$db->escape($username).'\' OR username=\''.$db->escape(preg_replace('/[^\w]/', '', $username)).'\'') or error_ajax('Unable to fetch user info', __FILE__, __LINE__, $db->error());
if ($db->num_rows($result)) {
$busy = $db->result($result);
error_ajax($lang_register['Username dupe 1'].' '.pun_htmlspecialchars($busy).'. '.$lang_register['Username dupe 2']);
}
if ($pun_config['p_force_guest_email'] == '1' || $email != '') {
require PUN_ROOT.'include/email.php';
if (!is_valid_email($email))
error_ajax($lang_common['Invalid email']);
}
setcookie('chatbox_user', $username.';'.$email);
}
// Clean up message from POST
$message = pun_linebreaks(pun_trim($_POST['req_message']));
// Strip not allowed tags
$disallow_tags = array('list', '*', 'code', 'quote', 'img');
foreach ($disallow_tags as $cur_tag)
{
$message = preg_replace('#\['.preg_quote($cur_tag).'\]#i', '', $message);
$message = preg_replace('#\['.preg_quote($cur_tag).'=.*?\]#i', '', $message);
$message = preg_replace('#\[\/'.preg_quote($cur_tag).'\]#i', '', $message);
}
if ($message == '')
error_ajax($lang_chatbox['Error No message']);
else if (strlen($message) > $pun_config['cb_msg_maxlength'])
error_ajax($lang_chatbox['Error Too long message']);
else if ($pun_config['p_message_all_caps'] == '0' && strtoupper($message) == $message && $pun_user['g_id'] > PUN_MOD)
$message = ucwords(strtolower($message));
$parse_errors = array();
// Validate BBCode syntax
if ($pun_config['p_message_bbcode'] == '1' /*&& strpos($message, '[') !== false && strpos($message, ']') !== false*/)
$message = preparse_bbcode($message, $parse_errors);
$message = preg_replace('/([^\s[:punct:]]{30})/', '$1 ', $message);
if (!empty($parse_errors))
error_ajax(implode("\n", $parse_errors));
// Get the time
$now = time();
if (empty($errors))
{
if (!$pun_user['is_guest'])
{
// Insert message
$db->query('INSERT INTO '.$db->prefix.'chatbox_msg (poster, poster_id, poster_ip, poster_email, message, posted) VALUES(\''.$db->escape($username).'\', '.$pun_user['id'].', \''.get_remote_address().'\', \''.$db->escape($email).'\', \''.$db->escape($message).'\', '.$now.')') or error_ajax('Unable to post message', __FILE__, __LINE__, $db->error());
// Increment his/her chatbox post count
$low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
$db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts_chatbox=num_posts_chatbox+1, last_post_chatbox='.$now.' WHERE id='.$pun_user['id']) or error_ajax('Unable to update user', __FILE__, __LINE__, $db->error());
}
else
{
// Insert message
$email_sql = ($pun_config['p_force_guest_email'] == '1' || $email != '') ? '\''.$db->escape($email).'\'' : 'NULL';
$db->query('INSERT INTO '.$db->prefix.'chatbox_msg (poster, poster_id, poster_ip, poster_email, message, posted) VALUES(\''.$db->escape($username).'\', '.$pun_user['id'].', \''.get_remote_address().'\', '.$email_sql.', \''.$db->escape($message).'\', '.$now.')') or error_ajax('Unable to post message', __FILE__, __LINE__, $db->error());
}
$_POST['req_message'] = null;
}
if ($pun_config['cb_max_msg'] > 0)
{
$count = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'chatbox_msg') or error_ajax('Unable to fetch chatbox post count', __FILE__, __LINE__, $db->error());
$num_post = $db->result($count);
$limit = ($num_post-$pun_config['cb_max_msg'] <= 0) ? 0 : $num_post-$pun_config['cb_max_msg'];
$result = $db->query('SELECT id, posted FROM '.$db->prefix.'chatbox_msg ORDER BY posted ASC LIMIT '.$limit) or error_ajax('Unable to select post to delete', __FILE__, __LINE__, $db->error());
while ($del_msg = $db->fetch_assoc($result))
$db->query('DELETE FROM '.$db->prefix.'chatbox_msg WHERE id = '.$del_msg['id'].' LIMIT 1') or error_ajax('Unable to delete post', __FILE__, __LINE__, $db->error());
}
}
// Now we list all new message
$cur_msg_txt = '';
$response = '';
$count_id = array();
// Define last message timestamp
$first_msg_id = isset($_REQUEST['first_msg_id']) ? intval($_REQUEST['first_msg_id']) : 0;
$last_msg_id = isset($_REQUEST['last_msg_id']) ? intval($_REQUEST['last_msg_id']) : 0;
if ($ajax)
{
// Are there any deleted messages?
$result = $db->query('SELECT m.id FROM '.$db->prefix.'chatbox_msg AS m WHERE m.id >= '.$first_msg_id.' AND m.id <= '.$last_msg_id.' AND m.poster_id = -1 ORDER BY m.id DESC') or error('Unable to fetch messages', __FILE__, __LINE__, $db->error());
$del_msg_ids = array();
for ($i = 0; $cur_msg_id = $db->result($result, $i); $i++)
$del_msg_ids[] = $cur_msg_id;
if (count($del_msg_ids) > 0)
{
echo 'deleted:'.implode(',', $del_msg_ids)."\n";
// Clean temp messages
$db->query('DELETE FROM '.$db->prefix.'chatbox_msg WHERE poster_id = -1 AND posted < '.(time() - 60));// or error_ajax('Unable to delete post', __FILE__, __LINE__, $db->error());
}
}
// Are there any new messages?
$result = $db->query('SELECT m.id FROM '.$db->prefix.'chatbox_msg AS m WHERE m.id > '.$last_msg_id.' and m.poster_id != -1 ORDER BY m.id DESC LIMIT '.$pun_config['cb_max_msg']) or error_ajax('Unable to fetch messages', __FILE__, __LINE__, $db->error());
$msg_ids = array();
for ($i = 0; $cur_msg_id = $db->result($result, $i); $i++)
$msg_ids[] = $cur_msg_id;
if (count($msg_ids) > 0)
{
$last_msg_id = $msg_ids[0];
$messages = $db->query('SELECT u.id, u.group_id, u.num_posts_chatbox, m.id AS m_id, m.poster_id, m.poster, m.poster_ip, m.poster_email, m.message, m.posted, g.g_id FROM '.$db->prefix.'chatbox_msg AS m INNER JOIN '.$db->prefix.'users AS u ON u.id=m.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE m.id IN('.implode(',', $msg_ids).') ORDER BY m.id DESC') or error_ajax('Unable to fetch messages', __FILE__, __LINE__, $db->error());
while ($cur_msg = $db->fetch_assoc($messages))
{
$cur_msg['message'] = preg_replace('/([^\s[:punct:]]{30})/', '$1 ', $cur_msg['message']);
$cur_msg_txt = '<div class="msg" id="msg'.$cur_msg['m_id'].'">'.$pun_config['cb_disposition'].'</div>';
// Replace <pun_username>
if ($cur_msg['g_id'] != PUN_GUEST)
{
if (function_exists('colorize_group'))
$cur_username = colorize_group($cur_msg['poster'], $cur_msg['group_id'], $cur_msg['id']);
elseif ($pun_user['g_view_users'] == 1)
$cur_username = '<a href="profile.php?id='.$cur_msg['id'].'">'.pun_htmlspecialchars($cur_msg['poster']).'</a>';
else
$cur_username = pun_htmlspecialchars($cur_msg['poster']);
$cur_msg_txt = str_replace('<pun_username>', $cur_username, $cur_msg_txt);
$cur_msg_txt = str_replace('<pun_guest>', '', $cur_msg_txt);
}
else
{
$poster = pun_htmlspecialchars($cur_msg['poster']);
if (in_array($pun_user['g_id'], array(PUN_ADMIN, PUN_MOD)) && isset($cur_msg['poster_email']))
$poster = '<a href="mailto:'.$cur_msg['poster_email'].'">'.$poster.'</a>';
$guest = '<span class="guest">['.$lang_common['Guest'].']</span>';
if (in_array($pun_user['g_id'], array(PUN_ADMIN, PUN_MOD)) && isset($cur_msg['poster_ip']))
$guest = '<a href="chatbox.php?get_host='.$cur_msg['m_id'].'" title="'.$cur_msg['poster_ip'].'">'.$guest.'</a>';
$cur_msg_txt = str_replace('<pun_username>', $poster, $cur_msg_txt);
$cur_msg_txt = str_replace('<pun_guest>', $guest.' ', $cur_msg_txt);
}
// Replace <pun_date>
$cur_msg_txt = str_replace('<pun_date>', format_time($cur_msg['posted']), $cur_msg_txt);
// Replace <pun_nbpost>
if ($cur_msg['g_id'] != PUN_GUEST)
$cur_msg_txt = str_replace('<pun_nbpost>', $cur_msg['num_posts_chatbox'], $cur_msg_txt);
else
{
if (!isset($count_id[$cur_msg['poster']]))
{
$like_command = ($db_type == 'pgsql') ? 'ILIKE' : 'LIKE';
$count = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'chatbox_msg WHERE poster '.$like_command.' \''.$db->escape(str_replace('*', '%', $cur_msg['poster'])).'\'') or error_ajax('Unable to fetch user chatbox post count', __FILE__, __LINE__, $db->error());
$num_post = $db->result($count);
$count_id[$cur_msg['poster']] = $num_post;
}
else
$num_post = $count_id[$cur_msg['poster']];
$cur_msg_txt = str_replace('<pun_nbpost>', $num_post, $cur_msg_txt);
}
// Replace <pun_nbpost_txt>
$cur_msg_txt = str_replace('<pun_nbpost_txt>', $lang_chatbox['Posts'], $cur_msg_txt);
$cur_msg_admin = array();
// Add admin feature and replace <pun_admin>
if (in_array($pun_user['g_id'], array(PUN_ADMIN, PUN_MOD)))
$cur_msg_admin[] = '<a onclick="delete_message('.$cur_msg['m_id'].'); return false;" href="chatbox.php?delete_message='.$cur_msg['m_id'].'">X</a>';
$cur_msg_txt = str_replace('<pun_admin>', implode(' | ', $cur_msg_admin).' ', $cur_msg_txt);
// Replace <pun_message>
$cur_msg_txt = str_replace('<pun_message>', parse_message($cur_msg['message'], 0), $cur_msg_txt);
$response = $cur_msg_txt . "\n".$response;
}
$response = pun_trim($response);
}
if ($ajax)
{
echo $first_msg_id.';'.$last_msg_id."\n".$response;
$db->end_transaction();
$db->close();
exit;
}
// This particular function doesn't require forum-based moderator access. It can be used
// by all moderators and admins.
if (isset($_GET['get_host']))
{
if ($pun_user['g_id'] > PUN_MOD)
message($lang_common['No permission']);
// Is get_host an IP address or a post ID?
if (preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/', $_GET['get_host']))
$ip = $_GET['get_host'];
else {
$get_host = intval($_GET['get_host']);
if ($get_host < 1)
message($lang_common['Bad request']);
$result = $db->query('SELECT poster_ip FROM '.$db->prefix.'chatbox_msg WHERE id='.$get_host) or error('Unable to fetch post IP address', __FILE__, __LINE__, $db->error());
if (!$db->num_rows($result))
message($lang_common['Bad request']);
$ip = $db->result($result);
}
// Load the misc.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/misc.php';
message(sprintf($lang_misc['Host info 1'], $ip).'<br />'.sprintf($lang_misc['Host info 2'], @gethostbyaddr($ip)).'<br /><br /><a href="admin_users.php?show_users='.$ip.'">'.$lang_misc['Show more users'].'</a>');
}
if (!$inside)
{
$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), pun_htmlspecialchars($lang_chatbox['Page_title']));
define('PUN_ALLOW_INDEX', 1);
define('PUN_ACTIVE_PAGE', 'chatbox');
require PUN_ROOT.'header.php';
}
if ($pun_user['g_read_chatbox'] != '1')
{
if (!$inside)
message($lang_chatbox['No Read Permission']);
else
return;
}
// If there are errors, we display them
if (!empty($errors))
{
?>
<div id="posterror" class="block">
<div class="box">
<div class="inbox">
<ul>
<?php
foreach ($errors as $cur_error)
echo "\t\t\t\t".'<li><strong>'.$cur_error.'</strong></li>'."\n";
?>
</ul>
</div>
</div>
</div>
<?php
}
?>
<script type="text/javascript" src="include/chatbox/prototype.js"></script>
<script type="text/javascript" src="include/chatbox/chatbox.js"></script>
<link rel="stylesheet" type="text/css" href="style/imports/chatbox.css" />
<div class="block chatbox">
<h2>
<span>
<span class="conr"><img style="display: none" id="loading" class="loading" src="img/chatbox/loading.gif" /> </span>
<a href="chatbox.php"><?php echo $lang_chatbox['Chatbox'] ?></a>
</span>
</h2>
<div class="box">
<div id="chatbox" class="inbox"<?php echo ($inside ? ' style="height: '.$pun_config['cb_height'].'px"' : '') ?>>
<?php
if (!$response)
echo $lang_chatbox['No Message'];
else
echo "\t\t\t".$response."\n";
$cur_index = 0;
?>
</div>
</div>
<div class="box">
<div class="inbox">
<?php
if ($pun_user['g_post_chatbox'] == '1')
{
$cur_index = 1;
?>
<form id="post" method="post" name="chatbox_form" action="chatbox.php" onsubmit="send_message(); return false;">
<input type="hidden" name="form_sent" value="1" />
<input type="hidden" name="form_user" id="form_user" value="<?php echo (!$pun_user['is_guest']) ? pun_htmlspecialchars($pun_user['username']) : 'Guest'; ?>" />
<?php
if ($pun_user['is_guest'])
{
$email_label = ($pun_config['p_force_guest_email'] == '1') ? '<strong>'.$lang_common['Email'].':</strong>' : $lang_common['Email'].':';
$email_form_name = ($pun_config['p_force_guest_email'] == '1') ? 'req_email' : 'email';
$username = $email = '';
if (isset($_COOKIE['chatbox_user']))
list($username, $email) = explode(';', $_COOKIE['chatbox_user']);
else
{
if (isset($_POST['req_username']))
$username = $_POST['req_username'];
if (isset($_POST[$email_form_name]))
$email = $_POST[$email_form_name];
}
?>
<label><strong><?php echo $lang_post['Guest name'] ?>:</strong> <input type="text" name="req_username" id="req_username" value="<?php echo pun_htmlspecialchars($username); ?>" size="20" maxlength="25" tabindex="<?php echo $cur_index++ ?>" /></label>
<label><?php echo $email_label ?> <input type="text" name="<?php echo $email_form_name ?>" id="<?php echo $email_form_name ?>" value="<?php echo pun_htmlspecialchars($email); ?>" size="20" maxlength="80" tabindex="<?php echo $cur_index++ ?>" /></label>
<br />
<?php
}
?>
<label><?php echo $lang_chatbox['Message'] ?>: <input type="text" name="req_message" id="req_message" value="<?php if (isset($_POST['req_message'])) echo pun_htmlspecialchars($message); ?>" size="70" maxlength="<?php echo $pun_config['cb_msg_maxlength'] ?>" tabindex="<?php echo $cur_index++ ?>" /></label>
<input type="submit" name="submit" value="<?php echo $lang_chatbox['Btn Send'] ?>" accesskey="s" tabindex="<?php echo $cur_index++ ?>" />
<?php if (!$inside) : ?>
<script language="javascript">
<!--
document.chatbox_form.req_message.focus();
// -->
</script>
<?php endif; ?>
</form>
<?php
}
else
echo $lang_chatbox['No Post Permission'];
?>
</div>
</div>
</div>
<script language="javascript">
var FirstMsgId = '<?php echo $first_msg_id; ?>';
var LastMsgId = '<?php echo $last_msg_id; ?>';
var MaxMessages = '<?php echo $pun_config['cb_max_msg']; ?>';
$('chatbox').scrollTop = $('chatbox').scrollHeight;
// get_messages();
checker = new PeriodicalExecuter(get_messages, <?php echo $pun_config['cb_ajax_refresh']; ?>);
</script>
<?php
if (!$inside)
require PUN_ROOT.'footer.php';
C'est vraiment urgent, merci.
Lire la suite 

Fatal error: Cannot redeclare utf8RawUrlDecod »

1 réponses
Réponse
+0
moins plus
Up
Ajouter un commentaire
Ce document intitulé « Fatal error: Cannot redeclare utf8RawUrlDecod » issu de CommentCaMarche (www.commentcamarche.net) est mis à disposition sous les termes de la licence Creative Commons. Vous pouvez copier, modifier des copies de cette page, dans les conditions fixées par la licence, tant que cette note apparaît clairement.
Dossier à la une
Passage au tout numérique : quel coût pour les particuliers ?