Morgen,
ich bekomme es einfach nicht hin aus dem "editor::editor" das richtige Objekt zu finden. Das Problem tritt erst seit dem Umstieg auf Php5 auf vielleicht sieht ja jemand sofort das Problem... Danke!
Solte wahrscheinlich irgendwie so ausschauen:
Aber kapieren tue ich es irgendwie nicht...
ich bekomme es einfach nicht hin aus dem "editor::editor" das richtige Objekt zu finden. Das Problem tritt erst seit dem Umstieg auf Php5 auf vielleicht sieht ja jemand sofort das Problem... Danke!
Code:
<?php
# Include Path
ini_set ('include_path', '.' . PATH_SEPARATOR . 'includes');
# Prüfen ob das Script ordnungsgemäß installiert ist
if (!file_exists ('./includes/DBSettings.php'))
header ('Location: ./install/install.php');
# Error Stack
$sgError = array();
# Includes
REQUIRE ('StdInc.php');
# Objekte erstellen
# ~~~~~~~~~~~~~~~~~
$ssn = new Session('bp');
$db = new DB_Sql();
$res = $db->connect ();
if ($res == 'connect' || $res == 'select') die (smDBError ($res));
$sets = new Settings ($db);
if (isset ($_POST['login_submit'])){
if (Editor::Editor($_POST['editor_field'], $_POST['password_field'])){
header("Location: " . $ssn->Url ("http://".$_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF'])
. "/index.php"));
exit;
}
else{
$style = 'style="border: solid 2px #BB0000"';
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="style/main.css" type="text/css" rel="stylesheet">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<div align="center">
<br>
<br>
<br>
<table width="685" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1"><img src="http://www.tutorials.de/forum/images/2pointwhite.jpg"></td>
<td width="352"><img src="http://www.tutorials.de/forum/images/name.gif" height="66" width="352"></td>
<td width="323"><img src="http://www.tutorials.de/forum/images/housetop.jpg" height="66" width="323"></td>
<td width="10"> </td>
</tr>
<tr>
<td height="31" background="http://www.tutorials.de/forum/images/poitntgreen.gif"><img src="http://www.tutorials.de/forum/images/poitntgreen.gif"></td>
<td background="http://www.tutorials.de/forum/images/poitntgreen.gif">
<div align="center">
<span class="textwhite">Administrator Login</span></div>
</td>
<td><img src="http://www.tutorials.de/forum/images/housebottom.jpg" height="31" width="323"></td>
<td valign="top"><img src="http://www.tutorials.de/forum/images/afterhouse.jpg" height="31" width="9"></td>
</tr>
<tr>
<td background="http://www.tutorials.de/forum/images/poitntgreen.gif"><img src="http://www.tutorials.de/forum/images/poitntgreen.gif"></td>
<td colspan="2" valign="top" background="http://www.tutorials.de/forum/images/poitntgreen.gif">
<div align="center">
<table border=0 cellPadding=2 cellSpacing=2 align="center" width="99%" bgcolor="white">
<form name="loginform" action="<?=$ssn->Url($_SERVER['PHP_SELF'])?>" method="POST" target="_top">
<tr>
<td colspan="2" align="right"><img src="http://www.tutorials.de/forum/images/spacer.gif" alt="" height="50" width="1" border="0"></td>
</tr>
<tr>
<td width="230" align="right"><span class="text">Login</span>:</td>
<td><input <?=$style?> type="text" name="editor_field" style="width: 50%" value="<?=$_POST['editor_field']?>" size="46"></td>
</tr>
<tr>
<td width="230" align="right"><span class="text">Passwort</span>:</td>
<td><input <?=$style?> type="password" name="password_field" style="width: 50%" value="<?=$_POST['password_field']?>" size="46" maxlength="12"></td>
</tr>
<tr>
<td width="230" align="right"></td>
<td><span class="formSubText">Sollten Sie die Daten vergessen haben, können Sie in der Datei DBSettings.php in dem Verzeichnis includes nachschlagen.</span></td>
</tr>
<tr>
<td width="230" align="right"></td>
<td><input class="formSubmit" type="submit" name="login_submit" value="Einloggen" border="0"></td>
</tr>
<tr>
<td colspan="2" align="right"><img src="http://www.tutorials.de/forum/images/spacer.gif" alt="" height="50" width="1" border="0"></td>
</tr>
</form>
</table>
</div>
</td>
<td valign="top" background="http://www.tutorials.de/forum/images/strigfon.jpg"><img src="http://www.tutorials.de/forum/images/stolbright.jpg" height="7" width="9"></td>
</tr>
</table>
<table width="685" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="15%" height="11" background="http://www.tutorials.de/forum/images/bottom2.jpg"><img src="http://www.tutorials.de/forum/images/bottom1.jpg" height="11" width="9"></td>
<td valign="top" background="http://www.tutorials.de/forum/images/bottom2.jpg">
<div align="right">
<img src="http://www.tutorials.de/forum/images/bottom3.jpg" height="11" width="16"></div>
</td>
</tr>
</table>
</div>
</body>
</html>
Solte wahrscheinlich irgendwie so ausschauen:
Code:
if ($Editor->Editor($_POST['editor_field'], $_POST['password_field']))
Aber kapieren tue ich es irgendwie nicht...
Zuletzt bearbeitet: