Code: Alles auswählen
Error Detail
Critical Error
FIND FAILED: In file [admin/admin_forums.php] could not find:
"auth_pollcreate" =>
MOD script line #888 :: FAQ :: Report
Code: Alles auswählen
Commands Processed
SQL #192
copy yellow_card_db_update.php to yellow_card_db_update.php
execute yellow_card_db_update.php
delete yellow_card_db_update.php
COPY #202
copy root/card.php to card.php
copy root/language/lang_english/email/ban_block.tpl to language/lang_english/email/
copy root/language/lang_english/email/ban_reactivated.tpl to language/lang_english/email/
copy root/language/lang_english/email/ban_warning.tpl to language/lang_english/email/
copy root/language/lang_english/email/repport_post.tpl to language/lang_english/email/
copy root/templates/subSilver/images/icon_bcard.gif to templates/subSilver/images/
copy root/templates/subSilver/images/icon_bhotcard.gif to templates/subSilver/images/
copy root/templates/subSilver/images/icon_gcard.gif to templates/subSilver/images/
copy root/templates/subSilver/images/icon_rcard.gif to templates/subSilver/images/
copy root/templates/subSilver/images/icon_ycard.gif to templates/subSilver/images/
OPEN #216
posting.php
FIND #221
$params = array('forum_id'
IN-LINE FIND #226
);
IN-LINE BEFOREADD #231
, 'lock_subject' => 'lock_subject'
FIND #236
if ( $post_id )
{
BEFOREADD #242
if ( $postreport )
{
$redirect = 'viewtopic.$phpEx?' . POST_POST_URL . '=$postreport';
$post_append = '';
} else
FIND #252
case 'editpost':
$redirect =
break;
}
AFTERADD #260
$redirect .= ($post_reportid) ? '&post_reportid=$post_reportid' : '';
FIND #265
submit_post(
BEFOREADD #270
if ($lock_subject)
{
$url = "<a href='viewtopic.$phpEx?" . POST_POST_URL . "=" .$lock_subject."#".$lock_subject."'> ";
$message = addslashes(sprintf($lang['Link_to_post'],$url,"</a>")).$message;
}
FIND #279
user_notification(
}
AFTERADD #285
if ($lock_subject)
{
$url = "<a href='".append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" .$lock_subject."#".$lock_subject)."'> ";
$return_message = $lang['Report_stored']."<br/><br/>".sprintf($lang['Send_report'],$url,"</a>");
$return_meta = str_replace($post_id,$lock_subject,$return_meta);
}
FIND #296
$preview_message = str_replace("\n", '<br />', $preview_message);
AFTERADD #301
$url = "<a href='viewtopic.$phpEx?" . POST_POST_URL . "=" .$lock_subject."#".$lock_subject."'> ";
$extra_message_body= sprintf($lang['Link_to_post'],$url,"</a>");
$preview_message = ($lock_subject) ? stripslashes($extra_message_body).$preview_message : $preview_message;
FIND #309
// User default entry point
//
AFTERADD #315
$postreport=(isset($HTTP_GET_VARS['postreport']))? intval( $HTTP_GET_VARS['postreport']) : 0;
if ($postreport)
{
$sql = 'SELECT topic_id FROM '.POSTS_TABLE.' WHERE post_id="'.$postreport.'"';
if( !($result = $db->sql_query($sql) ))
message_die(GENERAL_ERROR, "Couldn't get post subject information");
$post_details = $db->sql_fetchrow($result);
$post_topic_id=$post_details['topic_id'];
$sql = 'SELECT pt.post_subject FROM '.POSTS_TEXT_TABLE.' pt, '.POSTS_TABLE.' p WHERE p.topic_id="'.$post_topic_id.'" AND pt.post_id=p.post_id ORDER BY p.post_time ASC LIMIT 1';
if( !($result = $db->sql_query($sql) ))
message_die(GENERAL_ERROR, "Couldn't get topic subject information".$sql);
$post_details = $db->sql_fetchrow($result);
$subject='('.$postreport.')'.$post_details['post_subject'];
$lock_subject=$postreport;
} else
{
$subject = '';
$lock_subject='';
}
FIND #338
$username = ($userdata['session_logged_in']) ? $userdata['username'] : '';
$poll_title = '';
$poll_length = '';
$subject = '';
REPLACE #346
// Start replacement - Yellow card MOD
$username = ($userdata['session_logged_in']) ? $userdata['username'] : '';
$poll_title = '';
$poll_length = '';
// End replacement - Yellow card MOD
FIND #356
$hidden_form_fields = '<input type="hidden" name="mode" value="' . $mode . '" />';
AFTERADD #361
$hidden_form_fields .= ($lock_subject) ? '<input type="hidden" name="lock_subject" value="'.$lock_subject.'" />':'';
FIND #367
// Generate smilies listing for page output
BEFOREADD #372
$page_title = ($postreport || $lock_subject) ? $lang['Post_a_report']: $page_title;
FIND #378
'S_NOTIFY_CHECKED' => ( $notify_user ) ? 'checked="checked"' : '',
REPLACE #383
// Start replacement - Yellow card admin MOD
'S_NOTIFY_CHECKED' => ($is_auth['auth_read'] ) ? (( $notify_user ) ? 'checked="checked"' : '') : 'DISABLED' ,
'S_LOCK_SUBJECT' => ($lock_subject) ? ' READONLY ' : '',
// End replacement - Yellow card admin MOD
OPEN #392
search.php
FIND #397
if ( isset($HTTP_POST_VARS['search_keywords'])
BEFOREADD #402
$only_bluecards = ( isset($HTTP_POST_VARS['only_bluecards']) ) ? ( ($HTTP_POST_VARS['only_bluecards']) ? TRUE : 0 ) : 0;
FIND #408
WHERE poster_id IN ($matching_userids)";
AFTERADD #413
$sql .= ($only_bluecards) ? " AND post_bluecard>0 " : "";
FIND #419
$sql = "SELECT m.post_id
FROM
BEFOREADD #425
$search_msg_only .= ($only_bluecards) ? " AND p.post_bluecard>0 AND m.post_id=p.post_id " : "";
AFTERADD #430
" . (($only_bluecards) ? ','.POSTS_TABLE . ' p ' : '') . "
FIND #435
$search_msg_only = ( $search_fields ) ? "OR post_subject LIKE '$match_word'" : '';
$sql = "SELECT post_id
FROM " . POSTS_TEXT_TABLE . "
WHERE post_text LIKE '$match_word'
REPLACE #443
$search_msg_only = ( $search_fields ) ? "OR pt.post_subject LIKE '$match_word'" : '';
$search_msg_only .= ($only_bluecards) ? " AND p.post_bluecard>0 AND pt.post_id=p.post_id " : "";
$sql = "SELECT pt.post_id
FROM " . POSTS_TEXT_TABLE . "
pt " . (($only_bluecards) ? ','.POSTS_TABLE . ' p ' : '') . "
WHERE pt.post_text LIKE '$match_word'
FIND #453
//
// Output the basic page
BEFOREADD #459
$l_only_bluecards = ($userdata['user_level']>=ADMIN) ? '</br><input type="checkbox" name="only_bluecards" > '.$lang['Search_only_bluecards'] :'';
FIND #465
'L_TOPICS' =>
'L_POSTS' =>
AFTERADD #471
'L_ONLY_BLUECARDS' => $l_only_bluecards,
OPEN #476
viewforum.php
FIND #481
$s_auth_can .= ( ( $is_auth['auth_vote']
AFTERADD #487
$s_auth_can .= ( $is_auth['auth_ban'] ) ? $lang['Rules_ban_can'] . '<br />' : '';
$s_auth_can .= ( $is_auth['auth_greencard'] ) ? $lang['Rules_greencard_can'] . '<br />' : '';
$s_auth_can .= ( $is_auth['auth_bluecard'] ) ? $lang['Rules_bluecard_can'] . '<br />' : '';
OPEN #494
viewtopic.php
FIND #499
$order_sql = (
IN-LINE FIND #504
f.auth_attachments
IN-LINE AFTERADD #509
, f.auth_ban, f.auth_greencard, f.auth_bluecard
FIND #514
$sql = "SELECT t.topic_id, t.topic_title
IN-LINE FIND #519
" . $count_sql
IN-LINE BEFOREADD #524
, f.auth_ban, f.auth_greencard, f.auth_bluecard
FIND #529
$sql = "SELECT u.username
IN-LINE FIND #534
u.user_allowsmile
IN-LINE AFTERADD #539
, u.user_warnings, u.user_level
FIND #544
$s_auth_can .= ( ( $is_auth['auth_vote']
AFTERADD #549
$s_auth_can .= ( $is_auth['auth_ban'] ) ? $lang['Rules_ban_can'] . "<br />" : "";
$s_auth_can .= ( $is_auth['auth_greencard'] ) ? $lang['Rules_greencard_can'] . "<br />" : "";
$s_auth_can .= ( $is_auth['auth_bluecard'] ) ? $lang['Rules_bluecard_can'] . "<br />" : "";
FIND #556
$delpost = '';
}
}
AFTERADD #563
if($poster_id != ANONYMOUS && $postrow[$i]['user_level'] != ADMIN)
{
$current_user = str_replace("'","\'",$postrow[$i]['username']);
if ($is_auth['auth_greencard'])
{
$g_card_img = ' <input type="image" name="unban" value="unban" onClick="return confirm(\''.sprintf($lang['Green_card_warning'],$current_user).'\')" src="'. $images['icon_g_card'] . '" alt="' . $lang['Give_G_card'] . '" >';
}
else
{
$g_card_img = '';
}
$user_warnings = $postrow[$i]['user_warnings'];
$card_img = ($user_warnings) ? (( $user_warnings < $board_config['max_user_bancard']) ? sprintf($lang['Warnings'], $user_warnings) : $lang['Banned'] ) : '';
// these lines will make a icon apear beside users post, if user have warnings or ar banned
// used instead of the previous line of code, witch shows the status as a text
// ------ From here --- do not include this line
// $card_img = ($user_warnings) ? '<img src="'.(( $user_warnings < $board_config['max_user_bancard']) ?
// $images['icon_y_card'] . '" alt="'. sprintf($lang['Warnings'], $user_warnings) .'">' :
// $images['icon_r_card'] . '" alt="'. $lang['Banned'] .'">') : '';
// ----- To this line --- Do not included this line
//
// You may also included several images, instead of only one yellow, these lines below will produce several yellow images, depending on mumber of yellow cards
// ------ From here --- do not include this line
//$card_img = ($user_warnings >= $board_config['max_user_bancard']) ? '<img src="'.$images['icon_r_card'] . '" alt="'. $lang['Banned'] .'">' : '';
//for ($n=0 ; $n<$user_warnings && $user_warnings < $board_config['max_user_bancard'];$n++)
//{
//$card_img .= ($user_warnings) ? '<img src="'.(( $user_warnings < $board_config['max_user_bancard']) ?
//$images['icon_y_card'] . '" alt="'. sprintf($lang['Warnings'], $user_warnings) .'">' :
//$images['icon_r_card'] . '" alt="'. $lang['Banned'] .'">') : '';
//}
// ----- To this line --- Do not included this line
if ($user_warnings<$board_config['max_user_bancard'] && $is_auth['auth_ban'] )
{
$y_card_img = ' <input type="image" name="warn" value="warn" onClick="return confirm(\''.sprintf($lang['Yellow_card_warning'],$current_user).'\')" src="'. $images['icon_y_card'] . '" alt="' . sprintf($lang['Give_Y_card'],$user_warnings+1) . '" >';
$r_card_img = ' <input type="image" name="ban" value="ban" onClick="return confirm(\''.sprintf($lang['Red_card_warning'],$current_user).'\')" src="'. $images['icon_r_card'] . '" alt="' . $lang['Give_R_card'] . '" >';
}
else
{
$y_card_img = '';
$r_card_img = '';
}
} else
{
$card_img = '';
$g_card_img = '';
$y_card_img = '';
$r_card_img = '';
}
if ($is_auth['auth_bluecard'])
{
if ($is_auth['auth_mod'])
{
$b_card_img = (($postrow[$i]['post_bluecard'])) ? ' <input type="image" name="report_reset" value="report_reset" onClick="return confirm(\''.$lang['Clear_blue_card_warning'].'\')" src="'. $images['icon_bhot_card'] . '" alt="'. sprintf($lang['Clear_b_card'],$postrow[$i]['post_bluecard']) . '">':' <input type="image" name="report" value="report" onClick="return confirm(\''.$lang['Blue_card_warning'].'\')" src="'. $images['icon_b_card'] . '" alt="'. $lang['Give_b_card'] . '" >';
}
else
{
$b_card_img = ' <input type="image" name="report" value="report" onClick="return confirm(\''.$lang['Blue_card_warning'].'\')" src="'. $images['icon_b_card'] . '" alt="'. $lang['Give_b_card'] . '" >';
}
} else $b_card_img = '';
// parse hidden filds if cards visible
$card_hidden = ($g_card_img || $r_card_img || $y_card_img || $b_card_img) ? '<input type="hidden" name="post_id" value="'. $postrow[$i]['post_id'].'">' :'';
FIND #632
'DELETE' =>
AFTERADD #637
'USER_WARNINGS' => $user_warnings,
'CARD_IMG' => $card_img,
'CARD_HIDDEN_FIELDS' => $card_hidden,
'CARD_EXTRA_SPACE' => ($r_card_img || $y_card_img || $g_card_img || $b_card_img) ? ' ' : '',
FIND #646
'U_MINI_POST' =>
AFTERADD #651
'U_G_CARD' => $g_card_img,
'U_Y_CARD' => $y_card_img,
'U_R_CARD' => $r_card_img,
'U_B_CARD' => $b_card_img,
'S_CARD' => append_sid("card.".$phpEx),
OPEN #660
admin/admin_board.php
FIND #665
//
// Escape any quotes
BEFOREADD #671
//report forum selection
$sql = "SELECT f.forum_name, f.forum_id
FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
WHERE c.cat_id = f.cat_id ORDER BY c.cat_order ASC, f.forum_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain forum list", "", __LINE__, __FILE__, $sql);
}
$report_forum_rows = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
$report_forum_select_list = '<select name="report_forum">';
$report_forum_select_list .= '<option value="0">' . $lang['None'] . '</option>';
for($i = 0; $i < count($report_forum_rows); $i++)
{
$report_forum_select_list .= '<option value="' . $report_forum_rows[$i]['forum_id'] . '">' . $report_forum_rows[$i]['forum_name'] . '</option>';
}
$report_forum_select_list .= '</select>';
$report_forum_select_list = str_replace("value=\"".$new['report_forum']."\">", "value=\"".$new['report_forum']."\" SELECTED>*" ,$report_forum_select_list);
FIND #693
"L_ENABLE_PRUNE" =>
AFTERADD #698
'L_BLUECARD_LIMIT' => $lang['Bluecard_limit'],
'L_BLUECARD_LIMIT_EXPLAIN' => $lang['Bluecard_limit_explain'],
'L_BLUECARD_LIMIT_2' => $lang['Bluecard_limit_2'],
'L_BLUECARD_LIMIT_2_EXPLAIN' => $lang['Bluecard_limit_2_explain'],
'L_MAX_USER_BANCARD' => $lang['Max_user_bancard'],
'L_MAX_USER_BANCARD_EXPLAIN' => $lang['Max_user_bancard_explain'],
'L_REPORT_FORUM' => $lang['Report_forum'],
'L_REPORT_FORUM_EXPLAIN' => $lang['Report_forum_explain'],
FIND #711
"PRUNE_NO" =>
AFTERADD #716
'BLUECARD_LIMIT' => $new['bluecard_limit'],
'BLUECARD_LIMIT_2' => $new['bluecard_limit_2'],
'MAX_USER_BANCARD' => $new['max_user_bancard'],
'S_REPORT_FORUM' => $report_forum_select_list,
OPEN #724
admin/admin_forumauth.php
FIND #729
// View
IN-LINE FIND #734
Poll
IN-LINE AFTERADD #739
Warn/ban Unban Repport
FIND #744
$simple_auth_ary = array(
0 => array(
IN-LINE FIND #750
),
IN-LINE BEFOREADD #755
, AUTH_MOD, AUTH_ADMIN, AUTH_REG
FIND #760
1 => array(
IN-LINE FIND #765
),
IN-LINE BEFOREADD #770
, AUTH_MOD, AUTH_ADMIN, AUTH_REG
FIND #775
2 => array(
IN-LINE FIND #780
),
IN-LINE BEFOREADD #785
, AUTH_MOD, AUTH_ADMIN, AUTH_REG
FIND #789
3 => array(
IN-LINE FIND #794
),
IN-LINE BEFOREADD #799
, AUTH_MOD, AUTH_ADMIN, AUTH_REG
FIND #803
4 => array(
IN-LINE FIND #808
),
IN-LINE BEFOREADD #813
, AUTH_MOD, AUTH_ADMIN, AUTH_REG
FIND #817
5 => array(
IN-LINE FIND #822
),
IN-LINE BEFOREADD #827
, AUTH_MOD, AUTH_ADMIN, AUTH_REG
FIND #831
6 => array(
IN-LINE FIND #836
),
IN-LINE BEFOREADD #841
, AUTH_MOD, AUTH_ADMIN, AUTH_REG
FIND #846
$forum_auth_fields = array(
IN-LINE FIND #851
);
IN-LINE BEFOREADD #856
, 'auth_ban', 'auth_greencard', 'auth_bluecard'
FIND #861
']);
IN-LINE FIND #866
);
IN-LINE REPLACE #871
,
AFTERADD #876
'auth_ban' => $lang['Ban'],
'auth_greencard' => $lang['Greencard'],
'auth_bluecard' => $lang['Bluecard']);
OPEN #883
admin/admin_forums.php