403Webshell
Server IP : 103.161.17.216  /  Your IP : 216.73.216.1
Web Server : nginx/1.18.0
System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
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 : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/mail.thegioididong.edu.vn/program/steps/settings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/mail.thegioididong.edu.vn/program/steps/settings/edit_prefs.inc
<?php

/**
 +-----------------------------------------------------------------------+
 | This file is part of the Roundcube Webmail client                     |
 |                                                                       |
 | Copyright (C) The Roundcube Dev Team                                  |
 |                                                                       |
 | Licensed under the GNU General Public License version 3 or            |
 | any later version with exceptions for skins & plugins.                |
 | See the README file for a full license statement.                     |
 |                                                                       |
 | PURPOSE:                                                              |
 |   Provide functionality for user's settings & preferences             |
 +-----------------------------------------------------------------------+
 | Author: Thomas Bruederli <roundcube@gmail.com>                        |
 +-----------------------------------------------------------------------+
*/


if (!$OUTPUT->ajax_call) {
    $OUTPUT->set_pagetitle($RCMAIL->gettext('preferences'));
}

$CURR_SECTION    = rcube_utils::get_input_value('_section', rcube_utils::INPUT_GPC);
list($SECTIONS,) = rcmail_user_prefs($CURR_SECTION);

// register UI objects
$OUTPUT->add_handlers(array(
    'userprefs'   => 'rcmail_user_prefs_form',
    'sectionname' => 'rcmail_prefs_section_name',
));

$OUTPUT->send('settingsedit');



function rcmail_user_prefs_form($attrib)
{
    global $RCMAIL, $CURR_SECTION, $SECTIONS;

    // add some labels to client
    $RCMAIL->output->add_label('nopagesizewarning', 'nosupporterror');

    unset($attrib['form']);

    list($form_start, $form_end) = get_form_tags($attrib, 'save-prefs', null,
        array('name' => '_section', 'value' => $CURR_SECTION));

    $out = $form_start;

    if(!empty($SECTIONS[$CURR_SECTION]['header'])) {
        $out .= html::div(array('id' => 'preferences-header', 'class' =>'boxcontent'), $SECTIONS[$CURR_SECTION]['header']);
    }

    foreach ($SECTIONS[$CURR_SECTION]['blocks'] as $class => $block) {
        if (!empty($block['options'])) {
            $table = new html_table(array('cols' => 2));

            foreach ($block['options'] as $option) {
                if (isset($option['title'])) {
                    $table->add('title', $option['title']);
                    $table->add(null, $option['content']);
                }
                else {
                    $table->add(array('colspan' => 2), $option['content']);
                }
            }

            $out .= html::tag('fieldset', $class, html::tag('legend', null, $block['name']) . $table->show($attrib));
        }
        else if (!empty($block['content'])) {
            $out .= html::tag('fieldset', null, html::tag('legend', null, $block['name']) . $block['content']);
        }
    }

    return $out . $form_end;
}

function rcmail_prefs_section_name()
{
    global $SECTIONS, $CURR_SECTION;

    return $SECTIONS[$CURR_SECTION]['section'];
}

Youez - 2016 - github.com/yon3zu
LinuXploit