<?php
+require_once("include/Contact.php");
-
+if(! function_exists('profiles_init')) {
function profiles_init(&$a) {
nav_set_selected('profiles');
}
-
+}
}
+if(! function_exists('profile_clean_keywords')) {
function profile_clean_keywords($keywords) {
$keywords = str_replace(","," ",$keywords);
$keywords = explode(" ", $keywords);
return $keywords;
}
+}
+if(! function_exists('profiles_post')) {
function profiles_post(&$a) {
if(! local_user()) {
}
if($is_default) {
- $location = $locality;
-
- if ($region != "") {
- if ($location != "")
- $location .= ", ";
-
- $location .= $region;
- }
-
- if ($country_name != "") {
- if ($location != "")
- $location .= ", ";
-
- $location .= $country_name;
- }
+ $location = formatted_location(array("locality" => $locality, "region" => $region, "country-name" => $country_name));
$r = q("UPDATE `contact` SET `about` = '%s', `location` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `self` = 1 AND `uid` = %d",
dbesc($about),
}
}
}
+}
-
+if(! function_exists('profile_activity')) {
function profile_activity($changed, $value) {
$a = get_app();
}
}
+}
-
+if(! function_exists('profiles_content')) {
function profiles_content(&$a) {
if(! local_user()) {
}
return $o;
}
-
+}
}