Advertisement
Guest User

Untitled

a guest
Jun 9th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <?php
  2.  
  3. if (!defined('ALLOWINC')) {
  4. exit();
  5. }
  6. define('OWNER', 'برمجة وتصميم أسرار الويب');
  7. define('OWNERURL', 'http://www.WebSecretsGroup.com');
  8. //DONT CHANGE THIS !!
  9. define('SALT', '8JNB7^854zq@3|websecretsgroup.com');
  10.  
  11. require $setting['INC'] . '_func.php';
  12. require $setting['INC'] . '_func_more.php';
  13.  
  14. require_once $setting['INC'] . 'class_db.php';
  15.  
  16. $DB = Database::getInstance();
  17. $DB->cacheDir($setting['QCACHE']);
  18.  
  19. if (!$setting['dontGetSetting']) {
  20. $option = $DB->fetch('SELECT * FROM `options` LIMIT 1', 2592000, 'site_', 'options', 'options', 1);
  21. }
  22.  
  23. //qcache setting
  24. $DB->cache = $option[0]['cache_enable'];
  25. if ($option[0]['cache_enable']) {
  26.  
  27. define('CACHE60', 60);
  28. define('CACHE180', 180);
  29. define('CACHE300', 300);
  30. define('CACHE900', 900);
  31. define('CACHEHOUR', 3600);
  32. define('CACHEDAY', 'daily');
  33. define('CACHEMONTH', 2592000);
  34. } else {
  35. define('CACHE60', 0);
  36. define('CACHE180', 0);
  37. define('CACHE300', 0);
  38. define('CACHE900', 0);
  39. define('CACHEHOUR', 0);
  40. define('CACHEDAY', 0);
  41. define('CACHEMONTH', 0);
  42. }
  43.  
  44. //country Data
  45. $var['country'] = countries('prefix', COUNTRY);
  46.  
  47. if ($var['country'] && $var['country'] != -1) {
  48. $country = $var['country'][0];
  49. ...............................................
  50. ........................
  51. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement