Project

General

Profile

Revision 1d43016e

Added by Sören Eberhardt-Biermann over 2 years ago

preparing Version 2.1.9

View differences:

CHANGELOG.txt
1 1
****************************
2 2
Changelog for eXtplorer
3
Version $Id$
3
Version $Id: CHANGELOG.txt 246 2016-02-10 21:21:12Z soeren $
4 4
****************************
5
--- version 2.1.9 ---
6
- fixed PHP 7 compatibility issues
7

  
8
--- version 2.1.8 ---
9
- added security functions for protection against CSRF attacks
10
- fixed "directories with the name '0' are not loading"
5 11

  
6 12
--- version 2.1.7 ---
7 13
- fixed SWFUpload against XSS vulnerabilities
admin.extplorer.php
4 4
/**
5 5
 * MAIN FILE! (formerly known as index.php)
6 6
 * 
7
 * @version $Id$
7
 * @version $Id: admin.extplorer.php 247 2016-02-23 10:06:18Z soeren $
8 8
 * 
9 9
 * @package eXtplorer
10
 * @copyright soeren 2007-2013
10
 * @copyright soeren 2007-2016
11 11
 * @author The eXtplorer project (http://extplorer.net)
12 12
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
13 13
 * @license
......
39 39
**/
40 40

  
41 41
// The eXtplorer version number
42
$GLOBALS['ext_version'] = '2.1.6';
42
$GLOBALS['ext_version'] = '2.1.9';
43 43
$GLOBALS['ext_home'] = 'http://extplorer.net';
44

  
44
$dir = '';
45 45
//------------------------------------------------------------------------------
46 46
if( defined( 'E_STRICT' ) ) { // Suppress Strict Standards Warnings
47 47
	error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE);
application.php
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5 5
 * @package eXtplorer
6
 * @version $Id$
7
 * @copyright soeren 2007-2010
6
 * @version $Id: application.php 241 2015-01-22 20:57:42Z soeren $
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @license
10 10
 * The contents of this file are subject to the Mozilla Public License
build_component.bat
10 10
rem Please update the program path here accordingly
11 11

  
12 12

  
13
set PATH="c:\Projekte\extplorer\svn-extplorer2\"
13
set PATH="e:\Projekte\extplorer\svn-extplorer2\"
14 14

  
15 15
cd %PATH%
16 16

  
config/.htusers.php
1 1
<?php
2
/** @version $Id$ */
2
/** @version $Id: .htusers.php 135 2009-01-27 21:57:15Z ryu_ms $ */
3 3
/** ensure this file is being included by a parent file */
4 4
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
5 5

  
config/conf.php
1 1
<?php
2
/** @version $Id$ */
2
/** @version $Id: conf.php 232 2014-02-13 20:08:10Z soeren $ */
3 3
// ensure this file is being included by a parent file
4 4
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
5 5

  
config/mimes.php
1 1
<?php
2
/** @version $Id$ */
2
/** @version $Id: mimes.php 246 2016-02-10 21:21:12Z soeren $ */
3 3
/** ensure this file is being included by a parent file */
4 4
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
5 5
//------------------------------------------------------------------------------
6 6
// editable files:
7 7
$GLOBALS["editable_ext"]=
8
	"\.asm$|\.rc$|\.hh$|\.hxx$|\.odl$|\.idl$|\.rc2$|\.dlg$|\.less$"
9
	."|\.php$|\.php3$|\.php4$|\.php5$|\.phtml$|\.inc$|\.sql$|\.csv$"
10
	."|\.vb$|\.vbs$|\.bas$|\.frm$|\.cls$|\.ctl$|\.rb$|\.htm$|\.html$|\.shtml$|\.dhtml$|\.xml$"
11
	."|\.js$|\.css$|\.cgi$|\.cpp$|\.c$|\.cc$|\.cxx$|\.hpp$|\.h$|\.lua$"
12
	."|\.pas$|\.p$|\.pl$|\.java$|\.py$|\.sh$|\.bat$|\.tcl$|\.tk$"
13
	."|\.txt$|\.ini$|\.conf$|\.properties$|\.htaccess$|\.htpasswd$";
8
	array(".asm", ".rc", ".hh", ".hxx", ".odl", ".idl", ".rc2", ".dlg", ".less"
9
	,".php", ".php3", ".php4", ".php5", ".phtml", ".inc", ".sql", ".csv"
10
	,".vb", ".vbs", ".bas", ".frm", ".cls", ".ctl", ".rb", ".htm", ".html", ".shtml", ".dhtml", ".xml"
11
	,".js", ".css", ".cgi", ".cpp", ".c", ".cc", ".cxx", ".hpp", ".h", ".lua"
12
	,".pas", ".p", ".pl", ".java", ".py", ".sh", ".bat", ".tcl", ".tk"
13
	,".txt", ".ini", ".conf", ".properties", ".htaccess", ".htpasswd");
14 14

  
15 15
//------------------------------------------------------------------------------
16 16
// image files:
17
$GLOBALS["images_ext"]="\.png$|\.bmp$|\.jpg$|\.jpeg$|\.gif$|\.tif$|\.ico$";
17
$GLOBALS["images_ext"]=array(".png", ".bmp", ".jpg", ".jpeg", ".gif", ".tif", ".ico" );
18 18
//------------------------------------------------------------------------------
19 19
// mime types: (description,image,extension)
20 20
$GLOBALS["super_mimes"]=array(
21 21
	// dir, exe, file
22 22
	"dir"	=> array(extGetParam( $GLOBALS["mimes"], 'dir', 'Dir' ),"extension/folder.png"),
23
	"exe"	=> array(extGetParam( $GLOBALS["mimes"], 'exe', 'exe' ),"extension/exe.png","\.exe$|\.com$|\.bin$"),
23
	"exe"	=> array(extGetParam( $GLOBALS["mimes"], 'exe', 'exe' ),"extension/exe.png",".exe", ".com", ".bin"),
24 24
	"file"	=> array(extGetParam( $GLOBALS["mimes"], 'file', 'file' ),"extension/document.png")
25 25
);
26 26
$GLOBALS["used_mime_types"]=array(
27 27
	// text
28
	"text"	=> array(extGetParam( $GLOBALS["mimes"], 'text', 'Text' ),  "extension/txt.png",   "\.txt$"),
28
	"text"	=> array(extGetParam( $GLOBALS["mimes"], 'text', 'Text' ),  "extension/txt.png",   ".txt"),
29 29

  
30 30
	// programming
31
	"php"	=> array(extGetParam( $GLOBALS["mimes"], 'php', 'php' ),   "extension/php.png",   "\.php$"),
32
	"php3"	=> array(extGetParam( $GLOBALS["mimes"], 'php3', 'php3' ),  "extension/php3.png",  "\.php3$"),
33
	"php4"	=> array(extGetParam( $GLOBALS["mimes"], 'php4', 'php4' ),  "extension/php4.png",  "\.php4$"),
34
	"php5"	=> array(extGetParam( $GLOBALS["mimes"], 'php5', 'php5' ),  "extension/php5.png",  "\.php5$"),
35
	"phtml"	=> array(extGetParam( $GLOBALS["mimes"], 'phtml', 'phtml' ), "extension/phtml.png", "\.phtml$"),
36
	"inc"	=> array(extGetParam( $GLOBALS["mimes"], 'inc', 'inc' ),   "extension/inc.png",   "\.inc$"),
37
	"sql"	=> array(extGetParam( $GLOBALS["mimes"], 'sql', 'SQL' ),   "extension/sql.png",   "\.sql$"),
38
	"pl"	=> array(extGetParam( $GLOBALS["mimes"], 'pl', 'Perl' ),    "extension/pl.png",    "\.pl$"),
39
	"cgi"	=> array(extGetParam( $GLOBALS["mimes"], 'cgi', 'CGI' ),   "extension/cgi.png",   "\.cgi$"),
40
	"py"	=> array(extGetParam( $GLOBALS["mimes"], 'py', 'Python' ),    "extension/py.png",    "\.py$"),
41
	"sh"	=> array(extGetParam( $GLOBALS["mimes"], 'sh', 'Shell' ),    "extension/sh.png",    "\.sh$"),
42
	"c" 	=> array(extGetParam( $GLOBALS["mimes"], 'c', 'C' ),     "extension/c.png",     "\.c$"),
43
	"cc"	=> array(extGetParam( $GLOBALS["mimes"], 'cc', 'CC' ),    "extension/cc.png",    "\.cc$"),
44
	"cpp"	=> array(extGetParam( $GLOBALS["mimes"], 'cpp', 'CPP' ),   "extension/cpp.png",   "\.cpp$"),
45
	"cxx"	=> array(extGetParam( $GLOBALS["mimes"], 'cxx', 'CXX' ),   "extension/cxx.png",   "\.cxx$"),
46
	"h" 	=> array(extGetParam( $GLOBALS["mimes"], 'h', 'H' ),     "extension/h.png",     "\.h$"),
47
	"hpp" 	=> array(extGetParam( $GLOBALS["mimes"], 'hpp', 'hpp' ),   "extension/hpp.png",   "\.hpp$"),
48
	"java"	=> array(extGetParam( $GLOBALS["mimes"], 'java', 'Java' ),  "extension/java.png",  "\.java$"),
49
	"class"	=> array(extGetParam( $GLOBALS["mimes"], 'class', 'Class' ), "extension/class.png", "\.class$"),
50
	"jar"	=> array(extGetParam( $GLOBALS["mimes"], 'jar', 'Jar' ),   "extension/jar.png",   "\.jar$"),
31
	"php"	=> array(extGetParam( $GLOBALS["mimes"], 'php', 'php' ),   "extension/php.png",   ".php"),
32
	"php3"	=> array(extGetParam( $GLOBALS["mimes"], 'php3', 'php3' ),  "extension/php3.png",  ".php3"),
33
	"php4"	=> array(extGetParam( $GLOBALS["mimes"], 'php4', 'php4' ),  "extension/php4.png",  ".php4"),
34
	"php5"	=> array(extGetParam( $GLOBALS["mimes"], 'php5', 'php5' ),  "extension/php5.png",  ".php5"),
35
	"phtml"	=> array(extGetParam( $GLOBALS["mimes"], 'phtml', 'phtml' ), "extension/phtml.png", ".phtml"),
36
	"inc"	=> array(extGetParam( $GLOBALS["mimes"], 'inc', 'inc' ),   "extension/inc.png",   ".inc"),
37
	"sql"	=> array(extGetParam( $GLOBALS["mimes"], 'sql', 'SQL' ),   "extension/sql.png",   ".sql"),
38
	"pl"	=> array(extGetParam( $GLOBALS["mimes"], 'pl', 'Perl' ),    "extension/pl.png",    ".pl"),
39
	"cgi"	=> array(extGetParam( $GLOBALS["mimes"], 'cgi', 'CGI' ),   "extension/cgi.png",   ".cgi"),
40
	"py"	=> array(extGetParam( $GLOBALS["mimes"], 'py', 'Python' ),    "extension/py.png",    ".py"),
41
	"sh"	=> array(extGetParam( $GLOBALS["mimes"], 'sh', 'Shell' ),    "extension/sh.png",    ".sh"),
42
	"c" 	=> array(extGetParam( $GLOBALS["mimes"], 'c', 'C' ),     "extension/c.png",     ".c"),
43
	"cc"	=> array(extGetParam( $GLOBALS["mimes"], 'cc', 'CC' ),    "extension/cc.png",    ".cc"),
44
	"cpp"	=> array(extGetParam( $GLOBALS["mimes"], 'cpp', 'CPP' ),   "extension/cpp.png",   ".cpp"),
45
	"cxx"	=> array(extGetParam( $GLOBALS["mimes"], 'cxx', 'CXX' ),   "extension/cxx.png",   ".cxx"),
46
	"h" 	=> array(extGetParam( $GLOBALS["mimes"], 'h', 'H' ),     "extension/h.png",     ".h"),
47
	"hpp" 	=> array(extGetParam( $GLOBALS["mimes"], 'hpp', 'hpp' ),   "extension/hpp.png",   ".hpp"),
48
	"java"	=> array(extGetParam( $GLOBALS["mimes"], 'java', 'Java' ),  "extension/java.png",  ".java"),
49
	"class"	=> array(extGetParam( $GLOBALS["mimes"], 'class', 'Class' ), "extension/class.png", ".class"),
50
	"jar"	=> array(extGetParam( $GLOBALS["mimes"], 'jar', 'Jar' ),   "extension/jar.png",   ".jar"),
51 51

  
52 52
	// browser
53
	"htm"	=> array(extGetParam( $GLOBALS["mimes"], 'htm', 'HTML' ),   "extension/htm.png",   "\.htm$"),
54
	"html"	=> array(extGetParam( $GLOBALS["mimes"], 'html', 'HTML' ),  "extension/html.png",  "\.html$"),
55
	"shtml"	=> array(extGetParam( $GLOBALS["mimes"], 'shtml', 'sHTML' ), "extension/shtml.png", "\.shtml$"),
56
	"dhtml"	=> array(extGetParam( $GLOBALS["mimes"], 'dhtml', 'dHTML' ), "extension/dhtml.png", "\.dhtml$"),
57
	"xhtml"	=> array(extGetParam( $GLOBALS["mimes"], 'xhtml', 'XHTML' ), "extension/xhtml.png", "\.xhtml$"),
58
	"xml"	=> array(extGetParam( $GLOBALS["mimes"], 'xml', 'XML' ),   "extension/xml.png",   "\.xml$"),
59
	"js"	=> array(extGetParam( $GLOBALS["mimes"], 'js', 'JS' ),    "extension/js.png",    "\.js$"),
60
	"css"	=> array(extGetParam( $GLOBALS["mimes"], 'css', 'CSS' ),   "extension/css.png",   "\.css$"),
53
	"htm"	=> array(extGetParam( $GLOBALS["mimes"], 'htm', 'HTML' ),   "extension/htm.png",   ".htm"),
54
	"html"	=> array(extGetParam( $GLOBALS["mimes"], 'html', 'HTML' ),  "extension/html.png",  ".html"),
55
	"shtml"	=> array(extGetParam( $GLOBALS["mimes"], 'shtml', 'sHTML' ), "extension/shtml.png", ".shtml"),
56
	"dhtml"	=> array(extGetParam( $GLOBALS["mimes"], 'dhtml', 'dHTML' ), "extension/dhtml.png", ".dhtml"),
57
	"xhtml"	=> array(extGetParam( $GLOBALS["mimes"], 'xhtml', 'XHTML' ), "extension/xhtml.png", ".xhtml"),
58
	"xml"	=> array(extGetParam( $GLOBALS["mimes"], 'xml', 'XML' ),   "extension/xml.png",   ".xml"),
59
	"js"	=> array(extGetParam( $GLOBALS["mimes"], 'js', 'JS' ),    "extension/js.png",    ".js"),
60
	"css"	=> array(extGetParam( $GLOBALS["mimes"], 'css', 'CSS' ),   "extension/css.png",   ".css"),
61 61
	
62 62
	// images
63
	"gif"	=> array(extGetParam( $GLOBALS["mimes"], 'gif', 'GIF' ),   "extension/gif.png",   "\.gif$"),
64
	"jpg"	=> array(extGetParam( $GLOBALS["mimes"], 'jpg', 'JPG' ),   "extension/jpg.png",   "\.jpg$"),
65
	"jpeg"	=> array(extGetParam( $GLOBALS["mimes"], 'jpeg', 'JPEG' ),  "extension/jpeg.png",  "\.jpeg$"),
66
	"bmp"	=> array(extGetParam( $GLOBALS["mimes"], 'bmp', 'Bitmap' ),   "extension/bmp.png",   "\.bmp$"),
67
	"png"	=> array(extGetParam( $GLOBALS["mimes"], 'png', 'PNG' ),   "extension/png.png",   "\.png$"),
63
	"gif"	=> array(extGetParam( $GLOBALS["mimes"], 'gif', 'GIF' ),   "extension/gif.png",   ".gif"),
64
	"jpg"	=> array(extGetParam( $GLOBALS["mimes"], 'jpg', 'JPG' ),   "extension/jpg.png",   ".jpg"),
65
	"jpeg"	=> array(extGetParam( $GLOBALS["mimes"], 'jpeg', 'JPEG' ),  "extension/jpeg.png",  ".jpeg"),
66
	"bmp"	=> array(extGetParam( $GLOBALS["mimes"], 'bmp', 'Bitmap' ),   "extension/bmp.png",   ".bmp"),
67
	"png"	=> array(extGetParam( $GLOBALS["mimes"], 'png', 'PNG' ),   "extension/png.png",   ".png"),
68 68
	
69 69
	// compressed
70
	"zip"	=> array(extGetParam( $GLOBALS["mimes"], 'zip', 'ZIP' ),   "extension/zip.png",   "\.zip$"),
71
	"tar"	=> array(extGetParam( $GLOBALS["mimes"], 'tar', 'TAR' ),   "extension/tar.png",   "\.tar$"),
72
	"tgz"	=> array(extGetParam( $GLOBALS["mimes"], 'tgz', 'Tar/GZ' ),   "extension/tgz.png",   "\.tgz$"),
73
	"gz"	=> array(extGetParam( $GLOBALS["mimes"], 'gz', 'GZip' ),    "extension/gz.png",    "\.gz$"),
70
	"zip"	=> array(extGetParam( $GLOBALS["mimes"], 'zip', 'ZIP' ),   "extension/zip.png",   ".zip"),
71
	"tar"	=> array(extGetParam( $GLOBALS["mimes"], 'tar', 'TAR' ),   "extension/tar.png",   ".tar"),
72
	"tgz"	=> array(extGetParam( $GLOBALS["mimes"], 'tgz', 'Tar/GZ' ),   "extension/tgz.png",   ".tgz"),
73
	"gz"	=> array(extGetParam( $GLOBALS["mimes"], 'gz', 'GZip' ),    "extension/gz.png",    ".gz"),
74 74

  
75 75

  
76
	"bz2"	=> array(extGetParam( $GLOBALS["mimes"], 'bz2', 'Bzip2' ),   "extension/bz2.png",   "\.bz2$"),
77
	"tbz"	=> array(extGetParam( $GLOBALS["mimes"], 'tbz', 'Tar/Bz2' ),   "extension/tbz.png",   "\.tbz$"),
78
	"rar"	=> array(extGetParam( $GLOBALS["mimes"], 'rar', 'RAR' ),   "extension/rar.png",   "\.rar$"),
76
	"bz2"	=> array(extGetParam( $GLOBALS["mimes"], 'bz2', 'Bzip2' ),   "extension/bz2.png",   ".bz2"),
77
	"tbz"	=> array(extGetParam( $GLOBALS["mimes"], 'tbz', 'Tar/Bz2' ),   "extension/tbz.png",   ".tbz"),
78
	"rar"	=> array(extGetParam( $GLOBALS["mimes"], 'rar', 'RAR' ),   "extension/rar.png",   ".rar"),
79 79

  
80 80
	// music
81
	"mp3"	=> array(extGetParam( $GLOBALS["mimes"], 'mp3', 'Mp3' ),   "extension/mp3.png",   "\.mp3$"),
82
	"wav"	=> array(extGetParam( $GLOBALS["mimes"], 'wav', 'WAV' ),   "extension/wav.png",   "\.wav$"),
83
	"midi"	=> array(extGetParam( $GLOBALS["mimes"], 'midi', 'Midi' ),  "extension/midi.png",  "\.mid$"),
84
	"rm"	=> array(extGetParam( $GLOBALS["mimes"], 'real', 'Real Media' ),  "extension/rm.png",    "\.rm$"),
85
	"ra"	=> array(extGetParam( $GLOBALS["mimes"], 'real', 'Real Audio' ),  "extension/ra.png",    "\.ra$"),
86
	"ram"	=> array(extGetParam( $GLOBALS["mimes"], 'real', 'Real Media' ),  "extension/ram.png",   "\.ram$"),
87
	"pls"	=> array(extGetParam( $GLOBALS["mimes"], 'pls', 'pls' ),   "extension/pls.png",   "\.pls$"),
88
	"m3u"	=> array(extGetParam( $GLOBALS["mimes"], 'm3u', 'm3u' ),   "extension/m3u.png",   "\.m3u$"),
81
	"mp3"	=> array(extGetParam( $GLOBALS["mimes"], 'mp3', 'Mp3' ),   "extension/mp3.png",   ".mp3"),
82
	"wav"	=> array(extGetParam( $GLOBALS["mimes"], 'wav', 'WAV' ),   "extension/wav.png",   ".wav"),
83
	"midi"	=> array(extGetParam( $GLOBALS["mimes"], 'midi', 'Midi' ),  "extension/midi.png",  ".mid"),
84
	"rm"	=> array(extGetParam( $GLOBALS["mimes"], 'real', 'Real Media' ),  "extension/rm.png",    ".rm"),
85
	"ra"	=> array(extGetParam( $GLOBALS["mimes"], 'real', 'Real Audio' ),  "extension/ra.png",    ".ra"),
86
	"ram"	=> array(extGetParam( $GLOBALS["mimes"], 'real', 'Real Media' ),  "extension/ram.png",   ".ram"),
87
	"pls"	=> array(extGetParam( $GLOBALS["mimes"], 'pls', 'pls' ),   "extension/pls.png",   ".pls"),
88
	"m3u"	=> array(extGetParam( $GLOBALS["mimes"], 'm3u', 'm3u' ),   "extension/m3u.png",   ".m3u"),
89 89

  
90 90
	// movie
91
	"mpg"	=> array(extGetParam( $GLOBALS["mimes"], 'mpg', 'MPG' ),   "extension/mpg.png",   "\.mpg$"),
92
	"mpeg"	=> array(extGetParam( $GLOBALS["mimes"], 'mpeg', 'MPG'),  "extension/mpeg.png",  "\.mpeg$"),
93
	"mov"	=> array(extGetParam( $GLOBALS["mimes"], 'mov', 'MOV' ),   "extension/mov.png",   "\.mov$"),
94
	"avi"	=> array(extGetParam( $GLOBALS["mimes"], 'avi', 'AVI' ),   "extension/avi.png",   "\.avi$"),
95
	"swf"	=> array(extGetParam( $GLOBALS["mimes"], 'swf', 'SWF' ),   "extension/swf.png",   "\.swf$"),
91
	"mpg"	=> array(extGetParam( $GLOBALS["mimes"], 'mpg', 'MPG' ),   "extension/mpg.png",   ".mpg"),
92
	"mpeg"	=> array(extGetParam( $GLOBALS["mimes"], 'mpeg', 'MPG'),  "extension/mpeg.png",  ".mpeg"),
93
	"mov"	=> array(extGetParam( $GLOBALS["mimes"], 'mov', 'MOV' ),   "extension/mov.png",   ".mov"),
94
	"avi"	=> array(extGetParam( $GLOBALS["mimes"], 'avi', 'AVI' ),   "extension/avi.png",   ".avi"),
95
	"swf"	=> array(extGetParam( $GLOBALS["mimes"], 'swf', 'SWF' ),   "extension/swf.png",   ".swf"),
96 96
	
97 97
	// Micosoft / Adobe
98
	"doc"	=> array(extGetParam( $GLOBALS["mimes"], 'doc', 'Word' ),   "extension/doc.png",   "\.doc$"),
99
	"docx"	=> array(extGetParam( $GLOBALS["mimes"], 'docx', 'Word' ),  "extension/docx.png",  "\.docx$"),
100
	"xls"	=> array(extGetParam( $GLOBALS["mimes"], 'xls', 'Excel' ),   "extension/xls.png",   "\.xls$"),
101
	"xlsx"	=> array(extGetParam( $GLOBALS["mimes"], 'xlsx', 'Excel' ),  "extension/xlsx.png",  "\.xlsx$"),
102
	"rtf"	=> array(extGetParam( $GLOBALS["mimes"], 'rtf', 'Rich Text Format' ),  "extension/doc.png",  "\.rtf$"),
98
	"doc"	=> array(extGetParam( $GLOBALS["mimes"], 'doc', 'Word' ),   "extension/doc.png",   ".doc"),
99
	"docx"	=> array(extGetParam( $GLOBALS["mimes"], 'docx', 'Word' ),  "extension/docx.png",  ".docx"),
100
	"xls"	=> array(extGetParam( $GLOBALS["mimes"], 'xls', 'Excel' ),   "extension/xls.png",   ".xls"),
101
	"xlsx"	=> array(extGetParam( $GLOBALS["mimes"], 'xlsx', 'Excel' ),  "extension/xlsx.png",  ".xlsx"),
102
	"rtf"	=> array(extGetParam( $GLOBALS["mimes"], 'rtf', 'Rich Text Format' ),  "extension/doc.png",  ".rtf"),
103 103
	
104
	"pdf"	=> array(extGetParam( $GLOBALS["mimes"], 'pdf', 'PDF' ),   "extension/pdf.png",   "\.pdf$")
104
	"pdf"	=> array(extGetParam( $GLOBALS["mimes"], 'pdf', 'PDF' ),   "extension/pdf.png",   ".pdf")
105 105
);
106 106
//------------------------------------------------------------------------------
extplorer.j15.xml
2 2
<!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/component-install.dtd">
3 3
<install type="component" version="1.5.0">
4 4
<!-- Joomla! 1.5 Installer XML File
5
$Id$ -->
5
$Id: extplorer.j15.xml 247 2016-02-23 10:06:18Z soeren $ -->
6 6
    <name>eXtplorer</name>
7
    <creationDate>14.11.2014</creationDate>
7
    <creationDate>23.02.2016</creationDate>
8 8
    <author>soeren, QuiX Project</author>
9 9
    <copyright>Soeren Eberhardt-Biermann, QuiX Project</copyright>
10 10
    <license>GNU/GPL, alternative: MPL</license>
11 11
    <authorEmail>info|at|extplorer.net</authorEmail>
12 12
    <authorUrl>http://extplorer.net/</authorUrl>
13
    <version>2.1.6</version>
13
    <version>2.1.9</version>
14 14
    <description><![CDATA[
15 15
	<div align="left"><img src="components/com_extplorer/images/eXtplorer_logo.png" alt="eXtplorer Logo" /></div>
16 16
	<h2>Successfully installed eXtplorer&nbsp;</h2>
extplorer.list.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: extplorer.list.php 195 2011-05-31 06:57:32Z sloarch07 $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2011
8 8
 * @author The eXtplorer project (http://extplorer.net)
extplorer.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: extplorer.php 247 2016-02-23 10:06:18Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2010
7
 * @copyright soeren 2007-2016
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * @license
extplorer.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<extension type="component" version="3.0" method="upgrade">
3
<!-- Joomla! 3.0 Installer XML File 
4
$Id: extplorer.php 164 2010-05-03 15:06:51Z soeren $ -->
1
<?xml version="1.0" encoding="iso-8859-1" ?>
2
<mosinstall type="component">
3
<!-- Joomla! 1.0 Installer XML File 
4
$Id: extplorer.xml 247 2016-02-23 10:06:18Z soeren $ -->
5 5
    <name>eXtplorer</name>
6
    <creationDate>14.11.2014</creationDate>
6
    <creationDate>23.02.2016</creationDate>
7 7
    <author>soeren, QuiX Project</author>
8 8
    <copyright>Soeren Eberhardt-Biermann, QuiX Project</copyright>
9 9
    <authorEmail>info|-at|-extplorer.net</authorEmail>
10 10
    <authorUrl>http://extplorer.net/</authorUrl>
11
    <version>2.1.6</version>
11
    <version>2.1.9</version>
12 12
    <description><![CDATA[
13 13
	<div align="left"><img src="components/com_extplorer/images/eXtplorer_logo.png" alt="eXtplorer Logo" /></div>
14 14
	<h2>Successfully installed eXtplorer&nbsp;</h2>
......
22 22
	  <li>Changing file permissions (chmod)</li></ul><br/>and much more.<br/><br/>
23 23
	  <strong>By default restricted to Superadministrators!</strong>
24 24
	]]></description>
25
	<scriptfile>install.extplorer.php</scriptfile>
26
<updateservers>
27
    <server type="extension" priority="2" name="eXtplorer Updates">http://extplorer.net/extplorer_update.xml</server>
28
 </updateservers>
29 25
    <files><!-- Frontend Files! -->
30 26
        <filename>configuration.ext.php</filename>
31 27
        <filename>extplorer.php</filename>
......
46 42
						  UNIQUE KEY token (token),
47 43
						  KEY path (path),
48 44
						  KEY expires (expires)
49
						) ENGINE=MyISAM
45
						) TYPE=MyISAM
50 46
			</query>
51 47
			<query>CREATE TABLE IF NOT EXISTS `#__extwebdav_properties` (
52 48
						  path varchar(255) NOT NULL default '',
......
55 51
						  value text,
56 52
						  PRIMARY KEY ( `ns` ( 100 ) , `path` ( 100 ) , `name` ( 50 ) ),
57 53
						  KEY path (path)
58
						) ENGINE=MyISAM
54
						) TYPE=MyISAM
59 55
			</query>
60 56

  
61 57
	</queries>
......
66 62
				<query>DROP TABLE IF EXISTS `#__extwebdav_properties`</query>
67 63
			</queries>    	
68 64
    </uninstall>
69
    
65
    <installfile>install.extplorer.php</installfile>
70 66
    <administration>
71 67
        <menu>eXtplorer</menu>
72
        <files>		
68
        <files><!-- Backend Files! -->
73 69
				<filename>scripts.tar.gz</filename>
74 70
				<filename>CHANGELOG.txt</filename>
75 71
				<filename>README.txt</filename>
......
80 76
				<filename>config/conf.php</filename>
81 77
				<filename>config/index.html</filename>
82 78
				<filename>config/mimes.php</filename>
83
				<filename>extplorer.j30.php</filename>
84 79
				<filename>eXtplorer.ico</filename>
85 80
				<filename>fetchscript.php</filename>
86 81
				<filename>ftp_tmp/index.html</filename>
......
219 214
				<filename>include/users.php</filename>
220 215
				<filename>include/view.php</filename>
221 216
				<filename>index.php</filename>
222
				
217
				<filename>install.extplorer.php</filename>
223 218
				<filename>languages/arabic.php</filename>
224 219
				<filename>languages/arabic_mimes.php</filename>
225 220
				<filename>languages/brazilian_portuguese.php</filename>
......
469 464
				<filename>uploadhandler.php</filename>
470 465
				<filename>webdav.php</filename>
471 466
				<filename>webdav_authenticate.php</filename>
472
				<filename>webdav_table.sql.php</filename>
467
<filename>webdav_table.sql.php</filename>
473 468
		</files>
474 469
    </administration>
475
</extension>
470
</mosinstall>
fetchscript.php
9 9
* file[INDEX] (filename only)
10 10
* where INDEX is the actual number of the file to be included, so you can include multiple scripts at a time
11 11
* 
12
* @version $Id$
12
* @version $Id: fetchscript.php 246 2016-02-10 21:21:12Z soeren $
13 13
* @package eXtplorer
14 14
* @copyright Copyright (C) 2006-2007 Soeren Eberhardt. All rights reserved.
15 15
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
......
113 113
* This is necessary, because this file is (usually) located somewhere else than the CSS file! That makes
114 114
* relative URL references point to wrong directories - so we need to fix that!
115 115
*/
116
function cssUrl( $ref, $subdir ) {
116
function cssUrl( $refs  ) {
117

  
118
	$ref = $refs[1];
119

  
120
	$subdir = $GLOBALS['subdir'];
117 121
	$ref = str_replace( "'", '', stripslashes( $ref ));
118 122
	$ref = trim( str_replace( '"', '', $ref) );
119 123
	// Absolute References don't need to be fixed
120 124
	if( substr( $ref, 0, 4 ) == 'http' ) {
121 125
		return 'url( "'. $ref.'" )';
122 126
	}
127

  
123 128
	chdir( dirname( __FILE__ ).'/'.$subdir );
124 129
	$ref = str_replace( dirname( __FILE__ ), '', realpath( $ref ));
125 130
	$ref = str_replace( "\\", '/', $ref );
131

  
126 132
	return 'url( "'. substr( $ref, 1 ).'" )';
127 133

  
128 134
}
......
223 229
			$mime_type = 'text/css'; 
224 230
			header( 'Content-Type: '.$mime_type.';');
225 231
			$css = implode( '', file( $file ));
226

  
227
			$str_css =	preg_replace("/url\((.+?)\)/ie","cssUrl('\\1', '$subdir')", $css);
232
			$GLOBALS['subdir'] = $subdir;
233
			$str_css =	preg_replace_callback("/url\((.+?)\)/i", 'cssUrl', $css);
228 234
			echo $str_css;
229 235

  
230 236
			break;
include/admin.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: admin.php 242 2015-08-19 06:29:26Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2011
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * @license
11
 * @version $Id$
11
 * @version $Id: admin.php 242 2015-08-19 06:29:26Z soeren $
12 12
 * The contents of this file are subject to the Mozilla Public License
13 13
 * Version 1.1 (the "License"); you may not use this file except in
14 14
 * compliance with the License. You may obtain a copy of the License at
......
124 124
							"params": {
125 125
								option: "com_extplorer", 
126 126
								"action": "admin",
127
								"action2": "chpwd"
127
								"action2": "chpwd",
128
								"token": "<?php echo ext_getToken() ?>"
128 129
							}
129 130
						})
130 131
						}
......
174 175
				"text": "<?php echo ext_Lang::msg( 'btnadd', true ) ?>", 
175 176
				"handler": function() {
176 177
							Ext.Ajax.request( { url: "<?php echo basename($GLOBALS['script_name']) ?>",
177
								"params": { "option": "com_extplorer","action": "admin","action2": "adduser" },	
178
								"params": { "option": "com_extplorer","action": "admin","action2": "adduser",
179
								"token": "<?php echo ext_getToken() ?>" },	
178 180
								"callback": function(oElement, bSuccess, oResponse) {
179 181
											if( !bSuccess ) {
180 182
												Ext.Msg.alert( "Ajax communication failure!");
......
208 210
								return;
209 211
							}
210 212
							Ext.Ajax.request( { url: "<?php echo basename($GLOBALS['script_name']) ?>",
211
								"params": { option: "com_extplorer","action": "admin","action2": "edituser","nuser":theUser },	
213
								"params": { option: "com_extplorer","action": "admin","action2": "edituser","nuser":theUser,
214
								"token": "<?php echo ext_getToken() ?>" },	
212 215
								"callback": function(oElement, bSuccess, oResponse) {
213 216
											if( !bSuccess ) {
214 217
												Ext.Msg.alert( "Ajax communication failure!");
......
260 263
										"option": "com_extplorer", 
261 264
										"action": "admin",
262 265
										"action2": "rmuser",
263
										"user": theUser
266
										"user": theUser,
267
										"token": "<?php echo ext_getToken() ?>"
264 268
									}
265 269
								});
266 270
							});
......
278 282
}
279 283
//------------------------------------------------------------------------------
280 284
function changepwd($dir) {			// Change Password
281
	
285
	if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
286
		ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
287
	}
282 288
	if($GLOBALS['__POST']["newpwd1"]!=$GLOBALS['__POST']["newpwd2"]) {
283 289
		ext_Result::sendResult('changepwd', false, $GLOBALS["error_msg"]["miscnopassmatch"]);
284 290
	}
......
310 316
}
311 317
//------------------------------------------------------------------------------
312 318
function adduser($dir) {			// Add User
313
	if(isset($GLOBALS['__POST']["confirm"]) && $GLOBALS['__POST']["confirm"]=="true") {
319
	if(isset($GLOBALS['__POST']["confirm"]) && $GLOBALS['__POST']["confirm"]=="true" && ext_checkToken($GLOBALS['__POST']["token"]) ) {
320
	
314 321
		$user=stripslashes($GLOBALS['__POST']["nuser"]);
315 322
		if($user=="" || $GLOBALS['__POST']["home_dir"]=="") {
316 323
			ext_Result::sendResult('adduser', false, $GLOBALS["error_msg"]["miscfieldmissed"]);
......
342 349
function edituser($dir) {			// Edit User
343 350
	$user=stripslashes($GLOBALS['__POST']["nuser"]);
344 351
	$data=ext_find_user($user,NULL);
352
	if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
353
		ext_Result::sendResult('tokencheck', false, 'CSRF Token Check failed.');
354
	}
345 355
	if($data==NULL) {
346 356
		ext_Result::sendResult('edituser', false, $user.": ".$GLOBALS["error_msg"]["miscnofinduser"]);
347 357
	}
......
539 549
								user: "<?php echo @$data[0] ?>",
540 550
								"action": 'admin', 
541 551
								"action2": "<?php echo @$data[0] ? 'edituser' : 'adduser' ?>",
542
								"confirm": "true"
552
								"confirm": "true",
553
								"token": "<?php echo ext_getToken() ?>"
543 554
						}
544 555
					})
545 556
				}
......
553 564
//------------------------------------------------------------------------------
554 565
function removeuser($dir) {			// Remove User
555 566
	$user=stripslashes($GLOBALS['__POST']["user"]);
567
	if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
568
		ext_Result::sendResult('tokencheck', false, 'CSRF Token Check failed.');
569
	}
556 570
	if($user==$GLOBALS['__SESSION']['credentials_extplorer']['username']) {
557 571
		ext_Result::sendResult('removeuser', false, $GLOBALS["error_msg"]["miscselfremove"]);
558 572
	}
include/archive.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: archive.php 243 2015-08-31 18:33:58Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2011
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * @license
11
 * @version $Id$
11
 * @version $Id: archive.php 243 2015-08-31 18:33:58Z soeren $
12 12
 * The contents of this file are subject to the Mozilla Public License
13 13
 * Version 1.1 (the "License"); you may not use this file except in
14 14
 * compliance with the License. You may obtain a copy of the License at
......
46 46
		if(!$GLOBALS["zip"] && !$GLOBALS["tgz"]) {
47 47
			ext_Result::sendResult('archive', false, $GLOBALS["error_msg"]["miscnofunc"]);
48 48
		}
49
		
49

  
50
        // CSRF Security Check
51
        if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
52
            ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
53
        }
50 54
		$allowed_types = array( 'zip', 'tgz', 'tbz', 'tar' );
51 55

  
52 56
		// If we have something to archive, let's do it now
......
153 157
				'totalitems' => $cnt_filelist,
154 158
				'success' => true,
155 159
				'action' => 'archive',
160
					'token' => ext_getToken(),
