web/wp-content/plugins/duplicator/define.php
author Anthony Ly <anthonyly.com@gmail.com>
Tue, 12 Mar 2013 18:21:39 +0100
changeset 206 919b4ddb13fa
parent 204 09a1c134465b
permissions -rw-r--r--
modification logo footer cccb

<?php
	
	//Prevent directly browsing to the file
	if (function_exists('plugin_dir_url')) {
		define('DUPLICATOR_VERSION',   		'0.4.1');
		define("DUPLICATOR_HOMEPAGE",		"http://lifeinthegrid.com/labs/duplicator");
		define("DUPLICATOR_GIVELINK",		"http://lifeinthegrid.com/partner");
		define("DUPLICATOR_HELPLINK",  		"http://lifeinthegrid.com/duplicator-docs");
		define("DUPLICATOR_CERTIFIED",		"http://lifeinthegrid.com/duplicator-hosts");
		
		define("DUPLICATOR_DB_ICONV_IN",	"UTF-8"); 
		define("DUPLICATOR_DB_ICONV_OUT",	"ISO-8859-1//TRANSLIT"); 
		define('DUPLICATOR_PLUGIN_URL',  plugin_dir_url( __FILE__ ));
		define('DUPLICATOR_PLUGIN_PATH', str_replace("\\", "/", plugin_dir_path( __FILE__ )));
		
		/* Paths should ALWAYS read "/"
			uni: /home/path/file.txt
			win:  D:/home/path/file.txt 
			SSDIR = SnapShot Directory */
		if ( !defined('ABSPATH') ) {
			define('ABSPATH', dirname('__FILE__'));
		}
		define("DUPLICATOR_SSDIR_NAME",		'wp-snapshots'); 
		define('DUPLICATOR_WPROOTPATH',		str_replace("\\", "/", ABSPATH));
		define("DUPLICATOR_SSDIR_PATH",		str_replace("\\", "/", DUPLICATOR_WPROOTPATH . DUPLICATOR_SSDIR_NAME));
		define("DUPLICATOR_INSTALL_PHP",	'installer.php');
		define("DUPLICATOR_INSTALL_BAK",	'installer.rescue.php');
		define("DUPLICATOR_INSTALL_SQL",	'installer-data.sql');
		define("DUPLICATOR_INSTALL_LOG",	'installer-log.txt');
		define("DUPLICATOR_ZIP_FILE_POOL",	5000);
	} else {
		error_reporting(0); 
		$port = (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "off") ? "https://" : "http://"; 
		$url  =  $port . $_SERVER["HTTP_HOST"]; 
		header("HTML/1.1 404 Not Found", true, 404); 
		header("Status: 404 Not Found");
		exit();
	}
	
?>