Could not insert data into logs table
DEBUG MODE
INSERT INTO LOGS_TABLE (mode, topic_id, user_id, username, user_ip, time) VALUES ('edit', '42', '2', 'Nemo', '52b34e3a', '1142497449')
Line : 52
File : functions_log.php
Warning: Missing argument 21 for submit_post(), called in /home/glorialucia/data/www/forum/posting.php on line 603 and defined in /home/glorialucia/data/www/forum/includes/functions_post.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/glorialucia/data/www/forum/includes/functions_post.php:216) in /home/glorialucia/data/www/forum/includes/page_header.php on line 489
Warning: Cannot modify header information - headers already sent by (output started at /home/glorialucia/data/www/forum/includes/functions_post.php:216) in /home/glorialucia/data/www/forum/includes/page_header.php on line 491
Warning: Cannot modify header information - headers already sent by (output started at /home/glorialucia/data/www/forum/includes/functions_post.php:216) in /home/glorialucia/data/www/forum/includes/page_header.php on line 492
Юлия-Москва писал(а):Что делать?

Giznar писал(а):Только в поиск не посылать

function log_action($action, $topic_id, $user_id, $username)function log_action($action, $topic_id, $user_id, $username, $var_1, $var_2, $var_3)$action = ucfirst($rows[$i]['mode']);$action = $rows[$i]['mode'];SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
SELECT * FROM phpbb_posts_text WHERE post_id IN()
Line : 93
File : admin_logs_postarchive.php$sql[] = "CREATE TABLE " . LOGS_TABLE . " (
id_log MEDIUMINT(10) NOT NULL DEFAULT '0' AUTO_INCREMENT,
mode VARCHAR(50) NULL DEFAULT '',
topic_id MEDIUMINT(10) NULL DEFAULT '0',
user_id MEDIUMINT(8) NULL DEFAULT '0',
username VARCHAR(255) NULL DEFAULT '',
user_ip CHAR(8) DEFAULT '0' NOT NULL,
time INT(11) NULL DEFAULT '0',
PRIMARY KEY (id_log))";#
#-----[ FIND ]------------------------------------------------
#
switch ( $mode )
{
case 'editpost':
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Log Actions Start
$username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : '';
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
$poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : '';
$poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : '';
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : '';
$bbcode_uid = '';
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
if ( $error_msg == '' )
{
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
// Log actions MOD Start
if ( $is_auth['auth_mod'] )
{
log_action('edit', $topic_id, $userdata['user_id'], $userdata['username']);
}
// Log actions MOD End
}
break;
// Log Action End
go писал(а):$sql[] = "CREATE TABLE " . LOGS_TABLE . " (
id_log MEDIUMINT(10) NOT NULL DEFAULT '0' AUTO_INCREMENT,
mode VARCHAR(50) NULL DEFAULT '',
topic_id MEDIUMINT(10) NULL DEFAULT '0',
user_id MEDIUMINT(8) NULL DEFAULT '0',
username VARCHAR(255) NULL DEFAULT '',
user_ip CHAR(8) DEFAULT '0' NOT NULL,
time INT(11) NULL DEFAULT '0',
PRIMARY KEY (id_log))";
$sql[] = "CREATE TABLE " . LOGS_TABLE . " (
id_log MEDIUMINT(10) NOT NULL AUTO_INCREMENT,
mode VARCHAR(50) NULL DEFAULT '',
topic_id MEDIUMINT(10) NULL DEFAULT '0',
user_id MEDIUMINT(8) NULL DEFAULT '0',
username VARCHAR(255) NULL DEFAULT '',
user_ip CHAR(8) DEFAULT '0' NOT NULL,
time INT(11) NULL DEFAULT '0',
PRIMARY KEY (id_log))";
Вернуться в Поддержка модов для phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0