X-Git-Url: http://git.vanrenterghem.biz/www.vanrenterghem.biz.git/blobdiff_plain/4b1ce0d83844cfd7c55e75a60ccb239882cd62e3..83ab5456767602f2a9860a7db7247f002ec96945:/phpBB2_old/admin/xs_chmod.php diff --git a/phpBB2_old/admin/xs_chmod.php b/phpBB2_old/admin/xs_chmod.php deleted file mode 100644 index 694069b..0000000 --- a/phpBB2_old/admin/xs_chmod.php +++ /dev/null @@ -1,92 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_configuration'] . '')); -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_chmod'] . '')); - -$lang['xs_chmod_return'] = str_replace('{URL}', append_sid('xs_config.'.$phpEx), $lang['xs_chmod_return']); -$lang['xs_chmod_message1'] .= $lang['xs_chmod_return']; -$lang['xs_chmod_error1'] .= $lang['xs_chmod_return']; - -if(defined('DEMO_MODE')) -{ - xs_error($lang['xs_permission_denied']); -} - -if(!get_ftp_config(append_sid('xs_chmod.'.$phpEx), array(), false)) -{ - exit; -} -xs_ftp_connect(append_sid('xs_chmod.'.$phpEx), array(), true); - -if($ftp === XS_FTP_LOCAL) -{ - @mkdir('../cache', 0777); - @chmod('../cache', 0777); - if(xs_dir_writable('../cache')) - { - xs_message($lang['Information'], $lang['xs_chmod_message1']); - } - xs_error($lang['xs_chmod_error1']); -} - -$str = ftp_pwd($ftp); - -if(strlen($str) && substr($str, strlen($str) - 1) !== '/') -{ - $str .= '/'; -} -$res = @ftp_site($ftp, "CHMOD 0777 {$str}cache"); -if(!$res) -{ - @ftp_mkdir($ftp, 'cache'); - $res = @ftp_site($ftp, "CHMOD 0777 {$str}cache"); -} -@ftp_quit($ftp); -if($res) -{ - xs_message($lang['Information'], $lang['xs_chmod_message1']); -} -else -{ - xs_error($lang['xs_chmod_error1']); -} - -?> \ No newline at end of file