403Webshell
Server IP : 185.11.201.71  /  Your IP : 192.168.7.18
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : tech ( 1000)
PHP Version : 7.4.28
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,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/bbbdd/plugins/GuiControl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/bbbdd/plugins/GuiControl/plugin.php
<?php
require_once('classes/Plugin.php');

class GuiControl extends Plugin {

	/**
	 * Attributes
	 */
	protected $name = 'GuiControl';
	protected $lang;
	protected $conf;

	/**
	 * Constructor
	 * Call parent constructor, passing the language that will be used.
	 * @param $language Current phpPgAdmin language. If it was not found in the plugin, English will be used.
	 */
	function __construct($language) {
		parent::__construct($language);
	}

	/**
	 * This method returns the functions that will hook in the phpPgAdmin core.
	 * To do include a function just put in the $hooks array the follwing code:
	 * 'hook' => array('function1', 'function2').
	 *
	 * Example:
	 * $hooks = array(
	 *	'toplinks' => array('add_plugin_toplinks'),
	 *	'tabs' => array('add_tab_entry'),
	 *  'action_buttons' => array('add_more_an_entry')
	 * );
	 *
	 * @return $hooks
	 */
	function get_hooks() {
		$hooks = array(
			'toplinks' => array('filer_toplinks'),
			'tabs' => array('filter_tabs'),
			'trail' => array('filter_trail'),
			'navlinks' => array('filter_navlinks'),
			'actionbuttons' => array('filter_actionbuttons'),
			'tree' => array('filter_tree')
		);
		return $hooks;
	}

	/**
	 * This method returns the functions that will be used as actions.
	 * To do include a function that will be used as action, just put in the $actions array the follwing code:
	 *
	 * $actions = array(
	 *	'show_page',
	 *	'show_error',
	 * );
	 *
	 * @return $actions
	 */
	function get_actions() {
		$actions = array(
			'filer_toplinks',
			'filter_tabs',
			'filter_trail',
			'filter_navlinks',
			'filter_actionbuttons',
			'filter_tree',
		);
		return $actions;
	}

    function filer_toplinks(&$f_params) {
        if (!isset($this->conf['top_links']))
            return;

        $top_links = &$f_params['toplinks'];

        foreach ($this->conf['top_links'] as $link => $enabled)
            if (isset ($top_links[$link])
                && ($enabled === false)
            )
                unset($top_links[$link]);

        return;
    }

	function filter_tabs(&$f_params) {
        $section = $f_params['section'];
        $tabs = &$f_params['tabs'];

        if (!isset($this->conf['tab_links'][$section]))
            return;

        foreach ($this->conf['tab_links'][$section] as $link => $enabled)
            if (isset ($tabs[$link])
                && ($enabled === false)
            )
                unset($tabs[$link]);
        return;
    }
   
	function filter_trail(&$f_params) {
        if (!isset($this->conf['trail_links']))
            return;

        if ($this->conf['trail_links'] === false)
            $f_params['trail'] = array();

        return;
    }
   
	function filter_navlinks(&$f_params) {
        $place = $f_params['place'];
        $navlinks = &$f_params['navlinks'];

        if (! isset($this->conf['navlinks'][$place]))
            return;

        foreach ($this->conf['navlinks'][$place] as $link => $enabled)
            if (isset ($navlinks[$link])
                && ($enabled === false)
            )
                unset($navlinks[$link]);
        return;
    }
   
	function filter_actionbuttons(&$f_params) {
        $place = $f_params['place'];
        $actions = &$f_params['actionbuttons'];

        if (! isset($this->conf['actionbuttons'][$place]))
            return;

        foreach ($this->conf['actionbuttons'][$place] as $link => $enabled)
            if (isset ($actions[$link])
                && ($enabled === false)
            )
                unset($actions[$link]);
        return;
    }

	function filter_tree() {
        return;
    }
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit