
29.07.2009, 20:24
|
|
Reservists Of Antichat - Level 6
Регистрация: 15.03.2009
Сообщений: 560
С нами:
9030566
Репутация:
2017
|
|
Код:
function affiliates_banners_edit_verify()
{
global $txt, $smcFunc, $sourcedir, $board_info, $board, $selected_boards;
// Check Permission for Admin and Affiliates Manager
if (!allowedTo('affiliates_manage'))
fatal_lang_error('affiliates_no_permission', false);
// We need an ID!!
if (empty($_REQUEST['id']))
fatal_lang_error('banners_no_selected', false);
// Check the banner
$bannerimage = htmlspecialchars($_REQUEST['bannerimage'], ENT_QUOTES);
$banner_id = $_REQUEST['id'];
if (empty($bannerimage))
fatal_lang_error('banner_no_image',false);
$smcFunc['db_query']('', "
UPDATE {db_prefix}affiliates_banners
SET image = '$bannerimage'
WHERE id_banner = $banner_id LIMIT 1");
// Please redirectme to the new banner
redirectexit('action=affiliates;sa=banners');
}
people,тут же есть вроде инъект,и как мне его с UPDATE реализовать?
P.S. просто уже мозг кипит
Последний раз редактировалось HAXTA4OK; 29.07.2009 в 20:26..
|
|
|