Fout bij versturing PM, hulp aub!
Geplaatst: 21 mar 2005, 19:15
Als ik een persoon een pm stuur krijg een verschillende fouten:
Even een stukje uit privmsg.php:
En dan nog een stukje uit page_header.php:
Code: Selecteer alles
Warning: Wrong parameter count for usort() in /home/firework/public_html/forum/privmsg.php on line 1145
Warning: Cannot modify header information - headers already sent by (output started at /home/firework/public_html/forum/privmsg.php:1145) in /home/firework/public_html/forum/includes/page_header.php on line 498
Warning: Cannot modify header information - headers already sent by (output started at /home/firework/public_html/forum/privmsg.php:1145) in /home/firework/public_html/forum/includes/page_header.php on line 500
Warning: Cannot modify header information - headers already sent by (output started at /home/firework/public_html/forum/privmsg.php:1145) in /home/firework/public_html/forum/includes/page_header.php on line 501
Code: Selecteer alles
if ( $submit )
{
if ( !empty($HTTP_POST_VARS['username']) )
{
// Start replacement - Custom mass PM MOD
$to_username_array = explode (";", $HTTP_POST_VARS['username']);
usort ($to_username_array);
foreach ($to_username_array as $name) $to_usernames .= "'".htmlspecialchars(trim($name))."',";
$to_usernames[strlen($to_usernames)-1]=" ";
// End replacement - Custom mass PM MOD
$sql = "SELECT user_id, username, user_notify_pm, user_email, user_lang, user_active
FROM " . USERS_TABLE . "
Code: Selecteer alles
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
$template->pparse('overall_header');
?>