*
*/
- require_once 'include/text.php';
-
use Friendica\App;
-use Friendica\Core\Addon;
use Friendica\Core\Cache;
use Friendica\Core\Config;
+use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
- require_once 'boot.php';
- require_once 'include/dba.php';
- require_once 'include/text.php';
-
function forumdirectory_install()
{
- Addon::registerHook('app_menu', 'addon/forumdirectory/forumdirectory.php', 'forumdirectory_app_menu');
+ Hook::register('app_menu', 'addon/forumdirectory/forumdirectory.php', 'forumdirectory_app_menu');
}
function forumdirectory_uninstall()
require_once 'mod/share.php';
require_once 'mod/parse_url.php';
- require_once 'include/text.php';
-
function fromgplus_install() {
- Addon::registerHook('connector_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
- Addon::registerHook('connector_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
- Addon::registerHook('cron', 'addon/fromgplus/fromgplus.php', 'fromgplus_cron');
+ Hook::register('connector_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
+ Hook::register('connector_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
+ Hook::register('cron', 'addon/fromgplus/fromgplus.php', 'fromgplus_cron');
}
function fromgplus_uninstall() {
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
*/
require_once 'mod/item.php';
- require_once 'include/items.php';
- require_once 'include/text.php';
-
use Friendica\App;
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
if ($role == "pub") {
$r = q("SELECT * FROM `contact` WHERE LENGTH(`pubkey`) AND `dfrn-id`='%s' LIMIT 1", DBA::escape($dfrn_id));
if (!count($r)) {
- killme();
+ exit();
}
- $encrypt_func = openssl_public_encrypt;
- $decrypt_func = openssl_public_decrypt;
+ $encrypt_func = 'openssl_public_encrypt';
+ $decrypt_func = 'openssl_public_decrypt';
$key = $r[0]["pubkey"];
} else if ($role == "prv") {
$r = q("SELECT * FROM `contact` WHERE LENGTH(`prvkey`) AND `issued-id`='%s' LIMIT 1", DBA::escape($dfrn_id));
if (!count($r)) {
- killme();
+ exit();
}
- $encrypt_func = openssl_private_encrypt;
- $decrypt_func = openssl_private_decrypt;
+ $encrypt_func = 'openssl_private_encrypt';
+ $decrypt_func = 'openssl_private_decrypt';
$key = $r[0]["prvkey"];
} else {
- killme();
+ exit();
}
$uid = $r[0]["uid"];