1999 and $a[1] < 2020 ) $archive = 1; for( $i=0;$ievent("CONTROL: BEFORE ALL PARTS"); include ("incs/all_parts.php"); $GT->event("CONTROL: AFTER ALL PARTS"); array_shift( $a ); for( $i=0;$i=0){ switch ( $pnames[$found][3] ){ case -1:$cur_part = $found; $cur_part_title = $pnames[ $found ][ 1 ]; break; case -2: $cur_region = $found; break; case -3: $cur_theme = $found; if ($cur_theme==228) $cur_theme=189;// Ðåäèðåêò ñòàðîé òåìû break; } } } } //include "off_line/off_line.php"; if ( $article ) { $ofindex = "a_{$cur_part_title}_{$article}". ( $s_zahav ? '_z' : '' ) . '.html'; // if ( make_off_line( $ofindex, array( v=>2, t=>make_off_line_period(1) ) ) ){ $special_templates = array( photo => 'article_photo.php', ); $this_template = $special_templates[ $cur_part_title ] ; if ( ! $this_template) $this_template = 'article.php'; include ("templates/$this_template"); // make_off_line_end(); // } } else if ( $archive ) include ("templates/archive.php"); else if ( $lent) include ("templates/lenta.php"); else{ $GT->event("CONTROL: BEFORE PART"); if ( $cur_part || $cur_region || $cur_theme ) { include ("templates/part.php"); } else { virtual( "/404.php" ); exit; include ("templates/index.php"); } $GT->event("CONTROL: AFTER PART"); } include "templates/footer_stat.php"; ?>