member_email; $mail_disable = 'readonly'; $reg_user_mail = $userEmail; $city_url = $_GET['city']; $cts = $sanformation->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 = "https://zumvu.com/marketplace/$city_url/"; //echo "error"; 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 '; } else if ($weeks >= 1) { $str.= $weeks.' weeks '; } else if ($days >= 1) { $str.=$days.' days '; } else if ($hrs >= 1) { $str.=$hrs.' hours '; } else if ($mins >= 1) { $str.=$mins.' minutes '; } else{ $str = '2'; } //--------------------------------------------------- /* 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']; $state_id = $city_dtls['state_id']; $city_web_url = $city_dtls['city_web_url']; if($city_web_url != ''){ $newslink = '
  • '.$city_name.' News
  • '; }else{ $newslink = ''; } $qstate = "SELECT * FROM `yp_state` WHERE `state_id` = '$state_id'"; $qQry = mysqli_query($condb,$qstate) or die('Error, query failed1 ' . mysqli_error($condb)); $qrow = mysqli_fetch_array($qQry); $stateUrl = $qrow['state_url']; $country_id = $city_dtls['country_id']; //=================================================================================== $qryCountryInc = "SELECT * FROM `yp_countries` WHERE `id` = '$country_id'"; $resCountryInc = mysqli_query($condb,$qryCountryInc) or die('Error, query failed1 ' . mysqli_error($condb)); $rCountryInc = mysqli_fetch_array($resCountryInc); $countrySessionId = $rCountryInc['id']; $currency = $rCountryInc['currency']; $countrySession = $rCountryInc['alpha_2']; $countrySessionName = $rCountryInc['name']; $lang = $rCountryInc['lang']; $expire = (time()+60*60*24*90); setcookie("cntry", $countrySession, $expire, "/", "zumvu.com"); //=================================================================================== $canonical = "https://zumvu.com/marketplace/$city_url/"; ?> <?=$city_name;?> Classified Ads, Real Estate, Property, Jobs, Matrimonial<?=$m_title;?>
    Zumvu Marketplace - Sell Anything Anytime Anywhere! Category Image Post and search free online classified ads for - in .
    BROWSE BY CATEGORY
    '; $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 '
    '; } ?>
    Popular City IN
    '.$city_named.'
    '; } echo $results; ?>
    Latest Ads in
    ", $description); $description = ''; for($i = 0; $i < count($wordChunks); $i++){ $description .= "$wordChunks[$i] "; } $wordChunks = explode("
    ", $description); $description = ''; for($i = 0; $i < count($wordChunks); $i++){ $description .= "$wordChunks[$i] "; } $description = remove_any_tags($description); $description = substr($description, 0, 140); $city_url_l = $rows['city_url']; $ad_details = $sanformation->ad_details($ad_id); $views = $ad_details['views']; $listing_approve_date = $rows['activated_on']; $listing_approve_date_disp = date("F j, Y, g:i a", $listing_approve_date); $images = $rows['photo']; $image_array = explode(",",$images); $count_array = count($image_array); if($count_array == '1' AND $images == ''){ $cnt = '0'; }else{ $cnt = $count_array; } if($rows['photo'] == 'none'){ $img = "/images/noimage.gif"; $img_cd = ''; }elseif($rows['photo'] != ''){ if($count_array == '0'){ $img = $rows['photo']; }else{ $img = $image_array[0]; } $img_cd = ''; }else{ $img = "/marketplace/images/noimage.gif"; $img_cd = ''; } $duration = Duration($listing_approve_date, $time_now); if($duration != '2'){ $duro = $duration.' ago'; }else{ $duro = $listing_approve_date_disp; } $locations = $rows['locations']; $locations_array = explode(",",$locations); if($locations != ''){ $loc = ''.$locations_array[0].''; }else{ $loc = ''; } $you_are = $rows['you_are']; $yr = substr($you_are, 1, 50); $yr = substr($yr, 0, -2); if($yr != ''){ $you = ''.$yr.''; }else{ $you = ''; } $price = $rows['price']; if($price > '0'){ $pric = ''.$currency.' '.number_format($price).''; }else{ $pric = ''; } $add_url = "https://zumvu.com/marketplace/$city_url_l/v$ad_id/$title_url/"; $calltoaction = $rows['calltoaction']; $calltoaction_link = $rows['calltoaction_link']; //if($calltoaction == "Direct Link"){ $add_url = $calltoaction_link; $lrl = ' target="_blank"'; }else{ $lrl = ''; } if($calltoaction == "Direct Link"){ $add_url = $calltoaction_link; $lrl = ' target="_blank" class="dirclnk" data-name="'.$ad_id.'"'; } else if($calltoaction == "Visit Site"){ $add_url = $calltoaction_link; $lrl = ' target="_blank" class="dirclnk" data-name="'.$ad_id.'"'; } else if($calltoaction == "Visit Store"){ $add_url = $calltoaction_link; $lrl = ' target="_blank" class="dirclnk" data-name="'.$ad_id.'"'; } else if($calltoaction == "Visit Blog"){ $add_url = $calltoaction_link; $lrl = ' target="_blank" class="dirclnk" data-name="'.$ad_id.'"'; } else{ $lrl = ''; } //if($plan == '1'){ $class = "whitebox"; }elseif($plan == '2'){ $class = 'yellowbox'; } $class = $sanformation->plan_class($plan); $btnLabel = $rows['calltoaction']; $btnValue = $rows['calltoaction_link']; $extVal = ''; $callToActionBtn = $sanformation->callToActionBtn($btnLabel,$btnValue,$extVal,$plan); if($btnLabel !=''){ $callToActionBtn_extend = $callToActionBtn; $exclass_name = 'desclassspan'; }else{ $callToActionBtn_extend =''; $exclass_name =''; } $display = '
    '.$views.' views | '.$duro.'
    '.$description.'...
    '.$callToActionBtn_extend.'
    '.$views.' views | '.$duro.'
    '.$pric.$you.$loc.'
    '.$callToActionBtn_extend.'
    '; echo $display; } $new_st = $w+1; if($cc == $pr){ echo ''; } else { echo ''; } ?>