커맨드 유효성을 2개에서 3개구성으로 변경

This commit is contained in:
2020-05-04 19:51:11 +09:00
parent f25f5008f1
commit 77248ad4d8
100 changed files with 4124 additions and 3420 deletions
+14 -13
View File
@@ -1,4 +1,5 @@
<?php
namespace sammo;
class ServConfig
@@ -13,32 +14,32 @@ class ServConfig
public static $imageRequestPath = "_tK_imageRequestPath_";
public static $imageRequestKey = '_tK_imageRequestKey_';
public static function getSharedIconPath(string $filepath='') : string
public static function getSharedIconPath(string $filepath = ''): string
{
if($filepath){
return static::$sharedIconPath."/{$filepath}";
if ($filepath) {
return static::$sharedIconPath . "/{$filepath}";
}
return static::$sharedIconPath;
}
public static function getUserIconPath(string $filepath='') : string
public static function getUserIconPath(string $filepath = ''): string
{
return AppConf::getUserIconPathWeb($filepath);
}
public static function getGameImagePath(string $filepath='') : string
public static function getGameImagePath(string $filepath = ''): string
{
if($filepath){
return static::$gameImagePath."/{$filepath}";
if ($filepath) {
return static::$gameImagePath . "/{$filepath}";
}
return static::$gameImagePath;
}
public static function getImagePullURI() : string
public static function getImagePullURI(): string
{
$now = time();
$req_hash = Util::hashPassword(sprintf("%016x",$now), static::$imageRequestKey);
return static::$imageRequestPath."?req={$req_hash}&time={$now}";
$req_hash = Util::hashPassword(sprintf("%016x", $now), static::$imageRequestKey);
return static::$imageRequestPath . "?req={$req_hash}&time={$now}";
}
@@ -47,8 +48,8 @@ class ServConfig
*
* @return string
*/
public static function getServerBasepath() : string
public static function getServerBasepath(): string
{
return self::$serverWebPath;
}
}
}