Poker Mavens 2.75 Released

For general discussion of the Poker Mavens software

Poker Mavens 2.75 Released

Postby Kent Briggs » Mon Oct 19, 2009 8:10 pm

Upgrade patches:

http://www.briggsoft.com/patches.htm

Changes:

Added new Callback Events group on System tab that allows for external notifications on logins, logouts, and tournament completions. This is sort of a "reverse API" system where the poker server will automatically contact your web site with new information, as opposed to you polling it with the API, asking for information. Initially it support 3 events as mentioned but more could be added in the future. More on this in a followup message.

Added SystemReboot command to API that allows you to reboot the computer from a remote location. There is no orderly shutdown of the tables or any consideration given to other apps running so this should be used carefully.

Modified the Call, Bet, Raise to, and Request Time settings in the Table Buttons group on the Language tab to allow for custom number placement using a %1% variable. Previously the bet amounts would just be appended to the end but right-to-left languages like Hebrew needed them on the left. IMPORTANT: Therefore you must manually touch up these four settings after upgrading to include the %1% variable. Otherwise the chip numbers (and time bank seconds) will be left off of the bet buttons. Even if you are not using the custom language settings, you should use the reset button to fix these settings to their new defaults.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3905
Joined: Wed Mar 19, 2008 8:47 pm

Re: Poker Mavens 2.75 Released

Postby Kent Briggs » Mon Oct 19, 2009 8:18 pm

Here's the help file text on the new Callback Events settings:

Enable callbacks - Set to Yes if you want the poker server to call the specified URL when any of the specified events are triggered.

URL - Specify the full URL (including the http prefix) to call when any of the enabled events are triggered. Typically this will point to a PHP file or other web scripting system. Any results returned are ignored.

Password - Specify an optional "Password" parameter than can be checked by your web script for validation. It will be sent via POST with each callback.

Login event - Set to Yes if you want the callback URL to be called when a player logs into your site. Three POST parameters are sent: Event, Player, and Time. Event will be set to "Login", Player will contain the player's name, and Time will be in YYYY-MM-DD HH:MM:SS format.

Logout event - Set to Yes if you want the callback URL to be called when a player logs out from your site. Three POST parameters are sent: Event, Player, and Time. Event will be set to "Logout", Player will contain the player's name, and Time will be in YYYY-MM-DD HH:MM:SS format.

Tournament finish event - Set to Yes if you want the callback URL to be called when a tournament completes. Three POST parameters are sent: Event, Name, and Time. Event will be set to "TourneyFinish", Name will be set to the tournament name, and Time will be in YYYY-MM-DD HH:MM:SS format.

Here's a sample PHP file that simply records the events to a Callback.txt text file:

Code: Select all
<?php
  $pw = $_POST["Password"];
  if ($pw != "x") exit;
  $f = fopen("Callback.txt","a");
  $event = $_POST["Event"];
  switch ($event)
  {
    case "Login":
      fwrite($f,"Event = " . $event . "\n");
      fwrite($f,"Player = " . $_POST["Player"] . "\n");
      fwrite($f,"Time = " . $_POST["Time"] . "\n");
      fwrite($f,"\n");
      break;
    case "Logout":
      fwrite($f,"Event = " . $event . "\n");
      fwrite($f,"Player = " . $_POST["Player"] . "\n");
      fwrite($f,"Time = " . $_POST["Time"] . "\n");
      fwrite($f,"\n");
      break;
    case "TourneyFinish":
      fwrite($f,"Event = " . $event . "\n");
      fwrite($f,"Name = " . $_POST["Name"] . "\n");
      fwrite($f,"Time = " . $_POST["Time"] . "\n");
      fwrite($f,"\n");
      break;
    default:
      fwrite($f,"Unknown event: " . $event . "\n");
      fwrite($f,"\n");
      break;
  }
  fclose($f);
?>
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3905
Joined: Wed Mar 19, 2008 8:47 pm


Return to General

Who is online

Users browsing this forum: No registered users and 6 guests

cron