]> _ Git - cubeextranet.git/commitdiff
wip #4614 @0:25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 27 Jul 2021 13:12:34 +0000 (13:12 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 27 Jul 2021 13:12:34 +0000 (13:12 +0000)
inc/ws/Controlleur/class.ws.services.php
inc/ws/Util/html5/master/class.ws.html5.links.php

index 32eeb29a31331744b219c2fe1f42a3ff6ea065e1..7d6682dec13ef77d69991526be27f8f3a7e442db 100644 (file)
@@ -1379,15 +1379,23 @@ class wsServices extends cubeFlashGateway
     public static function yslSurvey()
     {
         global $core;
-        $c = $core->con->openCursor('ysl_survey');
-        $c->fluidbook_id = $_POST['fluidbook_id'];
-        $c->date = time();
-        $c->page = $_POST['page'];
-        $c->rating = $_POST['rating'];
-        $c->suggestions = $_POST['suggestions'];
-        $c->country = $_POST['country'];
-        $c->function = $_POST['function'];
-        $c->insert();
+        try {
+            $c = $core->con->openCursor('ysl_survey');
+            $c->fluidbook_id = $_POST['Fluidbook_ID'];
+            $c->date = time();
+            $c->page = $_POST['page'];
+            $c->rating = $_POST['rating'];
+            $c->suggestions = $_POST['feedback'];
+            $c->country = $_POST['country'];
+            $c->function = $_POST['function'];
+            $c->insert();
+            $res = '1';
+        } catch (Exception $e) {
+            $res = '0';
+        }
+        ob_end_clean();
+        header('Content-Type: text/plain');
+        die($res);
     }
 
     public static function searchGFXDevice($gpu, $raw, $gfxVersion = 40)
index 553bfff21e6f0fa872dbcae0c88e813d6d20a3d2..dfbf49144fce932413b6acc4adbfa94c6c29e3ec 100644 (file)
@@ -2850,6 +2850,7 @@ class iframeLink extends wsHTML5Link
 
         return $to;
     }
+
 }
 
 class articleLink extends normalLink
@@ -2894,7 +2895,7 @@ class iframePopupLink extends normalLink
 
     public function keep()
     {
-        return false;
+        return true;
     }
 
 }