|
27 | 27 | if (function_exists('date_default_timezone_set')) date_default_timezone_set('UTC');#required by PHP 5.1+
|
28 | 28 |
|
29 | 29 | //constants
|
30 | | - $VERSION='1.9.170312'; |
| 30 | + $VERSION='1.9.170703'; |
31 | 31 | $MAX_ROWS_PER_PAGE=50; #max number of rows in select per one page
|
32 | 32 | $D="\r\n"; #default delimiter for export
|
33 | 33 | $BOM=chr(239).chr(187).chr(191);
|
|
101 | 101 | if (db_connect('nodie')){
|
102 | 102 | $time_start=microtime_float();
|
103 | 103 |
|
104 | | - if ($_REQUEST['phpinfo']){ |
| 104 | + if ($_REQUEST['pi']){ |
105 | 105 | ob_start();phpinfo();$html=ob_get_clean();preg_match("/<body[^>]*>(.*?)<\/body>/is",$html,$m);
|
106 | 106 | $sqldr='<div class="pi">'.$m[1].'</div>';
|
107 | 107 | }else{
|
@@ -461,7 +461,7 @@ function sht(f){
|
461 | 461 | | <a href="?showcfg=1">Settings</a>
|
462 | 462 | <?php } ?>
|
463 | 463 | <?php if ($_SESSION['is_logged']){?> | <a href="?<?php eo($xurl)?>&logoff=1" onclick="logoff()">Logoff</a> <?php }?>
|
464 | | - | <a href="?phpinfo=1">phpinfo</a> |
| 464 | + | <a href="?pi=1">phpinfo</a> |
465 | 465 | </div>
|
466 | 466 |
|
467 | 467 | <div class="err"><?php eo($err_msg)?></div>
|
|
0 commit comments