Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.145.107.84
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,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,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/phpmyadmin/templates/table/relation/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/phpmyadmin/templates/table/relation/internal_relational_row.phtml
<?php
$myfield = $save_row[$i]['Field'];
// Use an md5 as array index to avoid having special characters
// in the name attribute (see bug #1746964 )
$myfield_md5 = md5($myfield);
$myfield_html = htmlspecialchars($myfield);

$foreign_table = false;
$foreign_column = false;

// database dropdown
if (isset($existrel[$myfield])) {
    $foreign_db = $existrel[$myfield]['foreign_db'];
} else {
    $foreign_db = $db;
}

// table dropdown
$tables = array();
if ($foreign_db) {
    if (isset($existrel[$myfield])) {
        $foreign_table = $existrel[$myfield]['foreign_table'];
    }
    $tables_rs = $GLOBALS['dbi']->query(
        'SHOW TABLES FROM ' . PMA_Util::backquote($foreign_db),
        null,
        PMA_DatabaseInterface::QUERY_STORE
    );
    while ($row = $GLOBALS['dbi']->fetchRow($tables_rs)) {
        $tables[] = $row[0];
    }
}

// column dropdown
$columns = array();
if ($foreign_db && $foreign_table) {
    if (isset($existrel[$myfield])) {
        $foreign_column = $existrel[$myfield]['foreign_field'];
    }
    $table_obj = new PMA_Table($foreign_table, $foreign_db);
    $columns = $table_obj->getUniqueColumns(false, false);
}
?>
<tr class="<?php echo ($odd_row ? 'odd' : 'even'); ?>">
    <td class="vmiddle">
        <strong><?php echo $myfield_html; ?></strong>
        <input type="hidden" name="fields_name[<?php echo $myfield_md5; ?>]"
               value="<?php echo $myfield_html; ?>"/>
    </td>

    <td>
        <?php echo PMA\Template::get('table/relation/relational_dropdown')->render(
            array(
                'name' => 'destination_db[' . $myfield_md5 . ']',
                'title' => __('Database'),
                'values' => $GLOBALS['pma']->databases,
                'foreign' => $foreign_db
            )
        ); ?>
        <?php echo PMA\Template::get('table/relation/relational_dropdown')->render(
            array(
                'name' => 'destination_table[' . $myfield_md5 . ']',
                'title' => __('Table'),
                'values' => $tables,
                'foreign' => $foreign_table
            )
        ); ?>
        <?php echo PMA\Template::get('table/relation/relational_dropdown')->render(
            array(
                'name' => 'destination_column[' . $myfield_md5 . ']',
                'title' => __('Column'),
                'values' => $columns,
                'foreign' => $foreign_column
            )
        ); ?>
    </td>
</tr>

Anon7 - 2022
AnonSec Team