print.php 823 B

123456789101112131415161718192021222324252627282930313233
  1. <?
  2. header("Content-Type: text/html; charset=utf-8");
  3. header("Expires: 0");
  4. session_start();
  5. $printid = $_SESSION['printer'];
  6. if ($printid) {
  7. echo '<!DOCTYPE html>
  8. <html lang="en" manifest="manifest.appcache">
  9. <script>
  10. function printit()
  11. {
  12. window.print();
  13. }
  14. </script>
  15. <header></header><body onload="printit()">';
  16. foreach (array_keys($_REQUEST) as $var)
  17. {
  18. ${$var}=$_REQUEST[$var];
  19. //echo "<b>$var:</b> ${$var} <br>";
  20. }
  21. $logged_me_in_successfully234 = true;
  22. $new = 2;
  23. $staff_id = $id;
  24. $print = true;
  25. $cmdlevel = 10;
  26. $staff_name = $name;
  27. require_once "doctrine/bootstrap.php";
  28. require_once "auth.php";
  29. require "staff.php";//?staff_id=".$id."&new=2";
  30. }
  31. echo '</body></html>';