require_once('include/security.php');
require_once('include/redir.php');
-if(! function_exists('videos_init')) {
+
function videos_init(&$a) {
if($a->argc > 1)
$profile = get_profiledata_by_nick($nick, $a->profile_uid);
- if((intval($profile['page-flags']) == PAGE_COMMUNITY) || (intval($profile['page-flags']) == PAGE_PRVGROUP))
- $account_type = t('Forum');
- else
- $account_type = "";
+ $account_type = account_type($profile);
$tpl = get_markup_template("vcard-widget.tpl");
return;
}
-}
-if(! function_exists('videos_post')) {
+
+
function videos_post(&$a) {
$owner_uid = $a->data['user']['uid'];
$drop_id = intval($i[0]['id']);
if($i[0]['visible'])
- proc_run('php',"include/notifier.php","drop","$drop_id");
+ proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
}
}
}
goaway($a->get_baseurl() . '/videos/' . $a->data['user']['nickname']);
+
}
-}
-if(! function_exists('videos_content')) {
+
function videos_content(&$a) {
// URLs (most aren't currently implemented):
$can_post = true;
$contact = $r[0];
$remote_contact = true;
- $visitor = $cid;
+ $visitor = $contact_id;
}
}
}
$o .= paginate($a);
return $o;
}
-}
+