Advertisement
Guest User

Untitled

a guest
Jul 12th, 2017
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. <?php
  2. /**
  3. * Advanced CheapCookPH
  4. *
  5. * Copyright (c) 2016 Bearkada Team (localhost)
  6. * The program is distributed under the terms of the GNU General Public License
  7. *
  8. * This file is part of Advanced CheapCookPH (AdvCCPH).
  9. *
  10. * AdvCCPH is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * Nylzon Redula, either version 3 of the License, or any later version.
  13. *
  14. * AdvCCPH is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with AdvCCPH. If not, see <http://www.gnu.org/licenses/>.
  21. **/
  22.  
  23. /** DEFAULT TIME ZONE **/
  24. date_default_timezone_set('Asia/Jakarta');
  25.  
  26. interface Configurations {
  27.  
  28. /** WEBSITE BUILD INFO **/
  29. const Build = '0.0.0.1 Development';
  30. const Host = 'Nginx';
  31. const HostLink = 'http://kurt.com';
  32.  
  33. /** SERVER INFORMATION **/
  34. const ServerName = 'Cheap Cook';
  35. const ServerNews = '';
  36. const ServerDescription = null;
  37. const ServerCompany = 'Cheap Cook';
  38.  
  39. const OwnerName = 'Cheap Cook';
  40. const OwnerEmail = 'CheapCook@live.com';
  41. const OwnerPhone = '(+63) 9189795868';
  42. const OwnerAddress = 'Nasipit Talamban Cebu, City';
  43.  
  44. /** SOCIAL MEDIA ID **/
  45. const FacebookId = '1';
  46. const TwitterId = '2';
  47. const DribbleId = '3';
  48. const SkypeId = '4';
  49. const RSSId = '5';
  50. const GoogleId = '6';
  51. const PinterestId = '7';
  52.  
  53. /** MYSQL DATA **/
  54. const MySQLHost = 'xo4.x10hosting.com';
  55. const MySQLUser = 'zet';
  56. const MySQLPass = 'zetaccess';
  57. const MySQLData = 'ZetInklessPen';
  58.  
  59. const MainRoot = '/';
  60. const DebugMode = true;
  61. const Advertisements = false;
  62.  
  63. /** PAYPAL STUFF **/
  64. const PayPalEmail = null;
  65. const PayPalSuccessURL = '?shop.php?gen';
  66. const PayPalFailureURL = '?shop.php?error';
  67. const PayPalRMethod = 2;
  68. const PayPalPMethod = 'fso';
  69. const PayPalCCode = 'USD';
  70. const PayPalLanguage = 'US';
  71. const PayPalServer = 'https://www.paypal.com/cgi-bin/webscr';
  72. }
  73.  
  74. /** CHECKS CMS COMPONENTS **/
  75. foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($_SERVER['DOCUMENT_ROOT'] . Configurations::MainRoot . 'classes/')) as $file) {
  76. switch ($file->getFilename()) {
  77. case 'class.content.php':
  78. //if ($file->getSize() == 31216) continue; else SystemExit('FILE HAS BEEN MODIFED (' . $file->getSize() . '): ' . $file->getFilename());
  79. break;
  80. }
  81. }
  82.  
  83. function DefineClass($ClassName = null) {
  84. if (class_exists($ClassName))
  85. SystemExit("{$ClassName} is already defined");
  86. else {
  87. $ClassName = $_SERVER['DOCUMENT_ROOT'] . Configurations::MainRoot . "classes/{$ClassName}.php";
  88. ((file_exists($ClassName)) ? require $ClassName : SystemExit("{$ClassName} does not exist"));
  89. }
  90. }
  91.  
  92. function SystemExit($text = 'No given message', $line = __LINE__, $file = __FILE__) {
  93. header('Content-Type: text/plain');
  94. print ("$text - " . date("F j, Y, g:i a"));
  95. print ("\nLocation: $file ($line)");
  96. exit(1);
  97. }
  98.  
  99. /** ATTENTION!
  100. * For some reason, the CMS looks really bad on Internet Explorer.
  101. * So to prevent users see the bad side of our CMS, we do this!
  102. **/
  103. if (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT'])) {
  104. //SystemExit("Sorry for the inconvenience, this page can't be viewed on Internet Explorer.\nWe recommend you to use Firefox or Google Chrome instead.");
  105. }
  106. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement