File: C:/xampp/htdocs/wordpress/wp-content/pluginsBK/myeasybackup/meb-config.php
<?php
/**
* Initialize configuration variables
*
* @package myEASYbackup
* @author Ugo Grandolini
* @version 0.1.0
*
*/
define(MYEASYBACKUP_VERSION, '0.0.9');
//ini_set('log_errors','On'); # 0.0.4
//ini_set('display_errors','0'); # 0.0.4
if(!defined('MEBAK_ISDOWNLOAD') || MEBAK_ISDOWNLOAD==false) # @since 0.0.5
{
#
# on the production server avoid to show errors, etc. (@since 0.0.5)
#
$tmp = get_option( 'meb_isPRODUCTION' );
if($tmp=='') { $tmp = 1; }
define('mebak_PRODSERVER', $tmp);
#
# switch to show/hide debug code (@since 0.0.5)
#
$tmp = get_option( 'meb_isDEBUG' );
if($tmp=='') { $tmp = 0; }
define('mebak_DEBUG', $tmp);
#
# switch to show/hide debug code (@since 0.0.5)
#
$tmp = get_option( 'meb_compression' );
if($tmp=='') { $tmp = 6; }
define('COMPRESSION_LEVEL', $tmp);
#
# FTP server (@since 0.0.5)
#
$tmp = get_option( 'meb_ftp_server' );
if($tmp=='') { $tmp = ''; }
define('FTP_SERVER', $tmp);
#
# FTP user name (@since 0.0.5)
#
$tmp = get_option( 'meb_ftp_user_name' );
if($tmp=='') { $tmp = ''; }
define('FTP_USER_NAME', $tmp);
#
# FTP user password (@since 0.0.5)
#
//$tmp = get_option( 'meb_ftp_user_pass' );
//if($tmp=='') { $tmp = ''; }
//define('FTP_USER_PASS', $tmp);
#
# Use PHP code rather than system() (@since 0.0.5)
#
$tmp = get_option( 'meb_force_phpcode' );
//if($tmp=='') { $tmp = false; } # 0.0.9
if($tmp=='') { $tmp = true; } # 0.0.9
define('FORCE_PHPCODE', $tmp);
}
else
{
define('mebak_PRODSERVER', true);
define('mebak_DEBUG', false);
}
//echo '['.mebak_PRODSERVER.'|'.mebak_DEBUG.']';
$isSYSTEM = true; # 0.0.5
if(strpos($disabled, 'system', 0)!==false) # 0.0.5
{
$isSYSTEM = false;
}
define('isSYSTEM', $isSYSTEM); # 0.0.5
#
# handling error messages
#
if(!defined('mebak_PRODSERVER') || (defined('mebak_PRODSERVER') && mebak_PRODSERVER==true)) # 0.0.5
{
# on the production server
#
ini_set('log_errors','On'); # 0.0.4
ini_set('display_errors','0'); # 0.0.4
}
else
{
# on the development server
#
error_reporting(E_ALL ^ E_NOTICE);
ini_set('log_errors','Off'); # 0.0.5
ini_set('display_errors','1'); # 0.0.5
}
@set_time_limit(0); # 0.0.5
$tmp = dirname(__FILE__);
if(strpos($tmp, '/', 0)!==false) # 0.0.4
{
define('isLINUX', true);
}
else
{
define('isWINDOWS', true);
}
$tmp = str_replace('\\','/', $tmp);
$tpath = explode('/',$tmp);
$t = count($tpath) - 3;
$wp_path = '';
for($i=0;$i<$t;$i++)
{
$wp_path .= $tpath[$i] . '/';
}
$t = $t - 1;
$backup_path = '';
for($i=0;$i<$t;$i++)
{
$backup_path .= $tpath[$i] . '/';
}
define('MEBAK_WP_PATH', $wp_path);
define('MEBAK_PATH', dirname(__FILE__) . '/');
define('isSAFEMODE', ini_get('safe_mode')); # 0.0.5
//define('MEBAK_BACKUP_PATH', $backup_path . 'myeasybackup_data'); # 0.1.0
define('MEBAK_BACKUP_ROOT', '$backup_path'); # 0.1.0
define('MEBAK_BACKUP_FOLDER', 'myeasybackup_data'); # 0.1.0
define('MEBAK_BACKUP_PATH', $backup_path . MEBAK_BACKUP_FOLDER); # 0.1.0
$myEASYbackup_dir = basename(dirname(__FILE__));
define('MEBAK_LOCALE', 'myEASYbackup'); # the locale for translations
if(!defined('MEBAK_ISDOWNLOAD') || MEBAK_ISDOWNLOAD==false)
{
# link to the plugin folder (eg. http://example.com/wordpress-2.9.1/wp-content/plugins/MyPlugin/)
#
define(MYEASYBACKUP_LINK, get_option('siteurl').'/wp-content/plugins/' . $myEASYbackup_dir . '/');
#
# meb_settings buttons (@since 0.0.5)
#
define('SAVE_BTN', __('Update Options', MEBAK_LOCALE ));
define('CHANGE_HOST', # 0.0.5
'<p>'
. __( 'If your provider does not allow you to change the server configuration, please let me suggest a very good, professional and serious hosting service provider.', MEBAK_LOCALE ) .' '
. __( 'I am using their services since 2006 and', MEBAK_LOCALE )
. ' <b>'
. __( 'never had problem without a prompt solution', MEBAK_LOCALE )
. '</b>.'
. '</p>'
. '<p>'
. __( 'Prices start at $4.95/month with', MEBAK_LOCALE )
. ':<br />» '
. __( 'UNLIMITED Disk Space', MEBAK_LOCALE )
. '<br />» '
. __( 'UNLIMITED Bandwidth', MEBAK_LOCALE )
. '<br />» '
. __( 'Powered by 130% wind energy!', MEBAK_LOCALE )
. '</p>'
. '<p>'
. ' <a href="http://tinyurl.com/myeasyhosting" target="_blank"><b>'
. __( 'Click here to see all the offers', MEBAK_LOCALE )
. '</b></a>'
. '</p>'
. '<p>'
. __( 'If you buy the hosting service by using the link provided here above, you will automatically reward my effort', MEBAK_LOCALE )
.' <u>'
. __( 'at no extra cost', MEBAK_LOCALE )
.'</u>!'
. '</p>'
);
}
//echo 'MEBAK_WP_PATH='.MEBAK_WP_PATH.'<br>';
//echo 'MEBAK_PATH='.MEBAK_PATH.'<br>';
//echo 'MYEASYBACKUP_LINK='.MYEASYBACKUP_LINK.'<br>';
?>