PageRenderTime 43ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/inc/modules/images/exec.php

https://github.com/nubix/cms
PHP | 33 lines | 24 code | 3 blank | 6 comment | 0 complexity | 7ce620c6d33344a81c413a6d5beff473 MD5 | raw file
  1. <?php
  2. /**
  3. * Author : Jan Germann
  4. * Datum : 26.04.2010
  5. * Modul : files
  6. * Beschreibung : Dieses Modul dient zum Upload und Löschen von Files
  7. */
  8. $path = dirname(__FILE__) . "/";
  9. require_once($path."function.upload.php");
  10. require_once($path."function.edit.php");
  11. require_once($path."function.delete.php");
  12. require_once($path."function.imagefunctions.php");
  13. $_SESSION['content'] = '
  14. <div id=modulemenu>
  15. <a href="'.$_SERVER['PHP_SELF'].'?a='.$_GET['a'].'&exec=upload">Hochladen</a>
  16. <a href="'.$_SERVER['PHP_SELF'].'?a='.$_GET['a'].'&exec=edit">Editieren</a>
  17. <a href="'.$_SERVER['PHP_SELF'].'?a='.$_GET['a'].'&exec=delete">Löschen</a></div>';
  18. switch($_GET['exec'])
  19. {
  20. case "upload":
  21. $_SESSION['content'] .= upload();
  22. break;
  23. case "edit":
  24. $_SESSION['content'] .= edit();
  25. break;
  26. case "delete":
  27. $_SESSION['content'] .= delete();
  28. break;
  29. }
  30. ?>