diff --git a/ChangeLog b/ChangeLog index 53a125fe..abd5a617 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Version 4.5.2 20210719_1000 + - Multilicense handling support + - New "livestream" webapp "perroenpista" + - Typos and strings fixes Version 4.5.1 20210712_1930 - Fix: messager.password behavior ( do not fire onchange when focus lost ) - Fix: updater should handle new naming convention from github diff --git a/agility/ajax/database/clubFunctions.php b/agility/ajax/database/clubFunctions.php index 23b8eff7..d1d137d7 100644 --- a/agility/ajax/database/clubFunctions.php +++ b/agility/ajax/database/clubFunctions.php @@ -28,6 +28,8 @@ $operation=http_request("Operation","s",null); $federation=http_request("Federation","i",-1); // force exception if undefined $idclub=http_request("ID","i",0); + $perro=http_request("Perro","i",0); + $guia=http_request("Guia","i",0); if ($operation===null) throw new Exception("Call to clubFunctions without 'Operation' requested"); $clubes= new Clubes("clubFunctions",$federation); @@ -41,8 +43,14 @@ case "enumerate": $result=$clubes->enumerate(); break; case "countries": $c=new Country(); $result=$c->enumerate(); break; case "getlogo": // not a json function; just return an image - $result=$clubes->getLogo($idclub); + $result=$clubes->getLogo($idclub,$perro); return; + case "getLogoByPerro": // not a json function; just return an image + $result=$clubes->getLogoByPerro($perro); + return; + case "getLogoByGuia": // not a json function; just return an image + $result=$clubes->getLogoByGuia($guia); + return; case "setlogo": $am->access(PERMS_OPERATOR); // this call provides an image in base64 encoded format. Needs special handling diff --git a/agility/livestream/perroenpista.html b/agility/livestream/perroenpista.html index ac6a3cfd..caf5cc2e 100644 --- a/agility/livestream/perroenpista.html +++ b/agility/livestream/perroenpista.html @@ -30,24 +30,41 @@ Source: 'videowall', Name: 'perroenpista', Destination: '', // empty - Sname: 'perroenpista:0:0:0:videowall@1.2.3.4' + Sname: 'perroenpista:0:0:0:videowall@1.2.3.4', + myImage: null }; function initialize() { + // initialize logo canvas + var c = document.getElementById("pp_Logo"); + var ctx = c.getContext("2d"); + ac_config.myImage = new Image(150,150); + ac_config.myImage.onload = function() { ctx.drawImage(ac_config.myImage, 0, 0); }; + + // extract ring and server host name ac_config.Host= new URL(window.location).hostname; // AgilityContest server name ac_config.Ring= new URL(window.location).searchParams.get('ring'); // ring to parse if ( !ac_config.Host || ac_config.Host==='') ac_config.Host='localhost'; if ( !ac_config.Ring || ac_config.Ring==='') ac_config.Ring=1; + + // and fire up event manager findSessionID() } - +
-
+
+
+
+
@@ -61,6 +78,14 @@
+