ecmall2.3.0-0918-scgbk 注入
function _get_conditions()
{
/* 搜索条件 */
$conditions = "1 = 1";
if (trim($_GET['keyword']))
{
$str = "LIKE '%" . trim($_GET['keyword']) . "%'";
$conditions .= " AND (goods_name {$str} OR brand {$str} OR cate_name {$str})";
echo $conditions;
exit;
}
if ($_GET['character'])
{
switch ($_GET['character'])
{
case 'show':
$conditions .= " AND if_show = 1";
break;
case 'hide':
$conditions .= " AND if_show = 0";
break;
case 'closed':
$conditions .= " AND closed = 1";
break;
case 'recommended':
$conditions .= " AND g.recommended = 1";
break;
}
}
return $conditions;
}
大家一看就知道。
来张图。
评论2次
又是这种 现在的程序员真是 让人无法理解啊
貌似是的。