Advertisement
Guest User

Untitled

a guest
Feb 16th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function get_pg_view() {
  15. global $pg_view;
  16. global $action;
  17.  
  18. if (( $action == 'votes' || $action == 'vote_add' )) {
  19. $pg_view = 'votes';
  20. } else {
  21. if (!$action) {
  22. $pg_view = 'main';
  23. } else {
  24. $pg_view = $action;
  25. }
  26. }
  27.  
  28.  
  29. if (!$pg_view) {
  30. $pg_view = 'main';
  31. }
  32.  
  33. }
  34.  
  35. unset( $x );
  36. $x = ioncube_file_properties( );
  37. $x = (array)$x;
  38.  
  39. if (!$x['v4']) {
  40. $et = time( ) + 10;
  41. } else {
  42. $et = strtotime( $x['v4'] );
  43. }
  44.  
  45.  
  46. if (( !in_array( $_SERVER['HTTP_HOST'], $x['v1'] ) || $et < time( ) )) {
  47. if (!defined( 'CWD' )) {
  48. define( 'CWD', ($getcwd = getcwd( ) ? $getcwd : '.') );
  49. }
  50.  
  51. require( CWD . '/config.php' );
  52.  
  53. if ($global_lang == 'arabic') {
  54. exit( $x['v2'] );
  55. } else {
  56. exit( $x['v3'] );
  57. }
  58. }
  59.  
  60. define( 'THIS_PAGE', 'index' );
  61. require( 'global.php' );
  62. templates_cache( array( 'header', 'footer', 'block', 'table', 'page_head', 'js_functions', 'status_bar', 'center_banners', 'blocks_banners' ) );
  63.  
  64. if ($settings['enable_browsing'] != '1') {
  65. if (check_login_cookies( )) {
  66. print '' . '<table width=100% dir=' . $global_dir . '><tr><td><font color=red> ' . $phrases['site_closed_for_visitors'] . ' </font></td></tr></table>';
  67. } else {
  68. print '' . '<center><table width=50% style="border: 1px solid #ccc"><tr><td> ' . $settings['disable_browsing_msg'] . ' </td></tr></table></center>';
  69. exit( );
  70. }
  71. }
  72.  
  73. if (( $action == 'vote_add' && $vote_id )) {
  74. if (!$settings['votes_expire_hours']) {
  75. $settings['votes_expire_hours'] = 24;
  76. }
  77.  
  78. if (!$_COOKIE['vote_added']) {
  79. setcookie( 'vote_added', '1', time( ) + $settings['votes_expire_hours'] * 60 * 60, '/' );
  80. }
  81. }
  82.  
  83. compile_hook( 'site_before_header' );
  84. site_header( );
  85. compile_hook( 'site_after_header' );
  86. print '<script>
  87. JSFX_FloatDiv("status_bar",0,0).flt();
  88. </script>';
  89.  
  90. if (!$blocks_width) {
  91. $blocks_width = '17%';
  92. }
  93.  
  94. print '<table border="0" width="100%" style="border-collapse: collapse" dir=ltr>
  95.  
  96. <tr>';
  97. get_pg_view( );
  98.  
  99. if (!in_array( $pg_view, $actions_checks )) {
  100. $c_pg_view = 'none';
  101. $pg_view = 'main';
  102. } else {
  103. $c_pg_view = $pg_view;
  104. }
  105.  
  106. unset( $blocks );
  107. $qr = db_query( '' . 'select * from store_blocks where active=1 and ((pages like \'%' . $pg_view . ',%\' and (pos=\'l\' or pos=\'r\')) or (pages like \'%' . $c_pg_view . ',%\' and pos=\'c\')) order by pos,ord' );
  108.  
  109. if ($data = db_fetch( $qr )) {
  110. $blocks[$data['pos']][$data['cat']][] = $data;
  111. }
  112.  
  113. unset( $banners );
  114. $qr = db_query( '' . 'select * from store_banners where active=1 and ((pages like \'%' . $pg_view . ',%\' and (menu_pos=\'l\' or menu_pos=\'r\')) or (pages like \'%' . $c_pg_view . ',%\' and menu_pos=\'c\')) order by `type`,menu_pos,ord' );
  115.  
  116. if ($data = db_fetch( $qr )) {
  117. $data['menu_pos'] = iif( $data['type'] == 'menu', $data['menu_pos'], 'x' );
  118. $data['menu_id'] = iif( $data['type'] == 'menu', intval( $data['menu_id'] ), 0 );
  119. $banners[$data['type']][$data['menu_pos']][$data['menu_id']][] = $data;
  120. }
  121.  
  122. unset( $qr );
  123. unset( $data );
  124. .......................................
  125. .........................
  126. ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement