mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[ticket/10614] Better usage output
PHPBB3-10614
This commit is contained in:
parent
be74b5286c
commit
9e15d83022
1 changed files with 21 additions and 29 deletions
|
@ -1,32 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
// -------------------------------------------------------------
|
/**
|
||||||
//
|
*
|
||||||
// FILENAME : extensions.php
|
* @copyright (c) 2012 phpBB Group
|
||||||
// STARTED : Fri Feb 3, 2012
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
// COPYRIGHT : (C) 2012 phpBB Group
|
*
|
||||||
// WWW : http://www.phpbb.com/
|
*/
|
||||||
// LICENCE : GPL vs2.0 [ see /docs/COPYING ]
|
|
||||||
//
|
|
||||||
// -------------------------------------------------------------
|
|
||||||
|
|
||||||
// Console extension manager.
|
|
||||||
//
|
|
||||||
// Usage:
|
|
||||||
//
|
|
||||||
// extensions.php list
|
|
||||||
//
|
|
||||||
// Lists all extensions in the database and the filesystem.
|
|
||||||
// Next to each extension name are two flags:
|
|
||||||
// P|M - present|missing - whether the extension exists in the filesystem
|
|
||||||
// A|I - active|inactive - whether the extension is activated in the database
|
|
||||||
//
|
|
||||||
// extensions.php enable <name>
|
|
||||||
//
|
|
||||||
// Enables the specified extension.
|
|
||||||
//
|
|
||||||
// extensions.php disable <name>
|
|
||||||
//
|
|
||||||
// Disables the specified extension.
|
|
||||||
|
|
||||||
define('IN_PHPBB', 1);
|
define('IN_PHPBB', 1);
|
||||||
define('ANONYMOUS', 1);
|
define('ANONYMOUS', 1);
|
||||||
|
@ -37,7 +15,21 @@ include($phpbb_root_path . 'common.'.$phpEx);
|
||||||
|
|
||||||
function usage()
|
function usage()
|
||||||
{
|
{
|
||||||
echo "Please see comments in extensions.php for usage\n";
|
echo "Usage: extensions.php COMMAND [OPTION]...\n";
|
||||||
|
echo "Console extension manager.\n";
|
||||||
|
echo "\n";
|
||||||
|
echo "list:\n";
|
||||||
|
echo " Lists all extensions in the database and the filesystem.\n";
|
||||||
|
echo " Next to each extension name are two flags:\n";
|
||||||
|
echo "\n";
|
||||||
|
echo " * P|M - present|missing: whether the extension exists in the filesystem\n";
|
||||||
|
echo " * A|I - active|inactive: whether the extension is activated in the database\n";
|
||||||
|
echo "\n";
|
||||||
|
echo "enable NAME:\n";
|
||||||
|
echo " Enables the specified extension.\n";
|
||||||
|
echo "\n";
|
||||||
|
echo "disable NAME:\n";
|
||||||
|
echo " Disables the specified extension.\n";
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue