Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- function get_pg_view() {
- global $pg_view;
- global $action;
- if (( $action == 'votes' || $action == 'vote_add' )) {
- $pg_view = 'votes';
- } else {
- if (!$action) {
- $pg_view = 'main';
- } else {
- $pg_view = $action;
- }
- }
- if (!$pg_view) {
- $pg_view = 'main';
- }
- }
- unset( $x );
- $x = ioncube_file_properties( );
- $x = (array)$x;
- if (!$x['v4']) {
- $et = time( ) + 10;
- } else {
- $et = strtotime( $x['v4'] );
- }
- if (( !in_array( $_SERVER['HTTP_HOST'], $x['v1'] ) || $et < time( ) )) {
- if (!defined( 'CWD' )) {
- define( 'CWD', ($getcwd = getcwd( ) ? $getcwd : '.') );
- }
- require( CWD . '/config.php' );
- if ($global_lang == 'arabic') {
- exit( $x['v2'] );
- } else {
- exit( $x['v3'] );
- }
- }
- define( 'THIS_PAGE', 'index' );
- require( 'global.php' );
- templates_cache( array( 'header', 'footer', 'block', 'table', 'page_head', 'js_functions', 'status_bar', 'center_banners', 'blocks_banners' ) );
- if ($settings['enable_browsing'] != '1') {
- if (check_login_cookies( )) {
- print '' . '<table width=100% dir=' . $global_dir . '><tr><td><font color=red> ' . $phrases['site_closed_for_visitors'] . ' </font></td></tr></table>';
- } else {
- print '' . '<center><table width=50% style="border: 1px solid #ccc"><tr><td> ' . $settings['disable_browsing_msg'] . ' </td></tr></table></center>';
- exit( );
- }
- }
- if (( $action == 'vote_add' && $vote_id )) {
- if (!$settings['votes_expire_hours']) {
- $settings['votes_expire_hours'] = 24;
- }
- if (!$_COOKIE['vote_added']) {
- setcookie( 'vote_added', '1', time( ) + $settings['votes_expire_hours'] * 60 * 60, '/' );
- }
- }
- compile_hook( 'site_before_header' );
- site_header( );
- compile_hook( 'site_after_header' );
- print '<script>
- JSFX_FloatDiv("status_bar",0,0).flt();
- </script>';
- if (!$blocks_width) {
- $blocks_width = '17%';
- }
- print '<table border="0" width="100%" style="border-collapse: collapse" dir=ltr>
- <tr>';
- get_pg_view( );
- if (!in_array( $pg_view, $actions_checks )) {
- $c_pg_view = 'none';
- $pg_view = 'main';
- } else {
- $c_pg_view = $pg_view;
- }
- unset( $blocks );
- $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' );
- if ($data = db_fetch( $qr )) {
- $blocks[$data['pos']][$data['cat']][] = $data;
- }
- unset( $banners );
- $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' );
- if ($data = db_fetch( $qr )) {
- $data['menu_pos'] = iif( $data['type'] == 'menu', $data['menu_pos'], 'x' );
- $data['menu_id'] = iif( $data['type'] == 'menu', intval( $data['menu_id'] ), 0 );
- $banners[$data['type']][$data['menu_pos']][$data['menu_id']][] = $data;
- }
- unset( $qr );
- unset( $data );
- .......................................
- .........................
- ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement