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 /
calendar /
Delete
Unzip
Name
Size
Permission
Date
Action
classes
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
tests
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
type
[ DIR ]
drwxr-sr-x
2017-06-22 15:50
yui
[ DIR ]
drwxr-sr-x
2017-06-22 15:50
delete.php
4.56
KB
-rw-r--r--
2017-06-22 16:06
event.php
7.67
KB
-rw-r--r--
2017-06-22 16:06
event_form.php
8.07
KB
-rw-r--r--
2017-06-22 16:06
export.php
7.42
KB
-rw-r--r--
2017-06-22 16:06
export_execute.php
11.14
KB
-rw-r--r--
2017-06-22 16:06
externallib.php
20.13
KB
-rw-r--r--
2017-06-22 16:06
index.php
116
B
-rw-r--r--
2017-06-22 16:06
lib.php
130.69
KB
-rw-r--r--
2017-06-22 16:06
managesubscriptions.php
4.77
KB
-rw-r--r--
2017-06-22 16:06
managesubscriptions_form.php
6.45
KB
-rw-r--r--
2017-06-22 16:06
renderer.php
30.75
KB
-rw-r--r--
2017-06-22 16:06
set.php
4.04
KB
-rw-r--r--
2017-06-22 16:06
upgrade.txt
1.14
KB
-rw-r--r--
2017-06-22 16:06
view.php
7.62
KB
-rw-r--r--
2017-06-22 16:06
Save
Rename
<?php ///////////////////////////////////////////////////////////////////////////// // // // NOTICE OF COPYRIGHT // // // // Moodle - Calendar extension // // // // Copyright (C) 2003-2004 Greek School Network www.sch.gr // // // // Designed by: // // Avgoustos Tsinakos (tsinakos@teikav.edu.gr) // // Jon Papaioannou (pj@moodle.org) // // // // Programming and development: // // Jon Papaioannou (pj@moodle.org) // // // // For bugs, suggestions, etc contact: // // Jon Papaioannou (pj@moodle.org) // // // // The current module was developed at the University of Macedonia // // (www.uom.gr) under the funding of the Greek School Network (www.sch.gr) // // The aim of this project is to provide additional and improved // // functionality to the Asynchronous Distance Education service that the // // Greek School Network deploys. // // // // This program 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 2 of the License, or // // (at your option) any later version. // // // // This program 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: // // // // http://www.gnu.org/copyleft/gpl.html // // // ///////////////////////////////////////////////////////////////////////////// /** * Display the calendar page. * @copyright 2003 Jon Papaioannou * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @package core_calendar */ require_once('../config.php'); require_once($CFG->dirroot.'/course/lib.php'); require_once($CFG->dirroot.'/calendar/lib.php'); $courseid = optional_param('course', SITEID, PARAM_INT); $view = optional_param('view', 'upcoming', PARAM_ALPHA); $day = optional_param('cal_d', 0, PARAM_INT); $mon = optional_param('cal_m', 0, PARAM_INT); $year = optional_param('cal_y', 0, PARAM_INT); $time = optional_param('time', 0, PARAM_INT); $url = new moodle_url('/calendar/view.php'); // If a day, month and year were passed then convert it to a timestamp. If these were passed // then we can assume the day, month and year are passed as Gregorian, as no where in core // should we be passing these values rather than the time. This is done for BC. if (!empty($day) && !empty($mon) && !empty($year)) { if (checkdate($mon, $day, $year)) { $time = make_timestamp($year, $mon, $day); } } if (empty($time)) { $time = time(); } if ($courseid != SITEID) { $url->param('course', $courseid); } if ($view !== 'upcoming') { $time = usergetmidnight($time); $url->param('view', $view); } $url->param('time', $time); $PAGE->set_url($url); if ($courseid != SITEID && !empty($courseid)) { $course = $DB->get_record('course', array('id' => $courseid)); $courses = array($course->id => $course); $issite = false; navigation_node::override_active_url(new moodle_url('/course/view.php', array('id' => $course->id))); } else { $course = get_site(); $courses = calendar_get_default_courses(); $issite = true; } require_course_login($course); $calendar = new calendar_information(0, 0, 0, $time); $calendar->prepare_for_view($course, $courses); $pagetitle = ''; $strcalendar = get_string('calendar', 'calendar'); switch($view) { case 'day': $PAGE->navbar->add(userdate($time, get_string('strftimedate'))); $pagetitle = get_string('dayviewtitle', 'calendar', userdate($time, get_string('strftimedaydate'))); break; case 'month': $PAGE->navbar->add(userdate($time, get_string('strftimemonthyear'))); $pagetitle = get_string('detailedmonthviewtitle', 'calendar', userdate($time, get_string('strftimemonthyear'))); break; case 'upcoming': $pagetitle = get_string('upcomingevents', 'calendar'); break; } // Print title and header $PAGE->set_pagelayout('standard'); $PAGE->set_title("$course->shortname: $strcalendar: $pagetitle"); $PAGE->set_heading($COURSE->fullname); $renderer = $PAGE->get_renderer('core_calendar'); $calendar->add_sidecalendar_blocks($renderer, true, $view); echo $OUTPUT->header(); echo $renderer->start_layout(); echo html_writer::start_tag('div', array('class'=>'heightcontainer')); echo $OUTPUT->heading(get_string('calendar', 'calendar')); switch($view) { case 'day': echo $renderer->show_day($calendar); break; case 'month': echo $renderer->show_month_detailed($calendar, $url); break; case 'upcoming': $defaultlookahead = CALENDAR_DEFAULT_UPCOMING_LOOKAHEAD; if (isset($CFG->calendar_lookahead)) { $defaultlookahead = intval($CFG->calendar_lookahead); } $lookahead = get_user_preferences('calendar_lookahead', $defaultlookahead); $defaultmaxevents = CALENDAR_DEFAULT_UPCOMING_MAXEVENTS; if (isset($CFG->calendar_maxevents)) { $defaultmaxevents = intval($CFG->calendar_maxevents); } $maxevents = get_user_preferences('calendar_maxevents', $defaultmaxevents); echo $renderer->show_upcoming_events($calendar, $lookahead, $maxevents); break; } //Link to calendar export page. echo $OUTPUT->container_start('bottom'); if (!empty($CFG->enablecalendarexport)) { echo $OUTPUT->single_button(new moodle_url('export.php', array('course'=>$courseid)), get_string('exportcalendar', 'calendar')); if (calendar_user_can_add_event($course)) { echo $OUTPUT->single_button(new moodle_url('/calendar/managesubscriptions.php', array('course'=>$courseid)), get_string('managesubscriptions', 'calendar')); } if (isloggedin()) { $authtoken = sha1($USER->id . $DB->get_field('user', 'password', array('id' => $USER->id)) . $CFG->calendar_exportsalt); $link = new moodle_url( '/calendar/export_execute.php', array('preset_what'=>'all', 'preset_time' => 'recentupcoming', 'userid' => $USER->id, 'authtoken'=>$authtoken) ); echo html_writer::tag('a', 'iCal', array('href' => $link, 'title' => get_string('quickdownloadcalendar', 'calendar'), 'class' => 'ical-link m-l-1')); } } echo $OUTPUT->container_end(); echo html_writer::end_tag('div'); echo $renderer->complete_layout(); echo $OUTPUT->footer();