#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
function doRegisterForm() {
global $globals;
global $token;
$token = $_GET['token'];
if(!empty($globals['recaptcha_public_key'])) import('recaptchalib');
if(!empty($globals['recaptcha_public_key'])) echo '';
if($token) $token_add = '?token='.$token;
echo '
'.__('Register').'
';
}
function doLoginForm() {
// Don't touch the space in __('Register ')!!
echo '
';
echo ' ';
}
function doProfileForm() {
global $_USER;
global $globals;
echo '
'.__('Profile').'
';
doProfileTags();
echo '
';
}
function doConfigurationForm() {
global $_USER;
global $globals;
echo '
'.__('Configuration').'
';
doProfileTags();
echo '
'.__('Delete account').'';
}
function doCustomizeForm() {
global $_USER;
global $globals;
echo '
'.__('Customize').'
';
doProfileTags();
echo '
';
}
function doTwitterForm() {
global $_USER;
echo '
'.__('Twitter').'
';
doProfileTags();
if (empty($_USER['twitter_username']) or empty($_USER['twitter_password'])) $disabled = true;
else $disabled = false;
echo '
';
}
function doIgnoresForm() {
global $_USER;
echo '
'.__('Ignored users').'
';
doProfileTags();
echo '
';
if (count($_USER['ignored']) == 0) {
echo showStatus(__('You are not ignoring anyone'), 'warning');
}
else {
echo '
';
foreach ($_USER['ignored'] as $followers) showUser($followers);
echo '
';
}
}
function doDropForm() {
global $_USER;
echo '
'.__('Delete account').'
'.str_replace('%name', NAME, __('In order to delete your account from %name, you have to enter you password in the next form. Then you will receive an email with the
instructions to complete the process.')).'
';
}
function doForgotForm() {
$text = '';
return $text;
}
function doResendMailForm() {
return '';
}
function doTroubleLoginForm() {
echo '