ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:23.99 GB of 70.42 GB (34.07%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ home/ yalagina/ map/ site/ sql_control/ libraries/ - drwxr-sr-x

Directory:
Viewing file:     db_routines.inc.php (4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 *
 * @todo Support seeing the "results" of the called procedure or
 *       function. This needs further reseach because a procedure
 *       does not necessarily contain a SELECT statement that
 *       produces something to see. But it seems we could at least
 *       get the number of rows affected. We would have to
 *       use the CLIENT_MULTI_RESULTS flag to get the result set
 *       and also the call status. All this does not fit well with
 *       our current sql.php.
 *       Of course the interface would need a way to pass calling parameters.
 *       Also, support DEFINER (like we do in export).
 * @package phpMyAdmin
 */
if (! defined('PHPMYADMIN')) {
    exit;
}

$routines PMA_DBI_fetch_result('SELECT SPECIFIC_NAME,ROUTINE_NAME,ROUTINE_TYPE,DTD_IDENTIFIER FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA= \'' PMA_sqlAddslashes($db,true) . '\';');

if (
$routines) {
    
PMA_generate_slider_effect('routines'__('Routines'));
    echo 
'<fieldset>' "\n";
    echo 
' <legend>' __('Routines') . '</legend>' "\n";
    echo 
'<table border="0">';
    echo 
sprintf('<tr>
                      <th>%s</th>
                      <th>&nbsp;</th>
                      <th>&nbsp;</th>
                      <th>%s</th>
                      <th>%s</th>
                </tr>'
,
          
__('Name'),
          
__('Type'),
          
__('Return type'));
    
$ct=0;
    
$delimiter '//';
    if (
$GLOBALS['cfg']['AjaxEnable']) {
        
$conditional_class 'class="drop_procedure_anchor"';
    } else {
        
$conditional_class '';
    }

    foreach (
$routines as $routine) {

        
// information_schema (at least in MySQL 5.0.45)
        // does not return the routine parameters
        // so we rely on PMA_DBI_get_definition() which
        // uses SHOW CREATE

        
$definition 'DROP ' $routine['ROUTINE_TYPE'] . ' ' PMA_backquote($routine['SPECIFIC_NAME']) . $delimiter "\n"
            
.  PMA_DBI_get_definition($db$routine['ROUTINE_TYPE'], $routine['SPECIFIC_NAME'])
            . 
"\n";

        
//if ($routine['ROUTINE_TYPE'] == 'PROCEDURE') {
        //    $sqlUseProc  = 'CALL ' . $routine['SPECIFIC_NAME'] . '()';
        //} else {
        //    $sqlUseProc = 'SELECT ' . $routine['SPECIFIC_NAME'] . '()';
            /* this won't get us far: to really use the function
               i'd need to know how many parameters the function needs and then create
               something to ask for them. As i don't see this directly in
               the table i am afraid that requires parsing the ROUTINE_DEFINITION
               and i don't really need that now so i simply don't offer
               a method for running the function*/
        //}
        
if ($routine['ROUTINE_TYPE'] == 'PROCEDURE') {
            
$sqlDropProc 'DROP PROCEDURE ' PMA_backquote($routine['SPECIFIC_NAME']);
        } else {
            
$sqlDropProc 'DROP FUNCTION ' PMA_backquote($routine['SPECIFIC_NAME']);
        }

        echo 
sprintf('<tr class="%s">
                          <td><input type="hidden" class="drop_procedure_sql" value="%s" /><strong>%s</strong></td>
                          <td>%s</td>
                          <td>%s</td>
                          <td>%s</td>
                          <td>%s</td>
                     </tr>'
,
                     (
$ct%== 0) ? 'even' 'odd',
                     
$sqlDropProc,
                     
$routine['ROUTINE_NAME'],
                     ! empty(
$definition) ? PMA_linkOrButton('db_sql.php?' $url_query '&amp;sql_query=' urlencode($definition) . '&amp;show_query=1&amp;db_query_force=1&amp;delimiter=' urlencode($delimiter), $titles['Edit']) : '&nbsp;',
                     
'<a ' $conditional_class ' href="sql.php?' $url_query '&amp;sql_query=' urlencode($sqlDropProc) . '" >' $titles['Drop'] . '</a>',
                     
$routine['ROUTINE_TYPE'],
                     
$routine['DTD_IDENTIFIER']);
        
$ct++;
    }
    echo 
'</table>';
    echo 
'</fieldset>' "\n";
    echo 
'</div>' "\n";
}
?>
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.1949 seconds