Hmmmmmm - I've removed that part of code but the problem's still there :surprised:
------member.php--------
PHP Code:
// ############################### start modify custompage by Velocd ###############################
if ($action=="custompage") {
$templatesused = 'error_nopermission_custompage,error_nopermission_customposts,usercpnav,modifycustompage_bit,modifycustompage';
include("./global.php");
// do modify profile form
/* ODKOMENTOWAC JESLI STRONU PRYWATNE MAJA BYC TYLKO WIDOCZNE DLA ZAREJESTROWANYCH
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
*/
if ($bbuserinfo[posts]<1) {
eval("standarderror(\"".gettemplate("error_nopermission_customposts")."\");");
}
if ($bbuserinfo[enablecustompage] == 0) {
eval("standarderror(\"".gettemplate("error_nopermission_custompage")."\");");
}
// draw cp nav bar
$cpnav[1]="{secondaltcolor}";
$cpnav[2]="{secondaltcolor}";
$cpnav[3]="{secondaltcolor}";
$cpnav[4]="{secondaltcolor}";
$cpnav[5]="{secondaltcolor}";
$cpnav[6]="{secondaltcolor}";
$cpnav[7]="{secondaltcolor}";
$cpnav[8]="{firstaltcolor}";
$cpmenu[8]="class=\"fjsel\" selected";
eval("\$cpnav = \"".gettemplate("usercpnav")."\";");
eval("\$custompagebit = \"".gettemplate("modifycustompage_bit")."\";");
$custompage=htmlspecialchars($bbuserinfo[custompage]);
eval("dooutput(\"".gettemplate("modifycustompage")."\");");
}
// ############################### start update custompage by Velocd ###############################
if ($HTTP_POST_VARS['action']=="updatecustom") {
$templatesused = 'redirect_updatethanks';
include("./global.php");
/* ODKOMENTOWAC JESLI STRONU PRYWATNE MAJA BYC TYLKO WIDOCZNE DLA ZAREJESTROWANYCH
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
*/
$custompage = censortext($custompage);
$custompagename = censortext($custompagename);
$DB_site->query("UPDATE user SET custompage='".addslashes($custompage)."', custompagename='".addslashes($custompagename)."' WHERE userid='$bbuserinfo[userid]'");
eval("standardredirect(\"".gettemplate("redirect_updatethanks")."\",\"usercp.php?s=$session[sessionhash]\");");
}
------------------------------