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

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/home/makras/public_html/db_admin/   drwxr-xr-x
Free 318.39 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tbl_rename.php (3.92 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* $Id: tbl_rename.php,v 2.4 2003/11/26 22:52:24 rabus Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:


/**
 * Gets some core libraries
 */
require_once('./libraries/grab_globals.lib.php');
$js_to_run 'functions.js';
require_once(
'./libraries/common.lib.php');

PMA_checkParameters(array('db','table'));

/**
 * Defines the url to return to in case of error in a sql statement
 */
$err_url 'tbl_properties.php?' PMA_generate_common_url($db$table);


/**
 * A new name has been submitted -> do the work
 */
if (isset($new_name) && trim($new_name) != '' && strpos($new_name,'.') === FALSE) {
    
$old_name     $table;
    
$table        $new_name;

    
// Ensure the target is valid
    
if (count($dblist) > && PMA_isInto($db$dblist) == -1) {
        exit();
    }

    require_once(
'./header.inc.php');
    
PMA_mysql_select_db($db);
    
$sql_query 'ALTER TABLE ' PMA_backquote($old_name) . ' RENAME ' PMA_backquote($new_name);
    
$result    PMA_mysql_query($sql_query) or PMA_mysqlDie(''''''$err_url);
    
$message   sprintf($strRenameTableOKhtmlspecialchars($old_name), htmlspecialchars($table));
    
$reload    1;

    
// garvin: Move old entries from comments to new table
    
require_once('./libraries/relation.lib.php');
    
$cfgRelation PMA_getRelationsParam();
    if (
$cfgRelation['commwork']) {
        
$remove_query 'UPDATE ' PMA_backquote($cfgRelation['column_info'])
                      . 
' SET     table_name = \'' PMA_sqlAddslashes($table) . '\''
                      
' WHERE db_name  = \'' PMA_sqlAddslashes($db) . '\''
                      
' AND table_name = \'' PMA_sqlAddslashes($old_name) . '\'';
        
$rmv_rs    PMA_query_as_cu($remove_query);
        unset(
$rmv_query);
    }

    if (
$cfgRelation['displaywork']) {
        
$table_query 'UPDATE ' PMA_backquote($cfgRelation['table_info'])
                        . 
' SET     table_name = \'' PMA_sqlAddslashes($table) . '\''
                        
' WHERE db_name  = \'' PMA_sqlAddslashes($db) . '\''
                        
' AND table_name = \'' PMA_sqlAddslashes($old_name) . '\'';
        
$tb_rs    PMA_query_as_cu($table_query);
        unset(
$table_query);
        unset(
$tb_rs);
    }

    if (
$cfgRelation['relwork']) {
        
$table_query 'UPDATE ' PMA_backquote($cfgRelation['relation'])
                        . 
' SET     foreign_table = \'' PMA_sqlAddslashes($table) . '\''
                        
' WHERE foreign_db  = \'' PMA_sqlAddslashes($db) . '\''
                        
' AND foreign_table = \'' PMA_sqlAddslashes($old_name) . '\'';
        
$tb_rs    PMA_query_as_cu($table_query);
        unset(
$table_query);
        unset(
$tb_rs);

        
$table_query 'UPDATE ' PMA_backquote($cfgRelation['relation'])
                        . 
' SET     master_table = \'' PMA_sqlAddslashes($table) . '\''
                        
' WHERE master_db  = \'' PMA_sqlAddslashes($db) . '\''
                        
' AND master_table = \'' PMA_sqlAddslashes($old_name) . '\'';
        
$tb_rs    PMA_query_as_cu($table_query);
        unset(
$table_query);
        unset(
$tb_rs);
    }

    if (
$cfgRelation['pdfwork']) {
        
$table_query 'UPDATE ' PMA_backquote($cfgRelation['table_coords'])
                        . 
' SET     table_name = \'' PMA_sqlAddslashes($table) . '\''
                        
' WHERE db_name  = \'' PMA_sqlAddslashes($db) . '\''
                        
' AND table_name = \'' PMA_sqlAddslashes($old_name) . '\'';
        
$tb_rs    PMA_query_as_cu($table_query);
        unset(
$table_query);
        unset(
$tb_rs);
    }

}


/**
 * No new name for the table!
 */
else {
    require_once(
'./header.inc.php');
    if (
strpos($new_name,'.') === FALSE) {
        
PMA_mysqlDie($strTableEmpty''''$err_url);
    } else {
        
PMA_mysqlDie($strError ': ' $new_name''''$err_url);
    }
}


/**
 * Back to the calling script
 */
require('./tbl_properties_operations.php');
?>

:: 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 #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0051 ]--