Ignore:
Timestamp:
04/05/10 16:31:25 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Removendo a chamada redundante ao método 'phpgw_header' no ExpressoLivre?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/phpinfo.php

    r2 r2419  
    2323        } 
    2424 
    25 // Throw a little notice out if PHPaccelerator is enabled. 
     25        ob_start(); 
     26 
     27        phpinfo(); 
     28 
     29        $matches = array (); 
     30        preg_match( '%(<style type="text/css">.*?</style>).*?<body>(.*?)</body>%s', ob_get_clean( ), $matches ); 
     31 
     32        $matches[ 1 ] = preg_replace( '%body.*?{[^}]*}\n%s', '', $matches[ 1 ] ); 
     33        $matches[ 1 ] = preg_replace( '%(\n)%s', '$1.phpinfo ', $matches[ 1 ] ); 
     34 
     35        phpcredits( CREDITS_ALL - CREDITS_FULLPAGE ); 
     36 
     37        $matches[ 2 ] = preg_replace( '%<a[^>]*>PHP Credits</a>%s', ob_get_clean( ), $matches[ 2 ] ); 
     38 
     39        // Throw a little notice out if PHPaccelerator is enabled. 
    2640        if($GLOBALS['_PHPA']['ENABLED']) 
    2741        { 
     
    3044        } 
    3145 
    32         phpinfo(); 
    33 //      $phpgw->common->phpgw_footer(); 
     46        print $matches[ 1 ] . '<div class="phpinfo">' . $matches[ 2 ] . '</div>'; 
    3447?> 
Note: See TracChangeset for help on using the changeset viewer.