Файл: upload-2031-rs1/admin/model/extension/event.php
Строк: 16
<?php
class ModelExtensionEvent extends Model {
public function addEvent($code, $trigger, $action) {
$this->db->query("INSERT INTO " . DB_PREFIX . "event SET `code` = '" . $this->db->escape($code) . "', `trigger` = '" . $this->db->escape($trigger) . "', `action` = '" . $this->db->escape($action) . "'");
}
public function deleteEvent($code) {
$this->db->query("DELETE FROM " . DB_PREFIX . "event WHERE `code` = '" . $this->db->escape($code) . "'");
}
}