is_autostart.as.php 377 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. This script is used by the mp3 player to see if it should start automatically or not
  4. */
  5. require ('../../global.inc.php');
  6. switch($_SESSION['whereami'])
  7. {
  8. case 'lp/build' :
  9. case 'document/create' :
  10. case 'document/edit' :
  11. $autostart = 'false';
  12. break;
  13. default :
  14. $autostart = 'true';
  15. }
  16. echo utf8_encode('autostart='.$autostart);
  17. ?>