]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blobdiff - phpBB2/admin/xs_chmod.php
Verwijder verouderde bestanden.
[www.vanrenterghem.biz.git] / phpBB2 / admin / xs_chmod.php
diff --git a/phpBB2/admin/xs_chmod.php b/phpBB2/admin/xs_chmod.php
deleted file mode 100644 (file)
index 6cec86e..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php\r
-\r
-/***************************************************************************\r
- *                                xs_chmod.php\r
- *                                ------------\r
- *   copyright            : (C) 2003 - 2005 CyberAlien\r
- *   support              : http://www.phpbbstyles.com\r
- *\r
- *   version              : 2.3.1\r
- *\r
- *   file revision        : 72\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
-define('IN_PHPBB', 1);\r
-$phpbb_root_path = "./../";\r
-$no_page_header = true;\r
-require($phpbb_root_path . 'extension.inc');\r
-require('./pagestart.' . $phpEx);\r
-\r
-// check if mod is installed\r
-if(empty($template->xs_version) || $template->xs_version !== 8)\r
-{\r
-       message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php');\r
-}\r
-\r
-define('IN_XS', true);\r
-include_once('xs_include.' . $phpEx);\r
-\r
-$template->assign_block_vars('nav_left',array('ITEM' => '&raquo; <a href="' . append_sid('xs_config.'.$phpEx) . '">' . $lang['xs_configuration'] . '</a>'));\r
-$template->assign_block_vars('nav_left',array('ITEM' => '&raquo; <a href="' . append_sid('xs_chmod.'.$phpEx) . '">' . $lang['xs_chmod'] . '</a>'));\r
-\r
-$lang['xs_chmod_return'] = str_replace('{URL}', append_sid('xs_config.'.$phpEx), $lang['xs_chmod_return']);\r
-$lang['xs_chmod_message1'] .= $lang['xs_chmod_return'];\r
-$lang['xs_chmod_error1'] .= $lang['xs_chmod_return'];\r
-\r
-if(defined('DEMO_MODE'))\r
-{\r
-       xs_error($lang['xs_permission_denied']);\r
-}\r
-\r
-if(!get_ftp_config(append_sid('xs_chmod.'.$phpEx), array(), false))\r
-{\r
-       exit;\r
-}\r
-xs_ftp_connect(append_sid('xs_chmod.'.$phpEx), array(), true);\r
-\r
-if($ftp === XS_FTP_LOCAL)\r
-{\r
-       @mkdir('../cache', 0777);\r
-       @chmod('../cache', 0777);\r
-       if(xs_dir_writable('../cache'))\r
-       {\r
-               xs_message($lang['Information'], $lang['xs_chmod_message1']);\r
-       }\r
-       xs_error($lang['xs_chmod_error1']);\r
-}\r
-\r
-$str = ftp_pwd($ftp);\r
-\r
-if(strlen($str) && substr($str, strlen($str) - 1) !== '/')\r
-{\r
-       $str .= '/';\r
-}\r
-$res = @ftp_site($ftp, "CHMOD 0777 {$str}cache");\r
-if(!$res)\r
-{\r
-       @ftp_mkdir($ftp, 'cache');\r
-       $res = @ftp_site($ftp, "CHMOD 0777 {$str}cache");\r
-}\r
-@ftp_quit($ftp);\r
-if($res)\r
-{\r
-       xs_message($lang['Information'], $lang['xs_chmod_message1']);\r
-}\r
-else\r
-{\r
-       xs_error($lang['xs_chmod_error1']);\r
-}\r
-\r
-?>
\ No newline at end of file