<?php
-
/**
* @file mod/cal.php
* @brief The calendar module
use Friendica\Database\DBM;
use Friendica\Model\Contact;
use Friendica\Model\Group;
+use Friendica\Protocol\DFRN;
require_once 'include/event.php';
-require_once 'include/redir.php';
function cal_init(App $a)
{
if ($a->argc > 1) {
- auto_redir($a, $a->argv[1]);
+ DFRN::autoRedir($a, $a->argv[1]);
}
if ((Config::get('system', 'block_public')) && (!local_user()) && (!remote_user())) {
use Friendica\Model\Photo;
use Friendica\Network\Probe;
use Friendica\Object\Image;
+use Friendica\Protocol\DFRN;
require_once 'include/items.php';
require_once 'include/acl_selectors.php';
require_once 'include/bbcode.php';
require_once 'include/security.php';
-require_once 'include/redir.php';
require_once 'include/tags.php';
require_once 'include/threads.php';
function photos_init(App $a) {
if ($a->argc > 1) {
- auto_redir($a, $a->argv[1]);
+ DFRN::autoRedir($a, $a->argv[1]);
}
if (Config::get('system', 'block_public') && !local_user() && !remote_user()) {
<?php
-
+/**
+ * @file mod/profile.php
+ */
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Database\DBM;
use Friendica\Model\Group;
use Friendica\Module\Login;
+use Friendica\Protocol\DFRN;
require_once 'include/contact_widgets.php';
-require_once 'include/redir.php';
function profile_init(App $a)
{
$which = $a->user['nickname'];
$profile = htmlspecialchars($a->argv[1]);
} else {
- auto_redir($a, $which);
+ DFRN::autoRedir($a, $which);
}
profile_load($a, $which, $profile);
<?php
-
+/**
+ * @file mod/videos.php
+ */
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\System;
use Friendica\Database\DBM;
use Friendica\Model\Contact;
use Friendica\Model\Group;
+use Friendica\Protocol\DFRN;
require_once 'include/items.php';
require_once 'include/acl_selectors.php';
require_once 'include/bbcode.php';
require_once 'include/security.php';
-require_once 'include/redir.php';
function videos_init(App $a) {
if($a->argc > 1)
- auto_redir($a, $a->argv[1]);
+ DFRN::autoRedir($a, $a->argv[1]);
if((Config::get('system','block_public')) && (! local_user()) && (! remote_user())) {
return;