32 'setBElock' =>
'Set the Backend Lock',
33 'clearBElock' =>
'Clears the Backend Lock',
44 parent::__construct();
46 $this->cli_options[] = array(
'--redirect=[URL]',
'For toolkey "setBElock": The URL to which the redirection will occur.');
48 $this->
cli_help[
'name'] =
'lowlevel_admin -- Various functions for administration and maintenance of TYPO3 from the command line';
49 $this->
cli_help[
'synopsis'] =
'toolkey ###OPTIONS###';
50 $this->
cli_help[
'description'] =
'The \'toolkey\' keywords are: 53 ', array_keys($this->adminModules));
54 $this->
cli_help[
'examples'] =
'/.../cli_dispatch.phpsh lowlevel_admin setBElock --redirect=http://url_which_explains_why.com/';
55 $this->
cli_help[
'author'] =
'Kasper Skaarhoej, (c) 2009';
72 $GLOBALS[
'BE_USER']->user[
'admin'] = 1;
73 $GLOBALS[
'BE_USER']->setWorkspace(0);
75 $analysisType = (string) $this->cli_args[
'_DEFAULT'][1];
82 switch ((
string) $analysisType) {
84 if (@is_file((PATH_typo3conf .
'LOCK_BACKEND'))) {
85 $this->
cli_echo(
'A lockfile already exists. Overwriting it... 90 $this->
cli_echo(
'Wrote lock-file to \'' . PATH_typo3conf .
'LOCK_BACKEND\' with content \'' . $lockFileContent .
'\'');
93 if (@is_file((PATH_typo3conf .
'LOCK_BACKEND'))) {
94 unlink(PATH_typo3conf .
'LOCK_BACKEND');
95 if (@is_file((PATH_typo3conf .
'LOCK_BACKEND'))) {
96 $this->
cli_echo(
'ERROR: Could not remove lock file \'' . PATH_typo3conf .
'LOCK_BACKEND\'!! 99 $this->
cli_echo(
'Removed lock file \'' . PATH_typo3conf .
'LOCK_BACKEND\' 103 $this->
cli_echo(
'No lock file \'' . PATH_typo3conf .
'LOCK_BACKEND\' was found; hence no lock can be removed.\' 108 $this->
cli_echo(
'Unknown toolkey, \'' . $analysisType .
'\'');
static writeFile($file, $content, $changePermissions=FALSE)
cli_echo($string='', $force=FALSE)
cli_argValue($option, $idx=0)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]