new version is 1.1.4.
Ther are no changes into funtionality, still ablew to ban,unban, warn and post repport, nothing change about that.
Now this mod uses POST for parsing the actions, making it more secure and less vounderble, users using this mod are adviced to follw this upgrade.
how-to upgrade:
in file viewtopic.php
Code: Select all
[FIND]
if($poster_id != ANONYMOUS && $postrow[$i]['user_level'] != ADMIN)
{
if ($is_auth['auth_greencard'])
{
$g_card_uri = append_sid("card.$phpEx?c=1&b=". $poster_id. "&p=".$postrow[$i]['post_id']);
$g_card_img = '<a href="' . $g_card_uri . '"><img src="' . $images['icon_g_card'] . '" alt="' . $lang['Give_G_card'] . '" title="' . $lang['Give_G_card'] . '" border="0" /></a>';
} else $g_card_img="";
if ($postrow[$i]['user_active'] && $is_auth['auth_ban'] )
{
$y_card_uri = append_sid("card.$phpEx?c=".($postrow[$i]['user_active']+1)."&b=". $poster_id. "&p=".$postrow[$i]['post_id']);
$y_card_img = '<a href="' . $y_card_uri . '"><img src="' . $images['icon_y_card'] . '" alt="' . sprintf($lang['Give_Y_card'],$postrow[$i]['user_active']) . '" title="' . sprintf($lang['Give_Y_card'],$postrow[$i]['user_active']) . '" border="0" /></a>';
$r_card_uri = append_sid("card.$phpEx?b=". $poster_id. "&p=".$postrow[$i]['post_id']);
$r_card_img = '<a href="' . $r_card_uri . '"><img src="' . $images['icon_r_card'] . '" alt="' . $lang['Give_R_card'] . '" title="' . $lang['Give_R_card'] . '" border="0" /></a>';
} else { $y_card_img=""; $r_card_img=""; }
} else { $g_card_img=""; $y_card_img=""; $r_card_img=""; }
if ($is_auth['auth_bluecard'])
{
if ($is_auth['auth_mod'])
{
$b_card_uri = append_sid("card.$phpEx?p=".$postrow[$i]['post_id']."&c=".(($postrow[$i]['post_bluecard'])?"0":($postrow[$i]['post_bluecard']+1)));
$b_card_img = '<a href="' . $b_card_uri . '"><img src="' . (($postrow[$i]['post_bluecard'])?$images['icon_bhot_card']:$images['icon_b_card']) . '" alt="'. ( ($postrow[$i]['post_bluecard'])? sprintf($lang['Clear_b_card'],$postrow[$i]['post_bluecard']) : $lang['Give_b_card'] ) . '" title="' . (($postrow[$i]['post_bluecard'])? sprintf($lang['Clear_b_card'],$postrow[$i]['post_bluecard']):$lang['Give_b_card']) . '" border="0" /></a>';
}
else
{
$b_card_uri = append_sid("card.$phpEx?p=".$postrow[$i]['post_id']."&c=".($postrow[$i]['post_bluecard']+1));
$b_card_img = '<a href="' . $b_card_uri . '"><img src="'.$images['icon_b_card'] . '" alt="'.$lang['Give_b_card']. '" title="' . $lang['Give_b_card'] . '" border="0" /></a>';
}
} else $b_card_img='';
[REPLACE WITH]
if($poster_id != ANONYMOUS && $postrow[$i]['user_level'] != ADMIN)
{
$card_hidden='';
if ($is_auth['auth_greencard'])
{
$g_card_img = ' <input type="image" name="unban" value="unban" src="'. $images['icon_g_card'] . '" alt="' . $lang['Give_G_card'] . '" >';
}
else $g_card_img='';
if ($postrow[$i]['user_active'] && $is_auth['auth_ban'] )
{
$y_card_img = ' <input type="image" name="warn" value="warn" src="'. $images['icon_y_card'] . '" alt="' . sprintf($lang['Give_Y_card'],$postrow[$i]['user_active']) . '" >';
$r_card_img = ' <input type="image" name="ban" value="ban" src="'. $images['icon_r_card'] . '" alt="' . $lang['Give_R_card'] . '" >';
}
else
{
$y_card_img=''; $r_card_img='';
}
} else
{
$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="rapport_reset" value="rapport_reset" src="'. $images['icon_bhot_card'] . '" alt="'. sprintf($lang['Clear_b_card'],$postrow[$i]['post_bluecard']) . '">':' <input type="image" name="rapport" value="rapport" src="'. $images['icon_b_card'] . '" alt="'. $lang['Give_b_card'] . '" >';
}
else
{
$b_card_img = ' <input type="image" name="rapport" value="rapport" src="'. $images['icon_b_card'] . '" alt="'. $lang['Give_b_card'] . '" >';
}
} else $b_card_img='';
[FIND]
'DELETE' => $delpost,
[ AFTER, ADD ]
'CARD_HIDDEN_FIELDS' => $card_hidden,
"U_G_CARD" => $g_card_img,
"U_Y_CARD" => $y_card_img,
"U_R_CARD" => $r_card_img,
"U_B_CARD" => $b_card_img,
[REPLACE WITH]
'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),
Code: Select all
[FIND]
<td width="100%"><a href="{postrow.U_MINI_POST}">
[BEFORE, ADD]
<form method="post" action="{postrow.S_CARD}">
[FIND]
{postrow.U_B_CARD}
[AFTER, ADD]
{postrow.CARD_HIDDEN_FIELDS}
[FIND]
{postrow.IP_IMG}
[AFTER, ADD]
</form>