| Server IP : 172.67.134.116 / Your IP : 216.73.217.68 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/enable-cors/ |
Upload File : |
<?php
/**
* Enable CORS
*
* @package Enable\Cors
* @author Dev Kabir
* @copyright 2023 Dev Kabir
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Enable CORS
* Plugin URI: https://www.fiverr.com/share/7kXeLW
* Description: Enable Cross-Origin Resource Sharing for any or specific origin.
* Version: 2.0.2
* Requires at least: 4.7
* Requires PHP: 7.1
* Author: Dev Kabir
* Author URI: https://devkabir.github.io/
* Text Domain: enable-cors
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
/*
|--------------------------------------------------------------------------
| If this file is called directly, abort.
|--------------------------------------------------------------------------
*/
if ( ! defined( 'WPINC' ) ) {
exit;
}
/*
|--------------------------------------------------------------------------
| Load class autoloader, constants.
|--------------------------------------------------------------------------
*/
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/constants.php';
use Enable\Cors\Plugin;
/*
|--------------------------------------------------------------------------
| Activation, deactivation and uninstall event.
|--------------------------------------------------------------------------
*/
register_activation_hook( __FILE__, array( Plugin::class, 'activate' ) );
register_deactivation_hook( __FILE__, array( Plugin::class, 'deactivate' ) );
register_uninstall_hook( __FILE__, array( Plugin::class, 'deactivate' ) );
/*
|--------------------------------------------------------------------------
| Start the plugin
|--------------------------------------------------------------------------
*/
add_action( 'plugins_loaded', array( Plugin::class, 'init' ) );