assign( 'cart', $cart ); /* function compress($buffer) { $buffer = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer); return $buffer; } ob_start('compress'); */ /* ---------------------------------------------------------------------- 09.12.2022 Выбираем шаблон модуля ---------------------------------------------------------------------- */ if ( file_exists ( 'skin/' . $_SERVER['SERVER_NAME'] . '/inc/mod/' . MOD . '/index.html' ) ) $smarty -> display( 'skin/' . $_SERVER['SERVER_NAME'] . '/inc/mod/' . MOD . '/index.html', @$_GET['id'] ); else $smarty -> display( 'api/modules/' . MOD . '/index.html', @$_GET['id'] ); $user_id = ( $_SESSION['user_id'] ? $_SESSION['user_id'] : session_id() ); $time_site = round( microtime(true) - $start_site, 5 ); \DB::add( "INSERT INTO `site_speed` ( `t`, `mod`, `mod_id`, `speed`, `user_id` ) VALUES ( ?, ?, ?, ?, ? )", array( time(), MOD, $_GET['id'], $time_site, $user_id ) ); ob_end_flush(); //ob_end_flush(); ?>