mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
improve phpdocs
This commit is contained in:
3 files changed
+8
-59
No files matched your search
+2
-13
@@ -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
@@ -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');
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
Reference in new issue
Block a user