$key) { if ($key == "bexit") { $_GET[$item] = "main"; if (isset($_SESSION['product'])) unset($_SESSION['product']); } } require_once ($_SERV."header.php"); if($include=='login' && isset($_POST['form_login']) && $_POST['form_login']['l']!='' && $_POST['form_login']['p']!=''){ $res=mysql_query("SELECT id,name,login,e_mail,role FROM portal_users WHERE login='".$_POST['form_login']['l']."' AND password='".md5($_POST['form_login']['p'])."' AND activ='1' "); if(mysql_num_rows($res)){ $row=mysql_fetch_array($res); $_SESSION['us_id']=$row['id']; $_SESSION['us_name']=$row['name']; $_SESSION['us_login']=$row['login']; if(!$_SESSION['us_name']){ $_SESSION['us_name']=$_SESSION['us_login']; } $_SESSION['us_e_mail']=$row['e_mail']; $_SESSION['us_role']=$row['role']; $include='main'; } else{ $login_result=$_LNG['nevernyi_login_ili_parol']; } } elseif($include=='logout'){ unset($_SESSION['us_id'],$_SESSION['us_name'],$_SESSION['us_login'],$_SESSION['us_e_mail'],$_SESSION['us_role']); $include='main'; } if(isset($_GET['order'])) { $new_tovar = trim(strip_tags($_GET['order'])); if(isset($_SESSION['product'])){ array_unshift($_SESSION['product'],$new_tovar); } else { $_SESSION['product'] = array($new_tovar); } } // if (isset($_SESSION['product'])) //{ //} ?> Baks accessories <?=$page_title_from_base?> $key) { // echo("D: ".$item." - ".$key."
"); } foreach ( $_SESSION['product'] as $item => $key) { // echo("SP: ".$item." - ".$key."
"); } ?>
0) { $row0=@mysql_fetch_assoc($res0); ?> '); if(isset($_SESSION['product'])) { $summ = 0; foreach($_SESSION['product'] as $k=>$v) { $summ++; // $query ="SELECT id ,title_".$lang." AS title, maxtext_".$lang." AS maxtext, main_foto, cat, colors, collections, compositions, brand FROM modul_1_goods WHERE id='".(int)$v."' "; // $res=mysql_query($query); // echo($query); // $r=mysql_fetch_array($res); } echo("В вашей корзине ".$summ." товаров."); echo('

Оформить заказОчистить'); } else echo("Ваша корзина пуста"); echo('
'); ?>
0) { ?>

Контакты

0) { ?> 0) { ?>

Бренды