Edit via SFTP
  1. <?php declare(strict_types=1); namespace greenmine;
  2. /*
  3.  PROJECT: Greenmine
  4.  PURPOSE: main page -- handles all requests
  5.  HISTORY:
  6.   2020-11-08 significant rearranging of file organization
  7.   2021-01-25 Removed line after creating app object:
  8.   "$oApp->SetBasePath('/');" is no longer supported
  9.   because we set the base path in the Globals.
  10. */
  11. $fErrLevel = E_ALL;
  12. error_reporting($fErrLevel);
  13. if (!ini_get('display_errors')) {
  14. ini_set('display_errors', 'TRUE');
  15. }
  16.  
  17. // CONSTANTS
  18. // -- KF = boolean flag
  19. // -- KS = string
  20. // -- KWP = web path (URL including protocol)
  21. // -- KFP = file path
  22. // -- KRP = relative path
  23.  
  24.  
  25. $kfpHome = dirname($_SERVER['SCRIPT_FILENAME'],2);
  26. require($kfpHome.'/site/git/greenmine/start.php'); // Greenmine start-file
  27. new globals\cLocal($kfpHome);
  28.  
  29. $oApp = new cApp();
  30. $oApp->Go();
  31.