mirror of
https://github.com/friendica/friendica
synced 2025-01-09 22:04:43 +00:00
code style & install-403 fix
This commit is contained in:
parent
d579d9e1d0
commit
58c9566c3d
6 changed files with 138 additions and 133 deletions
|
@ -139,7 +139,7 @@ class App
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current config of this nodde
|
* Returns the current config of this node
|
||||||
*
|
*
|
||||||
* @return Configuration
|
* @return Configuration
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -40,7 +40,7 @@ Options
|
||||||
-P|--dbpass <password> The password of the mysql/mariadb database login (env MYSQL_PASSWORD)
|
-P|--dbpass <password> The password of the mysql/mariadb database login (env MYSQL_PASSWORD)
|
||||||
-U|--url <url> The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL)
|
-U|--url <url> The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL)
|
||||||
-B|--phppath <php_path> The path of the PHP binary (env FRIENDICA_PHP_PATH)
|
-B|--phppath <php_path> The path of the PHP binary (env FRIENDICA_PHP_PATH)
|
||||||
-b|--basepath <base_path> The basepath of Friendica(env FRIENDICA_BASE_PATH)
|
-b|--basepath <base_path> The basepath of Friendica (env FRIENDICA_BASE_PATH)
|
||||||
-t|--tz <timezone> The timezone of Friendica (env FRIENDICA_TZ)
|
-t|--tz <timezone> The timezone of Friendica (env FRIENDICA_TZ)
|
||||||
-L|--lang <language> The language of Friendica (env FRIENDICA_LANG)
|
-L|--lang <language> The language of Friendica (env FRIENDICA_LANG)
|
||||||
|
|
||||||
|
|
|
@ -249,8 +249,9 @@ class Installer
|
||||||
$help .= L10n::t("If you don't have a command line version of PHP installed on your server, you will not be able to run the background processing. See <a href='https://github.com/friendica/friendica/blob/master/doc/Install.md#set-up-the-worker'>'Setup the worker'</a>") . EOL;
|
$help .= L10n::t("If you don't have a command line version of PHP installed on your server, you will not be able to run the background processing. See <a href='https://github.com/friendica/friendica/blob/master/doc/Install.md#set-up-the-worker'>'Setup the worker'</a>") . EOL;
|
||||||
$help .= EOL . EOL;
|
$help .= EOL . EOL;
|
||||||
$tpl = Renderer::getMarkupTemplate('field_input.tpl');
|
$tpl = Renderer::getMarkupTemplate('field_input.tpl');
|
||||||
|
/// @todo Separate backend Installer class and presentation layer/view
|
||||||
$help .= Renderer::replaceMacros($tpl, [
|
$help .= Renderer::replaceMacros($tpl, [
|
||||||
'$field' => ['config.php_path', L10n::t('PHP executable path'), $phppath, L10n::t('Enter full path to php executable. You can leave this blank to continue the installation.')],
|
'$field' => ['config-php_path', L10n::t('PHP executable path'), $phppath, L10n::t('Enter full path to php executable. You can leave this blank to continue the installation.')],
|
||||||
]);
|
]);
|
||||||
$phppath = "";
|
$phppath = "";
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Install extends BaseModule
|
||||||
*/
|
*/
|
||||||
const DATABASE_CONFIG = 3;
|
const DATABASE_CONFIG = 3;
|
||||||
/**
|
/**
|
||||||
* Step four - Adapat site settings
|
* Step four - Adapt site settings
|
||||||
*/
|
*/
|
||||||
const SITE_SETTINGS = 4;
|
const SITE_SETTINGS = 4;
|
||||||
/**
|
/**
|
||||||
|
@ -50,6 +50,10 @@ class Install extends BaseModule
|
||||||
{
|
{
|
||||||
$a = self::getApp();
|
$a = self::getApp();
|
||||||
|
|
||||||
|
if (!$a->getMode()->isInstall()) {
|
||||||
|
Core\System::httpExit(403);
|
||||||
|
}
|
||||||
|
|
||||||
// route: install/testrwrite
|
// route: install/testrwrite
|
||||||
// $baseurl/install/testrwrite to test if rewrite in .htaccess is working
|
// $baseurl/install/testrwrite to test if rewrite in .htaccess is working
|
||||||
if ($a->getArgumentValue(1, '') == 'testrewrite') {
|
if ($a->getArgumentValue(1, '') == 'testrewrite') {
|
||||||
|
@ -227,7 +231,7 @@ class Install extends BaseModule
|
||||||
$configCache->get('database', 'hostname'),
|
$configCache->get('database', 'hostname'),
|
||||||
'',
|
'',
|
||||||
'required'],
|
'required'],
|
||||||
'$dbuser' => ['database-username',
|
'$dbuser ' => ['database-username',
|
||||||
L10n::t('Database Login Name'),
|
L10n::t('Database Login Name'),
|
||||||
$configCache->get('database', 'username'),
|
$configCache->get('database', 'username'),
|
||||||
'',
|
'',
|
||||||
|
|
|
@ -607,7 +607,7 @@ Options
|
||||||
-P|--dbpass <password> The password of the mysql/mariadb database login (env MYSQL_PASSWORD)
|
-P|--dbpass <password> The password of the mysql/mariadb database login (env MYSQL_PASSWORD)
|
||||||
-U|--url <url> The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL)
|
-U|--url <url> The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL)
|
||||||
-B|--phppath <php_path> The path of the PHP binary (env FRIENDICA_PHP_PATH)
|
-B|--phppath <php_path> The path of the PHP binary (env FRIENDICA_PHP_PATH)
|
||||||
-b|--basepath <base_path> The basepath of Friendica(env FRIENDICA_BASE_PATH)
|
-b|--basepath <base_path> The basepath of Friendica (env FRIENDICA_BASE_PATH)
|
||||||
-t|--tz <timezone> The timezone of Friendica (env FRIENDICA_TZ)
|
-t|--tz <timezone> The timezone of Friendica (env FRIENDICA_TZ)
|
||||||
-L|--lang <language> The language of Friendica (env FRIENDICA_LANG)
|
-L|--lang <language> The language of Friendica (env FRIENDICA_LANG)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue