ich hab mir bei der Version 1.3 ein "Login-Tool" auf meine Startseite gelegt.
Code: Alles auswählen
<?php
require("community/adm_program/system/common.php");
//prüfen ob eingeloggt
if($g_session_valid == 1)
{
echo "Hallo, $g_current_user->login_name. Du bist eingeloggt. ";
echo " - ";
echo "<span class=\"iconLink\">
<a class=\"iconLink\" href=\"$g_root_path/adm_program/modules/profile/profile.php\"><img
src=\"$g_root_path/adm_program/images/user.png\" style=\"vertical-align: middle;\" border=\"0\" alt=\"Profil\"></a>
<a class=\"iconLink\" href=\"$g_root_path/adm_program/modules/profile/profile.php\">Profil bearbeiten</a>
</span>";
echo " - ";
echo "<span class=\"iconLink\">
<a class=\"iconLink\" href=\"$g_root_path/adm_program/system/logout.php\"><img
src=\"$g_root_path/adm_program/images/door_in.png\" style=\"vertical-align: middle;\" border=\"0\" alt=\"Logout\"></a>
<a class=\"iconLink\" href=\"$g_root_path/adm_program/system/logout.php\">Logout</a>
</span>";
echo"<br>";
// Neue Ankuendigung
if(editAnnouncements())
{
echo "
<span class=\"iconLink\">
<a class=\"iconLink\" href=\"$g_root_path/adm_program/modules/announcements/announcements_new.php?headline=News\"><img
class=\"iconLink\" src=\"$g_root_path/adm_program/images/add.png\" style=\"vertical-align: middle;\" border=\"0\" alt=\"Neue Ankündigung anlegen\"></a>
<a class=\"iconLink\" href=\"$g_root_path/adm_program/modules/announcements/announcements_new.php?headline=News\">Neue Ankündigung</a>
</span>
";
echo" - ";
}
// Neue Termine anlegen
if(editDate())
{
echo "
<span class=\"iconLink\">
<a class=\"iconLink\" href=\"$g_root_path/adm_program/modules/dates/dates_new.php\"><img
class=\"iconLink\" src=\"$g_root_path/adm_program/images/add.png\" style=\"vertical-align: middle;\" border=\"0\" alt=\"Neuen Termin anlegen\"></a>
<a class=\"iconLink\" href=\"$g_root_path/adm_program/modules/dates/dates_new.php\">Neuer Termin</a>
</span>
";
}
}
//wenn nicht eingeloggt
else
{
?><form action="http://www.tsv1871-augsburg.de/community/adm_program/system/login_check.php?url=http://www.tsv1871-augsburg.de/home.php" method="post" name="login" target="Hauptfenster">
<table border="0" cellspacing="3" cellpadding="0">
<tr align="center" valign="middle">
<td><font size="3" color="#696969">Benutzer: <input type="text" name="loginname" size="15" tabindex="1" border="0"></font></td>
<td><font size="3" color="#696969">Passwort: <input type="password" name="passwort" size="15" tabindex="2" border="0"></font></td>
<td><button name="login" value="" type="submit" tabindex="3"><img src="Buttons/key.png" alt="" align="absmiddle" border="0" height="16" width="16"> <font size="2">Login</font></button></td>
<td></td>
</tr>
</form>
</table>
<?php
}
?>
Es kommt:
Was kann ich dagegen tun?Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /mnt/ja1/02/535/00000000/htdocs/home.php:12) in /mnt/ja1/02/535/00000000/htdocs/community/adm_program/system/common.php on line 79