Guest User

Untitled

a guest
May 29th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. session_start( );
  15. include_once( 'config/remove_marks.php' );
  16. include_once( 'config/common.php' );
  17. include_once( 'config/include_path.php' );
  18. include_once( 'config/pear_quickform.php' );
  19. include_once( 'config/module.class.php' );
  20. include_once( 'config/adodb.php' );
  21. include_once( 'config/smarty.php' );
  22. require_once( 'lib/rss/rsslib.php' );
  23. include_once( 'lib/download_remote_file.php' );
  24.  
  25. if (URL_FRIENDLY == true) {
  26. rewriteurl( );
  27. }
  28.  
  29. $default_languages = $oDb->getrow( 'select * from languages where default_id=\'1\'' );
  30.  
  31. if ($_GET['stheme'] != '') {
  32. $_SESSION['theme'] = $_GET['stheme'];
  33. } else {
  34. if ($_SESSION['theme'] == '') {
  35. $_SESSION['theme'] = DEFAULT_THEME;
  36. }
  37. }
  38.  
  39. $_SESSION['theme'] = $_SESSION['theme'];
  40.  
  41. if ($_GET['slang_id'] != '') {
  42. $languages = $oDb->getrow( 'select * from languages where id=\'' . $_GET['slang_id'] . '\'' );
  43. $_SESSION['lang_id'] = $_GET['slang_id'];
  44. $_SESSION['lang'] = $languages['name_file'];
  45. } else {
  46. if ($_SESSION['lang'] == '') {
  47. $_SESSION['lang_id'] = $default_languages['id'];
  48. $_SESSION['lang'] = $default_languages['name_file'];
  49.  
  50. if (check_ip_vn( ) != 1) {
  51. $_SESSION['lang_id'] = $default_languages['id'];
  52. $_SESSION['lang'] = $default_languages['name_file'];
  53. }
  54. }
  55. }
  56.  
  57. $_SESSION['lang_file'] = $_SESSION['lang'] . '.conf';
  58. $oSmarty->assign( 'article_category', $oDb->getall( 'select * from article_category where lang_id=\'' . $_SESSION['lang_id'] . '\'' ) );
  59.  
  60. if ($_GET['ajax'] != true) {
  61. loadmodule( 'layout' );
  62. } else {
  63. loadmodule( $_GET['mod'], $_GET['task'] );
  64. }
  65. ....................................................................
  66. ......................
  67. .......
Advertisement
Add Comment
Please, Sign In to add comment