serversos.php 612 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?
  2. if (!isset($db_hostname))
  3. {
  4. include 'auth.php';
  5. include 'problems.php';
  6. }
  7. foreach (array_keys($_REQUEST) as $var)
  8. {
  9. ${$var}=$_REQUEST[$var];
  10. //echo "<b>$var:</b> ${$var} <br>";
  11. }
  12. switch (intval($pnum)) {
  13. case 23:
  14. AcceptProblem($type, $comment);
  15. break;
  16. case 24:
  17. CheckProblem();
  18. break;
  19. case 25:
  20. ResolveProblemStart($id);
  21. break;
  22. case 26:
  23. EndProblem($id);
  24. break;
  25. case 27:
  26. ProblemsQuit($type);
  27. break;
  28. case 28:
  29. LoginChief($login, $p);
  30. break;
  31. }
  32. ?>