You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-07 17:42:53 +03:00
bumping php-cs-fixer; formatting rules change slightly
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// vim:ts=4:sw=4:et
|
// vim:ts=4:sw=4:et
|
||||||
ini_set('include_path', get_include_path() . ':' . dirname(__FILE__));
|
ini_set('include_path', get_include_path() . ':' . dirname(__FILE__));
|
||||||
|
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once(dirname(__FILE__) . '/common.php');
|
require_once(dirname(__FILE__) . '/common.php');
|
||||||
|
|
||||||
$xmlrpc = get_xmlrpc();
|
$xmlrpc = get_xmlrpc();
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// vim:ts=4:sw=4:et
|
// vim:ts=4:sw=4:et
|
||||||
if (!defined('SM_PATH')) {
|
if (!defined('SM_PATH')) {
|
||||||
die("Invalid internal state (don't access file directly)");
|
die("Invalid internal state (don't access file directly)");
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
//
|
//
|
||||||
// Postfix Admin
|
// Postfix Admin
|
||||||
// by Mischa Peters <mischa at high5 dot net>
|
// by Mischa Peters <mischa at high5 dot net>
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
class AdminHandler extends PFAHandler {
|
class AdminHandler extends PFAHandler {
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
class AdminpasswordHandler extends PFAHandler {
|
class AdminpasswordHandler extends PFAHandler {
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
/**
|
/**
|
||||||
* class to handle 'delete' in Cli
|
* class to handle 'delete' in Cli
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CliDelete extends Shell {
|
class CliDelete extends Shell {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execution method always used for tasks
|
* Execution method always used for tasks
|
||||||
*/
|
*/
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
class CliHelp extends Shell {
|
class CliHelp extends Shell {
|
||||||
@@ -14,7 +15,7 @@ class CliHelp extends Shell {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function help() {
|
public function help() {
|
||||||
$handler = new $this->handler_to_use;
|
$handler = new $this->handler_to_use();
|
||||||
# TODO: adjust help text according to $handler->taskNames
|
# TODO: adjust help text according to $handler->taskNames
|
||||||
|
|
||||||
$module = preg_replace('/Handler$/', '', $this->handler_to_use);
|
$module = preg_replace('/Handler$/', '', $this->handler_to_use);
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
/**
|
/**
|
||||||
* class to display the database scheme (for usage in upgrade.php) in Cli
|
* class to display the database scheme (for usage in upgrade.php) in Cli
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
/**
|
/**
|
||||||
* class to handle 'view' in Cli
|
* class to handle 'view' in Cli
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CliView extends Shell {
|
class CliView extends Shell {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execution method always used for tasks
|
* Execution method always used for tasks
|
||||||
*/
|
*/
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
# This class is too static - if you inherit a class from it, it will share the static $instance and all its contents
|
# This class is too static - if you inherit a class from it, it will share the static $instance and all its contents
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
abstract class PFAHandler {
|
|
||||||
|
|
||||||
|
abstract class PFAHandler {
|
||||||
/**
|
/**
|
||||||
* public variables
|
* public variables
|
||||||
*/
|
*/
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
class VacationHandler extends PFAHandler {
|
class VacationHandler extends PFAHandler {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
|
@@ -1,2 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once(dirname(__FILE__) . '/../common.php');
|
require_once(dirname(__FILE__) . '/../common.php');
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
//
|
//
|
||||||
// File: index.php
|
// File: index.php
|
||||||
//
|
//
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php /**
|
<?php
|
||||||
|
/**
|
||||||
* Postfix Admin
|
* Postfix Admin
|
||||||
*
|
*
|
||||||
* LICENSE
|
* LICENSE
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|
||||||
|
|
||||||
# Note: run with upgrade.php?debug=1 to see all SQL error messages
|
# Note: run with upgrade.php?debug=1 to see all SQL error messages
|
||||||
|
@@ -66,7 +66,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
$error = true;
|
$error = true;
|
||||||
flash_error(Config::lang('pPassword_password_text_error'));
|
flash_error(Config::lang('pPassword_password_text_error'));
|
||||||
} else {
|
} else {
|
||||||
$handler = $context === 'admin' ? new AdminHandler : new MailboxHandler;
|
$handler = $context === 'admin' ? new AdminHandler() : new MailboxHandler();
|
||||||
if (!$handler->checkPasswordRecoveryCode($tUsername, $tCode)) {
|
if (!$handler->checkPasswordRecoveryCode($tUsername, $tCode)) {
|
||||||
flash_error(Config::lang('pPassword_code_text_error'));
|
flash_error(Config::lang('pPassword_code_text_error'));
|
||||||
} else {
|
} else {
|
||||||
|
@@ -67,7 +67,6 @@ echo $server->handle();
|
|||||||
|
|
||||||
|
|
||||||
class UserProxy {
|
class UserProxy {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $old_password
|
* @param string $old_password
|
||||||
* @param string $new_password
|
* @param string $new_password
|
||||||
|
@@ -203,7 +203,7 @@ class PostfixAdmin {
|
|||||||
# TODO: add a way to Cli* to signal if the selected handler is supported (for example, not all *Handler support changing the password)
|
# TODO: add a way to Cli* to signal if the selected handler is supported (for example, not all *Handler support changing the password)
|
||||||
|
|
||||||
if (strtolower(get_parent_class($shell)) == 'shell') {
|
if (strtolower(get_parent_class($shell)) == 'shell') {
|
||||||
$handler = new $shell->handler_to_use;
|
$handler = new $shell->handler_to_use();
|
||||||
if (in_array($task, $handler->taskNames)) {
|
if (in_array($task, $handler->taskNames)) {
|
||||||
$this->shiftArgs();
|
$this->shiftArgs();
|
||||||
$shell->startup();
|
$shell->startup();
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class Crypt {
|
class Crypt {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
|
@@ -8,8 +8,6 @@
|
|||||||
require_once('RemoteTest.php');
|
require_once('RemoteTest.php');
|
||||||
|
|
||||||
class RemoteVacationTest extends RemoteTest {
|
class RemoteVacationTest extends RemoteTest {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the test recipient data to the database.
|
* Adds the test recipient data to the database.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user