equal
deleted
inserted
replaced
1 <?php |
1 <?php |
|
2 |
|
3 /* |
|
4 * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between |
|
5 * Version 1.1.4 (Caoineag alpha 4) |
|
6 * Copyright (C) 2006-2008 Dan Fuhry |
|
7 * tiny_mce_gzip.php - TinyMCE gzip and caching script, stock from MoxieCode with one modification |
|
8 * |
|
9 * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License |
|
10 * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |
|
11 * |
|
12 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
|
13 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
|
14 */ |
|
15 |
2 /** |
16 /** |
3 * $Id: tiny_mce_gzip.php 315 2007-10-25 14:03:43Z spocke $ |
17 * $Id: tiny_mce_gzip.php 315 2007-10-25 14:03:43Z spocke $ |
4 * |
18 * |
5 * @author Moxiecode |
19 * @author Moxiecode |
6 * @copyright Copyright © 2005-2006, Moxiecode Systems AB, All rights reserved. |
20 * @copyright Copyright © 2005-2006, Moxiecode Systems AB, All rights reserved. |
11 */ |
25 */ |
12 |
26 |
13 // Set the error reporting to minimal. |
27 // Set the error reporting to minimal. |
14 @error_reporting(E_ERROR | E_WARNING | E_PARSE); |
28 @error_reporting(E_ERROR | E_WARNING | E_PARSE); |
15 |
29 |
16 // load Enano |
30 // 5/5/2008 - load Enano, but only get the root directory |
17 define('ENANO_COMMON_ROOTONLY', 1); |
31 define('ENANO_COMMON_ROOTONLY', 1); |
18 require('../../common.php'); |
32 require('../../common.php'); |
19 |
33 |
20 // Get input |
34 // Get input |
21 $plugins = explode(',', getParam("plugins", "")); |
35 $plugins = explode(',', getParam("plugins", "")); |
24 $diskCache = getParam("diskcache", "") == "true"; |
38 $diskCache = getParam("diskcache", "") == "true"; |
25 $isJS = getParam("js", "") == "true"; |
39 $isJS = getParam("js", "") == "true"; |
26 $compress = getParam("compress", "true") == "true"; |
40 $compress = getParam("compress", "true") == "true"; |
27 $core = getParam("core", "true") == "true"; |
41 $core = getParam("core", "true") == "true"; |
28 $suffix = getParam("suffix", "_src") == "_src" ? "_src" : ""; |
42 $suffix = getParam("suffix", "_src") == "_src" ? "_src" : ""; |
|
43 // 5/5/2008 - set cache path to Enano's usual directory |
29 $cachePath = realpath(ENANO_ROOT . "/cache"); // Cache path, this is where the .gz files will be stored |
44 $cachePath = realpath(ENANO_ROOT . "/cache"); // Cache path, this is where the .gz files will be stored |
30 $expiresOffset = 3600 * 24 * 10; // Cache for 10 days in browser cache |
45 $expiresOffset = 3600 * 24 * 10; // Cache for 10 days in browser cache |
31 $content = ""; |
46 $content = ""; |
32 $encodings = array(); |
47 $encodings = array(); |
33 $supportsGzip = false; |
48 $supportsGzip = false; |