Заполните все поля, либо проверьте на правильность:
';
}
else
{
$session_id = (eregi("^[a-z0-9]{32}$", session_id())) ? session_id() : '';
mysql_query("DELETE FROM captcha WHERE session_id = '$session_id'");
session_destroy();
$head = "Content-type: text/html; charset=utf-8";
if (mail("softvsofte@gmail.com", $_POST['nameF'], $_POST['textF'], "From: ".$_POST['mailF']." \r\n", $head)) {
$_HTML['content'] .='Спасибо за связь
';
} else {
$_HTML['content'] .= "some error happen";
}
$_HTML['content'] .='';
}
//echo $_POST['confirm'] . '|' . $row['code'] . '
';
}
$confirm_id = md5(uniqid($_SERVER['REMOTE_ADDR']));
$_HTML['content'] .='
Обратная связь
';
}
function meta($pageid,$cat,$what)
{
global $_HTML, $_META, $_GET;
/*$cat = ($pageid > 0) ? $_GET['p2'] : 0;*/
if ($what=='title') {$_HTML['title'] = from_cache('1_'.$pageid.'_'.$cat.'_'.$what);
} else {
$_META[$what] = from_cache('1_'.$pageid.'_'.$cat.'_'.$what);}
}
header('Content-type: text/html; charset="utf-8"', true);
$template = file_get_contents(BASE_DIR . 'templates/default/index.php');
$p1 = _param('p1');
$p2 = _param('p2');
$p3 = _param('p3');
$_HTML['title'] = "";
$_HTML['descr'] = "";
$_HTML['head'] = "";
$_META['description'] = "";
$_HTML['body'] = "";
$_META['keywords'] = "";
$_HTML['content'] = '';
$_HTML['in_main'] .= "";
//*MAIN PART - define $_HTML['title'], $_HTML['body'], $_META['keywords'], $_META['description']
$_HTML['title'] = '';
$_HTML['body'] = '';
$_META['keywords'] = '';
$_META['description'] = '';
$main = false;
$catalog = false;
$category = '';
$brand = '';
$model = '';
if ($p1 == "" || $p1 == "index") {
$main = true;
} elseif ($p1 == "articles"){
getContent2($p1,$p2,'Статьи');
} elseif ($p1 == "review"){
getContent2($p1,$p2,'Обзоры');
} elseif ($p1 == "news"){
getContent2($p1,$p2,'Новости');
} elseif ($p1 == "games"){
getGames($p2,$p3);
} elseif ($p1 == "theme"){
getTheme($p2,$p3);
} elseif ($p1 == "pict"){
getPict($p2,$p3);
} elseif ($p1 == "about"){
getAbout();
} elseif ($p1 == "connect"){
getConnect();
} else {
$catalog = true;
$category = $p1;
$brand = $p2;
$model = $p3;
/*echo $category;
echo $brand;
echo $model;*/
}
if ($main) {
include 'include/main.php';
}
include 'include/indx.php';
$cat = 0;
$pageid=0;
if ($main || $catalog) {
if ($category!="")$pageid=1;
if ($brand!="")$pageid=2;
if ($model!="")$pageid=3;
if ($main) {$cat==0;} else {
$q=mysql_query("SELECT * FROM `karman_categories` WHERE `uri`=\"$p1\"");
$f = mysql_fetch_array($q);
$cat = $f['id'];
}
meta($pageid,$cat,'title');
meta($pageid,$cat,'description');
meta($pageid,$cat,'keywords');
}
$_HTML['body']=$pageid;
if($category=="cart") {
$_HTML['content'] = "".getCart()."
";
}
elseif($category=="search") {
$_HTML['content'] = "".search()."
";
}
elseif ($catalog) {
$_HTML['content'] = "".getContent($pageid,$category,$brand,$model)."
";
}
/************/
$q_categories = mysql_query("SELECT `name`,`uri` FROM `karman_categories`");
$_HTML['categorytags'] = '';
for ($i=0;$i$f_categories[name]";
}
$_HTML['head'] = '';
foreach ($_META as $km=>$m) {
foreach ($_METATAGS as $km=>$v) {
$m = str_replace("@@_".$k."_@@",$v,$m);
}
}
foreach ($_META as $k=>$v) {
$_HTML['head'] .= '';
}
/* $_HTML['body'] = 'Some text';
$_HTML['title'] = 'Untitled';*/
/*Release*/
//while (strrpos($template,"@@_")!==false)
$k=@array_keys($t[all]);
$cart_col=0;
$sum=0;
for ($i=0; $i0) $_HTML['oform'] = "";
else $_HTML['oform'] = "";
if($p1 == "theme" || $p1 == "games" || $p1 == "pict"){
$qq = mysql_query("SELECT * FROM `karman_d` WHERE name='".$p1."' ");
for ($i=0;$i',$template);
$template=str_replace('@@_descr_@@',$ff['mini'],$template);
$template=str_replace('@@_name_games_@@',$gam,$template);
}
foreach ($_HTML as $k=>$v) {
$template = str_replace("@@_".$k."_@@",$v,$template);
}
$template=str_replace('<img src="http://web.mobiguru.ru/web/minus.gif">',htmlspecialchars_decode('–'),$template);
$template=str_replace('##getPic##','
» Картинки
» Темы
» Игры
',$template);
//Cache : start
$template=str_replace("@@_sape_@@",''.mb_convert_encoding($sape->return_links($n), "UTF-8", "CP1251").'
',$template);
echo $template;
$end_time = microtime();$end_array = explode(" ",$end_time);
$end_time = $end_array[1] + $end_array[0];
$time = $end_time - $start_time;
printf("Страница сгенерирована за %f секунд
",$time);
//Cache : end
//echo $sape->return_links($n);