PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
vxcash
/
includes
<?php /** * Fired during plugin activation * * @link https://www.vxcash.net * @since 1.0.0 * * @package Vxcash * @subpackage Vxcash/includes */ /** * Fired during plugin activation. * * This class defines all code necessary to run during the plugin's activation. * * @since 1.0.0 * @package Vxcash * @subpackage Vxcash/includes * @author Support <support@vxcash.net> */ class Vxcash_Activator { /** * Short Description. (use period) * * Long Description. * * @since 1.0.0 */ public static function activate() { global $wpdb; require_once ABSPATH . 'wp-admin/includes/upgrade.php'; self::registerCronHook(); self::createKeywordsTable($wpdb); self::createPornmeHostsTable($wpdb); self::createVideosTable($wpdb); self::createLivecamsTable($wpdb); self::createVXOnlineTable($wpdb); self::createAutoImportTable($wpdb); } private static function registerCronHook() { wp_schedule_event(time(), 'hourly', 'update_vxcash_content'); } /** * @param Wpdb $wpdb */ private static function createKeywordsTable($wpdb) { $tableName = $wpdb->prefix . Vxcash_Tablename_Enum::PORNME_KEYWORDS; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE $tableName ( keywords varchar(50) NOT NULL, PRIMARY KEY (keywords) ) $charset_collate"; dbDelta($sql); } /** * @param Wpdb $wpdb */ private static function createVideosTable($wpdb) { $tableName = $wpdb->prefix . Vxcash_Tablename_Enum::PORNME_IMPORTED_VIDEOS; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE $tableName ( videoId BIGINT(20) NOT NULL, postId INT(11) NOT NULL, PRIMARY KEY (videoId) ) $charset_collate"; dbDelta($sql); } /** * @param Wpdb $wpdb */ private static function createPornmeHostsTable($wpdb) { $tableName = $wpdb->prefix . Vxcash_Tablename_Enum::PORNME_HOST_INFO; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE $tableName ( id bigint(20) UNSIGNED NOT NULL, name varchar(50) NOT NULL, picture varchar(200) NOT NULL, profile varchar(200) NOT NULL, PRIMARY KEY (id), UNIQUE KEY name (name) ) $charset_collate"; dbDelta($sql); } /** * @param Wpdb $wpdb */ private static function createVXOnlineTable($wpdb) { $tableName = $wpdb->prefix . Vxcash_Tablename_Enum::VX_ONLINE_HOSTS; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE $tableName ( id bigint(20) UNSIGNED NOT NULL, PRIMARY KEY (id) ) $charset_collate"; dbDelta($sql); } /** * @param Wpdb $wpdb */ private static function createLivecamsTable($wpdb) { $tableName = $wpdb->prefix . Vxcash_Tablename_Enum::LIVECAMS; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE $tableName ( id bigint(20) UNSIGNED NOT NULL, name varchar(50) NOT NULL, page bigint(20) UNSIGNED NOT NULL, last_action int(10) UNSIGNED NOT NULL DEFAULT '1', action_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY name (name) ) $charset_collate"; dbDelta($sql); } /** * @param Wpdb $wpdb */ private static function createAutoImportTable($wpdb) { $tableName = $wpdb->prefix . Vxcash_Tablename_Enum::CRON_AUTOLOAD; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE $tableName ( id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, type enum('HOST','VIDEO','PORNDOEVIDEO') NOT NULL, settings varchar(250) NOT NULL, lastupdate timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, imported int(10) UNSIGNED NOT NULL DEFAULT '0', aktiv int(2) UNSIGNED NOT NULL DEFAULT '1', PRIMARY KEY (id), KEY type (type) ) $charset_collate"; dbDelta($sql); } }
[-] class-vxcash-deactivator.php
[edit]
[-] index.php
[edit]
[-] class-vxcash-posttypes-enum.php
[edit]
[-] class-vxcash-tablename-enum.php
[edit]
[-] class-vxcash-vxhost-custom-posttype.php
[edit]
[-] class-vxcash-vxvideo-custom-posttype.php
[edit]
[-] class-vxcash-taxonomies.php
[edit]
[-] class-vxcash-activator.php
[edit]
[+]
..
[-] class-vxcash-pornme-custom-posttype.php
[edit]
[-] class-vxcash.php
[edit]
[-] class-vxcash-loader.php
[edit]
[-] class-vxcash-vxhost-state-enum.php
[edit]
[-] class-vxcash-i18n.php
[edit]