city_ip_check($city_url); if($cts != '0'){ //=================== condition for 404 start ========================== $city_url_new = $sanformation->city_ip_name($city_url); if($city_url_new != $city_url){ $city_url = $city_url_new; $ne_url = "http://www.dialindia.com/$city_url/"; header("Location: $ne_url"); } //================================================================ if($city_url != ''){ $city_urls = "$city_url/"; }else{ $city_urls = ""; } //=============================== City above ================= //============================================ duration calculator ================================ $dt = $date->format( 'd M Y H:i' ); $time_now = strtotime("$dt"); function Duration($s, $e){ $timestamp = $e - $s; $years=floor($timestamp/(60*60*24*365));$timestamp%=60*60*24*365; $weeks=floor($timestamp/(60*60*24*7));$timestamp%=60*60*24*7; $days=floor($timestamp/(60*60*24));$timestamp%=60*60*24; $hrs=floor($timestamp/(60*60));$timestamp%=60*60; $mins=floor($timestamp/60);$secs=$timestamp%60; /* if ($years >= 1) { $str.= $years.' years '; } if ($weeks >= 1) { $str.= $weeks.' weeks '; } if ($days >= 1) { $str.=$days.' days '; } if ($hrs >= 1) { $str.=$hrs.' hours '; } if ($mins >= 1) { $str.=$mins.' minutes '; } */ //--------------------------------------------------- if($days < 1){ if ($hrs >= 1) { $str.=$hrs.' hours '; } if ($mins >= 1) { $str.=$mins.' minutes '; } }else{ $str = '2'; } return $str; } $city_name = $sanformation->city_name($city_url); $city_dtls = $sanformation->city_details_by_url($city_url); $m_title = $city_dtls['meta_title']; $m_description = $city_dtls['meta_desc']; $m_key = $city_dtls['meta_key']; $canonical = "http://www.dialindia.com/$city_url/"; ?> <?=$city_name;?> Classified Ads, Real Estate, Property, Jobs, Matrimonial<?=$m_title;?>
Select a category to find what you are looking for in
'; $first_div_end = ''; $div_class = 'leftlist1'; }elseif($x == '2'){ $first_div_start = ''; $first_div_end = ''; $div_class = 'leftlist2'; }elseif($x == '3'){ $first_div_start = ''; $first_div_end = '
'; $div_class = 'leftlist3'; } $first_div_end = ''; $div_class = 'leftlist2'; //echo $first_div_start; ?>

'; } $ts++; } //if(($count%3) != '0'){ echo ''; } ?>