Meine Frage ist folgende:
Habe da Login-Modul eingebunden wenn ich jetzt auf Content-> Artikel
-> Startseite -> Konfiguration gehe sehe ich folgende Eingabemaske


Der Code für den Input/Output sieht folgendermaßen aus:
Code: Alles auswählen
$ColorMouseOver = "#7E89AC";
$ColorMouseOut = "#626C8E";
if ("CMS_VALUE[3]" == "") {$VALUE[3] = $modLogin["error"];}
echo "<table align=\"left\" cellpadding=\"0\" cellspacing=\"0\">
<tr valign=\"top\">
<td width=\"202\">".$mod["font"].":</td>
<td><select name=\"CMS_VAR[0]\" size=\"1\">";
if ("CMS_VALUE[0]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
for ($i=1; $i<=50; $i++) {
if ($i != "CMS_VALUE[0]") {
echo "<option value=\"$i\">Font $i</option>";
} else {
echo "<option value=\"$i\" selected>Font $i</option>";
}
}
echo "</SELECT></td>
</tr>
<tr valign=\"top\">
<td width=\"190\">".$mod["errorfont"].":</td>
<td><select name=\"CMS_VAR[1]\" size=\"1\">";
if ("CMS_VALUE[1]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
for ($i=1; $i<=50; $i++) {
if ($i != "CMS_VALUE[1]") {
echo "<option value=\"$i\">Font $i</option>";
} else {
echo "<option value=\"$i\" selected>Font $i</option>";
}
}
echo "</SELECT></td>
</tr>
<tr valign=\"top\">
<td width=\"190\">".$mod["inputformfont"].":</td>
<td><select name=\"CMS_VAR[2]\" size=\"1\">";
if ("CMS_VALUE[2]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
for ($i=1; $i<=50; $i++) {
if ($i != "CMS_VALUE[2]") {
echo "<option value=\"$i\">Font $i</option>";
} else {
echo "<option value=\"$i\" selected>Font $i</option>";
}
}
echo "</SELECT></td>
</tr>
<tr>
<td colspan=\"2\"><input type=\"text\" size=\"37\" style=\"width:300px;\" name=\"CMS_VAR[3]\" value=\"$VALUE[3]CMS_VALUE[3]\"></td>
</tr>
<tr>
<td valign=\"top\">".$mod["picforsend"].":</td>
<td><select name=\"CMS_VAR[4]\" size=\"1\">";
if ("CMS_VALUE[4]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
$sql = "SELECT * FROM $cfgTab_upl WHERE idclient='$client' AND filetype='img' ORDER BY filename";
$db->query($sql);
while ($db->next_record()) {
if ($db->f("idupl") != "CMS_VALUE[4]") {
echo "<option value=\"".$db->f("idupl")."\">".$db->f("description")."</option>";
} else {
echo "<option value=\"".$db->f("idupl")."\" selected>".$db->f("filename")."</option>";
}
}
echo "</SELECT></td></tr>
<tr>
<td valign=\"top\">".$modLogin["picforlogout"].":</td>
<td><select name=\"CMS_VAR[5]\" size=\"1\">";
if ("CMS_VALUE[5]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
$sql = "SELECT * FROM $cfgTab_upl WHERE idclient='$client' AND filetype='img' ORDER BY filename";
$db->query($sql);
while ($db->next_record()) {
if ($db->f("idupl") != "CMS_VALUE[5]") {
echo "<option value=\"".$db->f("idupl")."\">".$db->f("description")."</option>";
} else {
echo "<option value=\"".$db->f("idupl")."\" selected>".$db->f("filename")."</option>";
}
}
echo "</SELECT></td>
</tr>
</table>";
echo "<input type=\"hidden\" name=\"CMS_VAR[6]\" value=\"$ColorMouseOver\">";
echo "<input type=\"hidden\" name=\"CMS_VAR[7]\" value=\"$ColorMouseOut\">";
Ausgabe:
<?php
if ($action == "login")
{if ( $uid = $auth->auth_validatelogin() )
{$auth->auth["uid"] = $uid;
$auth->auth["exp"] = time() + (60 * $auth->lifetime);
$auth->auth["refresh"] = time() + (60 * $auth->refresh);
echo "<script language=\"JavaScript\">";
echo "location.href=\"".$auth->url()."\";";
echo "</script>";}
else {if ("CMS_VALUE[1]" != "1") {echo "<span id=\"fontCMS_VALUE[1]\">CMS_VALUE[3]</span><br>";} else {echo "CMS_VALUE[3]<br>";}}}
if ($action == "logout")
{$auth->logout();
echo "<script language=\"JavaScript\">";
echo "location.href=\"front_content.php?client=$client&lang=$lang\";";
echo "</script>";}
if ($uid != "nobody")
{$auth->auth["exp"] = time() + (60 * $auth->lifetime);}
if ($auth->auth["uid"] == "nobody")
{
?>
<script language="javascript" src="./js/md5.js"></script>
<script language="javascript">
<!--
function doChallengeResponse() {
str = document.login.username.value + ":" +
MD5(document.login.password.value) + ":" +
document.login.challenge.value;
document.login.response.value = MD5(str);
document.login.password.value = "";
document.login.submit();
}
// -->
</script>
<?
echo "<form action=\"".$auth->url()."\" method=\"post\" name=\"login\">";
echo "<center><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
echo "<tr><td width=\"100\">";
if ("CMS_VALUE[0]" != "0") {echo "<span id=\"fontCMS_VALUE[0]\">Username:</span><br>";} else {echo "Username:<br>";}
echo "<input type=\"text\" title=\"".$modLogin["name"]."\" name=\"username\" value=\"$username\" size=10 maxlength=32 onFocus=\"this.style.backgroundColor='CMS_VALUE[6]'\" onBlur=\"this.style.backgroundColor='CMS_VALUE[7]'\"";
if ("CMS_VALUE[2]" != "0") {echo " id=\"fontCMS_VALUE[2]\">";} else {echo ">";}
echo "</td></tr>";
echo "<tr><td width=\"100\">";
if ("CMS_VALUE[0]" != "0") {echo "<span id=\"fontCMS_VALUE[0]\">Passwort:</span><br>";} else {echo "Passwort:<br>";}
echo "<input type=\"password\" title=\"".$modLogin["password"]."\" name=\"password\" size=10 maxlength=32 onFocus=\"this.style.backgroundColor='CMS_VALUE[6]'\" onBlur=\"this.style.backgroundColor='CMS_VALUE[7]'\"";
if ("CMS_VALUE[2]" != "0") {echo " id=\"fontCMS_VALUE[2]\">";} else {echo ">";}
echo "</td></tr>";
echo "<tr><td width=\"120\">";
if ("CMS_VALUE[4]" != "0") {
$sql = "SELECT * FROM $cfgTab_upl WHERE idupl='CMS_VALUE[4]'";
$db->query($sql);
while ($db->next_record()) {
echo "<input type=\"image\" src=\"".$db->f("dirname")."/".$db->f("filename")."\" alt=\"".$modLogin["login"]."\"><br>";
}
} else {
echo "<input type=\"submit\" title=\"".$modLogin["login"]."\" name=\"submitbtn\" value=\"".$modLogin["send"]."\" onClick=\"doChallengeResponse(); return false;\"";
if ("CMS_VALUE[2]" != "0") {echo " id=\"fontCMS_VALUE[2]\">";} else {echo ">";}
}
echo "</td></tr>";
echo "</table></center>";
echo "<input type=\"hidden\" name=\"challenge\" value=\"$challenge\">";
echo "<input type=\"hidden\" name=\"response\" value=\"\">";
echo "<input type=\"hidden\" name=\"action\" value=\"login\">";
echo "</form>";}
else {
echo "<form action=\"".$auth->url()."\" method=\"post\" name=\"login\">";
if ("CMS_VALUE[5]" != "0") {
$sql = "SELECT * FROM $cfgTab_upl WHERE idupl='CMS_VALUE[5]'";
$db->query($sql);
while ($db->next_record()) {
echo "<input type=\"image\" src=\"".$db->f("dirname")."/".$db->f("filename")."\" alt=\"".$modLogin["logout"]."\"><br>";
}
} else {
echo "<input type=\"submit\" title=\"".$modLogin["logout"]."\" name=\"submitbtn\" value=\"".$modLogin["sendout"]."\"";
if ("CMS_VALUE[2]" != "0") {echo " id=\"fontCMS_VALUE[2]\">";} else {echo ">";}
}
echo "<input type=\"hidden\" name=\"action\" value=\"logout\">";
echo "</form>";}
?>
Kann mir jemand sagen wofür die einzelnen Felder sind.
Bin für jede Hilfe dankbar !