diff --git a/dev/dbmodel/emulate_oscommerce/llx_osc_categories.sql b/dev/dbmodel/emulate_oscommerce/llx_osc_categories.sql index 84bfd1e65584cf55e56f3a256024a337b94d5e26..23a96cc996b9691272ff575f9017a58aafcc7251 100755 --- a/dev/dbmodel/emulate_oscommerce/llx_osc_categories.sql +++ b/dev/dbmodel/emulate_oscommerce/llx_osc_categories.sql @@ -23,4 +23,4 @@ CREATE TABLE llx_osc_categories ( PRIMARY KEY (rowid), UNIQUE KEY dolicatid (dolicatid), UNIQUE KEY osccatid (osccatid) -) TYPE=InnoDB COMMENT='Correspondance categorie Dolibarr categorie OSC'; +) ENGINE=InnoDB COMMENT='Correspondance categorie Dolibarr categorie OSC'; diff --git a/dev/dbmodel/emulate_oscommerce/llx_osc_customer.sql b/dev/dbmodel/emulate_oscommerce/llx_osc_customer.sql index 1d3a65615ee29a8b0a43a2a90381314b7013fc87..3f878e97ff54a9d1185035ce468f4e34d397a29f 100755 --- a/dev/dbmodel/emulate_oscommerce/llx_osc_customer.sql +++ b/dev/dbmodel/emulate_oscommerce/llx_osc_customer.sql @@ -22,4 +22,4 @@ CREATE TABLE llx_osc_customer ( fk_soc int(11) NOT NULL default '0', PRIMARY KEY (rowid), UNIQUE KEY fk_soc (fk_soc) -) TYPE=InnoDB COMMENT='Table transition client OSC - societe Dolibarr'; +) ENGINE=InnoDB COMMENT='Table transition client OSC - societe Dolibarr'; diff --git a/dev/dbmodel/emulate_oscommerce/llx_osc_order.sql b/dev/dbmodel/emulate_oscommerce/llx_osc_order.sql index 8927849df6c1888d7bc7117b520e5181609b742f..a2cb1ad814644a2ece3ce6b49a66ec8b40c3cf54 100755 --- a/dev/dbmodel/emulate_oscommerce/llx_osc_order.sql +++ b/dev/dbmodel/emulate_oscommerce/llx_osc_order.sql @@ -22,4 +22,4 @@ CREATE TABLE llx_osc_order ( fk_commande int(11) NOT NULL default '0', PRIMARY KEY (rowid), UNIQUE KEY fk_commande (fk_commande) -) TYPE=InnoDB COMMENT='Table transition commande OSC - commande Dolibarr'; +) ENGINE=InnoDB COMMENT='Table transition commande OSC - commande Dolibarr'; diff --git a/dev/dbmodel/emulate_oscommerce/llx_osc_product.sql b/dev/dbmodel/emulate_oscommerce/llx_osc_product.sql index 9b7e463aa19259aaa46247621c182ecdb4bc55dc..dba9ca1fef184580d894107caff165fe9ade8458 100755 --- a/dev/dbmodel/emulate_oscommerce/llx_osc_product.sql +++ b/dev/dbmodel/emulate_oscommerce/llx_osc_product.sql @@ -22,6 +22,6 @@ CREATE TABLE llx_osc_product ( fk_product int(11) NOT NULL default '0', PRIMARY KEY (rowid), UNIQUE KEY fk_product (fk_product) -) TYPE=InnoDB COMMENT='Table transition produit OSC - produit Dolibarr'; +) ENGINE=InnoDB COMMENT='Table transition produit OSC - produit Dolibarr'; diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 8c39f3a8fe7e4528a3409882d1bf63a1905537aa..5db40f5cdbd151398ac1fc948d9a1a1fd0cf04ca 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -111,7 +111,7 @@ foreach ($modulesdir as $dir) { // Load modules attributes in arrays (name, numero, orders) from dir directory //print $dir."\n<br>"; - dol_syslog("Scan directory ".$dir." for modules"); + dol_syslog("Scan directory ".$dir." for module descriptor files (modXXX.class.php)"); $handle=@opendir($dir); if (is_resource($handle)) { diff --git a/htdocs/admin/system/database-tables.php b/htdocs/admin/system/database-tables.php index b634d98e6b7969f0ddc74daeb434d8395e745c94..abba79fc5cc17f779c5b27cc1363d3596cadc216 100644 --- a/htdocs/admin/system/database-tables.php +++ b/htdocs/admin/system/database-tables.php @@ -32,7 +32,7 @@ if (!$user->admin) accessforbidden(); if ($_GET["action"] == 'convert') { - $db->query("alter table ".$_GET["table"]." type=INNODB"); + $db->query("alter table ".$_GET["table"]." ENGINE=INNODB"); } diff --git a/htdocs/core/modules/modCommissions.class.php b/htdocs/core/modules/modCommissions.class.php index 0dbaa7690d8b5eae2d7cdc178051f65737161b55..8335ffe7b2be88e0cf1dd986c4371a7f38999957 100644 --- a/htdocs/core/modules/modCommissions.class.php +++ b/htdocs/core/modules/modCommissions.class.php @@ -54,11 +54,11 @@ class modCommissions extends DolibarrModules // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) $this->description = "Commissions management"; // Possible values for version are: 'development', 'experimental', 'dolibarr' or version - $this->version = 'dolibarr'; + $this->version = 'experimental'; // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase) $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); // Where to store the module in setup page (0=common,1=interface,2=other) - $this->special = 0; + $this->special = 2; // Name of png file (without png) used for this module. // Png file must be in theme/yourtheme/img directory under name object_pictovalue.png. $this->picto='commissions'; diff --git a/htdocs/core/modules/modMargin.class.php b/htdocs/core/modules/modMargin.class.php index f94193393fca3890fc36666ce8fb797f8c99c3bc..082fd821acf795eb1cc9ac52d553b8a044c5b530 100644 --- a/htdocs/core/modules/modMargin.class.php +++ b/htdocs/core/modules/modMargin.class.php @@ -16,7 +16,7 @@ */ /** \defgroup margin Module Margin - * \brief Example of a module descriptor. + * \brief Module to manage margins * \file htdocs/includes/modules/modMargin.class.php * \ingroup margin * \brief Description and activation file for module Margin @@ -52,11 +52,11 @@ class modMargin extends DolibarrModules // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) $this->description = "Margin management"; // Possible values for version are: 'development', 'experimental', 'dolibarr' or version - $this->version = 'dolibarr'; + $this->version = 'experimental'; // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase) $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); // Where to store the module in setup page (0=common,1=interface,2=other) - $this->special = 0; + $this->special = 2; // Name of png file (without png) used for this module. // Png file must be in theme/yourtheme/img directory under name object_pictovalue.png. $this->picto='margin'; diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php index 1b2fb5a5d2e310160b73cbabb502d3f8cc080500..c8d638c779e70b80c9aa49ed2de8143fd2746732 100644 --- a/htdocs/ecm/index.php +++ b/htdocs/ecm/index.php @@ -315,7 +315,7 @@ if ($action == 'refreshmanual') //print "xx".$_SESSION["dol_screenheight"]; $maxheightwin=(isset($_SESSION["dol_screenheight"]) && $_SESSION["dol_screenheight"] > 500)?($_SESSION["dol_screenheight"]-166):660; $morejs=array(); -if (empty($conf->global->MAIN_ECM_DISABLE_JS)) $morejs=array("/filemanager/includes/jqueryFileTree/jqueryFileTree.js"); // TODO Move lib into includes +if (empty($conf->global->MAIN_ECM_DISABLE_JS)) $morejs=array("/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.js"); $moreheadcss=" <!-- dol_screenheight=".$_SESSION["dol_screenheight"]." --> <style type=\"text/css\"> diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.asp b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.asp new file mode 100755 index 0000000000000000000000000000000000000000..41eb5b4d5b779e78722e9dd728b492c59f24887d --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.asp @@ -0,0 +1,44 @@ +<% +' +' jQuery File Tree ASP (VBS) Connector +' Copyright 2008 Chazzuka +' programmer@chazzuka.com +' http://www.chazzuka.com/ +' +' retrive base directory +dim BaseFileDir:BaseFileDir=Request.Form("dir") +' if blank give default value +if len(BaseFileDir)=0 then BaseFileDir="/userfiles/" + +dim ObjFSO,BaseFile,Html +' resolve the absolute path +BaseFile = Server.MapPath(BaseFileDir)&"\" +' create FSO +Set ObjFSO = Server.CreateObject("Scripting.FileSystemObject") +' if given folder is exists +if ObjFSO.FolderExists(BaseFile) then + dim ObjFolder,ObjSubFolder,ObjFile,i__Name,i__Ext + Html = Html + "<ul class=""jqueryFileTree"" style=""display: none;"">"&VBCRLF + Set ObjFolder = ObjFSO.GetFolder(BaseFile) + ' LOOP THROUGH SUBFOLDER + For Each ObjSubFolder In ObjFolder.SubFolders + i__Name=ObjSubFolder.name + Html = Html + "<li class=""directory collapsed"">"&_ + "<a href=""#"" rel="""+(BaseFileDir+i__Name+"/")+""">"&_ + (i__Name)+"</a></li>"&VBCRLF + Next + 'LOOP THROUGH FILES + For Each ObjFile In ObjFolder.Files + ' name + i__Name=ObjFile.name + ' extension + i__Ext = LCase(Mid(i__Name, InStrRev(i__Name, ".", -1, 1) + 1)) + Html = Html + "<li class=""file ext_"&i__Ext&""">"&_ + "<a href=""#"" rel="""+(BaseFileDir+i__Name)+""">"&_ + (i__name)+"</a></li>"&VBCRLF + Next + Html = Html + "</ul>"&VBCRLF +end if + +Response.Write Html +%> \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.aspx b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.aspx new file mode 100755 index 0000000000000000000000000000000000000000..f8443ae71230ade176cc31efaa2e0c7238d21920 --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.aspx @@ -0,0 +1,31 @@ +<%@ Page Language="C#" AutoEventWireup="true" %> + +<% + // + // jQuery File Tree ASP Connector + // + // Version 1.0 + // + // Copyright (c)2008 Andrew Sweeny + // asweeny@fit.edu + // 24 March 2008 + // + string dir; + if(Request.Form["dir"] == null || Request.Form["dir"].Length <= 0) + dir = "/"; + else + dir = Server.UrlDecode(Request.Form["dir"]); + System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(dir); + Response.Write("<ul class=\"jqueryFileTree\" style=\"display: none;\">\n"); + foreach (System.IO.DirectoryInfo di_child in di.GetDirectories()) + Response.Write("\t<li class=\"directory collapsed\"><a href=\"#\" rel=\"" + dir + di_child.Name + "/\">" + di_child.Name + "</a></li>\n"); + foreach (System.IO.FileInfo fi in di.GetFiles()) + { + string ext = ""; + if(fi.Extension.Length > 1) + ext = fi.Extension.Substring(1).ToLower(); + + Response.Write("\t<li class=\"file ext_" + ext + "\"><a href=\"#\" rel=\"" + dir + fi.Name + "\">" + fi.Name + "</a></li>\n"); + } + Response.Write("</ul>"); + %> \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.cf b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.cf new file mode 100755 index 0000000000000000000000000000000000000000..815f83b6ed6daa6b34d5cdef51cd94370de49dad --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.cf @@ -0,0 +1,19 @@ +<!--- + +jQuery File Tree +ColdFusion connector script +By Tjarko Rikkerink (http://carlosgallupa.com/) + +---> +<cfparam name="form.dir" default="/somedir" /> +<cfdirectory action="LIST" directory="#expandpath('#URLDecode(form.dir)#')#" name="qDir" sort="type, name" type="all" listinfo="all" recurse="no"> + +<ul class="jqueryFileTree" style="display: none;"> + <cfoutput query="qDir"> + <cfif type eq "dir"> + <li class="directory collapsed"><a href="##" rel="#URLDecode(form.dir)##name#/">#name#</a></li> + <cfelseif type eq "file"> + <li class="file ext_#listLast(name,'.')#"><a href="##" rel="#URLDecode(form.dir)##name#">#name# (#round(size/1024)#KB)</a></li> + </cfif> + </cfoutput> +</ul> \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.jsp b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.jsp new file mode 100755 index 0000000000000000000000000000000000000000..27b3420217490748a2f7c659c07860f4fa580d42 --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.jsp @@ -0,0 +1,49 @@ +<%@ page + import="java.io.File,java.io.FilenameFilter,java.util.Arrays"%> +<% +/** + * jQuery File Tree JSP Connector + * Version 1.0 + * Copyright 2008 Joshua Gould + * 21 April 2008 +*/ + String dir = request.getParameter("dir"); + if (dir == null) { + return; + } + + if (dir.charAt(dir.length()-1) == '\\') { + dir = dir.substring(0, dir.length()-1) + "/"; + } else if (dir.charAt(dir.length()-1) != '/') { + dir += "/"; + } + + dir = java.net.URLDecoder.decode(dir, "UTF-8"); + + if (new File(dir).exists()) { + String[] files = new File(dir).list(new FilenameFilter() { + public boolean accept(File dir, String name) { + return name.charAt(0) != '.'; + } + }); + Arrays.sort(files, String.CASE_INSENSITIVE_ORDER); + out.print("<ul class=\"jqueryFileTree\" style=\"display: none;\">"); + // All dirs + for (String file : files) { + if (new File(dir, file).isDirectory()) { + out.print("<li class=\"directory collapsed\"><a href=\"#\" rel=\"" + dir + file + "/\">" + + file + "</a></li>"); + } + } + // All files + for (String file : files) { + if (!new File(dir, file).isDirectory()) { + int dotIndex = file.lastIndexOf('.'); + String ext = dotIndex > 0 ? file.substring(dotIndex + 1) : ""; + out.print("<li class=\"file ext_" + ext + "\"><a href=\"#\" rel=\"" + dir + file + "\">" + + file + "</a></li>"); + } + } + out.print("</ul>"); + } +%> \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.php b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.php new file mode 100755 index 0000000000000000000000000000000000000000..d983e2f1a442d54be6e95192a2598b2ad33238af --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.php @@ -0,0 +1,43 @@ +<?php +// +// jQuery File Tree PHP Connector +// +// Version 1.01 +// +// Cory S.N. LaViska +// A Beautiful Site (http://abeautifulsite.net/) +// 24 March 2008 +// +// History: +// +// 1.01 - updated to work with foreign characters in directory/file names (12 April 2008) +// 1.00 - released (24 March 2008) +// +// Output a list of files for jQuery File Tree +// + +$_POST['dir'] = urldecode($_POST['dir']); + +if( file_exists($root . $_POST['dir']) ) { + $files = scandir($root . $_POST['dir']); + natcasesort($files); + if( count($files) > 2 ) { /* The 2 accounts for . and .. */ + echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">"; + // All dirs + foreach( $files as $file ) { + if( file_exists($root . $_POST['dir'] . $file) && $file != '.' && $file != '..' && is_dir($root . $_POST['dir'] . $file) ) { + echo "<li class=\"directory collapsed\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . $file) . "/\">" . htmlentities($file) . "</a></li>"; + } + } + // All files + foreach( $files as $file ) { + if( file_exists($root . $_POST['dir'] . $file) && $file != '.' && $file != '..' && !is_dir($root . $_POST['dir'] . $file) ) { + $ext = preg_replace('/^.*\./', '', $file); + echo "<li class=\"file ext_$ext\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . $file) . "\">" . htmlentities($file) . "</a></li>"; + } + } + echo "</ul>"; + } +} + +?> \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.pl b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.pl new file mode 100755 index 0000000000000000000000000000000000000000..200701695b7902deac440cea625119bc3fb1d0a4 --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.pl @@ -0,0 +1,102 @@ +#!/usr/bin/perl +use strict; +use HTML::Entities (); + +#----------------------------------------------------------- +# jQuery File Tree Perl Connector +# +# Version 1.0 +# +# Oleg Burlaca +# http://www.burlaca.com/2009/02/jquery-file-tree-connector/ +# 12 February 2009 +#----------------------------------------------------------- + +# for security reasons, specify a root folder +# to prevent the whole filesystem to be shown +# for ex: the root folder of your webbrowser + +my $root = "/var/www/html/"; + +#---------------------------------------------------------- + +my $params = &getCGIParams(); +print "Content-type: text/html\n\n"; + +my $dir = $params->{dir}; +my $fullDir = $root . $dir; + +exit if ! -e $fullDir; + +opendir(BIN, $fullDir) or die "Can't open $dir: $!"; +my (@folders, @files); +my $total = 0; +while( defined (my $file = readdir BIN) ) { + next if $file eq '.' or $file eq '..'; + $total++; + if (-d "$fullDir/$file") { + push (@folders, $file); + } else { + push (@files, $file); + } +} +closedir(BIN); + +return if $total == 0; +print "<ul class=\"jqueryFileTree\" style=\"display: none;\">"; + +# print Folders +foreach my $file (sort @folders) { + next if ! -e $fullDir . $file; + + print '<li class="directory collapsed"><a href="#" rel="' . + &HTML::Entities::encode($dir . $file) . '/">' . + &HTML::Entities::encode($file) . '</a></li>'; +} + +# print Files +foreach my $file (sort @files) { + next if ! -e $fullDir . $file; + + $file =~ /\.(.+)$/; + my $ext = $1; + print '<li class="file ext_' . $ext . '"><a href="#" rel="' . + &HTML::Entities::encode($dir . $file) . '/">' . + &HTML::Entities::encode($file) . '</a></li>'; +} + +print "</ul>\n"; + + + + +#-------------------------------------------------------------------------------------------------- +sub getCGIParams { + my $line; + + if ($ENV{'REQUEST_METHOD'} eq "POST") { + read(STDIN, $line, $ENV{'CONTENT_LENGTH'}); + } else { + $line = $ENV{'QUERY_STRING'}; + } + + my (@pairs) = split(/&/, $line); + my ($name, $value, %F); + + foreach (@pairs) { + ($name, $value) = split(/=/); + $value =~ tr/+/ /; + $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; + + if (! exists $F{$name}) { + $F{$name} = $value; + } elsif (exists $F{$name} and ref($F{$name}) ne 'ARRAY') { + my $prev_value = $F{$name}; + delete $F{$name}; + $F{$name} = [ $prev_value, $value ]; + } else { push @{ $F{$name} }, $value } + } + return \%F; +} +#-------------------------------------------------------------------------------------------------- + \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.py b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.py new file mode 100755 index 0000000000000000000000000000000000000000..6b63c06419fa22a60898a9783c7ec0d421c49c7c --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.py @@ -0,0 +1,25 @@ +# +# jQuery File Tree +# Python/Django connector script +# By Martin Skou +# +import os +import urllib + +def dirlist(request): + r=['<ul class="jqueryFileTree" style="display: none;">'] + try: + r=['<ul class="jqueryFileTree" style="display: none;">'] + d=urllib.unquote(request.POST.get('dir','c:\\temp')) + for f in os.listdir(d): + ff=os.path.join(d,f) + if os.path.isdir(ff): + r.append('<li class="directory collapsed"><a href="#" rel="%s/">%s</a></li>' % (ff,f)) + else: + e=os.path.splitext(f)[1][1:] # get .ext and remove dot + r.append('<li class="file ext_%s"><a href="#" rel="%s">%s</a></li>' % (e,ff,f)) + r.append('</ul>') + except Exception,e: + r.append('Could not load directory: %s' % str(e)) + r.append('</ul>') + return HttpResponse(''.join(r)) \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.rb b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.rb new file mode 100755 index 0000000000000000000000000000000000000000..b30b8a976a2ff63fe582eaaf8c3d2c19fe7facc0 --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.rb @@ -0,0 +1,61 @@ +# +# jQuery File Tree Ruby Connector +# +# Version 1.01 +# +# Erik Lax +# http://datahack.se +# 13 July 2008 +# +# History +# +# 1.01 Initial Release +# +# Output a list of files for jQuery File Tree +# + +#<settings> +#root = "/absolute/path/" +# or +root = File.expand_path(".") +#</settings> + +#<code> +require "cgi" +cgi = CGI.new +cgi.header("type" => "text/html") +dir = cgi.params["dir"].to_s + +puts "<ul class=\"jqueryFileTree\" style=\"display: none;\">" +begin + path = root + "/" + dir + + # chdir() to user requested dir (root + "/" + dir) + Dir.chdir(File.expand_path(path).untaint); + + # check that our base path still begins with root path + if Dir.pwd[0,root.length] == root then + + #loop through all directories + Dir.glob("*") { + |x| + if not File.directory?(x.untaint) then next end + puts "<li class=\"directory collapsed\"><a href=\"#\" rel=\"#{dir}#{x}/\">#{x}</a></li>"; + } + + #loop through all files + Dir.glob("*") { + |x| + if not File.file?(x.untaint) then next end + ext = File.extname(x)[1..-1] + puts "<li class=\"file ext_#{ext}\"><a href=\"#\" rel=\"#{dir}#{x}\">#{x}</a></li>" + } + else + #only happens when someone tries to go outside your root directory... + puts "You are way out of your league" + end +rescue + puts "Internal Error" +end +puts "</ul>" +#</code> diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree_huck.lasso b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree_huck.lasso new file mode 100755 index 0000000000000000000000000000000000000000..3359e29314f1f6f433b36973259e5a0b9a5e5945 --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree_huck.lasso @@ -0,0 +1,36 @@ +[ + // + // jQuery File Tree Lasso Connector + // + // Version 1.00 + // + // Jason Huck + // http://devblog.jasonhuck.com/ + // 1 May 2008 + // + // History: + // + // 1.00 - released (1 May 2008) + // + // Output a list of files for jQuery File Tree + // + + !action_param('dir') ? abort; + var('dir') = action_param('dir'); + var('files') = file_listdirectory($dir); + + '<ul class="jqueryFileTree" style="display: none;">'; + + iterate($files, local('file')); + #file->beginswith('.') ? loop_continue; + + if(#file->endswith('/')); + '<li class="directory collapsed"><a href="#" rel="' + $dir + #file + '">' + #file + '</a></li>'; + else; + local('ext') = #file->split('.')->last; + '<li class="file ext_' + #ext + '"><a href="#" rel="' + $dir + #file + '">' + #file + '</a></li>'; + /if; + /iterate; + + '</ul>'; +] diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree_sabourdin.lasso b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree_sabourdin.lasso new file mode 100755 index 0000000000000000000000000000000000000000..077258e2583aafd11213342591e3cc212745c3bb --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree_sabourdin.lasso @@ -0,0 +1,48 @@ +<?LassoScript +// +// jQuery File Tree LASSO Connector +// +// Version 1.00 +// +// Marc Sabourdin +// CysNET (http://www.marcsabourdin.com/) +// 23 May 2008 +// +// History: +// +// 1.00 - released (23 May 2008) +// +// Output a list of files for jQuery File Tree +// +Encode_set:-EncodeNone; + +Variable:'root' = 'path_to_desired_and_Lasso_allowed_root'; +Variable:'_POST.dir' = (action_param:'dir'); +Variable:'files'; + + +if:( file_exists: ($root + $_POST.dir) )&&( File_IsDirectory:($root + $_POST.dir) ); + $files = (File_ListDirectory:($root + $_POST.dir)); + $files->(Sort); + if:( $files->(Size) > 0 ); + output:'<ul class="jqueryFileTree" style="display: none;">'; + // All dirs + Iterate:($files),(Local:'file'); + if:( file_exists:($root + $_POST.dir + #file) )&&( #file != '.' )&&( #file != '..' )&&( File_IsDirectory:($root + $_POST.dir + #file) ); + output:'<li class="directory collapsed"><a href="#" rel="' + (String_replace:($_POST.dir + #file),-Find=' ',-Replace='__') + '">' + (Encode_HTML:(#file)) + '</a></li>'; + /if; + /Iterate; + // All files + Local:'ext'; + Iterate:($files),(Local:'file'); + if:( file_exists:($root + $_POST.dir + #file) )&&( #file != '.' )&&( #file != '..' )&&( (File_IsDirectory:($root + $_POST.dir + #file))==false ); + #ext = (#file)->(Split:'.')->Last; + output:'<li class="file ext_' + (#ext) + '"><a href="' + ($_POST.dir + #file) + '">' + (Encode_HTML:(#file)) + '</a></li>'; + /if; + /Iterate; + output:'</ul>'; + /if; +/if; + +/Encode_set; +?> \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/application.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/application.png new file mode 100755 index 0000000000000000000000000000000000000000..1dee9e366094e87db68c606d0522d72d4b939818 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/application.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/code.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/code.png new file mode 100755 index 0000000000000000000000000000000000000000..0c76bd1297751b66230f74719504b2adb02b1615 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/code.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/css.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/css.png new file mode 100755 index 0000000000000000000000000000000000000000..f907e44b3330e3ed1763e42746a2943234adb94d Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/css.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/db.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/db.png new file mode 100755 index 0000000000000000000000000000000000000000..bddba1f98ca56f8cffa39d768f80a06361d8d218 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/db.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/directory.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/directory.png new file mode 100755 index 0000000000000000000000000000000000000000..784e8fa48234f4f64b6922a6758f254ee0ca08ec Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/directory.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/doc.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/doc.png new file mode 100755 index 0000000000000000000000000000000000000000..ae8ecbf47672a874c0958d0d113a56162c2bd364 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/doc.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/file.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/file.png new file mode 100755 index 0000000000000000000000000000000000000000..8b8b1ca0000bc8fa8d0379926736029f8fabe364 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/file.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/film.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/film.png new file mode 100755 index 0000000000000000000000000000000000000000..b0ce7bb198a3b268bd634d2b26e9b710f3797d37 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/film.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/flash.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/flash.png new file mode 100755 index 0000000000000000000000000000000000000000..5769120b1b6d38019b505c9167498ea199212cc1 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/flash.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/folder_open.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/folder_open.png new file mode 100755 index 0000000000000000000000000000000000000000..4e3548352fc4a82e91ebc7e79907565e40aae457 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/folder_open.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/html.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/html.png new file mode 100755 index 0000000000000000000000000000000000000000..6ed2490ed1432d5d667a76235360824a1088e928 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/html.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/java.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/java.png new file mode 100755 index 0000000000000000000000000000000000000000..b7bfcd15fb2f7ce658185bd7ef4729815e2f18b9 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/java.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/linux.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/linux.png new file mode 100755 index 0000000000000000000000000000000000000000..52699bfee0ce434356c6a9576f32fb6633b01866 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/linux.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/music.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/music.png new file mode 100755 index 0000000000000000000000000000000000000000..a8b3ede3df956f8d505543b190bc8d1b5b4dce75 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/music.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/pdf.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/pdf.png new file mode 100755 index 0000000000000000000000000000000000000000..8f8095e46fa4965700afe1f9d065d8a37b101676 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/pdf.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/php.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/php.png new file mode 100755 index 0000000000000000000000000000000000000000..7868a25945cd5e5cb7daaca9591927511ca65c0f Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/php.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/picture.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/picture.png new file mode 100755 index 0000000000000000000000000000000000000000..4a158fef7e0da8fd19525f574f2c4966443866cf Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/picture.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/ppt.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/ppt.png new file mode 100755 index 0000000000000000000000000000000000000000..c4eff0387d5888c638ba09473ba6d2369f7b56f0 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/ppt.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/psd.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/psd.png new file mode 100755 index 0000000000000000000000000000000000000000..73c5b3f243d98d089dd9e025edc81b939c1a9320 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/psd.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/ruby.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/ruby.png new file mode 100755 index 0000000000000000000000000000000000000000..f59b7c4365fa1720af1aa04eb47167ddaa6eeed4 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/ruby.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/script.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/script.png new file mode 100755 index 0000000000000000000000000000000000000000..63fe6ceff5bfcedb9670279d4bb8d25807f6ecee Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/script.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/spinner.gif b/htdocs/includes/jquery/plugins/jqueryFileTree/images/spinner.gif new file mode 100755 index 0000000000000000000000000000000000000000..85b99d46b9911ba53a792d716d9f688f3bb3c784 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/spinner.gif differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/txt.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/txt.png new file mode 100755 index 0000000000000000000000000000000000000000..813f712f726c935f9adf8d2f2dd0d7683791ef11 Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/txt.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/xls.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/xls.png new file mode 100755 index 0000000000000000000000000000000000000000..b977d7e52e2446ea01201c5c7209ac3a05f12c9f Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/xls.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/zip.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/zip.png new file mode 100755 index 0000000000000000000000000000000000000000..fd4bbccdf1643f4ff5022fbc59b82546e259317e Binary files /dev/null and b/htdocs/includes/jquery/plugins/jqueryFileTree/images/zip.png differ diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.css b/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.css new file mode 100755 index 0000000000000000000000000000000000000000..1eb53bba263ff3798c284dda2e308979182f2b76 --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.css @@ -0,0 +1,90 @@ +UL.jqueryFileTree { + font-family: Verdana, sans-serif; + font-size: 11px; + line-height: 18px; + padding: 0px; + margin: 0px; +} + +UL.jqueryFileTree LI { + list-style: none; + padding: 0px; + padding-left: 20px; + margin: 0px; + white-space: nowrap; +} + +UL.jqueryFileTree A { + color: #333; + text-decoration: none; + padding: 0px 2px; +} + +UL.jqueryFileTree A:hover { + background: #BDF; +} + +/* Core Styles */ +.jqueryFileTree LI.directory { background: url(images/directory.png) left top no-repeat; } +.jqueryFileTree LI.expanded { background: url(images/folder_open.png) left top no-repeat; } +.jqueryFileTree LI.file { background: url(images/file.png) left top no-repeat; } +.jqueryFileTree LI.wait { background: url(images/spinner.gif) left top no-repeat; } +/* File Extensions*/ +.jqueryFileTree LI.ext_3gp { background: url(images/film.png) left top no-repeat; } +.jqueryFileTree LI.ext_afp { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_afpa { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_asp { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_aspx { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_avi { background: url(images/film.png) left top no-repeat; } +.jqueryFileTree LI.ext_bat { background: url(images/application.png) left top no-repeat; } +.jqueryFileTree LI.ext_bmp { background: url(images/picture.png) left top no-repeat; } +.jqueryFileTree LI.ext_c { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_cfm { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_cgi { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_com { background: url(images/application.png) left top no-repeat; } +.jqueryFileTree LI.ext_cpp { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_css { background: url(images/css.png) left top no-repeat; } +.jqueryFileTree LI.ext_doc { background: url(images/doc.png) left top no-repeat; } +.jqueryFileTree LI.ext_exe { background: url(images/application.png) left top no-repeat; } +.jqueryFileTree LI.ext_gif { background: url(images/picture.png) left top no-repeat; } +.jqueryFileTree LI.ext_fla { background: url(images/flash.png) left top no-repeat; } +.jqueryFileTree LI.ext_h { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_htm { background: url(images/html.png) left top no-repeat; } +.jqueryFileTree LI.ext_html { background: url(images/html.png) left top no-repeat; } +.jqueryFileTree LI.ext_jar { background: url(images/java.png) left top no-repeat; } +.jqueryFileTree LI.ext_jpg { background: url(images/picture.png) left top no-repeat; } +.jqueryFileTree LI.ext_jpeg { background: url(images/picture.png) left top no-repeat; } +.jqueryFileTree LI.ext_js { background: url(images/script.png) left top no-repeat; } +.jqueryFileTree LI.ext_lasso { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_log { background: url(images/txt.png) left top no-repeat; } +.jqueryFileTree LI.ext_m4p { background: url(images/music.png) left top no-repeat; } +.jqueryFileTree LI.ext_mov { background: url(images/film.png) left top no-repeat; } +.jqueryFileTree LI.ext_mp3 { background: url(images/music.png) left top no-repeat; } +.jqueryFileTree LI.ext_mp4 { background: url(images/film.png) left top no-repeat; } +.jqueryFileTree LI.ext_mpg { background: url(images/film.png) left top no-repeat; } +.jqueryFileTree LI.ext_mpeg { background: url(images/film.png) left top no-repeat; } +.jqueryFileTree LI.ext_ogg { background: url(images/music.png) left top no-repeat; } +.jqueryFileTree LI.ext_pcx { background: url(images/picture.png) left top no-repeat; } +.jqueryFileTree LI.ext_pdf { background: url(images/pdf.png) left top no-repeat; } +.jqueryFileTree LI.ext_php { background: url(images/php.png) left top no-repeat; } +.jqueryFileTree LI.ext_png { background: url(images/picture.png) left top no-repeat; } +.jqueryFileTree LI.ext_ppt { background: url(images/ppt.png) left top no-repeat; } +.jqueryFileTree LI.ext_psd { background: url(images/psd.png) left top no-repeat; } +.jqueryFileTree LI.ext_pl { background: url(images/script.png) left top no-repeat; } +.jqueryFileTree LI.ext_py { background: url(images/script.png) left top no-repeat; } +.jqueryFileTree LI.ext_rb { background: url(images/ruby.png) left top no-repeat; } +.jqueryFileTree LI.ext_rbx { background: url(images/ruby.png) left top no-repeat; } +.jqueryFileTree LI.ext_rhtml { background: url(images/ruby.png) left top no-repeat; } +.jqueryFileTree LI.ext_rpm { background: url(images/linux.png) left top no-repeat; } +.jqueryFileTree LI.ext_ruby { background: url(images/ruby.png) left top no-repeat; } +.jqueryFileTree LI.ext_sql { background: url(images/db.png) left top no-repeat; } +.jqueryFileTree LI.ext_swf { background: url(images/flash.png) left top no-repeat; } +.jqueryFileTree LI.ext_tif { background: url(images/picture.png) left top no-repeat; } +.jqueryFileTree LI.ext_tiff { background: url(images/picture.png) left top no-repeat; } +.jqueryFileTree LI.ext_txt { background: url(images/txt.png) left top no-repeat; } +.jqueryFileTree LI.ext_vb { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_wav { background: url(images/music.png) left top no-repeat; } +.jqueryFileTree LI.ext_wmv { background: url(images/film.png) left top no-repeat; } +.jqueryFileTree LI.ext_xls { background: url(images/xls.png) left top no-repeat; } +.jqueryFileTree LI.ext_xml { background: url(images/code.png) left top no-repeat; } +.jqueryFileTree LI.ext_zip { background: url(images/zip.png) left top no-repeat; } \ No newline at end of file diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.js b/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.js new file mode 100755 index 0000000000000000000000000000000000000000..c9b0e3853df8416481db453787bda2acf99cedf6 --- /dev/null +++ b/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.js @@ -0,0 +1,97 @@ +// jQuery File Tree Plugin +// +// Version 1.01 +// +// Cory S.N. LaViska +// A Beautiful Site (http://abeautifulsite.net/) +// 24 March 2008 +// +// Visit http://abeautifulsite.net/notebook.php?article=58 for more information +// +// Usage: $('.fileTreeDemo').fileTree( options, callback ) +// +// Options: root - root folder to display; default = / +// script - location of the serverside AJAX file to use; default = jqueryFileTree.php +// folderEvent - event to trigger expand/collapse; default = click +// expandSpeed - default = 500 (ms); use -1 for no animation +// collapseSpeed - default = 500 (ms); use -1 for no animation +// expandEasing - easing function to use on expand (optional) +// collapseEasing - easing function to use on collapse (optional) +// multiFolder - whether or not to limit the browser to one subfolder at a time +// loadMessage - Message to display while initial tree loads (can be HTML) +// +// History: +// +// 1.01 - updated to work with foreign characters in directory/file names (12 April 2008) +// 1.00 - released (24 March 2008) +// +// TERMS OF USE +// +// This plugin is dual-licensed under the GNU General Public License and the MIT License and +// is copyright 2008 A Beautiful Site, LLC. +// +if(jQuery) (function($){ + + $.extend($.fn, { + fileTree: function(o, h) { + // Defaults + if( !o ) var o = {}; + if( o.root == undefined ) o.root = '/'; + if( o.script == undefined ) o.script = 'jqueryFileTree.php'; + if( o.folderEvent == undefined ) o.folderEvent = 'click'; + if( o.expandSpeed == undefined ) o.expandSpeed= 500; + if( o.collapseSpeed == undefined ) o.collapseSpeed= 500; + if( o.expandEasing == undefined ) o.expandEasing = null; + if( o.collapseEasing == undefined ) o.collapseEasing = null; + if( o.multiFolder == undefined ) o.multiFolder = true; + if( o.loadMessage == undefined ) o.loadMessage = 'Loading...'; + + $(this).each( function() { + + function showTree(c, t) { + $(c).addClass('wait'); + $(".jqueryFileTree.start").remove(); + $.post(o.script, { dir: t }, function(data) { + $(c).find('.start').html(''); + $(c).removeClass('wait').append(data); + if( o.root == t ) $(c).find('UL:hidden').show(); else $(c).find('UL:hidden').slideDown({ duration: o.expandSpeed, easing: o.expandEasing }); + bindTree(c); + }); + } + + function bindTree(t) { + /* DOL_CHANGE Replace LI A by LI A.jqft */ + $(t).find('LI A.jqft').bind(o.folderEvent, function() { + if( $(this).parent().hasClass('directory') ) { + if( $(this).parent().hasClass('collapsed') ) { + // Expand + if( !o.multiFolder ) { + $(this).parent().parent().find('UL').slideUp({ duration: o.collapseSpeed, easing: o.collapseEasing }); + $(this).parent().parent().find('LI.directory').removeClass('expanded').addClass('collapsed'); + } + $(this).parent().find('UL').remove(); // cleanup + showTree( $(this).parent(), escape($(this).attr('rel').match( /.*\// )) ); + $(this).parent().removeClass('collapsed').addClass('expanded'); + } else { + // Collapse + $(this).parent().find('UL').slideUp({ duration: o.collapseSpeed, easing: o.collapseEasing }); + $(this).parent().removeClass('expanded').addClass('collapsed'); + } + } else { + h($(this).attr('rel')); + } + return false; + }); + // Prevent A from triggering the # on non-click events + /* DOL_CHANGE Replace LI A by LI A.jqft */ + if( o.folderEvent.toLowerCase != 'click' ) $(t).find('LI A.jqft').bind('click', function() { return false; }); + } + // Loading message + $(this).html('<ul class="jqueryFileTree start"><li class="wait">' + o.loadMessage + '<li></ul>'); + // Get the initial file list + showTree( $(this), escape(o.root) ); + }); + } + }); + +})(jQuery); \ No newline at end of file diff --git a/htdocs/install/etape2.php b/htdocs/install/etape2.php index b8373847c2545d9b75633ea4afc6b1db619ad025..a8904cd10ab2b49ae98a6154f4fd52f18944cd0a 100644 --- a/htdocs/install/etape2.php +++ b/htdocs/install/etape2.php @@ -188,7 +188,7 @@ if ($action == "set") fclose($fp); $buffer=trim($buffer); - if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli') // For Mysql 5.5+, we must replace type=innodb + if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli') // For Mysql 5.5+, we must replace type=innodb with ENGINE=innodb { $buffer=preg_replace('/type=innodb/i','ENGINE=innodb',$buffer); }