diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/dfrn_poll.php | 3 | ||||
-rw-r--r-- | mod/register.php | 4 | ||||
-rw-r--r-- | mod/settings.php | 18 |
3 files changed, 25 insertions, 0 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index a8c27efc1..22d2ee40f 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -1,11 +1,14 @@ <?php + + require_once('include/items.php'); require_once('include/auth.php'); function dfrn_poll_init(&$a) { + $dfrn_id = ((x($_GET,'dfrn_id')) ? $_GET['dfrn_id'] : ''); $type = ((x($_GET,'type')) ? $_GET['type'] : 'data'); $last_update = ((x($_GET,'last_update')) ? $_GET['last_update'] : ''); diff --git a/mod/register.php b/mod/register.php index d9dae49a2..bd169fbbb 100644 --- a/mod/register.php +++ b/mod/register.php @@ -357,6 +357,9 @@ function register_content(&$a) { $oidlabel = t("Your OpenID \x28optional\x29: "); } + $license = t('Shared content is covered by the <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a> license.'); + + $o = load_view_file("view/register.tpl"); $o = replace_macros($o, array( '$oidhtml' => $oidhtml, @@ -377,6 +380,7 @@ function register_content(&$a) { '$username' => $username, '$email' => $email, '$nickname' => $nickname, + '$license' => $license, '$sitename' => $a->get_hostname() )); return $o; diff --git a/mod/settings.php b/mod/settings.php index b10f9e3fc..000258db9 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -17,6 +17,9 @@ function settings_post(&$a) { call_hooks('settings_post', $_POST); + if(($a->argc > 1) && ($a->argv[1] == 'addon')) + return; + if(count($a->user) && x($a->user,'uid') && $a->user['uid'] != local_user()) { notice( t('Permission denied.') . EOL); return; @@ -182,6 +185,21 @@ function settings_content(&$a) { return; } + if(($a->argc > 1) && ($a->argv[1] === 'addon')) { + $o .= '<h1>' . t('Plugin Settings') . '</h1>'; + $o .= '<div id="account-settings-link"><a href="settings">' . t('Account Settings') . '</a></div>'; + + $o .= '<form action="settings/addon" method="post" >'; + + $r = q("SELECT * FROM `hook` WHERE `hook` = 'plugin_settings' "); + if(! count($r)) + notice('No Plugin settings configured'); + + call_hooks('plugin_settings', $o); + $o .= '</form>'; + return $o; + } + require_once('include/acl_selectors.php'); $p = q("SELECT * FROM `profile` WHERE `is-default` = 1 AND `uid` = %d LIMIT 1", |