Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: C_P tvarkymas/redagavimas.

Parašė bad_user· 2009 Sau. 20 22:01:47
#8

if (isset($page_id) && !isNum($page_id)) fallback("index.php"); čia viena eilute

čia kita:

if (isset($status)) {
if ($status == "su") {
$title = $locale['400'];
$message = "<b>".$locale['401']."</b><br>\n".$locale['402']."\n<a href='".BASEDIR."viewpage.php?page_id=$pid'>viewpage.php?page_id=$pid</a>\n";
} elseif ($status == "sn") {
$title = $locale['405'];
$message = "<b>".$locale['406']."</b><br>\n".$locale['402']."\n<a href='".BASEDIR."viewpage.php?page_id=$pid'>viewpage.php?page_id=$pid</a>\n";
} elseif ($status == "del") {
$title = $locale['407'];
$message = "<b>".$locale['408']."</b>";
}
opentable($title);
echo "<div align='center'>".$message."</div>\n";
closetable();
tablebreak();
}


dar čia

$result = dbquery("UPDATE ".$db_prefix."custom_pages SET page_title='$page_title', page_access='$page_access', page_content='$page_content', page_allow_comments='$comments', page_allow_ratings='$ratings' WHERE page_id='$page_id'");

Krč ctrl + f yra toks :)

Redagavo bad_user· 2009 Sau. 20 22:01:46