uawdijnntqw1x1x1
IP : 18.116.50.234
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,parse_ini_file,show_source,eval,open_base,symlink
OS : Linux
PATH:
/
home
/
sudancam
/
public_html3
/
.
/
..
/
.trash
/
install
/
..
/
catalog.1
/
model
/
checkout
/
subscription.php
/
/
<?php namespace Opencart\Catalog\Model\Checkout; class Subscription extends \Opencart\System\Engine\Model { public function addSubscription(int $order_id, array $data): int { $this->db->query("INSERT INTO `" . DB_PREFIX . "subscription` SET `customer_id` = '" . (int)$data['customer_id'] . "', `order_id` = '" . (int)$order_id . "', `order_product_id` = '" . (int)$data['order_product_id'] . "', `reference` = '', `subscription_plan_id` = '" . (int)$data['subscription_plan_id'] . "', `name` = '" . $this->db->escape((string)$data['name']) . "', `description` = '" . $this->db->escape((string)$data['description']) . "', `trial_price` = '" . (float)$data['trial_price'] . "', `trial_frequency` = '" . $this->db->escape((string)$data['trial_frequency']) . "', `trial_cycle` = '" . (int)$data['trial_cycle'] . "', `trial_duration` = '" . (int)$data['trial_duration'] . "', `trial_status` = '" . (int)$data['trial_status'] . "', `price` = '" . (float)$data['price'] . "', `frequency` = '" . $this->db->escape((string)$data['frequency']) . "', `cycle` = '" . (int)$data['cycle'] . "', `duration` = '" . (int)$data['duration'] . "', `subscription_status_id` = '" . (int)$this->config->get('config_subscription_status_id'). "', `date_added` = NOW(), `date_modified` = NOW()"); return $this->db->getLastId(); } public function editReference(int $subscription_id, string $reference): void { $this->db->query("UPDATE `" . DB_PREFIX . "subscription` SET `reference` = '" . $this->db->escape($reference) . "' WHERE `subscription_id` = '" . (int)$subscription_id . "'"); } public function deleteSubscriptionByOrderId(int $order_id): void { $this->db->query("DELETE FROM `" . DB_PREFIX . "subscription` WHERE `order_id` = '" . (int)$order_id . "'"); } public function getSubscriptionByOrderProductId(int $order_product_id, array $data): int { $this->db->query("SELECT * FROM `" . DB_PREFIX . "subscription` WHERE `order_product_id` = '" . $order_product_id . "'"); return $this->db->rows; } }
/home/sudancam/public_html3/./../.trash/install/../catalog.1/model/checkout/subscription.php