156 161
				'message' => sprintf( ext_Lang::msg('processed_x_files'), $startfrom + $files_per_step, $cnt_filelist )
157 162
				);
158 163
			}
......
163 168
				}
164 169
				$response = Array( 'action' => 'archive',
165 170
				'success' => true,
171
				'token' => ext_getToken(),
166 172
				'message' => ext_Lang::msg('archive_created'),
167 173
				'newlocation' => ext_make_link( 'download', $dir, basename($archive_name) )
168 174
				);
include/authentication/extplorer.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: extplorer.php 201 2011-06-27 09:45:09Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2010
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/authentication/ftp.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: ftp.php 233 2014-02-13 20:26:27Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2011
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/authentication/ssh2.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: ssh2.php 201 2011-06-27 09:45:09Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2011
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/bookmarks.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: bookmarks.php 245 2015-09-15 20:20:03Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2011
8 8
 * @author The eXtplorer project (http://extplorer.net)
......
75 75
function ext_modify_bookmark( $task, $dir ) {
76 76
	global $my, $user, $mainframe;
77 77
	$alias = substr( extGetParam($_REQUEST,'alias'), 0, 150 );
78
	// CSRF Security Check
79
	if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
80
		ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
81
	}
78 82
	$bookmarks = read_bookmarks();
79 83
		$bookmarkfile = _EXT_PATH.'/config/bookmarks_'.$GLOBALS['file_mode'].'_';
80 84
	if( empty( $my->id )) {
......
176 180
						.'requestType: \'xmlhttprequest\', '
177 181
						.'alias: text, '
178 182
						.'dir: \''.$dir.'\', '
183
						.'token: \''.ext_getToken().'\', '
179 184
						.'option: \'com_extplorer\' '
180 185
					.'} '
181 186
				.'}); '
......
193 198
						.'action:\'modify_bookmark\', '
194 199
						.'task: \'remove\', '
195 200
						.'dir: \''.$dir.'\', '
201
						.'token: \''.ext_getToken().'\', '
196 202
						.'option: \'com_extplorer\' '
197 203
					.'} '
198 204
				.'}); '
include/chmod.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: chmod.php 243 2015-08-31 18:33:58Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2009
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * 
......
42 42

  
43 43
		if(($GLOBALS["permissions"]&01)!=01) ext_Result::sendResult( 'chmod', false, $GLOBALS["error_msg"]["accessfunc"]);
44 44

  
45
        // CSRF Security Check
46
        if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
47
            ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
48
        }
45 49
		if( !empty($GLOBALS['__POST']["selitems"])) {
46 50
			$cnt=count($GLOBALS['__POST']["selitems"]);
47 51

  
......
210 214
					"action": "chmod", 
211 215
					"dir": "<?php echo stripslashes($GLOBALS['__POST']["dir"]) ?>", 
212 216
					"selitems[]": ['<?php echo implode("','", $GLOBALS['__POST']["selitems"]) ?>'], 
213
					confirm: 'true'
217
					confirm: 'true',
218
					token: "<?php echo ext_getToken() ?>"
214 219
				}
215 220
			});
216 221
		}
include/copy_move.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: copy_move.php 242 2015-08-19 06:29:26Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2011
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 *
......
42 42
		ext_Result::sendResult( $action, false, $GLOBALS["error_msg"]["accessfunc"]);
43 43
	}
44 44

  
45
    // CSRF Security Check
46
    if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
47
        ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
48
    }
45 49
	// Vars
46 50
	$first = extGetParam($GLOBALS['__POST'], 'first' );
47 51
	if($first=="y") $new_dir=$dir;
include/delete.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: delete.php 242 2015-08-19 06:29:26Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * 
......
44 44
		// delete files/dirs
45 45
		if(($GLOBALS["permissions"]&01)!=01) 
46 46
		ext_Result::sendResult('delete', false, $GLOBALS["error_msg"]["accessfunc"]);
47

  
47
        // CSRF Security Check
48
        if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
49
            ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
50
        }
48 51
		$cnt = count($GLOBALS['__POST']["selitems"]);
49 52
		$err = false;
50 53

  
......
94 97
		ext_Result::sendResult('delete', true, $GLOBALS['messages']['success_delete_file'] );
95 98
	}
96 99
}
97
//------------------------------------------------------------------------------
98
?>
include/diff.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: diff.php 201 2011-06-27 09:45:09Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright Geoffrey Tran 2009
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/download.php
2 2
// ensure this file is being included by a parent file
3 3
if (!defined('_JEXEC') && !defined('_VALID_MOS')) die('Restricted access');
4 4
/**
5
 * @version $Id$
5
 * @version $Id: download.php 211 2012-02-02 13:46:39Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2011
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/edit.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: edit.php 242 2015-08-19 06:29:26Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2009
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * 
......
70 70
			ext_Result::sendResult('edit', false, $item.": ".ext_Lang::err('accessfile' ));
71 71
		}
72 72

  
73
        // CSRF Security Check
74
        if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
75
            ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
76
        }
73 77
		if(isset($GLOBALS['__POST']["dosave"]) && $GLOBALS['__POST']["dosave"]=="yes") {
74 78
			// Save / Save As
75 79
			$item=basename(stripslashes($GLOBALS['__POST']["fname"]));
......
208 212
						code: editAreaLoader.getValue("ext_codefield<?php echo $id_hash ?>"),
209 213
						dir: '<?php echo stripslashes($dir) ?>', 
210 214
						item: '<?php echo stripslashes($item) ?>', 
211
						dosave: 'yes'
215
						dosave: 'yes',
216
                        token: "<?php echo ext_getToken() ?>"
212 217
				}
213 218
			});
214 219
		},
......
237 242
					action: 'edit', 
238 243
					dir: '<?php echo stripslashes($dir) ?>', 
239 244
					item: '<?php echo stripslashes($item) ?>', 
240
					doreopen: 'yes'
245
					doreopen: 'yes',
246
                    token: "<?php echo ext_getToken() ?>"
241 247
				}
242 248
			});
243 249
		},	
include/extract.php
3 3
if( ! defined( '_JEXEC' ) && ! defined( '_VALID_MOS' ) )
4 4
	die( 'Restricted access' ) ;
5 5
/**
6
 * @version $Id$
6
 * @version $Id: extract.php 242 2015-08-19 06:29:26Z soeren $
7 7
 * @package eXtplorer
8
 * @copyright soeren 2007-2010
8
 * @copyright soeren 2007-2015
9 9
 * @author The eXtplorer project (http://extplorer.net)
10 10
 * 
11 11
 * @license
......
43 43
		if( ! ext_isArchive( $item ) ) {
44 44
			ext_Result::sendResult( 'archive', false, $item.': '.ext_Lang::err( 'extract_noarchive' ) ) ;
45 45
		} else {
46

  
46
            // CSRF Security Check
47
            if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
48
                ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
49
            }
47 50
			$archive_name = realpath( get_abs_item( $dir, $item ) ) ;
48 51

  
49 52
			if( empty( $dir ) ) {
include/functions.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: functions.php 246 2016-02-10 21:21:12Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2011
8 8
 * @author The eXtplorer project (http://extplorer.net)
......
255 255
	if( isset($abs_item['name'])) {
256 256
		$abs_item = $abs_item['name'];
257 257
	}
258
	return @eregi($GLOBALS["images_ext"], $abs_item);
258
	return in_array(pathinfo($abs_item,PATHINFO_EXTENSION ), $GLOBALS["images_ext"]);
259 259
}
260 260
//-----------------------------------------------------------------------------
261 261
function get_is_editable( $abs_item ) {		// is this file editable?
......
264 264
	if( is_array( $abs_item ) ) {
265 265
		$abs_item = $abs_item['name'];
266 266
	}
267
	if(preg_match('/'.$GLOBALS["editable_ext"].'/i',$abs_item)) return true;
267

  
268
	if(in_array(".".strtolower(pathinfo($abs_item,PATHINFO_EXTENSION )), $GLOBALS["editable_ext"])) {
269
		return true;
270
	}
268 271

  
269 272
	return strpos( basename($abs_item), "." ) ? false : true;
270 273

  
......
286 289
				// mime_type
287 290
	foreach($GLOBALS["used_mime_types"] as $mime) {
288 291
		list($desc,$img,$ext)	= $mime;
289
		if(@eregi($ext,basename($abs_item) )) {
292

  
293
		if(stristr(basename($abs_item), $ext )) {
290 294
			$mime_type	= $desc;
291 295
			$image		= $img;
292 296
			if($query=="img") return $image;
......
296 300

  
297 301
	if((function_exists("is_executable") &&
298 302
		@is_executable( $abs_item )) ||
299
		@eregi($GLOBALS["super_mimes"]["exe"][2],$abs_item))
303
		@stristr($abs_item,$GLOBALS["super_mimes"]["exe"][2]))
300 304
	{						// executable
301 305
		$mime_type	= $GLOBALS["super_mimes"]["exe"][0];
302 306
		$image		= $GLOBALS["super_mimes"]["exe"][1];
......
305 309
		$image		= $GLOBALS["super_mimes"]["file"][1];
306 310
	}
307 311

  
308
	if($query=="img") 
309
	return $image;
310
	else 
311
	return $mime_type . $extra;
312
	if($query=="img") {
313
		return $image;
314
	}
315
	else {
316
		return $mime_type . $extra;
317
	}
312 318
}
313 319
//------------------------------------------------------------------------------
314 320
function get_show_item($dir, $item) {		// show this file?
......
563 569
	$real_dir = @realpath($abs_dir);
564 570

  
565 571
	if($real_home===false || $real_dir===false) {
566
		if(@eregi("\\.\\.",$abs_dir)) return false;
572
		if(@stristr($abs_dir,"\\.\\.")) return false;
567 573
	} else if(strcmp($real_home,@substr($real_dir,0,strlen($real_home)))) {
568 574
		return false;
569 575
	}
......
857 863
	* Constructor
858 864
	* @param string A prefix for mark messages
859 865
	*/
