require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
-define ( 'FRIENDICA_VERSION', '3.1.1584' );
+define ( 'FRIENDICA_VERSION', '3.1.1586' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
- define ( 'DB_UPDATE_VERSION', 1157 );
+ define ( 'DB_UPDATE_VERSION', 1158 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
*/
if(!isset($this->page['htmlhead']))
$this->page['htmlhead'] = '';
- $tpl = get_markup_template('head.tpl');
// If we're using Smarty, then doing replace_macros() will replace
// any unrecognized variables with a blank string. Since we delay
else
$stylesheet = '$stylesheet';
+ $tpl = get_markup_template('head.tpl');
$this->page['htmlhead'] = replace_macros($tpl,array(
'$baseurl' => $this->get_baseurl(), // FIXME for z_path!!!!
'$local_user' => local_user(),
}
- $tpl = get_markup_template('profile_vcard.tpl');
-
$p = array();
foreach($profile as $k => $v) {
$k = str_replace('-','_',$k);
if($a->theme['template_engine'] === 'internal')
$location = template_escape($location);
+ $tpl = get_markup_template('profile_vcard.tpl');
$o .= replace_macros($tpl, array(
'$profile' => $p,
'$connect' => $connect,
function display_init(&$a) {
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
- notice( t('Public access denied.') . EOL);
- killme();
return;
}
function display_content(&$a, $update = 0) {
+ if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
+ notice( t('Public access denied.') . EOL);
+ return;
+ }
+
require_once("include/bbcode.php");
require_once('include/security.php');
require_once('include/conversation.php');
if($update) {
$item_id = $_REQUEST['item_id'];
+ $a->profile = array('uid' => intval($update), 'profile_uid' => intval($update));
}
else {
$item_id = (($a->argc > 2) ? intval($a->argv[2]) : 0);
$sql_extra = item_permissions_sql($a->profile['uid'],$remote_contact,$groups);
if($update) {
+
+dbg(1);
$r = q("SELECT id FROM item WHERE item.uid = %d
AND `item`.`parent` = ( SELECT `parent` FROM `item` WHERE ( `id` = '%s' OR `uri` = '%s' ))
$sql_extra AND unseen = 1",
dbesc($item_id),
dbesc($item_id)
);
+dbg(0);
if(!$r)
return '';
}