This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 899
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- animation settings * minor fixes
- Loading branch information
Showing
438 changed files
with
6,048 additions
and
5,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.9.485 | ||
1.3.10.490 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.3.10.490 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
252 changes: 126 additions & 126 deletions
252
...p/libraries/MailSo/Cache/Drivers/File.php → ...p/libraries/MailSo/Cache/Drivers/File.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,126 +1,126 @@ | ||
<?php | ||
|
||
namespace MailSo\Cache\Drivers; | ||
|
||
/** | ||
* @category MailSo | ||
* @package Cache | ||
* @subpackage Drivers | ||
*/ | ||
class File implements \MailSo\Cache\DriverInterface | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $sCacheFolder; | ||
|
||
/** | ||
* @access private | ||
* | ||
* @param string $sCacheFolder | ||
*/ | ||
private function __construct($sCacheFolder) | ||
{ | ||
$this->sCacheFolder = $sCacheFolder; | ||
$this->sCacheFolder = rtrim(trim($this->sCacheFolder), '\\/').'/'; | ||
if (!\is_dir($this->sCacheFolder)) | ||
{ | ||
@\mkdir($this->sCacheFolder, 0777); | ||
} | ||
} | ||
|
||
/** | ||
* @param string $sCacheFolder | ||
* | ||
* @return \MailSo\Cache\Drivers\File | ||
*/ | ||
public static function NewInstance($sCacheFolder) | ||
{ | ||
return new self($sCacheFolder); | ||
} | ||
|
||
/** | ||
* @param string $sKey | ||
* @param string $sValue | ||
* | ||
* @return bool | ||
*/ | ||
public function Set($sKey, $sValue) | ||
{ | ||
return false !== \file_put_contents($sPath = $this->generateCachedFileName($sKey, true), $sValue); | ||
} | ||
|
||
/** | ||
* @param string $sKey | ||
* | ||
* @return string | ||
*/ | ||
public function Get($sKey) | ||
{ | ||
$sValue = ''; | ||
$sPath = $this->generateCachedFileName($sKey); | ||
if (\file_exists($sPath)) | ||
{ | ||
$sValue = \file_get_contents($sPath); | ||
} | ||
|
||
return \is_string($sValue) ? $sValue : ''; | ||
} | ||
|
||
/** | ||
* @param string $sKey | ||
* | ||
* @return void | ||
*/ | ||
public function Delete($sKey) | ||
{ | ||
$sPath = $this->generateCachedFileName($sKey); | ||
if (\file_exists($sPath)) | ||
{ | ||
\unlink($sPath); | ||
} | ||
} | ||
|
||
/** | ||
* @param int $iTimeToClearInHours = 24 | ||
* | ||
* @return bool | ||
*/ | ||
public function GC($iTimeToClearInHours = 24) | ||
{ | ||
if (0 < $iTimeToClearInHours) | ||
{ | ||
\MailSo\Base\Utils::RecTimeDirRemove($this->sCacheFolder, 60 * 60 * $iTimeToClearInHours, \time()); | ||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
/** | ||
* @param string $sKey | ||
* @param bool $bMkDir = false | ||
* | ||
* @return string | ||
*/ | ||
private function generateCachedFileName($sKey, $bMkDir = false) | ||
{ | ||
$sFilePath = ''; | ||
if (3 < \strlen($sKey)) | ||
{ | ||
$sKeyPath = \sha1($sKey); | ||
$sKeyPath = \substr($sKeyPath, 0, 2).'/'.\substr($sKeyPath, 2, 2).'/'.$sKeyPath; | ||
|
||
$sFilePath = $this->sCacheFolder.'/'.$sKeyPath; | ||
if ($bMkDir && !\is_dir(\dirname($sFilePath))) | ||
{ | ||
if (!\mkdir(\dirname($sFilePath), 0777, true)) | ||
{ | ||
$sFilePath = ''; | ||
} | ||
} | ||
} | ||
|
||
return $sFilePath; | ||
} | ||
} | ||
<?php | ||
|
||
namespace MailSo\Cache\Drivers; | ||
|
||
/** | ||
* @category MailSo | ||
* @package Cache | ||
* @subpackage Drivers | ||
*/ | ||
class File implements \MailSo\Cache\DriverInterface | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $sCacheFolder; | ||
|
||
/** | ||
* @access private | ||
* | ||
* @param string $sCacheFolder | ||
*/ | ||
private function __construct($sCacheFolder) | ||
{ | ||
$this->sCacheFolder = $sCacheFolder; | ||
$this->sCacheFolder = rtrim(trim($this->sCacheFolder), '\\/').'/'; | ||
if (!\is_dir($this->sCacheFolder)) | ||
{ | ||
@\mkdir($this->sCacheFolder, 0755); | ||
} | ||
} | ||
|
||
/** | ||
* @param string $sCacheFolder | ||
* | ||
* @return \MailSo\Cache\Drivers\File | ||
*/ | ||
public static function NewInstance($sCacheFolder) | ||
{ | ||
return new self($sCacheFolder); | ||
} | ||
|
||
/** | ||
* @param string $sKey | ||
* @param string $sValue | ||
* | ||
* @return bool | ||
*/ | ||
public function Set($sKey, $sValue) | ||
{ | ||
return false !== \file_put_contents($sPath = $this->generateCachedFileName($sKey, true), $sValue); | ||
} | ||
|
||
/** | ||
* @param string $sKey | ||
* | ||
* @return string | ||
*/ | ||
public function Get($sKey) | ||
{ | ||
$sValue = ''; | ||
$sPath = $this->generateCachedFileName($sKey); | ||
if (\file_exists($sPath)) | ||
{ | ||
$sValue = \file_get_contents($sPath); | ||
} | ||
|
||
return \is_string($sValue) ? $sValue : ''; | ||
} | ||
|
||
/** | ||
* @param string $sKey | ||
* | ||
* @return void | ||
*/ | ||
public function Delete($sKey) | ||
{ | ||
$sPath = $this->generateCachedFileName($sKey); | ||
if (\file_exists($sPath)) | ||
{ | ||
\unlink($sPath); | ||
} | ||
} | ||
|
||
/** | ||
* @param int $iTimeToClearInHours = 24 | ||
* | ||
* @return bool | ||
*/ | ||
public function GC($iTimeToClearInHours = 24) | ||
{ | ||
if (0 < $iTimeToClearInHours) | ||
{ | ||
\MailSo\Base\Utils::RecTimeDirRemove($this->sCacheFolder, 60 * 60 * $iTimeToClearInHours, \time()); | ||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
/** | ||
* @param string $sKey | ||
* @param bool $bMkDir = false | ||
* | ||
* @return string | ||
*/ | ||
private function generateCachedFileName($sKey, $bMkDir = false) | ||
{ | ||
$sFilePath = ''; | ||
if (3 < \strlen($sKey)) | ||
{ | ||
$sKeyPath = \sha1($sKey); | ||
$sKeyPath = \substr($sKeyPath, 0, 2).'/'.\substr($sKeyPath, 2, 2).'/'.$sKeyPath; | ||
|
||
$sFilePath = $this->sCacheFolder.'/'.$sKeyPath; | ||
if ($bMkDir && !\is_dir(\dirname($sFilePath))) | ||
{ | ||
if (!\mkdir(\dirname($sFilePath), 0755, true)) | ||
{ | ||
$sFilePath = ''; | ||
} | ||
} | ||
} | ||
|
||
return $sFilePath; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.