/
pages.php
35 lines (25 loc) · 957 Bytes
/
pages.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/*
##############################################################
Obsedb CMS Content Management System
Copyright (C) 2009 Gerald Wayne Baggett Jr
This program is free software; you can redistribute it and/or modify
it under the terms of the BSD License as published by
the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
BSD License for more details.
##############################################################
*/
error_reporting(E_ALL & ~E_NOTICE);
@set_magic_quotes_runtime(0);
require_once('global.php');
if (isset($_REQUEST['id'])) {
do_header();
$result = $db->Execute("SELECT * FROM `Obsedb_pages` WHERE `id` = '$_REQUEST[id]'");
echo stripslashes($result->fields['content']);
build_matrix('pages',$result->fields['id']);
do_footer();
}
?>