Page 1 of 1

Bug in Admin CP

Posted: Fri Nov 11, 2005 7:51 am
by redlabour
After installing and choosing German Language the Language at AdminCP is still at "English" so i changed it again and saved.

Now i have only :

Startseite (Homepage)

Zurück zum Blog (Back to Blog)

and

Abmelden (Logout)

in the AdminCP - all other Points are missing in IE and FF.

Deleting Cookies and clearing Cache brings no Effects.

How can i fix this ?? :shock:

This is the generated Sourcecode :

<html>
<head>
<title>Serendipity Verwaltungsoberfläche</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="http://www.politikstube.de/blog/index.p ... _admin.css" />
<script type="text/javascript">
function spawn() {
if (self.Spawnextended) {
Spawnextended();
}

if (self.Spawnbody) {
Spawnbody();
}

if (self.Spawnnugget) {
Spawnnugget();
}
}

function SetCookie(name, value) {
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + (60*60*24*30));
document.cookie = 'serendipity[' + name + ']='+escape(value) + ';expires=' + expire.toGMTString();
}

function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}

</script>
</head>
<body id="serendipity_admin_page" onload="spawn()">

<table cellspacing="0" cellpadding="0" border="0" id="serendipityAdminFrame">
<tr>
<td colspan="2" id="serendipityAdminBanner">
<h1>Serendipity Verwaltungsoberfläche</h1>
<h2>redlabour�s Blog</h2>
</td>
</tr>
<tr>

<td colspan="2" id="serendipityAdminInfopane">
Angemeldet als redlabour (Administrator) </td>
</tr>
<tr valign="top">
<td id="serendipitySideBar">
<ul class="serendipitySideBarMenu">
<li><a href="serendipity_admin.php">Startseite</a></li>
</ul>

<br />
<br />
<ul class="serendipitySideBarMenu">
<li><a href="http://www.politikstube.de/blog/">Zurück zum Blog</a></li>
<li><a href="serendipity_admin.php?serendipity[adminModule]=logout">Abmelden</a></li>
</ul>

</td>

<td class="serendipityAdminContent">

Willkommen zurück, redlabour.


</td>
</tr>
</table>
<br />
<div id="serendipityAdminFooter">Betrieben mit Serendipity 0.9 und PHP 4.3.10</div>
</body>
</html>
A little bit small. ;)

Re: Bug in Admin CP

Posted: Fri Nov 11, 2005 1:23 pm
by garvinhicking
This can happen, if you cut yourself off from usergroups, since now your user has no privileges to do anything.

It seems as if in personal configuration you deselected the group you were/are a member off!

Now you need to use phpMyAdmin or sth. similar to put your userid into the serendipity_authorgroups table again for all group ids (1, 2, 3).

Best regards,
Garvin

Posted: Fri Nov 11, 2005 1:52 pm
by redlabour
That´s wrong - again :

1. First Login.

2. Choosen "german" by Pulldown Menu.

3. Save

4. Effect !!

New Installation = same effect !

If you say there is a possibility to lock the Admin off his Adminrights then this is a bug by itself and a Securityrisk.

Posted: Fri Nov 11, 2005 2:02 pm
by garvinhicking
We'll continune this thread here http://www.s9y.org/forums/viewtopic.php?p=17329#17329 in german.

If we find a solution/cause for this, I'll post it here.

BTW, of course you can lock yourself out as an admin. There is always the need/possibility to put users outside of a group, and we allow that of course so that users can assign privileges as they indend. We could add a check though that alerts the user if no usergroups are selected, so that they need to confirm it.

Regards,
Garvin

Posted: Fri Nov 11, 2005 3:34 pm
by redlabour
Maybe you make it like vBulletin where one UserID is set manually in config.php which is not able to be edited without changing the config.php.