|
@ -58,8 +58,8 @@ final class Env |
|
|
{ |
|
|
{ |
|
|
self::$params = self::$params + $params; |
|
|
self::$params = self::$params + $params; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static public function Files($name = '', $default = array(), $param = false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static public function Files($name = '', $default = array(), $param = false) |
|
|
{ |
|
|
{ |
|
|
if(!isset($_FILES)){ |
|
|
if(!isset($_FILES)){ |
|
|
return $default; |
|
|
return $default; |
|
@ -70,5 +70,19 @@ final class Env |
|
|
$res = isset($_FILES[$name]) ? $_FILES[$name] : $default; |
|
|
$res = isset($_FILES[$name]) ? $_FILES[$name] : $default; |
|
|
return $param ? $res[$param] : $res; |
|
|
return $param ? $res[$param] : $res; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Получить цену ставки |
|
|
|
|
|
* |
|
|
|
|
|
* @param integer $dis - некое число от кооторого считается скидка |
|
|
|
|
|
*/ |
|
|
|
|
|
static public function getBidCost($dis = 0) |
|
|
|
|
|
{ |
|
|
|
|
|
if ($dis > 0 && $dis <= 100) { |
|
|
|
|
|
return AUC_BID_COST - intval($dis); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return AUC_BID_COST; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
?>
|
|
|
?>
|