'; $ad_350_2 = ' '; $side_ad = ''; $search_box = ''; $ad_tower = ''; ?> " /> " /> <?php if($_GET['title']) { echo"$otrs_title / $page_title"; } else { echo"$page_title";} ?>
$search_box
"; ?>

$wide_ad
"; ?>


"; //include"side_reg.php"; //include"side_flags.php"; echo"
"; ?> $otrs_title"; } else { echo"

$page_title

"; } if(!$_GET['title']) { $vards = "$page_title"; } else { $vards = "$otrs_title"; } if($_GET['id']&&!$_GET['do'] || !$_GET['id']&&!$_GET['do']){ $p_v = explode(" ","$vards"); echo"
"; echo"
$ad_350_2
"; ////////////////////// $pants = mysql_query("SELECT $kode, id, cat FROM pantini WHERE $kode LIKE '%$p_v[0]%' LIMIT 5"); $nr = 0; $nf = 1; while($fif = mysql_fetch_array($pants)){ include"pantini.php"; } echo"
$ad_350_1
"; ////////////////////// $pants = mysql_query("SELECT $kode, id, cat FROM pantini WHERE $kode LIKE '%$p_v[1]%' LIMIT 5"); $nf = 9; $nr = 0; while($fif = mysql_fetch_array($pants)){ include"pantini.php"; } echo"
$ad_350_1
"; $pants = mysql_query("SELECT $kode, id, cat FROM pantini WHERE $kode LIKE '%$p_v[2]%' LIMIT 5"); $nr = 0; while($fif = mysql_fetch_array($pants)){ include"pantini.php"; } } else{ echo"
"; if($_GET['do']=='reg'){ include"reg.php"; } ////////////////// Atjaunot paroli if($_GET['do']=='recover') { echo"$tulkojums[99]"; if($_POST['recover']) { $vards = mysql_real_escape_string($_POST['name']); $pasts = mysql_real_escape_string($_POST['pasts']); $vai_ir_pasts = mysql_num_rows(mysql_query("SELECT id FROM users WHERE email ='$pasts' LIMIT 1")); if($vai_ir_pasts==1) { echo"

$tulkojums[101]

"; $iz = mysql_fetch_array(mysql_query("SELECT id, email, name, pass FROM users WHERE email = '$pasts' LIMIT 1")); $admin_v = str_ireplace("http://","","$majaslapa"); $admin_e = str_ireplace("www.","","$admin_v"); $admin_e = "noreplay@$admin_e"; $kas = $iz['id']; $kam = $iz['id']; $type = "pass_atjaun"; $date = date("ymdhis"); include"mailing.php"; } else { echo"

$tulkojums[15]

"; } } else { echo"
"; echo"
"; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo"
$tulkojums[7] :
$tulkojums[8] :
$tulkojums[100] :
$ip
"; echo"
"; echo"
"; } } ////////////// Mainit profila bildi if($_GET['do']=='change_pic') { echo" "; echo"

$tulkojums[32]

"; $user_img = str_replace("$majaslapa/", "" , "$lietotajs[img_src_b]"); list($width, $height) = getimagesize("$user_img"); if($width>$height) { $target_size = 350; $proporcion = $width / $target_size; $new_w = $width / $proporcion; $new_h = $height / $proporcion; } else { $target_size = 350; $proporcion = $height / $target_size; $new_w = $width / $proporcion; $new_h = $height / $proporcion; }$rofa2 = "width='$new_w px' height='$new_h px'"; if(!$new_w || !$new_h) { $rofa2 = "width='333px' height='333px'"; $div_style = "width: $new_w px; height: $new_h px;"; } echo"


"; if($_POST['submit']) { include"pic/change.php"; } if($_GET['upload_message_type']=='error') { echo"

$tulkojums[19]

"; } echo"


"; } /////////////// Citu profils TIkai virsraksts if($_GET['do']=='profile' && $_GET['id']){ echo"$prifle[name]"; if($_GET['type']=='pic') { $user_img = str_replace("$majaslapa/", "" , "$prifle[img_src_b]"); $user_img2 = str_replace("$majaslapa/", "" , "$prifle[img_src]"); if (file_exists($prifle['img_src_b'])) { list($width, $height) = getimagesize("$user_img"); } else { list($width, $height) = getimagesize("$user_img2"); } if($width>$height) { $target_size = 350; $proporcion = $width / $target_size; $new_w = $width / $proporcion; $new_h = $height / $proporcion; } else { $target_size = 350; $proporcion = $height / $target_size; $new_w = $width / $proporcion; $new_h = $height / $proporcion; }$rofa2 = "width='$new_w px' height='$new_h px'"; if(!$new_w || !$new_h) { $rofa2 = "width='333px' height='333px'"; $div_style = "width: $new_w px; height: $new_h px;"; } echo"

"; if($page_settings['vote']=='yes'){ include"vote.php"; } } } //////////////////////// Profile show if($_GET['do']=='profile'&&$_GET['id']&&!$_GET['mail']) { if($page_settings['comments']=='yes'){ include"koment_machine.php"; echo"
"; } } //////////////////////// Profile show ///// citu profils rakstit vestuli if($_GET['do']=='profile' && $sesijas_epasts && $_GET['id'] && $_GET['mail']=='rakstit' ) { include"vestules.php"; } //////////// Mainit profila settings if($_GET['do']=='settings') { echo"$tulkojums[44]"; echo"
"; ///////////////////////////////////////////////////////////// if($_POST['labot_pass']) { $veca = mysql_real_escape_string($_POST['old_pass']); $jauna = mysql_real_escape_string($_POST['new_pass']); $atkartot = mysql_real_escape_string($_POST['rep_pass']); if($lietotajs['pass']==$_POST['old_pass']) { if($_POST['new_pass']==$_POST['rep_pass']&&$lietotajs['pass']==$_POST['old_pass']) { mysql_query("UPDATE `users` SET pass = '$jauna' WHERE id = '$lietotajs[id]' LIMIT 1"); ///// Ok ievietojam echo"

$tulkojums[45]

"; } else { ///// Paroles nesakrit echo"

$tulkojums[46]

"; } } else { //// Nepareiza parole echo"

$tulkojums[47]

"; } } ////////////////////////////// if($_POST['labot_e']) { if($_POST['san_v']=='on') { mysql_query("UPDATE `settings` SET san_v = 'yes' WHERE user = '$lietotajs[id]' LIMIT 1"); } else { mysql_query("UPDATE `settings` SET san_v = 'no' WHERE user = '$lietotajs[id]' LIMIT 1"); } if($_POST['citats']=='on') { mysql_query("UPDATE `settings` SET citats = 'yes' WHERE user = '$lietotajs[id]' LIMIT 1"); } else { mysql_query("UPDATE `settings` SET citats = 'no' WHERE user = '$lietotajs[id]' LIMIT 1"); } if($_POST['raksts']=='on') { mysql_query("UPDATE `settings` SET raksts = 'yes' WHERE user = '$lietotajs[id]' LIMIT 1"); } else { mysql_query("UPDATE `settings` SET raksts = 'no' WHERE user = '$lietotajs[id]' LIMIT 1"); } if($_POST['video']=='on') { mysql_query("UPDATE `settings` SET video = 'yes' WHERE user = '$lietotajs[id]' LIMIT 1"); } else { mysql_query("UPDATE `settings` SET video = 'no' WHERE user = '$lietotajs[id]' LIMIT 1"); } if($_POST['atb_coment']=='on') { mysql_query("UPDATE `settings` SET atb_coment = 'yes' WHERE user = '$lietotajs[id]' LIMIT 1"); } else { mysql_query("UPDATE `settings` SET atb_coment = 'no' WHERE user = '$lietotajs[id]' LIMIT 1"); } ////// Izmainas veiktas echo"

$tulkojums[45]

"; } //////////////////////////////////////////////////////////// $sets = mysql_fetch_array(mysql_query("SELECT * FROM settings WHERE user = '$lietotajs[id]' LIMIT 1")); if(!$sets['page']) { mysql_query("UPDATE `settings` SET page = '$majaslapa' WHERE user = '$lietotajs[id]' LIMIT 1"); } if(!$sets['id']) { mysql_query("INSERT INTO settings (user, san_v, skat, sekot, page ) VALUES('$lietotajs[id]','yes','yes','yes','$majaslapa')"); header("Location: $majaslapa$url"); } echo"$tulkojums[48]"; echo"
"; echo"
"; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo"
$tulkojums[49] :
$lietotajs[email]
$tulkojums[50] :
$tulkojums[51] :
$tulkojums[52] :
$tulkojums[102] :
$tulkojums[103] :
"; echo"
"; echo"$tulkojums[54]"; echo"
"; echo"
"; echo""; echo""; echo""; echo""; echo""; echo""; echo"
$tulkojums[55] :
$tulkojums[56] :
$tulkojums[57] :
"; echo"
"; echo"
"; } } echo"
"; ?>
$otrs_title"; } else { echo"

$page_title

"; } ?>