AAHHH y modificar no tira bien
muestra:
Nickname $chng_aid = $row['aid'];
[B]nombre [/B $chng_name = $row['name'];
Código PHP:
function modifyadmin($chng_aid) {
global $prefix, $db, $multilingual;
include("header.php");
GraphicAdmin();
OpenTable();
echo "<center><font class=\"title\"><b>" . _AUTHORSADMIN . "</b></font></center>";
CloseTable();
echo "<br>";
OpenTable();
echo "<center><font class=\"option\"><b>" . _MODIFYINFO . "</b></font></center><br><br>";
$adm_aid = $chng_aid;
$adm_aid = trim($adm_aid);
$row = $db->sql_fetchrow($db->sql_query("SELECT aid, name, url, email, pwd, radminsuper, admlanguage from " . $prefix . "_authors where aid='$chng_aid'"));
$chng_aid = $row['aid'];
$chng_name = $row['name'];
$chng_url = stripslashes($row['url']);
$chng_email = stripslashes($row['email']);
$chng_pwd = $row['pwd'];
$chng_radminsuper = intval($row['radminsuper']);
$chng_admlanguage = $row['admlanguage'];
$chng_aid = substr("$chng_aid", 0,25);
$aid = $chng_aid;
echo "<form action=\"admin.php\" method=\"post\">"
."<table border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\">"
."<tr><td>" . _NAME . ":</td>"
."<td colspan=\"3\"><b>55 $chng_name</b> <input type=\"hidden\" name=\"chng_name\" value=\"$chng_name\"></td></tr>"
."<tr><td>" . _NICKNAME . ":</td>"
."<td colspan=\"3\"><input type=\"text\" name=\"chng_aid\" value=\"$chng_aid\"> <font class=\"tiny\">" . _REQUIRED . "</font></td></tr>"
."<tr><td>" . _EMAIL . ":</td>"
."<td colspan=\"3\"><input type=\"text\" name=\"chng_email\" value=\"$chng_email\" size=\"30\" maxlength=\"60\"> <font class=\"tiny\">" . _REQUIRED . "</font></td></tr>"
."<tr><td>" . _URL . ":</td>"
."<td colspan=\"3\"><input type=\"text\" name=\"chng_url\" value=\"$chng_url\" size=\"30\" maxlength=\"60\"></td></tr>";
if ($multilingual == 1) {
echo "<tr><td>" . _LANGUAGE . ":</td><td colspan=\"3\">"
."<select name=\"chng_admlanguage\">";
$handle=opendir('language');
while ($file = readdir($handle)) {
if (preg_match("/^lang\-(.+)\.php/", $file, $matches)) {
$langFound = $matches[1];
$languageslist .= "$langFound ";
}
}
closedir($handle);
$languageslist = explode(" ", $languageslist);
sort($languageslist);
for ($i=0; $i < sizeof($languageslist); $i++) {
if($languageslist[$i]!="") {
echo "<option value=\"$languageslist[$i]\" ";
if($languageslist[$i]==$chng_admlanguage) echo "selected";
echo ">".ucfirst($languageslist[$i])."</option>\n";
}
}
if ($chng_admlanguage == "") {
$allsel = "selected";
} else {
$allsel = "";
}
echo "<option value=\"\" $allsel>" . _ALL . "</option></select></td></tr>";
} else {
echo "<input type=\"hidden\" name=\"chng_admlanguage\" value=\"\">";
}
echo "<tr><td>" . _PERMISSIONS . ":</td>";
if ($row[name] != God) {
$result = $db->sql_query("SELECT mid, title, admins FROM ".$prefix."_modules ORDER BY title ASC");
while ($row = $db->sql_fetchrow($result)) {
$title = ereg_replace("_", " ", $row[title]);
if (file_exists("modules/$row[title]/admin/index.php") AND file_exists("modules/$row[title]/admin/links.php") AND file_exists("modules/$row[title]/admin/case.php")) {
$admins = explode(",", $row[admins]);
$sel = "";
for ($i=0; $i < sizeof($admins); $i++) {
if ($chng_aid == "$admins[$i]") {
$sel = "checked";
}
}
echo "<td><input class=\"boxx\" type=\"checkbox\" name=\"auth_modules[]\" value=\"$row[mid]\" $sel><span class=\"$sel\">$title</span></td>";
$sel = "";
if ($a == 2) {
echo "</tr><tr><td> </td>";
$a = 0;
} else {
$a++;
}
}
}
Si alguno coneze cono soluciones este error para poder poner nombre y Nickname distintos