]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blobdiff - phpBB2/admin/xs_include_import.php
Verwijder verouderde bestanden.
[www.vanrenterghem.biz.git] / phpBB2 / admin / xs_include_import.php
diff --git a/phpBB2/admin/xs_include_import.php b/phpBB2/admin/xs_include_import.php
deleted file mode 100644 (file)
index 16ea3a1..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php\r
-\r
-/***************************************************************************\r
- *                           xs_include_import.php\r
- *                           ---------------------\r
- *   copyright            : (C) 2003 - 2005 CyberAlien\r
- *   support              : http://www.phpbbstyles.com\r
- *\r
- *   version              : 2.3.1\r
- *\r
- *   file revision        : 70\r
- *   project revision     : 78\r
- *   last modified        : 05 Dec 2005  13:54:54\r
- *\r
- ***************************************************************************/\r
-\r
-/***************************************************************************\r
- *\r
- *   This program is free software; you can redistribute it and/or modify\r
- *   it under the terms of the GNU General Public License as published by\r
- *   the Free Software Foundation; either version 2 of the License, or\r
- *   (at your option) any later version.\r
- *\r
- ***************************************************************************/\r
-\r
-if (!defined('IN_PHPBB') || !defined('IN_XS'))\r
-{\r
-       die("Hacking attempt");\r
-}\r
-\r
-\r
-function generate_actions_files($dir)\r
-{\r
-       global $items;\r
-       // remove trailing /\r
-       $pos = strrpos($dir, '/');\r
-       $dir = $pos === strlen($dir) - 1 ? substr($dir, 0, $pos) : $dir;\r
-       $arr = array('processing: '.$dir);\r
-       for($i=0; $i<count($items); $i++)\r
-       {\r
-               if($items[$i]['dir'] === $dir)\r
-               {\r
-                       $arr[] = array(\r
-                               'command'       => 'upload',\r
-                               'local'         => $items[$i]['tmp'],\r
-                               'remote'        => $items[$i]['file']\r
-                               );\r
-               }\r
-       }\r
-       return $arr;\r
-}\r
-\r
-function generate_actions_dirs($dir = '')\r
-{\r
-       global $dirs;\r
-       $arr = array();\r
-       if($dir && substr($dir, strlen($dir) - 1) !== '/')\r
-       {\r
-               $dir .= '/';\r
-       }\r
-       if($dir)\r
-       {\r
-               // remove trailing /\r
-               $pos = strrpos($dir, '/');\r
-               $str = $pos === strlen($dir) - 1 ? substr($dir, 0, $pos) : $dir;\r
-               // get last directory name\r
-               $pos = strrpos($str, '/');\r
-               $str = $pos ? substr($str, $pos + 1) : $str;\r
-               $arr[] = array(\r
-                       'command'       => 'mkdir',\r
-                       'dir'           => $str,\r
-                       'ignore'        => true\r
-                       );\r
-               $arr[] = array(\r
-                       'command'       => 'chdir',\r
-                       'dir'           => $str\r
-                       );\r
-       }\r
-       $arr[] = array(\r
-               'command'       => 'exec',\r
-               'list'          => generate_actions_files($dir)\r
-               );\r
-       // create subdirectories\r
-       $len = strlen($dir);\r
-       for($i=0; $i<count($dirs); $i++)\r
-       {\r
-               $str = $dirs[$i];\r
-               if(substr($str, 0, $len) === $dir)\r
-               {\r
-                       if($len)\r
-                       {\r
-                               $str = substr($str, $len + 1);\r
-                       }\r
-                       $pos = strpos($str, '/');\r
-                       if($pos == strlen($str) - 1)\r
-                       {\r
-                               $arr[] = array(\r
-                                               'command'       => 'exec',\r
-                                               'list'          => generate_actions_dirs($dirs[$i])\r
-                                       );\r
-                       }\r
-               }\r
-       }\r
-       return $arr;\r
-}\r
-\r
-function generate_style_name($str)\r
-{\r
-       $str = 'style_' . $str . '_%02d' . STYLE_EXTENSION;\r
-       $num = 0;\r
-       $found = true;\r
-       while($found)\r
-       {\r
-               $filename = sprintf($str, $num);\r
-               $found = @file_exists(XS_TEMP_DIR.$filename);\r
-               $num ++;\r
-       }\r
-       return $filename;\r
-}\r
-\r
-?>
\ No newline at end of file