phpClick
[ class tree: phpClick ] [ index: phpClick ] [ all elements ]

Source for file do.php

Documentation is available at do.php

  1. <?php
  2. session_start();
  3. include_once('includes/config.inc.php');
  4. include_once('includes/common.inc.php');
  5. doAuthCheck();
  6.  
  7. if (!empty($_GET['action'])) {
  8. $sAction = $_GET['action'];
  9. }
  10. else {
  11. $sAction = $_POST['action'];
  12. }
  13.  
  14. if (!empty($_GET['component'])) {
  15. // TODO: do some input validation to make sure "action" and "component" is what we think it is
  16. include('components/'.$_GET['component'].'/actions/'.$sAction.'.inc.php');
  17. }
  18. elseif (!empty($_POST['component'])) {
  19. // TODO: do some input validation to make sure "action" and "component" is what we think it is
  20. include('components/'.$_POST['component'].'/actions/'.$sAction.'.inc.php');
  21. }
  22. else {
  23. // TODO: do some input validation to make sure $sAction is what we think it is
  24. include('includes/actions/'.$sAction.'.inc.php');
  25. }
  26.  
  27. if (hasLoadUrl() || hasJavascript()) {
  28. printHtmlHeader();
  29. printLoadUrl();
  30. printJavascript();
  31. printHtmlFooter();
  32. }
  33. ?>

Documentation generated on Wed, 12 Jan 2005 17:51:38 -0500 by phpDocumentor 1.3.0RC3