|
Server : LiteSpeed System : Linux premium92.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : rbnsfqys ( 805) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/rbnsfqys/ali.rbn.services/wp-content/plugins/Repairplugin-pro/ |
<?php
/**
* @wordpress-plugin
* Plugin Name: RepairPlugin Pro
* Description: Fast and high converting appointment plugin for repair shop owners
* Version: 2.1.0
* Initial Dev: 9
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: RepairPlugin
* Author URI: https://www.repairplugin.com
* Text Domain: wp-repair-plugin
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
if(!defined('WP_REPAIR_PLUGIN_FILE')) {
define( 'WP_REPAIR_PLUGIN_FILE', __FILE__ );
define( 'WP_REPAIR_PLUGIN_BASENAME', plugin_basename( WP_REPAIR_PLUGIN_FILE ) );
define( 'WP_REPAIR_PLUGIN_PATH', plugin_dir_path( WP_REPAIR_PLUGIN_FILE ) );
define( 'WP_REPAIR_PLUGIN_URL', plugin_dir_url( WP_REPAIR_PLUGIN_FILE ) );
define( 'WP_REPAIR_ASSETS_CACHE_V', 'v210id9' );
define( 'WP_REPAIR_DATABASE_STRUCTURE_VERSION', 'v2_1_0_d9' );
define( 'WP_REPAIR_SMART_CACHE_VERSION', 'v2_1_0_d9' );
define( 'WP_REPAIR_SETTINGS_PLACEHOLDER_EMAIL', 'abc@gmail.com' );
define( 'WP_REPAIR_BASE_SERVER_URL', 'https://base.repairplugin.com/' );
define( 'WP_REPAIR_IDEAL_IN3_API_URL', 'https://license.repairplugin.com/' );
define( 'WP_REPAIR_REALLY_DOWNLOAD_IMAGES', TRUE );
define( 'WP_REPAIR_MAX_IMAGES_DOWNLOAD_PER_REQUEST', 100 );
// Below setting is for single batch of tasks processing
// For example single batch will work for 3 seconds
// and task processing will stop if 3 seconds are over
// do not ever increase this value to more than 5 seconds
// for example because of this function:
// rp_safe_wp_cache_flush_through_background_job()
define( 'WP_REPAIR_MAX_BACKGROUND_JOB_TIME', 3 );
//--------------------------------------------------
define( 'WP_REPAIR_DEV_ENV', FALSE );
require_once WP_REPAIR_PLUGIN_PATH . 'error_logs.php';
// catch all errors:
try {
require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'main.php' );
} catch ( Exception|Error|Throwable|ErrorException|ArgumentCountError|DivisionByZeroError|ParseError|TypeError|mysqli_sql_exception $e ) {
$error = array(
'message' => $e->getMessage() . ' in ' . $e->getFile() . ' on line ' . $e->getLine(),
'backtrace' => rp_debug_backtrace_for_error_log(),
);
rp_add_to_today_error_log( $error );
}
} else {
function rp_already_active_notice() {
$class = 'notice notice-error';
$message = __( 'More than one instance of Repairplugin Pro is active. Please deactivate one of them.', 'wp-repair-plugin' );
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) );
}
// add admin notice
rp_add_action( 'admin_notices', 'rp_already_active_notice' );
}