コード例 #1
0
ファイル: products.php プロジェクト: CornicheIbms/ebusiness
 public function modifyProduct($name, $brand, $rowToChange, $updatedValue)
 {
     $Name = Antiexploit::detectExploit($name, $_SERVER['REMOTE_ADDR']);
     $Brand = Antiexploit::detectExploit($brand, $_SERVER['REMOTE_ADDR']);
     $Row = Antiexploit::detectExploit($rowToChange, $_SERVER['REMOTE_ADDR']);
     $Val = Antiexploit::detectExploit($updatedValue, $_SERVER['REMOTE_ADDR']);
     Database::query("UPDATE products SET {$Row} = ? WHERE product_name = ? AND product_brand = ?", "update", array($Val, $Name, $Brand));
 }
コード例 #2
0
ファイル: user.php プロジェクト: CornicheIbms/ebusiness
 public function modify($email, $row, $update, $ip)
 {
     $Email = Antiexploit::detectExploit($email, $ip);
     $Update = Antiexploit::detectExploit($update, $ip);
     Database::query("UPDATE users SET {$row} = ? WHERE email = ?", "update", array($Update, $Email));
 }