Project

General

Profile

Feature #16383 ยป 3894.diff

Administrator Admin, 2006-09-03 22:08

View differences:

typo3_src-4.0.1/t3lib/class.t3lib_beuserauth.php 2006-09-03 20:55:24.000000000 +0200
'emailMeAtLogin' => 0,
'condensedMode' => 0,
'noMenuMode' => 0,
'startInTaskCenter' => 0,
'startModule' => 'help_aboutmodules',
'hideSubmoduleIcons' => 0,
'helpText' => 1,
'titleLen' => 30,
typo3_src-4.0.1/typo3/alt_main.php 2006-09-03 21:56:28.000000000 +0200
function startModule() {
global $BE_USER;
$module = preg_replace('/[^[:alnum:]_]/','',t3lib_div::_GET('module'));
if (!$module && $BE_USER->uc['startInTaskCenter']) {
$module = 'user_task';
if (!$module) {
if ($BE_USER->uc['startModule']) {
$module = $BE_USER->uc['startModule'];
} elseif ($BE_USER->uc['startInTaskCenter']) {
$module = 'user_task';
}
}
$params = t3lib_div::_GET('modParams');
typo3_src-4.0.1/typo3/sysext/setup/mod/index.php 2006-09-03 22:07:05.000000000 +0200
require('conf.php');
require($BACK_PATH.'init.php');
require_once(PATH_t3lib.'class.t3lib_tcemain.php');
require_once(PATH_t3lib.'class.t3lib_loadmodules.php');
......
// Startup
$BE_USER->uc['condensedMode'] = $d['condensedMode'];
$BE_USER->uc['noMenuMode'] = $d['noMenuMode'];
if (t3lib_extMgm::isLoaded('taskcenter')) $BE_USER->uc['startInTaskCenter'] = $d['startInTaskCenter'];
$BE_USER->uc['startModule'] = $d['startModule'];
$BE_USER->uc['thumbnailsByDefault'] = $d['thumbnailsByDefault'];
$BE_USER->uc['helpText'] = $d['helpText'];
$BE_USER->uc['titleLen'] = intval($d['titleLen']);
......
* @return void
*/
function main() {
global $BE_USER,$LANG,$BACK_PATH;
global $BE_USER,$LANG,$BACK_PATH,$TBE_MODULES;;
// Start page:
$this->doc->JScode.= '<script language="javascript" type="text/javascript" src="'.$BACK_PATH.'md5.js"></script>';
$this->content.= $this->doc->startPage($LANG->getLL('UserSettings'));
$this->content.= $this->doc->header($LANG->getLL('UserSettings').' - ['.$BE_USER->user['username'].']');
// Load available backend modules
$this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
$this->loadModules->observeWorkspaces = TRUE;
$this->loadModules->load($TBE_MODULES);
// CSH general:
$this->content.= t3lib_BEfunc::cshItem('_MOD_user_setup', '', $GLOBALS['BACK_PATH'],'|');
......
<option value="1"'.($BE_USER->uc['noMenuMode'] && (string)$BE_USER->uc['noMenuMode']!="icons"?' selected="selected"':'').'>'.$this->setLabel('noMenuMode_sel').'</option>
<option value="icons"'.((string)$BE_USER->uc['noMenuMode']=='icons'?' selected="selected"':'').'>'.$this->setLabel('noMenuMode_icons').'</option>
</select>';
if (t3lib_extMgm::isLoaded('taskcenter')) {
$code[4][1] = $this->setLabel('startInTaskCenter','startInTaskCenter');
$code[4][2] = '<input type="checkbox" name="data[startInTaskCenter]"'.($BE_USER->uc['startInTaskCenter']?' checked="checked"':'').' />';
$code[4][1] = $this->setLabel('startModule','startModule');
$modSelect = '<select name="data[startModule]">';
foreach ($this->loadModules->modules as $mainMod => $modData) {
if (isset($modData['sub']) && is_array($modData['sub'])) {
$modSelect .= '<option disabled="disabled">'.$LANG->moduleLabels['tabs'][$mainMod.'_tab'].'</option>';
foreach ($modData['sub'] as $subKey => $subData) {
$modName = $subData['name'];
$modSelect .= '<option value="'.$modName.'"'.($BE_USER->uc['startModule']==$modName?' selected="selected"':'').'>';
$modSelect .= ' - '.$LANG->moduleLabels['tabs'][$modName.'_tab'].'</option>';
}
}
}
$modSelect .= '</select>';
$code[4][2] = $modSelect;
$code[5][1] = $this->setLabel('showThumbs','thumbnailsByDefault');
$code[5][2] = '<input type="checkbox" name="data[thumbnailsByDefault]"'.($BE_USER->uc['thumbnailsByDefault']?' checked="checked"':'').' />';
$code[6][1] = $this->setLabel('helpText');
typo3_src-4.0.1/typo3/sysext/setup/mod/locallang.xml 2006-09-03 20:55:25.000000000 +0200
<label index="noMenuMode_def">Left frame menu (default)</label>
<label index="noMenuMode_sel">Selectorbox in top frame</label>
<label index="noMenuMode_icons">Icons in top frame</label>
<label index="startInTaskCenter">Start up in the module 'Task Center'</label>
<label index="startModule">Start up in the following module</label>
<label index="emailMeAtLogin">Notify me by email, when somebody logs in &lt;br /&gt;from my account</label>
<label index="helpText">Show help text when applicable</label>
<label index="maxTitleLen">Max. Title Length</label>
    (1-1/1)