mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-09-20 04:34:39 -04:00
updated documentation, small cleanups
This commit is contained in:
parent
b45bef8388
commit
3fa0881c07
4 changed files with 18 additions and 17 deletions
|
@ -74,12 +74,9 @@ class PurgeLimiter extends AbstractPersistence
|
|||
|
||||
$file = 'purge_limiter.php';
|
||||
$now = time();
|
||||
$content = '<?php' . PHP_EOL . '$GLOBALS[\'purge_limiter\'] = ' . $now . ';' . PHP_EOL;
|
||||
if (!self::_exists($file)) {
|
||||
self::_store(
|
||||
$file,
|
||||
'<?php' . PHP_EOL .
|
||||
'$GLOBALS[\'purge_limiter\'] = ' . $now . ';' . PHP_EOL
|
||||
);
|
||||
self::_store($file, $content);
|
||||
}
|
||||
|
||||
$path = self::getPath($file);
|
||||
|
@ -90,11 +87,7 @@ class PurgeLimiter extends AbstractPersistence
|
|||
$result = false;
|
||||
} else {
|
||||
$result = true;
|
||||
self::_store(
|
||||
$file,
|
||||
'<?php' . PHP_EOL .
|
||||
'$GLOBALS[\'purge_limiter\'] = ' . $now . ';' . PHP_EOL
|
||||
);
|
||||
self::_store($file, $content);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue