]> _ Git - cubeextranet.git/commitdiff
#1388
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 30 May 2017 17:13:41 +0000 (17:13 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 30 May 2017 17:13:41 +0000 (17:13 +0000)
inc/commons/class.common.ajax.php
inc/ws/Util/class.ws.exporter.php
inc/ws/Util/class.ws.links.php
inc/ws/Util/html5/menus/class.ws.html5.compiler.php

index 7f678cf95a3738946456bb103efa5d0a058b27e4..f5533b08fb7bbd69751d21517bee0a7c8b456638 100644 (file)
@@ -299,6 +299,7 @@ class commonAjax {
        }
 
        public static function syncftp($args, &$x) {
+               set_time_limit(0);
                commonDroits::min(5);
                $u = parse_url('ftp://' . ltrim($_POST['dest'], '/'));
                if (!isset($u['port'])) {
@@ -307,6 +308,8 @@ class commonAjax {
 
                $commandes = array(
                        'set ftp:ssl-allow false',
+                       'set net:reconnect-interval-base 5',
+                       'set net:max-retries 2',
                        'set ftp:passive-mode ' . $_POST['mode'],
                        'mkdir -p ' . $u['path'],
                        'cd ' . $u['path'],
@@ -316,12 +319,13 @@ class commonAjax {
 
                //$lftp->setManualArg( . '> mirror -Rv ' . $package);
 
-               $lftp = new cubeCommandLine('lftp');
+               $lftp = new CubeIT_CommandLine('lftp');
                $lftp->setArg('u', $u['user'] . ',' . $u['pass']);
                $lftp->setArg('p', $u['port']);
                $lftp->setArg('e', implode(';', $commandes));
                $lftp->setArg(null, $u['host']);
                $lftp->execute();
+               $lftp->debug();
 
                $x->addValue('res', utf8_encode($lftp->output));
        }
index 3675113dc0eb7be0a96aa099ccc045008fc11c48..8513e965c73472384e7a578da8ac2ca063a6564a 100644 (file)
@@ -429,6 +429,7 @@ class wsExporter {
                $lftp->setArg('e', implode(';', $commandes));
                $lftp->setArg(null, $u['host']);
                $lftp->execute();
+               $lftp->debug();
        }
 
        protected function _rsync($src, $dest, $erase = false, $chown = null) {
index fa1f5a5b8255bd79dfe1e6c1eacdac1f7c70231c..12cd687b7926fe0fbe2f6be1a25d353e47875063 100644 (file)
@@ -221,7 +221,6 @@ class wsLinks {
                $rulers = array();
 
                foreach ($documents as $d) {
-                       echo $d . "\n";
                        if (is_null($time)) {
                                $lr = self::getDocumentLastLinks($d);
                        } else {
index 1a45b4a6fde8fe8ebf41e224abd38bdee29f5ce5..81f9c6cec812e574eb3823f38ec03b59b57709ce 100644 (file)
@@ -24,6 +24,7 @@ class wsHTML5Compiler {
                'js/libs/jquery/jquery.hashchange.js',
                'js/libs/jquery/jquery.scrollto.js',
                'js/libs/jquery/jquery.localscroll.js',
+               'js/libs/jquery/perfect-scrollbar.jquery.js',
                'js/libs/gsap/TweenMax.js',
                'js/libs/gsap/jquery.gsap.js',
                'js/libs/gal/gal.js',
@@ -1160,7 +1161,6 @@ class wsHTML5Compiler {
                $res[] = $shade;
 
                // SVG
-
                $res[] = 'svg .fill-c-menu-back{fill:' . wsHTML5::colorToCSS($this->theme->parametres->couleurB) . ';}';
                $res[] = 'svg .fill-c-menu-text{fill:' . wsHTML5::colorToCSS($this->theme->parametres->subTextColor) . ';}';
 
@@ -1248,18 +1248,12 @@ class wsHTML5Compiler {
 
                $lessVariables['menu-background'] = $menuColor->toCSS();
                $lessVariables['menu-text'] = $menuTextColor;
+               $lessVariables['menu-field-background'] = wsHTML5::colorToCSS($this->theme->parametres->subFieldColor);
+               $lessVariables['menu-field-text'] = wsHTML5::colorToCSS($this->theme->parametres->subTextFieldColor);
 
                $menuMultiply = $menuColor->multiply($menuColor);
                $menuMultiply2 = $menuMultiply->multiply($menuColor);
 
-               # View
-               $res[] = '.portrait .mview{width:' . $w . ';min-height:' . $h . '}';
-               $res[] = '.landscape .mview{width:' . $w2 . ';min-height:' . $h . '}';
-               $res[] = '.mview{background-color:' . $menuColor->toCSS() . ';color:' . $menuTextColor . ';}';
-
-               # Inner View
-               $res[] .= '#innerView>div{background-color:' . $menuColor->toCSS() . ';color:' . $menuTextColor . ';}';
-               $res[] .= 'form input[type="text"],form input[type="email"]{background-color:' . wsHTML5::colorToCSS($this->theme->parametres->subFieldColor) . ';color:' . wsHTML5::colorToCSS($this->theme->parametres->subTextFieldColor) . ';}';
 
                // Archives
                if ($this->book->parametres->externalArchivesBack) {
@@ -1267,20 +1261,6 @@ class wsHTML5Compiler {
                        $res[] = '.mview.archives{background-image:url("../images/' . $this->book->parametres->externalArchivesBack . '");}';
                }
 
-               # Chapters (menu lists)
-               $top = $menuColor->setAlpha(0.5)->toCSS();
-               $bottom = $menuMultiply->setAlpha(0.5)->toCSS();
-               $border = $menuMultiply2->setAlpha(0.5)->toCSS();
-
-               $chapters = "ul.chapters a.level-1,ul.chapters a.level0,ul.chapters a.level1,ul.chapters a.level2,ul.chapters a.level3{
-       background-image: -moz-linear-gradient(top, $top 0%, $bottom 100%); /* FF3.6+ */
-       background-image: -webkit-linear-gradient(top, $top 0%,$bottom 100%); /* Chrome10+,Safari5.1+ */
-       background-image: -o-linear-gradient(top, $top 0%,rgba(0,0,0,0.5) 100%); /* Opera 11.10+ */
-       background-image: -ms-linear-gradient(top, $top 0%,$bottom 100%); /* IE10+ */
-       background-image: linear-gradient(top bottom, $top 0%,$bottom 100%); /* W3C */
-       border-bottom:1px solid $border;
-}";
-               $res[] = $chapters;
                # Index
                $ratio = $this->width / $this->height;
                $thumbh = round(100 / $ratio);