Source for file flash.php

Documentation is available at flash.php

  1. <?php
  2.  
  3. /*
  4. Program E
  5. Copyright 2002, Paul Rydell
  6. This file is part of Program E.
  7. Program E is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. Program E is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Program E; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21.  
  22. /**
  23. * Flash User Interface
  24. *
  25. * Contains the basics of Flash communication
  26. * @author Paul Rydell
  27. * @copyright 2002
  28. * @version 0.0.8
  29. * @package Interpreter
  30. * @subpackage Responder
  31. */
  32.  
  33.  
  34. /**
  35. * Include the guts of the program.
  36. */
  37. include "respond.php";
  38.  
  39. $numselects=0;
  40.  
  41. // Start the session or get the existing session.
  42. session_start();
  43. $myuniqueid=session_id();
  44.  
  45. // Here is where we get the reply. Make sure you fill in testbot with your bot's name
  46. $botresponse=reply($HTTP_POST_VARS['input'],$myuniqueid,"TestBot");
  47.  
  48. // Print the results.
  49. print "&bot_name=Test Agent\n";
  50. print "&alice_out=" . $botresponse->response . "\n";
  51. print "&textLoaded=1";
  52.  
  53.  
  54. ?>

Documentation generated on Wed, 12 Jan 2005 12:24:46 +0100 by phpDocumentor 1.3.0RC3