Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Cant log into my CMS Admin area... why?

DanielowskiDanielowski Posts: 4Member
Hey Guys,

I was trying to code a Content Management System, but I can't log into the Administration Area. The rest of the Website work very well. I can't figure out why I can't log into the Admin Area. Here is the Code of some files.

This is the index.php.

[code]<?php

/* load konfuration files */
include('../inc/base.inc.php');
include('../inc/adminfunctions.inc.php');
include('../inc/login.inc.php');

/* Check if logged in, else login -> login.inc.php */
if(is_logged_in())
{
/* read given variables */
$cmd = $_GET['cmd'];
$id = $_GET['id'];

/* read template */
$template = get_file_as_string($base['adm_template']);

/* load content */
switch(strtolower($cmd))
{
default:
case 'news':
$base['adm_content'] = '

'.$base['adm_actual'].'News

';
$base['adm_content'] .= load_admin_news();
break;
case 'newsedit':
$base['adm_content'] = '

'.$base['adm_actual'].'News bearbeiten

';
$base['adm_content'] .= load_admin_newsedit($id);
break;
case 'newsadd':
$base['adm_content'] = '

'.$base['adm_actual'].'News erstellen

';
$base['adm_content'] .= load_admin_newsadd($id);
break;
case 'newsdel':
$base['adm_content'] = '

'.$base['adm_actual'].'News l

Sign In or Register to comment.