Ich habe meine TL-Seite in einem Unterverzeichnis auf dem Server entwickelt.
Belasse die Installation auch in dem Verzeichnis nur leite ich die Domain direkt auf das Unterverzeichnis bei meinem Provider.
Daraufhin wollte ich dann noch die URLs umschreiben lassen und aktivierte das Rewriting im Backend und benannte die .htaccess um.
Nun komme ich nicht mehr in die Einstellungen im Backend. Es wird nur folgendes ausgegeben:
Code:
* @package Backend * @license LGPL * @filesource */ /** * Initialize the system */ define(
'TL_MODE',
'BE'
); require_once(
'../system/initialize.php'
); /** * Class Main * * Main back end controller. * @copyright Leo Feyer 2005-2009 * @author Leo Feyer * @package Controller */ class Main extends Backend { /** * Current Ajax object * @VAR object */ protected $objAjax; /** * Initialize the controller * * 1. Import user * 2. CALL parent constructor * 3. Authenticate user * 4. LOAD language files * DO NOT CHANGE THIS ORDER! */ public function __construct(
) { $this->import(
'BackendUser',
'User'
); parent::__construct(
); $this->User->authenticate(
); $this->loadLanguageFile(
'DEFAULT'
); $this->loadLanguageFile(
'modules'
); } /** * Run controller
AND
parse the login template */ public function run(
) { $this->Template = new BackendTemplate(
'be_main'
); $this->Template->main = ''; IF (
$this->Input->post(
'isAjax'
)
) { $this->objAjax = new Ajax(
$this->Input->post(
'action'
)
); $this->objAjax->executePreActions(
); } // Welcome screen IF (
!$this->Input->get(
'do'
) && !$this->Input->get(
'act'
)
) { $this->welcomeScreen(
); } // Open module IF (
$this->Input->get(
'do'
)
) { $this->Template->main .= $this->getBackendModule(
$this->Input->get(
'do'
)
); } $this->output(
); } /** * ADD the welcome screen */ protected function welcomeScreen(
) { $this->loadLanguageFile(
'EXPLAIN'
); // CREATE template object $objTemplate = new BackendTemplate(
'be_welcome'
); $objTemplate->messages = FALSE; $objTemplate->arrShortcuts = $GLOBALS['TL_LANG']['XPL']['shortcuts']; $objTemplate->welcome = sprintf(
$GLOBALS['TL_LANG']['MSC']['welcomeTo'],
$GLOBALS['TL_CONFIG']['websiteTitle']
); $objTemplate->systemMessages = $GLOBALS['TL_LANG']['MSC']['systemMessages']; // CHECK FOR latest version IF (
!empty(
$GLOBALS['TL_CONFIG']['latestVersion']
) && version_compare(
VERSION . '.' . BUILD,
$GLOBALS['TL_CONFIG']['latestVersion'],
'<'
)
) { $objTemplate->
UPDATE
= sprintf(
$GLOBALS['TL_LANG']['MSC']['updateVersion'],
$GLOBALS['TL_CONFIG']['latestVersion']
); $objTemplate->messages = TRUE; } // CHECK FOR tasks $tasksReg = 0; $tasksNew = 0; $tasksDue = 0; $objTask = $this->DATABASE->prepare(
"
SELECT
t.deadline,
s.status,
s.assignedTo
FROM
tl_task t
LEFT JOIN
tl_task_status s
ON
t.id=s.pid
AND
s.tstamp=(
SELECT
MAX(
tstamp
)
FROM
tl_task_status ts
WHERE
ts.pid=t.id
)" . (
!$this->User->isAdmin ? "
WHERE
(
t.createdBy=?
OR
s.assignedTo=?
)" : ""
)
) ->execute(
$this->User->id,
$this->User->id
); IF (
$objTask->numRows
) { $time = time(
); WHILE (
$objTask->next(
)
) { IF (
$objTask->status == 'completed'
) { CONTINUE; } IF (
$objTask->deadline <= $time
) { ++$tasksDue; } ELSEIF (
$objTask->status == 'created' && $objTask->assignedTo == $this->User->id
) { ++$tasksNew; }
ELSE
{ ++$tasksReg; } } IF (
$tasksReg > 0
) { $objTemplate->tasksCur = sprintf(
$GLOBALS['TL_LANG']['MSC']['tasksCur'],
$tasksReg
); $objTemplate->messages = TRUE; } IF (
$tasksNew > 0
) { $objTemplate->tasksNew = sprintf(
$GLOBALS['TL_LANG']['MSC']['tasksNew'],
$tasksNew
); $objTemplate->messages = TRUE; } IF (
$tasksDue > 0
) { $objTemplate->tasksDue = sprintf(
$GLOBALS['TL_LANG']['MSC']['tasksDue'],
$tasksDue
); $objTemplate->messages = TRUE; } } // Modules $arrGroups = array(
); foreach (
$GLOBALS['BE_MOD'] AS $strGroup=>$arrModules
) { foreach (
array_keys(
$arrModules
) AS $strModule
) { IF (
$strGroup == 'profile' || $this->User->hasAccess(
$strModule,
'modules'
)
) { $arrGroups[$GLOBALS['TL_LANG']['MOD'][$strGroup]][$strModule] = array (
'name' => $GLOBALS['TL_LANG']['MOD'][$strModule][0],
'description' => $GLOBALS['TL_LANG']['MOD'][$strModule][1],
'icon' => $arrModules[$strModule]['icon']
); } } } $objTemplate->arrGroups = $arrGroups; $objTemplate->tasks = $GLOBALS['TL_LANG']['MOD']['tasks'][0]; $objTemplate->script = $this->Environment->script; $this->Template->main .= $objTemplate->parse(
); } /** * Output the template file */ protected function output(
) { IF (
!strlen(
$this->Template->headline
)
) { $this->Template->headline = $GLOBALS['TL_CONFIG']['websiteTitle']; } $this->Template->theme = $this->getTheme(
); $this->Template->base = $this->Environment->base; $this->Template->language = $GLOBALS['TL_LANGUAGE']; $this->Template->title = $GLOBALS['TL_CONFIG']['websiteTitle']; $this->Template->charset = $GLOBALS['TL_CONFIG']['characterSet']; $this->Template->account = $GLOBALS['TL_LANG']['MOD']['login'][0]; $this->Template->preview = $GLOBALS['TL_LANG']['MSC']['fePreview']; $this->Template->pageOffset = $this->Input->cookie(
'BE_PAGE_OFFSET'
); $this->Template->logout = specialchars(
$GLOBALS['TL_LANG']['MSC']['logoutBT']
); $this->Template->backendModules = $GLOBALS['TL_LANG']['MSC']['backendModules']; $this->Template->username = $GLOBALS['TL_LANG']['MSC']['user'] . ' ' . $GLOBALS['TL_USERNAME']; $this->Template->error = (
$this->Input->get(
'act'
) == 'error'
) ? $GLOBALS['TL_LANG']['ERR']['general'] : ''; $this->Template->isMac = preg_match(
'/mac/i',
$this->Environment->httpUserAgent
); $this->Template->skipNavigation = $GLOBALS['TL_LANG']['MSC']['skipNavigation']; $this->Template->request = ampersand(
$this->Environment->request
); $this->Template->top = $GLOBALS['TL_LANG']['MSC']['backToTop']; $this->Template->modules = $this->User->navigation(
); $this->Template->be27 = !$GLOBALS['TL_CONFIG']['oldBeTheme']; $this->Template->home = $GLOBALS['TL_LANG']['MSC']['home']; $this->Template->frontendFile = 'INDEX.php'; // Preview pages IF (
$this->Input->get(
'do'
) == 'page' && strlen(
CURRENT_ID
)
) { $objPreview = $this->DATABASE->prepare(
"
SELECT
id,
alias
FROM
tl_page
WHERE
id=?"
) ->
LIMIT
(
1
) ->execute(
CURRENT_ID
); IF (
$objPreview->numRows
) { IF (
$GLOBALS['TL_CONFIG']['disableAlias']
) { $this->Template->frontendFile = 'INDEX.php?id=' . $objPreview->id; }
ELSE
{ $this->Template->frontendFile = 'INDEX.php/' . (
strlen(
$objPreview->alias
) ? $objPreview->alias : $objPreview->id
) . $GLOBALS['TL_CONFIG']['urlSuffix']; } } } // Preview article IF (
$this->Input->get(
'do'
) == 'article' && strlen(
CURRENT_ID
)
) { $objPreview = $this->DATABASE->prepare(
"
SELECT
p.id AS pid,
p.alias AS palias,
a.id AS aid,
a.alias AS aalias,
a.inColumn AS acolumn
FROM
tl_article a,
tl_page p
WHERE
a.id=?
AND
a.pid=p.id"
) ->
LIMIT
(
1
) ->execute(
CURRENT_ID
); IF (
$objPreview->numRows
) { $strColumn = ''; IF (
$objPreview->acolumn != 'main'
) { $strColumn = $objPreview->acolumn . ':'; } IF (
$GLOBALS['TL_CONFIG']['disableAlias']
) { $this->Template->frontendFile = 'INDEX.php?id=' . $objPreview->pid . '&articles=' . $strColumn . $objPreview->aid; }
ELSE
{ $this->Template->frontendFile = 'INDEX.php/' . (
strlen(
$objPreview->palias
) ? $objPreview->palias : $objPreview->pid
) . '/articles/' . $strColumn . (
strlen(
$objPreview->aalias
) ? $objPreview->aalias : $objPreview->aid
) . $GLOBALS['TL_CONFIG']['urlSuffix']; } } } $this->Template->output(
); } } /** * Instantiate controller */ $objMain = new Main(
); $objMain->run(
); ?>
Ich verfahre normal immer nach diesem Prinzip und hatte noch keine Probleme. Auch auf dem gleichen Server hat dieser Weg so schon ohne Probleme funktioniert.
Ich hoffe, es kann mir jemand helfen.