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
1
root
app
Rest
Users
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/1/root/app/Rest/Users/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
User.php
1499
0644
2016-01-14 22:08:37
Unknown/Unknown
ForgottenPassword.php
3131
0644
2016-01-11 22:55:22
Unknown/Unknown
ResetPassword.php
3062
0644
2016-01-11 22:55:21
Unknown/Unknown
Account
-
0755
2016-01-11 22:58:16
Unknown/Unknown
Users.php
1491
0644
2016-01-15 10:19:48
Unknown/Unknown
PostFacebook.php
2369
0644
2016-02-27 10:21:45
Unknown/Unknown
CreateRequest.php
2881
0644
2016-01-11 22:55:22
Unknown/Unknown
FindUsername.php
1344
0644
2016-01-11 22:55:22
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin