<?php
/*
Plugin Name: 	Premium SEO pack - Wordpress Plugin
Plugin URI: 		https://www.persianscript.ir
Description: 		Premium SEO Pack is the newest and most complete SEO Wordpress Plugin on the market! Also it has the most unique feature, that cannot be found on any existing plugins on the market. It’s called SEO MASS OPTIMIZATION and it allows you to mass optimize all your post/pages/custom post types in just seconds!
Version: 			3.3.2
Author: 			persianscript.ir
Author URI: 		https://www.persianscript.ir
Text Domain: 	psp
*/
! defined( 'ABSPATH' ) and exit;

define('PSP_VERSION', '3.3.2');



if ( ! defined('PSP_PLUGIN_FILE') ) {
	define('PSP_PLUGIN_FILE', __FILE__);
}
if ( ! defined('PSP_ABSPATH') ) {
	define('PSP_ABSPATH', dirname( PSP_PLUGIN_FILE ) . '/');
}
if ( ! defined('PSP_PLUGIN_BASENAME') ) {
	define('PSP_PLUGIN_BASENAME', plugin_basename( PSP_PLUGIN_FILE ));
}

// Derive the current path and load up psp - TEST
$plugin_path = dirname(__FILE__) . '/';
if(class_exists('psp') != true) {
	require_once($plugin_path . 'aa-framework/framework.class.php');
}

// Initalize the your plugin
$psp = new psp();

// Add an activation hook
register_activation_hook(__FILE__, array(&$psp, 'activate'));

// load textdomain
add_action( 'plugins_loaded', 'psp_load_textdomain' );
add_action( 'plugins_loaded', 'psp_check_integrity' );

function psp_load_textdomain() {
	load_plugin_textdomain( 'psp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
function psp_check_integrity() {
	$mainObj = psp();
	return is_object($mainObj) ? $mainObj->plugin_integrity_check() : true;
}
