| 1 |
<?php |
| 2 |
|
| 3 |
namespace LAM\TOOLS\SERVER_INFO; |
| 4 |
|
| 5 |
use LAMTool; |
| 6 |
|
| 7 |
/* |
| 8 |
|
| 9 |
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) |
| 10 |
Copyright (C) 2009 - 2022 Roland Gruber |
| 11 |
|
| 12 |
This program is free software; you can redistribute it and/or modify |
| 13 |
it under the terms of the GNU General Public License as published by |
| 14 |
the Free Software Foundation; either version 2 of the License, or |
| 15 |
(at your option) any later version. |
| 16 |
|
| 17 |
This program is distributed in the hope that it will be useful, |
| 18 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 |
GNU General Public License for more details. |
| 21 |
|
| 22 |
You should have received a copy of the GNU General Public License |
| 23 |
along with this program; if not, write to the Free Software |
| 24 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 25 |
|
| 26 |
*/ |
| 27 |
|
| 28 |
/** |
| 29 |
* This file includes the server information tool specification. |
| 30 |
* |
| 31 |
* @author Roland Gruber |
| 32 |
* @package tools |
| 33 |
*/ |
| 34 |
|
| 35 |
/** |
| 36 |
* Server information |
| 37 |
* |
| 38 |
* @package tools |
| 39 |
*/ |
| 40 |
class toolServerInformation extends LAMTool { |
| 41 |
|
| 42 |
/** |
| 43 |
* {@inheritDoc} |
| 44 |
*/ |
| 45 |
public function getName(): string { |
| 46 |
return _("Server information"); |
| 47 |
} |
| 48 |
|
| 49 |
/** |
| 50 |
* {@inheritDoc} |
| 51 |
*/ |
| 52 |
public function getDescription(): string { |
| 53 |
return _("Information about the LDAP server."); |
| 54 |
} |
| 55 |
|
| 56 |
/** |
| 57 |
* {@inheritDoc} |
| 58 |
*/ |
| 59 |
public function getLink(): string { |
| 60 |
return "tools/serverInfo.php"; |
| 61 |
} |
| 62 |
|
| 63 |
/** |
| 64 |
* {@inheritDoc} |
| 65 |
*/ |
| 66 |
public function getRequiresWriteAccess(): bool { |
| 67 |
return false; |
| 68 |
} |
| 69 |
|
| 70 |
/** |
| 71 |
* {@inheritDoc} |
| 72 |
*/ |
| 73 |
public function getRequiresPasswordChangeRights(): bool { |
| 74 |
return false; |
| 75 |
} |
| 76 |
|
| 77 |
/** |
| 78 |
* {@inheritDoc} |
| 79 |
*/ |
| 80 |
public function getImageLink(): string { |
| 81 |
return 'info.svg'; |
| 82 |
} |
| 83 |
|
| 84 |
/** |
| 85 |
* {@inheritDoc} |
| 86 |
*/ |
| 87 |
public function getPosition(): int { |
| 88 |
return 700; |
| 89 |
} |
| 90 |
|
| 91 |
/** |
| 92 |
* {@inheritDoc} |
| 93 |
*/ |
| 94 |
public function isVisible(): bool { |
| 95 |
return true; |
| 96 |
} |
| 97 |
|
| 98 |
} |