Guest User

iklanfree16mb

a guest
Jun 13th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. <?php
  2. //error_reporting(E_ALL);
  3.  
  4. $system_folder = "iwmsystem";
  5. define("SYSTEMFOLDER", $system_folder.'/');
  6.  
  7. $application_folder = "application";
  8. define('APPFOLDER', $application_folder.'/');
  9.  
  10. if (strpos($system_folder, '/') === FALSE){
  11. if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE){
  12. if( $system_folder == "" )
  13. $system_folder = realpath(dirname(__FILE__));
  14. else
  15. $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
  16. }
  17. } else {
  18. if( $system_folder != '' )
  19. $system_folder = str_replace("\\", "/", $system_folder);
  20. }
  21.  
  22. define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
  23. define('FCPATH', __FILE__);
  24. define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
  25. define('BASEPATH', $system_folder.'/');
  26. define('ROOTPATH', dirname(__FILE__).'/');
  27.  
  28. if (is_dir($application_folder)){
  29. define('APPPATH', $application_folder.'/');
  30. } else {
  31. if ($application_folder == ''){
  32. $application_folder = 'application';
  33. }
  34.  
  35. define('APPPATH', BASEPATH.$application_folder.'/');
  36. }
  37.  
  38. if ( ! defined('E_STRICT')){
  39. define('E_STRICT', 2048);
  40. }
  41.  
  42. require_once BASEPATH.'core/iwmcore'.EXT;
  43. ?>
Add Comment
Please, Sign In to add comment