860
	function extProfiler( $prefix='' ) {
866
	function __construct( $prefix='' ) {
861 867
		$this->start = $this->getmicrotime();
862 868
		$this->prefix = $prefix;
863 869
	}
......
1178 1184
				if (is_null( $noHtmlFilter )) {
1179 1185
					$noHtmlFilter = new InputFilter( /* $tags, $attr, $tag_method, $attr_method, $xss_auto */ );
1180 1186
				}
1181
				$return = $noHtmlFilter->process( $return );
1187

  
1188
				$return = $noHtmlFilter->sanitize( array($return) )[0];
1182 1189

  
1183 1190
				if (empty($return) && is_numeric($def)) {
1184 1191
				// if value is defined and default value is numeric set variable type to integer
......
1432 1439
 * @param string $id
1433 1440
 * @return string
1434 1441
 */
1435
function get_session_id( $id=null ) {
1442
function generate_session_id( $id=null ) {
1436 1443
	return extMakePassword( 32 );
1437 1444
}
1445
function ext_getToken() {
1446
    return md5(session_id());
1447
}
1448
function ext_checkToken($token) {
1449
    return md5(session_id()) == $token;
1450
}
include/header.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: header.php 231 2013-09-04 18:12:47Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2012
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/init.php
2 2
// ensure this file is being included by a parent file
3 3
if (!defined('_JEXEC') && !defined('_VALID_MOS')) die('Restricted access');
4 4
/**
5
 * @version $Id$
5
 * @version $Id: init.php 238 2014-11-08 21:26:18Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2011
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/list.php
2 2
// ensure this file is being included by a parent file
3 3
if ( !defined('_JEXEC') && !defined('_VALID_MOS')) die('Restricted access');
4 4
/**
5
 * @version $Id$
5
 * @version $Id: list.php 246 2016-02-10 21:21:12Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2014
7
 * @copyright soeren 2007-2016
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * 
......
375 375
}
376 376
class ext_List extends ext_Action {
377 377

  
378
	function execAction($dir) {			// list directory contents
378
	function execAction($dir, $item='') {			// list directory contents
379 379
		global $dir_up, $mosConfig_live_site, $_VERSION;
380 380

  
381 381
		$allow = ($GLOBALS["permissions"]&01) == 01;
include/login.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: login.php 242 2015-08-19 06:29:26Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2009
8 8
 * @author The eXtplorer project (http://extplorer.net)
......
113 113
		exit();
114 114
	}
115 115
	session_write_close();
116
	session_id( get_session_id() );
116
	session_id( generate_session_id() );
117 117
	session_start();
118 118
	// Ask for Login
119 119
	$GLOBALS['mainframe']->setPageTitle( ext_Lang::msg('actlogin') );
include/mkitem.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: mkitem.php 245 2015-09-15 20:20:03Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2011
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * 
......
41 41
		if(($GLOBALS["permissions"]&01)!=01) ext_Result::sendResult( 'mkitem', false, $GLOBALS["error_msg"]["accessfunc"]);
42 42

  
43 43
		if( extGetParam($_POST,'confirm') == 'true') {
44
            // CSRF Security Check
45
            if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
46
                ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
47
            }
44 48
			$mkname=$GLOBALS['__POST']["mkname"];
45 49
			$mktype=$GLOBALS['__POST']["mktype"];
46 50
			$symlink_target = $GLOBALS['__POST']['symlink_target'];
......
146 150
					params: {option: "com_extplorer", 
147 151
							action: "mkitem", 
148 152
							dir: datastore.directory, 
149
							confirm: "true"}
153
							confirm: "true",
154
							token: "<?php echo ext_getToken() ?>"
155
					}
150 156
				})
151 157
			}
152 158
		},{
include/rename.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: rename.php 245 2015-09-15 20:20:03Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2009
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * 
......
44 44
		}
45 45

  
46 46
		if(isset($GLOBALS['__POST']["confirm"]) && $GLOBALS['__POST']["confirm"]=="true") {
47

  
47
            // CSRF Security Check
48
            if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
49
                ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
50
            }
48 51
			$newitemname=$GLOBALS['__POST']["newitemname"];
49 52
			$newitemname=trim(basename(stripslashes($newitemname)));
50 53

  
......
142 145
					action: 'rename', 
143 146
					dir: '<?php echo stripslashes($dir) ?>', 
144 147
					item: '<?php echo stripslashes($item) ?>', 
145
					confirm: 'true'
148
					confirm: 'true',
149
					token: "<?php echo ext_getToken() ?>"
146 150
				}
147 151
			});
148 152
		}
include/result.class.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: result.class.php 232 2014-02-13 20:08:10Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2010
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/search.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: search.php 237 2014-04-25 11:47:48Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2014
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/system_info.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: system_info.php 230 2013-03-15 21:17:35Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2009
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/transfer.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: transfer.php 242 2015-08-19 06:29:26Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2009
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @license
10 10
 * The contents of this file are subject to the Mozilla Public License
......
51 51
		//DEBUG ext_Result::sendResult('transfer', false, $dir );
52 52
		// Execute
53 53
		if(isset($GLOBALS['__POST']["confirm"]) && $GLOBALS['__POST']["confirm"]=="true") {
54

  
54
            // CSRF Security Check
55
            if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
56
                ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
57
            }
55 58
			$cnt=count($GLOBALS['__POST']['userfile']);
56 59
			$err=false;
57 60
			foreach($this->_downloadMethods as $method ) {
include/upload.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: upload.php 242 2015-08-19 06:29:26Z soeren $
6 6
 * @package eXtplorer
7
 * @copyright soeren 2007-2009
7
 * @copyright soeren 2007-2015
8 8
 * @author The eXtplorer project (http://extplorer.net)
9 9
 * @author The	The QuiX project (http://quixplorer.sourceforge.net)
10 10
 * @license
......
44 44

  
45 45
		// Execute
46 46
		if(isset($GLOBALS['__POST']["confirm"]) && $GLOBALS['__POST']["confirm"]=="true") {
47
				
47
            // CSRF Security Check
48
            if( !ext_checkToken($GLOBALS['__POST']["token"]) ) {
49
                ext_Result::sendResult('tokencheck', false, 'Request failed: Security Token not valid.');
50
            }
48 51
			if( isset($GLOBALS['__FILES']['Filedata'])) {
49 52
				// Re-Map the flash-uploaded file with the name "Filedata" to the "userfile" array
50 53
				$GLOBALS['__FILES']['userfile'] = array(
......
243 246
						"action": "upload", 
244 247
						"dir": datastore.directory,
245 248
						"requestType": "xmlhttprequest",
246
						"confirm": "true"
249
						"confirm": "true",
250
                        "token": "<?php echo ext_getToken() ?>"
247 251
					}
248 252
				});
249 253
			}
......
304 308
						"option": "com_extplorer", 
305 309
						"action": "transfer", 
306 310
						"dir": datastore.directory,
307
						"confirm": 'true'
311
						"confirm": 'true',
312
                        "token": "<?php echo ext_getToken() ?>"
308 313
					}
309 314
				});
310 315
			}
include/users.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: users.php 226 2012-12-25 06:51:02Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2009
8 8
 * @author The eXtplorer project (http://extplorer.net)
include/view.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
 * @version $Id$
5
 * @version $Id: view.php 211 2012-02-02 13:46:39Z soeren $
6 6
 * @package eXtplorer
7 7
 * @copyright soeren 2007-2011
8 8
 * @author The eXtplorer project (http://extplorer.net)
index.php
1 1
<?php
2 2
/**
3
 * @version $Id$
3
 * @version $Id: index.php 232 2014-02-13 20:08:10Z soeren $
4 4
 * @package eXtplorer
5 5
 * @copyright soeren 2007-2010
6 6
 * @author The eXtplorer project (http://joomlacode.org/gf/project/eXtplorer/)
install.extplorer.php
2 2
// ensure this file is being included by a parent file
3 3
if( !defined( '_JEXEC' ) && !defined( '_VALID_MOS' ) ) die( 'Restricted access' );
4 4
/**
5
* @version $Id$
5
* @version $Id: install.extplorer.php 245 2015-09-15 20:20:03Z soeren $
6 6
* @package eXtplorer
7 7
* @copyright (C) 2005-2008 Soeren
8 8
* @license GNU / GPL
......
32 32
		$extract_dir = $mypath.'/';
33 33
		
34 34
		$result = extArchive::extract( $archive_name, $extract_dir );
35
		if( !PEAR::isError( $result )) {
35
		if( !@PEAR::isError( $result )) {
36 36
			unlink( $archive_name );
37 37
		} else {
38 38
			echo '<pre style="color:white; font-weight:bold; background-color:red;">Error!
......
64 64
			public function install( $adapter){
65 65
				$adminpath = JPATH_SITE.'/administrator/components/com_extplorer';
66 66
				com_install($adminpath);
67
				if(JVersion::isCompatible('3.0')) rename($adminpath.'/extplorer.j30.php', $adminpath.'/extplorer.php');
67
				$version = new JVersion;
68
				if($version->isCompatible('3.0')) rename($adminpath.'/extplorer.j30.php', $adminpath.'/extplorer.php');
68 69
				return true;
69 70
			}
70 71
			/**
languages/english.php
1 1
<?php
2
// $Id$
2
// $Id: english.php 195 2011-05-31 06:57:32Z sloarch07 $
3 3
// English Language Module for v2.3 (translated by the QuiX project)
4 4
// Additional translation by sloarch, mic, Paulino Michelazzo
5 5

  
languages/polish.php
1 1
<?php
2
// $Id$
2
// $Id: polish.php 195 2011-05-31 06:57:32Z sloarch07 $
3 3
// Polish Language Module for v2.3 (translated by l0co@wp.pl)
4 4
// Additional translation and corrections 2010-07-24 by marcin@nevada.pl
5 5

  
languages/slovenian.php
1 1
<?php
2
// $Id$
2
// $Id: slovenian.php 195 2011-05-31 06:57:32Z sloarch07 $
3 3
// Slovenian Language Module for v2.3 (translated by KSi)
4 4
global $_VERSION;
5 5

  
languages/swedish.php
1 1
<?php
2
// $Id$
2
// $Id: swedish.php 195 2011-05-31 06:57:32Z sloarch07 $
3 3
// Swedish Language Module for v2.3 (translated by the Olle Zettergren)
4 4
global $_VERSION;
5 5

  
libraries/Archive/archive.php
27 27
	 * @param	string	Directory to unpack into
28 28
	 * @return	boolean	True for success
29 29
	 */
30
	function extract( $archivename, $extractdir ) {
30
	static function extract( $archivename, $extractdir ) {
31 31
		require_once( dirname(__FILE__). '/file.php' ) ;
32 32
		require_once( dirname(__FILE__). '/folder.php' ) ;
33 33

  
libraries/Archive/file.php
29 29
	 * @return string The file extension
30 30
	 * @since 1.5
31 31
	 */
32
	function getExt($file) {
32
	static function getExt($file) {
33 33
		$dot = strrpos($file, '.') + 1;
34 34
		return substr($file, $dot);
35 35
	}
......
41 41
	 * @return string The file name without the extension
42 42
	 * @since 1.5
43 43
	 */
44
	function stripExt($file) {
44
	static function stripExt($file) {
45 45
		return preg_replace('#\.[^.]*$#', '', $file);
46 46
	}
47 47

  
......
52 52
	 * @return string The sanitised string
53 53
	 * @since 1.5
54 54
	 */
55
	function makeSafe($file) {
55
	static function makeSafe($file) {
56 56
		$regex = array('#(\.){2,}#', '#[^A-Za-z0-9\.\_\- ]#', '#^\.#');
57 57
		return preg_replace($regex, '', $file);
58 58
	}
......
69 69
	 * @return mixed Returns file contents or boolean False if failed
70 70
	 * @since 1.5
71 71
	 */
72
	function read($filename, $incpath = false, $amount = 0, $chunksize = 8192, $offset = 0)
72
	static function read($filename, $incpath = false, $amount = 0, $chunksize = 8192, $offset = 0)
73 73
	{
74 74
		// Initialize variables
75 75
		$data = null;
......
110 110
	 * @return boolean True if path is a file
111 111
	 * @since 1.5
112 112
	 */
113
	function exists($file)
113
	static function exists($file)
114 114
	{
115 115
		return is_file(extPath::clean($file));
116 116
	}
......
122 122
	 * @return string filename
123 123
	 * @since 1.5
124 124
	 */
125
	function getName($file) {
125
	static function getName($file) {
126 126
		$slash = strrpos($file, DS);
127 127
		if ($slash !== false) {
128 128
			return substr($file, $slash + 1);
libraries/Console/Getopt.php
1 1
<?php
2 2
/* vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +----------------------------------------------------------------------+
4
// | PHP Version 4                                                        |
5
// +----------------------------------------------------------------------+
6
// | Copyright (c) 1997-2003 The PHP Group                                |
7
// +----------------------------------------------------------------------+
8
// | This source file is subject to version 3.0 of the PHP license,       |
9
// | that is bundled with this package in the file LICENSE, and is        |
10
// | available through the world-wide-web at the following url:           |
11
// | http://www.php.net/license/3_0.txt.                                  |
12
// | If you did not receive a copy of the PHP license and are unable to   |
13
// | obtain it through the world-wide-web, please send a note to          |
14
// | license@php.net so we can mail you a copy immediately.               |
15
// +----------------------------------------------------------------------+
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff