require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
- define ( 'FRIENDICA_VERSION', '2.3.1193' );
+ define ( 'FRIENDICA_VERSION', '2.3.1203' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
- define ( 'DB_UPDATE_VERSION', 1111 );
+ define ( 'DB_UPDATE_VERSION', 1112 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
}
if(($r === false) || (! count($r))) {
- notice( t('No profile') . EOL );
+ notice( t('Requested profile is not available.') . EOL );
$a->error = 404;
return;
}
if($r && count($r)) {
$total = 0;
$now = strtotime('now');
+ $cids = array();
+
$istoday = false;
foreach($r as $rr) {
if(strlen($rr['name']))
foreach($r as $rr) {
if(! strlen($rr['name']))
continue;
+
+ // avoid duplicates
+
+ if(in_array($rr['cid'],$cids))
+ continue;
+ $cids[] = $rr['cid'];
+
$today = (((strtotime($rr['start'] . ' +00:00') < $now) && (strtotime($rr['finish'] . ' +00:00') > $now)) ? true : false);
$sparkle = '';
$url = $rr['url'];
if($a->argc > 1)
$which = $a->argv[1];
else {
- notice( t('No profile') . EOL );
- $a->error = 404;
- return;
+ $r = q("select nickname from user where blocked = 0 and account_expired = 0 and verified = 1 order by rand() limit 1");
+ if(count($r)) {
+ $which = $r[0]['nickname'];
+ }
+ else {
+ notice( t('Requested profile is not available.') . EOL );
+ $a->error = 404;
+ return;
+ }
}
$profile = 0;
if(! $blocked) {
$keywords = ((x($a->profile,'pub_keywords')) ? $a->profile['pub_keywords'] : '');
- $keywords = str_replace(array(',',' ',',,'),array(' ',',',','),$keywords);
+ $keywords = str_replace(array('#',',',' ',',,'),array('',' ',',',','),$keywords);
if(strlen($keywords))
$a->page['htmlhead'] .= '<meta name="keywords" content="' . $keywords . '" />' . "\r\n" ;
}