# # 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').'

'.__('username').'

'.__('e-mail').'

'.__('password (again)').'

'.__('password').'

'.__('Language').'

'; if(!empty($globals['recaptcha_public_key'])) echo '

'.recaptcha_get_html($globals['recaptcha_public_key']); echo '
'; if (defined('TOS') && (TOS == true)) echo '

'.__('I accept the').' '.__('privacy and service terms').'


'; echo '

'; } function doLoginForm() { // Don't touch the space in __('Register ')!! echo '


'.__('Having trouble while logging in?').'

'; } function doNoteForm($ajax = true, $upload = false, $note = '') { global $_USER; if(!$ajax) return doNoteFormSimple($upload, $note); echo '

'; if (defined('ALERT')) echo showStatus(ALERT, 'info'); } function doNoteFormSimple($upload = false, $note = '') { global $_USER; echo '

'; if($upload) echo ''; } function doNoteFormMobile() { global $_USER; if(!$_USER) return; echo '

'. __('Send note').'


'; } function doNoteFormMobileiPhone() { global $_USER; if(!$_USER) return; echo '

'.__('140 remaining characters').'
'; } function doProfileTags() { echo ''; echo '
'; } function doProfileForm() { global $_USER; global $globals; echo '

'.__('Profile').'


'; doProfileTags(); echo '

'.__('Name').'

'.__('Change avatar').'

'.__('250 KB max. size, jpg/png/gif format').'

'.__('Delete avatar').'

'.__('Webpage').'

'.__('Location').'

'.__('Bio (140 chars max.)').'

'.__('Language').'

'; echo '

'.__('Show my followers?').'

'.__('Private profile?').'


'; } function doConfigurationForm() { global $_USER; global $globals; echo '

'.__('Configuration').'


'; doProfileTags(); echo '

'.__('username').' (ID: '.$_USER['ID'].')

'.__('repeat new password').'

'.__('new password (if you want to change it)').'

'.__('jabber').'

'.__('e-mail').'

'.__('API key').'
'.__('Request new API key').'

'.__('Notification level').'


'; $shorter_service = unserialize($_USER['shorter_service']); echo '

'.__('Try to always show the preview page of a shorted link').'

'.__('URL Shorter service').'


'.__('current password').' '.__('(needed)').'



'.__('Delete account').''; } function doCustomizeForm() { global $_USER; global $globals; echo '

'.__('Customize').'


'; doProfileTags(); echo '
'.__('Theme').'


'.__('Background style').'

'; echo __('Background').'

'.__('1 MB max. size, jpg/png/gif format').'

'.__('Delete background').'

'; } function doTwitterForm() { global $_USER; echo '

'.__('Twitter').'


'; doProfileTags(); if (empty($_USER['twitter_username']) or empty($_USER['twitter_password'])) $disabled = true; else $disabled = false; echo '

Twitter


'.__('username').'

'.__('password').'

'; echo '

'.__('Show tweets in the friends tab').'

'.__('Post Jisko notes to Twitter').'

'.__('Delete twitter integration with').' '.NAME.'

'; } 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.')).'



'.__('type your password').'

'; } function doForgotForm() { $text = '
'.__('Recover password...').'

'.__('You can recover your password just typing your email or your username. An email will be delivered to the linked account').'


'.__('Username').'
'.__('Email').'
'; $text .= '

'; $text .= '

'; return $text; } function doResendMailForm() { return '
'.__('Resend activation mail...').'

'.__('If you didnt receive your activation email, you can try resending it from here. Just typing your username').'



'.__('Username').'


'; } function doTroubleLoginForm() { echo '
'.doResendMailForm().'
'.doForgotForm().'
'; } ?>