summaryrefslogtreecommitdiff
path: root/inc/io.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-06-05 12:38:42 +0200
committerandi <andi@splitbrain.org>2005-06-05 12:38:42 +0200
commitf62ea8a1d1cf10eddeae777b11420624e111b7ea (patch)
tree87a15e898308a5de1ef37874645a4cdcb83c707b /inc/io.php
parent248a73214063d2fe47787c8c4aa292777cddb12b (diff)
downloadrpg-f62ea8a1d1cf10eddeae777b11420624e111b7ea.tar.gz
rpg-f62ea8a1d1cf10eddeae777b11420624e111b7ea.tar.bz2
directory layout cleanup !IMPORTANT
This patch changes the directory structure of dokuwiki as suggested in http://www.freelists.org/archives/dokuwiki/06-2005/msg00045.html As the changes.log is not managed through darcs you need to move it your self to the new location in data/changes.log I think I modified the code at all nessessary places, but I may have forgotten a few things. darcs-hash:20050605103842-9977f-af20f63c1d604888375d175d89ac6bd71566d47d.gz
Diffstat (limited to 'inc/io.php')
-rw-r--r--inc/io.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/inc/io.php b/inc/io.php
index 3981757da..a3e5f85c4 100644
--- a/inc/io.php
+++ b/inc/io.php
@@ -10,55 +10,6 @@
require_once(DOKU_INC.'inc/common.php');
/**
- * Returns the parsed text from the given sourcefile. Uses cache
- * if exists. Creates it if not.
- *
- * @author Andreas Gohr <andi@splitbrain.org>
- * @deprecated -> parserutils
- */
-function io_cacheParse($file){
- trigger_error("deprecated io_cacheParse called");
-
- global $conf;
- global $CACHEGROUP;
- global $parser; //we read parser options
- $parsed = '';
- $cache = $conf['datadir'].'/_cache/';
- $cache .= md5($file.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'].$CACHEGROUP);
- $purge = $conf['datadir'].'/_cache/purgefile';
-
- // check if cache can be used
- $cachetime = @filemtime($cache);
-
- if( @file_exists($cache) // does the cachefile exist
- && @file_exists($file) // and does the source exist
- && !isset($_REQUEST['purge']) // no purge param was set
- && filesize($cache) // and contains the cachefile any data
- && ((time() - $cachetime) < $conf['cachetime']) // and is cachefile young enough
- && ($cachetime > filemtime($file)) // and newer than the source
- && ($cachetime > @filemtime($purge)) // and newer than the purgefile
- && ($cachetime > filemtime('conf/dokuwiki.php')) // and newer than the config file
- && ($cachetime > @filemtime('conf/local.php')) // and newer than the local config file
- && ($cachetime > filemtime('inc/parser.php')) // and newer than the parser
- && ($cachetime > filemtime('inc/format.php'))) // and newer than the formating functions
- {
- $parsed = io_readFile($cache); //give back cache
- $parsed .= "\n<!-- cachefile $cache used -->\n";
- }elseif(@file_exists($file)){
- $parsed = parse(io_readFile($file)); //sets global parseroptions
- if($parser['cache']){
- io_saveFile($cache,$parsed); //save cachefile
- $parsed .= "\n<!-- no cachefile used, but created -->\n";
- }else{
- @unlink($cache); //try to delete cachefile
- $parsed .= "\n<!-- no cachefile used, caching forbidden -->\n";
- }
- }
-
- return $parsed;
-}
-
-/**
* Removes empty directories
*
* @todo use safemode hack