Location: PHPKode > scripts > POST2PDF Converter > post2pdf-converter/post2pdf-converter-bootstrap.php
<?php
/**
 * Bootstrap file for getting the ABSPATH constant to wp-load.php
 * This is requried when a plugin requires access not via the admin screen.
 *
 * If the wp-load.php file is not found, then an error will be displayed
 *
 * @package WordPress
 * @since Version 2.6
 */
 
/** Define the server path to the file wp-config here, if you placed WP-CONTENT outside the classic file structure */
/*
by Redcocker
Last modified: 2011/12/21
License: GPL v2
http://www.near-mint.com/blog/
*/

$path  = ''; // It should be end with a trailing slash    

if (!defined('WP_LOAD_PATH')) {
	$classic_root = dirname(dirname(dirname(dirname(__FILE__)))).'/';
	if (file_exists($classic_root.'wp-load.php') ) {
		define('WP_LOAD_PATH', $classic_root);
	} else {
		if (file_exists($path.'wp-load.php')) {
			define('WP_LOAD_PATH', $path);
		} else {
			exit(__("Could not find wp-load.php", "wp_sh"));
		}
	}
}

//Load wp-load.php
require_once(WP_LOAD_PATH.'wp-load.php');
?>
Return current item: POST2PDF Converter