]> _ Git - cubeextranet.git/commitdiff
URL Redirect Tool
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 10 Mar 2015 14:29:18 +0000 (14:29 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 10 Mar 2015 14:29:18 +0000 (14:29 +0000)
inc/commons/class.common.tools.php

index ed062fb9c62fb9456088e2631c7e807bafc65e5e..48059a253a164a62d6cfcd45fe4adc8e2c14d9b5 100644 (file)
@@ -180,6 +180,12 @@ class commonTools {
                exit;
        }
 
+       public static function url($args) {
+               ob_end_clean();
+               echo '<script type="text/javascript">window.location="' . $_GET['u'] . '"</script>';
+               exit;
+       }
+
        public static function tube($args) {
                global $css, $js, $jsnomerge, $jsvar;
 
@@ -237,14 +243,14 @@ class commonTools {
                        $dim = getimagesize($dir . 'video.jpg');
                }
 
-               $res = '<style type="text/css">';
+               $res = '<style type="text / css">';
                $res .= 'html, body {margin: 0;padding: 0;height: 100%;color:#fff;overflow:hidden;}';
                $res .= 'body,video{background:#' . $background . ';}';
                $res .= 'video{width:100%;height:100%;display:none;}';
                $res .= '#header,#videoflash,#videohtml,#ajaxLoader{display:none;}';
                $res .= '</style>';
 
-               $video = '<video id="videohtml" width="100%" height="100%" data-src="' . $web . '"';
+               $video = '<video id="videohtml" width="100 % " height="100 % " data-src="' . $web . '"';
                if (isset($dim)) {
                        $video .= ' data-width="' . $dim[0] . '" data-height="' . $dim[1] . '"';
                }
@@ -255,13 +261,13 @@ class commonTools {
                        $video .= ' onplay="tubeHideControls(this);"';
                }
                if ($loop) {
-                       $video .= ' onended="this.play();"';
+                       $video .= ' onended="this . play();"';
                }
                if ($autoplay) {
                        $video .= ' autoplay="autoplay"';
                }
                if (($displayPoster || $ios) && isset($poster)) {
-                       $video .= ' poster="' . $web . 'video.jpg"';
+                       $video .= ' poster="' . $web . 'video . jpg"';
                }
                $video .= '>';
                $video .= '</video>';
@@ -286,7 +292,7 @@ class commonTools {
                $res = commonPage::barre();
                $res .= commonPage::tMain();
                $res .= commonPage::bh();
-               $res .= '<style type="text/css">
+               $res .= '<style type="text / css">
        @media all and (orientation: portrait) {
                #ol{display:none;}
     }
@@ -302,9 +308,9 @@ class commonTools {
                $res .= '<tr><td>' . __('Adresse IP') . '</td><td colspan="2">' . $_SERVER['REMOTE_ADDR'] . '</td></tr>';
                $res .= '<tr><td>' . __('Adobe Flash Player') . '</td><td colspan="2" class="flashversion"></td></tr>';
                $res .= '<tr><td rowspan="4">' . __('Support de la video') . '</td><td colspan="2"><strong class="f" data-feature="video"></strong></td></tr>';
-               $res .= '<tr><td>OGV</td><td><span class="f" data-feature="video.ogg"></span></td></tr>';
-               $res .= '<tr><td>H264</td><td><span class="f" data-feature="video.h264"></span></td></tr>';
-               $res .= '<tr><td>WEBM</td><td><span class="f" data-feature="video.webm"></span></tr>';
+               $res .= '<tr><td>OGV</td><td><span class="f" data-feature="video . ogg"></span></td></tr>';
+               $res .= '<tr><td>H264</td><td><span class="f" data-feature="video . h264"></span></td></tr>';
+               $res .= '<tr><td>WEBM</td><td><span class="f" data-feature="video . webm"></span></tr>';
                $res .= '<tr><td rowspan="3">' . __('Ecran') . '</td><td>' . __('Orientation') . '</td><td><span id="op">' . __('Portrait') . '</span><span id="ol">' . __('Paysage') . '</span></td></tr>';
                $res .= '<tr><td>' . __("Largeur") . '</td><td id="swidth"></td></tr>';
                $res .= '<tr><td>' . __("Hauteur") . '</td><td id="sheight"></td></tr>';
@@ -324,7 +330,7 @@ class commonTools {
                $res = commonPage::barre();
                $res .= commonPage::tMain();
                $res .= commonPage::bh();
-               $res .= '<form action="' . SITE_PATH . 'tools/exportClientsXLS" method="post" class="notajax">';
+               $res .= '<form action="' . SITE_PATH . 'tools / exportClientsXLS" method="post" class="notajax">';
                $res .= '<table class="liste">';
                $res .= '<tr><th colspan="3"><strong>' . __('Exporter la base clients') . '</strong></th></tr>';
                $res .= '<tr><td>' . __('Type de client') . '</td><td>' . form::combo('type', $types) . '</td></td>';