Website : phonehp.ir
backdoor
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Home
Console
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
nehpir
/
www
/
wp-content
/
plugins
/
woocommersa
/
includes
/
Core
/
Filename :
Activator.php
back
Warning
: Undefined variable $file in
/home/nehpir/public_html/goods.php
on line
545
Copy
<?php namespace WooCommersa\Core; if (!defined('ABSPATH')) exit; class Activator { public static function activate() { global $wpdb; $table_history = $wpdb->prefix . 'woocommersa_history'; $table_rules = $wpdb->prefix . 'woocommersa_pricing_rules'; $table_logs = $wpdb->prefix . 'woocommersa_logs'; $table_redirects = $wpdb->prefix . 'woocommersa_redirects'; $table_carts = $wpdb->prefix . 'woocommersa_abandoned_carts'; $charset_collate = $wpdb->get_charset_collate(); $sql_history = "CREATE TABLE $table_history ( id bigint(20) NOT NULL AUTO_INCREMENT, user_id bigint(20) NOT NULL, product_id bigint(20) NOT NULL, field_name varchar(50) NOT NULL, old_value text NOT NULL, new_value text NOT NULL, batch_id varchar(50) DEFAULT '' NOT NULL, source varchar(50) DEFAULT 'manual' NOT NULL, date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, PRIMARY KEY (id) ) $charset_collate;"; $sql_rules = "CREATE TABLE $table_rules ( id bigint(20) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, conditions text NOT NULL, action_type varchar(20) NOT NULL, action_value varchar(50) NOT NULL, target_price varchar(50) DEFAULT 'regular_price' NOT NULL, min_margin_percent float DEFAULT 0 NOT NULL, status varchar(20) DEFAULT 'active' NOT NULL, PRIMARY KEY (id) ) $charset_collate;"; $sql_logs = "CREATE TABLE $table_logs ( id bigint(20) NOT NULL AUTO_INCREMENT, user_id bigint(20) NOT NULL, level varchar(20) DEFAULT 'info' NOT NULL, action varchar(100) NOT NULL, message_fa text NOT NULL, message_en text NOT NULL, date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, PRIMARY KEY (id) ) $charset_collate;"; $sql_redirects = "CREATE TABLE $table_redirects ( id bigint(20) NOT NULL AUTO_INCREMENT, old_url varchar(255) NOT NULL, new_url varchar(255) NOT NULL, type int(3) NOT NULL DEFAULT 301, hits int(11) NOT NULL DEFAULT 0, status varchar(20) DEFAULT 'active' NOT NULL, created_at datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, PRIMARY KEY (id), UNIQUE KEY old_url (old_url) ) $charset_collate;"; $sql_carts = "CREATE TABLE $table_carts ( id bigint(20) NOT NULL AUTO_INCREMENT, token varchar(50) NOT NULL, user_id bigint(20) DEFAULT 0 NOT NULL, phone varchar(20) DEFAULT '' NOT NULL, email varchar(100) DEFAULT '' NOT NULL, cart_data longtext NOT NULL, status varchar(20) DEFAULT 'abandoned' NOT NULL, reminders_sent text DEFAULT '' NOT NULL, coupon_code varchar(50) DEFAULT NULL, incentive_data text DEFAULT NULL, recovered_interval varchar(20) DEFAULT NULL, recovered_rule_id varchar(50) DEFAULT NULL, bale_chat_id varchar(50) DEFAULT NULL, last_reminder_at datetime DEFAULT NULL, recovered_at datetime DEFAULT NULL, created_at datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, updated_at datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, PRIMARY KEY (id), UNIQUE KEY token (token), KEY phone (phone), KEY status (status) ) $charset_collate;"; require_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta($sql_history); dbDelta($sql_rules); dbDelta($sql_logs); dbDelta($sql_redirects); dbDelta($sql_carts); } }