web/wp-content/plugins/duplicator/inc/page.diag.php
changeset 195 c7c0fbc09788
child 204 09a1c134465b
equal deleted inserted replaced
194:32102edaa81b 195:c7c0fbc09788
       
     1 <?php
       
     2 	/*USED FOR DIAGNOSTICS FOR DEBUGGING*/
       
     3 	ob_start();
       
     4 	phpinfo();
       
     5 	$serverinfo = ob_get_contents();
       
     6 	ob_end_clean();
       
     7 	
       
     8 	$serverinfo = preg_replace( '%^.*<body>(.*)</body>.*$%ms',  '$1',  $serverinfo);
       
     9 	$serverinfo = preg_replace( '%^.*<title>(.*)</title>.*$%ms','$1',  $serverinfo);
       
    10 
       
    11 ?>
       
    12 
       
    13 <div class="wrap">
       
    14 	<form id="form-duplicator" method="post">
       
    15 		<!-- h2 requred here for general system messages -->
       
    16 		<h2 style='display:none'></h2>
       
    17 		
       
    18 		<div class="dup-header widget" style="margin-bottom:5px">
       
    19 			<div style='float:left;height:45px'><img src="<?php echo DUPLICATOR_PLUGIN_URL  ?>img/logo.png" style='text-align:top'  /></div> 
       
    20 			<div style='float:left;height:45px; text-align:center;'>
       
    21 				<h2 style='margin:-12px 0px -7px 0px; text-align:center; width:100%;'>Duplicator &raquo;<span style="font-size:18px"> <?php _e("Diagnostics", 'wpduplicator') ?></span> </h2>
       
    22 				<i style='font-size:0.8em'><?php _e("By", 'wpduplicator') ?> <a href='http://lifeinthegrid.com/duplicator' target='_blank'>lifeinthegrid.com</a></i>
       
    23 			</div> 
       
    24 			<div style='float:right; padding:5px 0px 0px 0px; white-space:nowrap'>
       
    25 				<input type="button" id="btn-help-dialog" onclick='window.location.href="?page=duplicator_support_page"' title="<?php _e("Support", 'wpduplicator') ?>" />
       
    26 				<input type="button" id="dup-btn-about" onclick='window.location.href="?page=duplicator_about_page"' title="<?php _e("All About", 'wpduplicator') ?>" />
       
    27 			</div>
       
    28 			<br style='clear:both' />
       
    29 		</div>
       
    30 		
       
    31 
       
    32 	<?php 	echo "<div id='dup-server-info-area'>{$serverinfo}</div>"; ?>
       
    33 
       
    34 </div>