Public paste
Undefined
By: Flyboy | Date: Jun 20 2007 19:55 | Format: PHP | Expires: never | Size: 661 B | Hits: 1279

  1. <? @header("Content-Type: text/html; charset=iso-8859-1");
  2. @include "../settin/settings.php";
  3. if ($rights == "9") {
  4. $text = addslashes($_POST['text']);
  5. $title = addslashes($_POST['title']);
  6. $tijd = time();
  7. $tag = $_POST['tag'];
  8. $query = "UPDATE pages SET text='$text', title='$title', updated='$tijd', updatedby='$logincook' WHERE tag='$tag'";
  9. mysql_query($query) or die (mysql_error());
  10. header("Location: ../inc/edit.php?pag=".$pag."&edit=ok");
  11. } else {
  12. error("<b>ACCESS ERROR:</b> You need security clearance before entering this page.<br>Please log in with an account that has the clearance before trying again.");
  13. die();
  14. }
  15. ?>