summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-10-18 22:07:31 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-10-18 22:07:31 +0200
commit195b28c865907362e81dbf0fbaf96f340bbc4631 (patch)
tree1e33a466db1e405a5ade6b0026d0d35d30ad45b1 /inc/init.php
parent74afac00b33f004aad776496f113476acca8efc5 (diff)
downloadrpg-195b28c865907362e81dbf0fbaf96f340bbc4631.tar.gz
rpg-195b28c865907362e81dbf0fbaf96f340bbc4631.tar.bz2
remove deprecated scriptify() mechanism
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/inc/init.php b/inc/init.php
index b53167e3c..bf7815178 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -200,10 +200,6 @@ init_creationmodes();
init_paths();
init_files();
-// automatic upgrade to script versions of certain files
-scriptify(DOKU_CONF.'users.auth');
-scriptify(DOKU_CONF.'acl.auth');
-
// setup plugin controller class (can be overwritten in preload.php)
$plugin_types = array('admin','syntax','action','renderer', 'helper');
global $plugin_controller_class, $plugin_controller;
@@ -463,43 +459,6 @@ function is_ssl(){
}
/**
- * Append a PHP extension to a given file and adds an exit call
- *
- * This is used to migrate some old configfiles. An added PHP extension
- * ensures the contents are not shown to webusers even if .htaccess files
- * do not work
- *
- * @author Jan Decaluwe <jan@jandecaluwe.com>
- */
-function scriptify($file) {
- // checks
- if (!is_readable($file)) {
- return;
- }
- $fn = $file.'.php';
- if (@file_exists($fn)) {
- return;
- }
- $fh = fopen($fn, 'w');
- if (!$fh) {
- nice_die($fn.' is not writable. Check your permission settings!');
- }
- // write php exit hack first
- fwrite($fh, "# $fn\n");
- fwrite($fh, '# <?php exit()?>'."\n");
- fwrite($fh, "# Don't modify the lines above\n");
- fwrite($fh, "#\n");
- // copy existing lines
- $lines = file($file);
- foreach ($lines as $line){
- fwrite($fh, $line);
- }
- fclose($fh);
- //try to rename the old file
- io_rename($file,"$file.old");
-}
-
-/**
* print a nice message even if no styles are loaded yet.
*/
function nice_die($msg){