$pathiconlarge = $_POST['iconpathlarge']; $pathiconsmall = $_POST['iconpathsmall']; $uploaded = file_upload($pathiconlarge); $icon = ""; if ($uploaded) { $icon = $uploaded[0]['name']; require_once e_HANDLER . "resize_handler.php"; resize_image($pathiconlarge . $icon, $pathiconlarge . $icon, '48', "nocopy"); resize_image($pathiconlarge . $icon, $pathiconsmall . $icon, '16', "copy"); rename($pathiconsmall . "thumb_" . $icon, $pathiconsmall . $icon); } $message = $icon ? CONTENT_ADMIN_CAT_LAN_58 : CONTENT_ADMIN_CAT_LAN_59; } if (isset($_POST['create_category'])) { if ($_POST['cat_heading'] && $_POST['parent1'] != "none") { $adb->dbCategory("create"); } else { $message = CONTENT_ADMIN_ITEM_LAN_0; } } if (isset($_POST['update_category'])) { if ($_POST['cat_heading'] && $_POST['parent1'] != "none") { $adb->dbCategory("update"); } else { $message = CONTENT_ADMIN_ITEM_LAN_0; } } if (isset($_POST['create_content'])) { if ($_POST['content_text'] && $_POST['content_heading'] && $_POST['content_author_name'] && $_POST['parent1'] != "none") { //$adb -> dbContentCreate("admin"); $adb->dbContent("create", "");