File: C:/Users/fred/OneDrive/Desktop/wordpress/wp-content/pluginsBK/myeasybackup/inc/myDEBUG.php
<?php
/**
* Show debug info on request
*
* @package myEASYbackup
* @author Ugo Grandolini
* @since 0.0.5
* @version 0.0.5
*
*/
if(defined('mebak_DEBUG') && mebak_DEBUG==true)
{
# about MySQL
#
echo '<div style="color:#000;background:#CFCFCF;padding:6px;margin:4px;">'
.'<h2>myEASYbackup debug info</h2>'
;
#
# about options
#
echo '<h3>Options</h3>'
.'<table cellspacing="6" cellpadding="6">'
.'<tr>'
.'<td>Production server: <b>'.mebak_PRODSERVER.'</b></td>'
.'<td>Compression: <b>'.COMPRESSION_LEVEL.'</b></td>'
.'</tr>'
.'</table>'
;
#
# about server settings
#
$disabled = ini_get('disable_functions');
if(strlen($disabled)==0) { $disabled = __('None', MEBAK_LOCALE ); }
if(defined('isSAFEMODE') && isSAFEMODE==false) {
$safe = __('Off', MEBAK_LOCALE );
}
else
{
$safe = __('On', MEBAK_LOCALE );
}
echo '<h3>Server settings</h3>'
.'<table cellspacing="6" cellpadding="6">'
.'<tr>'
.'<td>Disabled functions: <b>'.$disabled.'</b></td>'
.'<td>Safe mode: <b>'.$safe.'</b></td>'
.'</tr>'
.'</table>'
;
#
# about MySQL
#
echo '<h3>MySQL Server Info</h3>'
.'<table cellspacing="6" cellpadding="6">'
.'<tr>'
.'<td>Server: <b>'.mysql_get_server_info().'</b></td>'
.'<td>Client: <b>'.mysql_get_client_info().'</b></td>'
.'<td>Host: <b>'.mysql_get_host_info().'</b></td>'
.'<td>Protocol: <b>'.mysql_get_proto_info().'</b></td>'
.'<td>User: <b>'.DB_USER.'@'.DB_HOST.'</b></td>'
.'</tr>'
.'</table>'
;
#
# about PHP
#
echo '<h3>PHP Info</h3>'
.'<table cellspacing="6" cellpadding="6">'
.'<tr>'
.'<td>Version: <b>'.PHP_VERSION.'</b></td>'
.'<td>OS: <b>';
if(defined('isLINUX') && isLINUX==true)
{
echo 'LINUX';
}
else if(defined('isWINDOWS') && isWINDOWS==true)
{
echo 'WINDOWS';
}
else
{
echo 'UNKNOWN';
}
echo '</b></td>'
//.'<td>Protocol: <b></b></td>'
//.'<td>User: <b></b></td>'
.'</tr>'
.'</table>'
;
//echo phpinfo();
echo ''
.'</div>'
;
}
?>