aggiunta playsound
[brisk.git] / web / brisk.phh
index 31f0238..51d8d3a 100644 (file)
@@ -35,7 +35,7 @@ define(NICKSERV, "<i>SERVER</i>");
 define(BRISK_DEBUG, FALSE);
 // define(DEBUGGING, "local");
 
-$G_brisk_version = "0.4.5";
+$G_brisk_version = "0.4.6";
 
 $root_wellarr = Array ( 'Benvenuto in brisk (Ver. '.$G_brisk_version.').',
                         'Se vuoi iscriverti alla <a target="_blank" href="http://www.milug.org/cgi-bin/mailman/listinfo/ml-briscola">Mailing List</a>, cliccala!' );
@@ -1263,6 +1263,11 @@ function show_table(&$bri, &$user, $sendstep, $is_transition, $is_again)
   if (!$is_again) 
     $ret .= table_wellcome($user);
 
+  if ($is_transition && !$is_again) { // appena seduti al tavolo, play della mucca
+    $ret .= playsound("cow.mp3");
+  }
+
+
   /* CARDS */
   if ($is_transition) { //  && $user->subst ==  "asta" superfluo
     $ret .= "|";
@@ -1521,4 +1526,9 @@ function validate_name($name)
   return (FALSE);
 }
 
+function playsound($filename)
+{
+  return (sprintf('playsound("flasou", "%s");', $filename));
+}
+
 ?>