0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

move shells/shell.php to model/Shell.php

... and drop a few lines in postfixadmin-cli.php that became superfluous
by this move (thanks autoloader!)
This commit is contained in:
Christian Boltz 2018-03-25 21:44:42 +02:00
parent 71d61a1d8a
commit 12c4a4f29e
No known key found for this signature in database
GPG Key ID: C6A682EA63C82F1C
2 changed files with 1 additions and 7 deletions

View File

@ -125,9 +125,6 @@ class PostfixAdmin {
ini_set('html_errors', false);
ini_set('implicit_flush', true);
ini_set('max_execution_time', 0);
define('DS', DIRECTORY_SEPARATOR);
define('CORE_INCLUDE_PATH', dirname(__FILE__));
}
/**
@ -170,10 +167,7 @@ class PostfixAdmin {
$this->help();
return;
}
# TODO: move shells/shell.php to model/ to enable autoloading
if (!class_exists('Shell')) {
require CORE_INCLUDE_PATH . DS . "shells" . DS . 'shell.php';
}
$command = 'help'; # not the worst default ;-)
if (isset($this->args[0])) {
$command = $this->args[0];