$foutput .= "\$GLOBALS['block_newslimit'] = '" . $_POST["newslimit"] . "';\n"; $foutput .= "\$GLOBALS['block_forumlimit'] = '" . $_POST["forumlimit"] . "';\n"; $foutput .= "\$GLOBALS['block_last10limit'] = '" . $_POST["last10limit"] . "';\n"; $foutput .= "\$GLOBALS['block_mostpoplimit'] = '" . $_POST["mostpoplimit"] . "';\n"; $foutput .= "\$GLOBALS['clocktype'] = " . $_POST["clocktype"] . ";\n"; $foutput .= "\n?>"; fwrite($fd, $foutput) or die(CANT_SAVE_CONFIG); fclose($fd); @chmod("include/config.php", 0744); $db->query("UPDATE users SET language = " . $db->real_escape_string($_POST['default_langue']) . ", style = " . $db->real_escape_string($_POST['default_style']) . " WHERE id_level = 1"); print CONFIG_SAVED; redirect("admincp.php?user="******"uid"] . "&code=" . user::$current["random"]); exit; } } elseif ($do == "category" && $action == "read") { $cat = Cached::genrelist(); block_begin(CAT_SETTINGS); print " <a href='admincp.php?user="******"uid"] . "&code=" . user::$current["random"] . "&do=category&action=add'><img alt='" . CAT_INSERT_NEW . "' border='0' src='images/new.gif'></a>\n"; print "<br /><br />\n<table class='lista' width='100%' align='center'>\n"; print "<tr>\n"; print "<td class='header' align='center'>" . CAT_SORT_INDEX . "</td>\n"; print "<td class='header' align='center'>" . NAME . "</td>\n"; print "<td class='header' align='center'>" . PICTURE . "</td>\n"; print "<td class='header' align='center'>" . EDIT . "</td>\n"; print "<td class='header' align='center'>" . DELETE . "</td>\n"; print "</tr>\n"; foreach ($cat as $category) { if ($category["sub"] != 0) { $cate = Cached::sub_cat($category["sub"]) . " » " . security::html_safe($category["name"]); } else { $cate = security::html_safe($category["name"]);