query_num_rowsDB(" SELECT id FROM ot_posts WHERE post_url = '" . addslashes($_POST['post_url']) . "' "); // Check in DB if($Double > 0) // Double? { $_POST['post_url'] = $_POST['post_url'] . "-" . ($Double + 1); // Add number at the end } // Check if user is allow to publish if( ! (defined("USER_LEVEL_ADMINISTRATOR") OR defined("USER_LEVEL_EDITOR")) && ($_POST['post_status'] == "gepubliceerd")) { $_POST['post_status'] = "klad"; } // We'll create the post in DB $DB->query_execDB(" INSERT INTO ot_posts SET id = 'NULL', post_title = '" . addslashes($_POST['post_title']) . "', post_content = '" . addslashes($_POST['post_content']) . "', post_author = '" . USER_ID . "', post_date = NOW(), post_modified = 'NULL', post_url = '" . $_POST['post_url'] . "', post_type = 'page', post_parent = '" . addslashes($_POST['post_parent']) . "', post_status = '" . addslashes($_POST['post_status']) . "', post_comment_status = '" . addslashes($_POST['post_comment_status']) . "', post_comments = 0, post_views = 0 "); // We want to know which ID the post got $_POST['post_id'] = mysql_insert_id(); // Everything inserted, let's edit ! header("Location: page-edit.php?page=" . $_POST['post_id']); } else { header("Location: err-403.php"); // Error } } $PageTitle = " » Schrijven » Nieuwe pagina"; // Set page title include("admin-header.php"); // Load header ?>
Nieuw berichtNieuw bericht Nieuwe paginaNieuwe pagina ArchiefArchief CategorieënCategorieën'; } ?>

Nieuwe pagina

Hoofdpagina:

  • Geen hoofdpagina
  • query_fetchDB(" SELECT id, post_title FROM ot_posts WHERE post_parent = '" . $Page . "' && post_type = 'page' ORDER BY post_title ASC "); // Get subpage if($SubPages) { for($i = 0; $i < count($SubPages); $i++) { echo "
      "; echo "
    • "; get_form_radio("post_parent", $SubPages[$i]['id'], "unchecked"); echo " " .stripslashes($SubPages[$i]['post_title']) . "
    • "; get_subpage($SubPages[$i]['id']); echo "
    "; } return TRUE; } else { return FALSE; } } // Fetch pages which have no parent ! $Pages = $DB->query_fetchDB(" SELECT id, post_title FROM ot_posts WHERE post_parent = 0 && post_type = 'page' ORDER BY post_title ASC "); // Fetch pages from DB if($Pages) // Are there pages? { for($i = 0; $i < count($Pages); $i++) { echo "
  • "; get_form_radio("post_parent", $Pages[$i]['id'], "unchecked"); echo " " . $Pages[$i]['post_title'] . "
  • "; get_subpage($Pages[$i]['id']); } } ?>

Pagina status:

"; } else { get_form_radio("post_status", "goedkeuring", "unchecked"); echo " Goedkeuring
"; } get_form_radio("post_status", "klad", "checked"); echo " Klad
"; get_form_radio("post_status", "privé", "unchecked"); echo " Privé
"; get_form_radio("post_status", "toekomst", "unchecked"); echo " Toekomst"; ?>

Reactiemogelijkheden:

"; get_form_radio("post_comment_status", "gesloten", "unchecked"); echo " Gesloten
"; get_form_radio("post_comment_status", "leden", "unchecked"); echo " Geregistreerde leden"; } elseif(CONF_COMMENT == 0) { get_form_radio("post_comment_status", "open", "unchecked"); echo " Open
"; get_form_radio("post_comment_status", "gesloten", "checked"); echo " Gesloten
"; get_form_radio("post_comment_status", "leden", "unchecked"); echo " Geregistreerde leden"; } ?>
Titel:


Inhoud:


Bestand toevoegen

Met onderstaande knop "Bestanden toevoegen" kan u bestanden toevoegen aan uw weblog. De duur van het uploaden is afhankelijk van de grootte van het bestand (max. 2MB) en uw verbindingssnelheid.
Na het uploadproces zal u automatisch de URL naar het bestand krijgen.