Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Otto

By: a guest on Jul 16th, 2009  |  syntax: PHP  |  size: 1.52 KB  |  views: 669  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. error_reporting(E_ALL ^ E_NOTICE);
  3. $archives = array();
  4. $secured = array();
  5. $arlang['azeri']='az';
  6. $arlang['english']='eng';
  7. $deflang = 'az';                                                // default language
  8.  
  9.  
  10.  
  11. $cfg['domain']='.amfa.az';
  12. $cfg['salt']='As';
  13. $cfg['db_host']         = 'localhost';
  14. $cfg['db_name']         = 'parviz';             // imya bazi
  15. $cfg['db_user']         = 'parviz';             // imya polzovatelya dlya podklucheniya v bazu
  16. $cfg['db_pass']         = 'mamedov';    // parol dlya podklucheniya v bazu
  17. $cfg['db_prefix']       = 'thesite_';   // DB prefix
  18. $cfg['db_tb_pages']     = $cfg['db_prefix'].'pages';                            // DB table name for pages
  19. $cfg['db_tb_articles']  = $cfg['db_prefix'].'articles';                         // DB table name for articles
  20. $cfg['db_tb_users'] = $cfg['db_prefix'].'users';
  21. $cfg['db_tb_valyuta'] = $cfg['db_prefix'].'valyuta';
  22. $cfg['dirroot']         = $_SERVER["DOCUMENT_ROOT"];
  23.  
  24. $cfg['paneldir']        = "adminka";    // imya direktorii dlya control panel
  25. $cfg['templatesdir']= $cfg['dirroot']."/".$cfg['paneldir']."/tmp/";             // direktoriya templatev (doljna naxoditsya tam je gde i sam script)
  26. $cfg['libdir']          = $cfg['dirroot']."/".$cfg['paneldir']."/lib/";         // direktoriya lib (standartnie funkcii opredelyaemie mnoy [programmerom] )
  27. $cfg['langdir']         = $cfg['dirroot']."/".$cfg['paneldir']."/lang/";        // direktoriya yazikov
  28. $cfg['includes']        = $cfg['dirroot']."/includes/";                                         // direktoriya yazikovglobal $cfg;
  29.  
  30. $DB_DEBUG = true;
  31. $DB_DIE_ON_FAIL = true;
  32. require_once($cfg['libdir']."dblib.php");
  33. require_once("lang.php");
  34.  
  35. db_connect($cfg['db_host'], $cfg['db_name'], $cfg['db_user'], $cfg['db_pass']);