3 * Copyright 2003 Mark O'Sullivan
4 * This file is part of Vanilla.
5 * Vanilla is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
6 * Vanilla 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 GNU General Public License for more details.
7 * You should have received a copy of the GNU General Public License along with Vanilla; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
8 * The latest source code for Vanilla is available at www.lussumo.com
9 * Contact Mark O'Sullivan at mark [at] lussumo [dot] com
11 * Description: Assigns headers to all pages
13 // PREVENT PAGE CACHING
14 header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
15 header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // always modified
16 header ('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1
17 header ('Pragma: no-cache'); // HTTP/1.0
18 header ('X-Powe'.'red-By: Lussumo '.APPLICATION
.' '.APPLICATION_VERSION
); // Give some credit
20 // PROPERLY ENCODE THE CONTENT
21 header ('content-type: text/html; charset='.$Configuration['CHARSET']);
24 error_reporting(E_ALL
);
26 // DO NOT ALLOW PHP_SESS_ID TO BE PASSED IN THE QUERYSTRING
27 ini_set('session.use_only_cookies', 1);
28 // Track errors so explicit error messages can be reported should errors be encountered
29 @ini_set
('track_errors', 1);