Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.70.131.97
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead /
mod /
attendance /
classes /
[ HOME SHELL ]
Name
Size
Permission
Action
analytics
[ DIR ]
drwxr-xr-x
event
[ DIR ]
drwxr-xr-x
form
[ DIR ]
drwxr-xr-x
import
[ DIR ]
drwxr-xr-x
output
[ DIR ]
drwxr-xr-x
privacy
[ DIR ]
drwxr-xr-x
search
[ DIR ]
drwxr-xr-x
task
[ DIR ]
drwxr-xr-x
attendance_webservices_handler...
5.92
KB
-rw-r--r--
calendar_helpers.php
6.09
KB
-rw-r--r--
header.php
2.38
KB
-rw-r--r--
manage_page_params.php
1.54
KB
-rw-r--r--
notifyqueue.php
3.09
KB
-rw-r--r--
observer.php
2.05
KB
-rw-r--r--
page_with_filter_controls.php
9.13
KB
-rw-r--r--
preferences_page_params.php
2.05
KB
-rw-r--r--
report_page_params.php
2.57
KB
-rw-r--r--
sessions_page_params.php
1.74
KB
-rw-r--r--
structure.php
49.55
KB
-rw-r--r--
summary.php
14.51
KB
-rw-r--r--
take_page_params.php
3.17
KB
-rw-r--r--
view_page_params.php
2.3
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : page_with_filter_controls.php
<?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/>. /** * Class definition for mod_attendance_page_with_filter_controls * * @package mod_attendance * @copyright 2016 Dan Marsden http://danmarsden.com * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Base filter controls class - overridden by different views where needed. * * @copyright 2016 Dan Marsden http://danmarsden.com * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_attendance_page_with_filter_controls { /** No filter. */ const SELECTOR_NONE = 1; /** Filter by group. */ const SELECTOR_GROUP = 2; /** Filter by session type. */ const SELECTOR_SESS_TYPE = 3; /** Common. */ const SESSTYPE_COMMON = 0; /** All. */ const SESSTYPE_ALL = -1; /** No value. */ const SESSTYPE_NO_VALUE = -2; /** @var int current view mode */ public $view; /** @var int $view and $curdate specify displaed date range */ public $curdate; /** @var int start date of displayed date range */ public $startdate; /** @var int end date of displayed date range */ public $enddate; /** @var int type. */ public $selectortype = self::SELECTOR_NONE; /** @var int default view. */ protected $defaultview; /** @var stdClass course module record. */ private $cm; /** @var array */ private $sessgroupslist; /** @var int */ private $sesstype; /** * initialise stuff. * * @param stdClass $cm */ public function init($cm) { $this->cm = $cm; if (empty($this->defaultview)) { $this->defaultview = get_config('attendance', 'defaultview'); } $this->init_view(); $this->init_curdate(); $this->init_start_end_date(); } /** * Initialise the view. */ private function init_view() { global $SESSION; if (isset($this->view)) { $SESSION->attcurrentattview[$this->cm->course] = $this->view; } else if (isset($SESSION->attcurrentattview[$this->cm->course])) { $this->view = $SESSION->attcurrentattview[$this->cm->course]; } else { $this->view = $this->defaultview; } } /** * Initialise the current date. */ private function init_curdate() { global $SESSION; if (isset($this->curdate)) { $SESSION->attcurrentattdate[$this->cm->course] = $this->curdate; } else if (isset($SESSION->attcurrentattdate[$this->cm->course])) { $this->curdate = $SESSION->attcurrentattdate[$this->cm->course]; } else { $this->curdate = time(); } } /** * Initialise the end date. */ public function init_start_end_date() { global $CFG; // HOURSECS solves issue for weeks view with Daylight saving time and clocks adjusting by one hour backward. $date = usergetdate($this->curdate + HOURSECS); $mday = $date['mday']; $wday = $date['wday'] - $CFG->calendar_startwday; if ($wday < 0) { $wday += 7; } $mon = $date['mon']; $year = $date['year']; switch ($this->view) { case ATT_VIEW_DAYS: $this->startdate = make_timestamp($year, $mon, $mday); $this->enddate = make_timestamp($year, $mon, $mday + 1); break; case ATT_VIEW_WEEKS: $this->startdate = make_timestamp($year, $mon, $mday - $wday); $this->enddate = make_timestamp($year, $mon, $mday + 7 - $wday) - 1; break; case ATT_VIEW_MONTHS: $this->startdate = make_timestamp($year, $mon); $this->enddate = make_timestamp($year, $mon + 1); break; case ATT_VIEW_ALLPAST: $this->startdate = 1; $this->enddate = time(); break; case ATT_VIEW_ALL: case ATT_VIEW_NOTPRESENT: $this->startdate = 0; $this->enddate = 0; break; case ATT_VIEW_SUMMARY: $this->startdate = 1; $this->enddate = 1; break; } } /** * Calculate the session group list type. */ private function calc_sessgroupslist_sesstype() { global $SESSION; if (!property_exists($SESSION, 'attsessiontype')) { $SESSION->attsessiontype = array($this->cm->course => self::SESSTYPE_ALL); } else if (!array_key_exists($this->cm->course, $SESSION->attsessiontype)) { $SESSION->attsessiontype[$this->cm->course] = self::SESSTYPE_ALL; } $group = optional_param('group', self::SESSTYPE_NO_VALUE, PARAM_INT); if ($this->selectortype == self::SELECTOR_SESS_TYPE) { if ($group > self::SESSTYPE_NO_VALUE) { $SESSION->attsessiontype[$this->cm->course] = $group; if ($group > self::SESSTYPE_ALL) { // Set activegroup in $SESSION. groups_get_activity_group($this->cm, true); } else { // Reset activegroup in $SESSION. unset($SESSION->activegroup[$this->cm->course][VISIBLEGROUPS][$this->cm->groupingid]); unset($SESSION->activegroup[$this->cm->course]['aag'][$this->cm->groupingid]); unset($SESSION->activegroup[$this->cm->course][SEPARATEGROUPS][$this->cm->groupingid]); } $this->sesstype = $group; } else { $this->sesstype = $SESSION->attsessiontype[$this->cm->course]; } } else if ($this->selectortype == self::SELECTOR_GROUP) { if ($group == 0) { $SESSION->attsessiontype[$this->cm->course] = self::SESSTYPE_ALL; $this->sesstype = self::SESSTYPE_ALL; } else if ($group > 0) { $SESSION->attsessiontype[$this->cm->course] = $group; $this->sesstype = $group; } else { $this->sesstype = $SESSION->attsessiontype[$this->cm->course]; } } if (is_null($this->sessgroupslist)) { $this->calc_sessgroupslist(); } // For example, we set SESSTYPE_ALL but user can access only to limited set of groups. if (!array_key_exists($this->sesstype, $this->sessgroupslist)) { reset($this->sessgroupslist); $this->sesstype = key($this->sessgroupslist); } } /** * Calculate the session group list */ private function calc_sessgroupslist() { global $USER, $PAGE; $this->sessgroupslist = array(); $groupmode = groups_get_activity_groupmode($this->cm); if ($groupmode == NOGROUPS) { return; } if ($groupmode == VISIBLEGROUPS or has_capability('moodle/site:accessallgroups', $PAGE->context)) { $allowedgroups = groups_get_all_groups($this->cm->course, 0, $this->cm->groupingid); } else { $allowedgroups = groups_get_all_groups($this->cm->course, $USER->id, $this->cm->groupingid); } if ($allowedgroups) { if ($groupmode == VISIBLEGROUPS or has_capability('moodle/site:accessallgroups', $PAGE->context)) { $this->sessgroupslist[self::SESSTYPE_ALL] = get_string('all', 'attendance'); } // Show Common groups always. $this->sessgroupslist[self::SESSTYPE_COMMON] = get_string('commonsessions', 'attendance'); foreach ($allowedgroups as $group) { $this->sessgroupslist[$group->id] = get_string('group') . ': ' . format_string($group->name); } } } /** * Return the session groups. * * @return array */ public function get_sess_groups_list() { if (is_null($this->sessgroupslist)) { $this->calc_sessgroupslist_sesstype(); } return $this->sessgroupslist; } /** * Get the current session type. * * @return int */ public function get_current_sesstype() { if (is_null($this->sesstype)) { $this->calc_sessgroupslist_sesstype(); } return $this->sesstype; } /** * Set the current session type. * * @param int $sesstype */ public function set_current_sesstype($sesstype) { $this->sesstype = $sesstype; } }
Close