improve phpdocs

This commit is contained in:
David Goodwin committed 2026-09-21 09:48:03 +01:00
1 parent 4e7d96607c
commit bc2fd158ac
3 files changed
+8 -59

No files matched your search

+2 -13
View File
@@ -1,21 +1,10 @@
<?php
/**
* Postfix Admin
*
* LICENSE
* This source file is subject to the GPL license that is bundled with
* this package in the file LICENSE.TXT.
*
* Further details on the project are available at https://github.com/postfixadmin/postfixadmin
*
* @license GNU GPL v2 or later.
*
* File: functions.inc.php
* Contains re-usable code.
* Common re-useable functions for PostfixAdmin.
* @license GPLv2 or later - see LICENSE.TXT and GPL-LICENSE.TXT
*/
$min_db_version = 1855; # update (at least) before a release with the latest function number in upgrade.php
+3 -23
View File
@@ -1,31 +1,11 @@
<?php
/**
* Postfix Admin
*
* LICENSE
* This source file is subject to the GPL license that is bundled with
* this package in the file LICENSE.TXT.
* @license GPLv2 or later. This source file is subject to the GPL license that is bundled with this package in the file LICENSE.TXT.
*
* Further details on the project are available at https://github.com/postfixadmin/postfixadmin
*
* @version $Id$
* @license GNU GPL v2 or later.
*
* File: login-totp.php
* Authenticates a user, and populates their $_SESSION as appropriate.
* Template File: login.tpl
*
* Template Variables:
*
* none
*
* Form POST \ GET Variables:
*
* fUsername
* fPassword
* token
* lang
* If a user has MFA enabled, after they've authenticated their username/passwrd at /users/login.php they should be redirected here.
* We therefore need to get the MFA/TOTP code and validate it.
*/
require_once('common.php');
+3 -23
View File
@@ -1,33 +1,13 @@
<?php
/**
* Postfix Admin
*
* LICENSE
* This source file is subject to the GPL license that is bundled with
* this package in the file LICENSE.TXT.
* @license GPLv2 This source file is subject to the GPL license that is bundled with this package in the file LICENSE.TXT.
*
* Further details on the project are available at https://github.com/postfixadmin/postfixadmin
*
* @version $Id$
* @license GNU GPL v2 or later.
*
* File: login-totp.php
* Authenticates a user, and populates their $_SESSION as appropriate.
* Template File: login.tpl
*
* Template Variables:
*
* none
*
* Form POST \ GET Variables:
*
* fUsername
* fPassword
* token
* lang
* If a user has MFA enabled, after they've authenticated their username/passwrd at /users/login.php they should be redirected here.
* We therefore need to get the MFA/TOTP code and validate it.
*/
require_once('../common.php');
if (authentication_has_role("user")) {