darcs-hash:20080702131507-84dde-507a6380fcab66c1fbcbaad6d1399c8a2f210acf.gz
This commit is contained in:
Evan Prodromou 2008-07-02 09:15:07 -04:00
parent 8c1ac74f7c
commit 721d6f94c7
13 changed files with 111 additions and 109 deletions

View File

@ -65,7 +65,7 @@ class FinishopenidloginAction extends Action {
common_show_header(_t('OpenID Account Setup'), NULL, $error,
array($this, 'show_top'));
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'account_connect',
'action' => common_local_url('finishopenidlogin')));
common_element('h2', NULL,

View File

@ -33,7 +33,7 @@ class ImsettingsAction extends SettingsAction {
function show_form($msg=NULL, $success=false) {
$user = common_current_user();
$this->form_header(_t('IM Settings'), $msg, $success);
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'imsettings',
'action' =>
common_local_url('imsettings')));

View File

@ -65,7 +65,7 @@ class LoginAction extends Action {
function show_form($error=NULL) {
common_show_header(_t('Login'), NULL, $error, array($this, 'show_top'));
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'login',
'action' => common_local_url('login')));
common_input('nickname', _t('Nickname'));

View File

@ -59,7 +59,7 @@ class OpenidloginAction extends Action {
function show_form($error=NULL, $openid_url) {
common_show_header(_t('OpenID Login'), NULL, $error, array($this, 'show_top'));
$formaction = common_local_url('openidlogin');
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'openidlogin',
'action' => $formaction));
common_input('openid_url', _t('OpenID URL'),

View File

@ -36,7 +36,7 @@ class OpenidsettingsAction extends SettingsAction {
$this->form_header(_t('OpenID settings'), $msg, $success);
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'openidadd',
'action' =>
common_local_url('openidsettings')));

View File

@ -29,7 +29,7 @@ class PasswordAction extends SettingsAction {
function show_form($msg=NULL, $success=false) {
$this->form_header(_t('Change password'), $msg, $success);
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'password',
'action' =>
common_local_url('password')));

View File

@ -33,7 +33,7 @@ class ProfilesettingsAction extends SettingsAction {
$profile = $user->getProfile();
$this->form_header(_t('Profile settings'), $msg, $success);
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'profilesettings',
'action' =>
common_local_url('profilesettings')));

View File

@ -141,7 +141,7 @@ class RecoverpasswordAction extends Action {
common_show_header(_t('Recover password'), NULL,
$msg, array($this, 'show_top'));
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'recoverpassword',
'action' => common_local_url('recoverpassword')));
common_input('nicknameoremail', _t('Nickname or email'),
@ -158,7 +158,7 @@ class RecoverpasswordAction extends Action {
common_show_header(_t('Reset password'), NULL,
$msg, array($this, 'show_password_top'));
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'recoverpassword',
'action' => common_local_url('recoverpassword')));
common_password('newpassword', _t('New password'),

View File

@ -163,7 +163,7 @@ class RegisterAction extends Action {
global $config;
common_show_header(_t('Register'), NULL, $error, array($this, 'show_top'));
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'login',
'action' => common_local_url('register')));
common_input('nickname', _t('Nickname'), NULL,

View File

@ -64,7 +64,7 @@ class RemotesubscribeAction extends Action {
$profile = $this->trimmed('profile_url');
common_show_header(_t('Remote subscribe'), NULL, $err,
array($this, 'show_top'));
common_element_start('form', array('id' => 'remotesubscribe', 'method' => 'POST',
common_element_start('form', array('id' => 'remotesubscribe', 'method' => 'post',
'action' => common_local_url('remotesubscribe')));
common_input('nickname', _t('User nickname'), $nickname,
_t('Nickname of the user you want to follow'));

View File

@ -157,7 +157,7 @@ class ShowstreamAction extends StreamAction {
}
function show_subscribe_form($profile) {
common_element_start('form', array('id' => 'subscribe', 'method' => 'POST',
common_element_start('form', array('id' => 'subscribe', 'method' => 'post',
'action' => common_local_url('subscribe')));
common_element('input', array('id' => 'subscribeto',
'name' => 'subscribeto',
@ -178,7 +178,7 @@ class ShowstreamAction extends StreamAction {
}
function show_unsubscribe_form($profile) {
common_element_start('form', array('id' => 'unsubscribe', 'method' => 'POST',
common_element_start('form', array('id' => 'unsubscribe', 'method' => 'post',
'action' => common_local_url('unsubscribe')));
common_element('input', array('id' => 'unsubscribeto',
'name' => 'unsubscribeto',

View File

@ -111,7 +111,7 @@ class UserauthorizationAction extends Action {
$license);
common_element_end('div');
common_element_end('div');
common_element_start('form', array('method' => 'POST',
common_element_start('form', array('method' => 'post',
'id' => 'userauthorization',
'name' => 'userauthorization',
'action' => common_local_url('userauthorization')));

View File

@ -219,7 +219,7 @@ function common_show_footer() {
common_element_end('div'); # content div
common_foot_menu();
common_element_start('div', array('id' => 'footer'));
common_element_start('p', 'laconica');
common_element_start('div', 'laconica');
if (common_config('site', 'broughtby')) {
$instr = _t('**%%site.name%%** is a microblogging service brought to you by [%%site.broughtby%%](%%site.broughtbyurl%%). ');
} else {
@ -232,7 +232,7 @@ function common_show_footer() {
'(http://www.fsf.org/licensing/licenses/agpl-3.0.html).');
$output = common_markup_to_html($instr);
common_raw($output);
common_element_end('p');
common_element_end('div');
common_element('img', array('id' => 'cc',
'src' => $config['license']['image'],
'alt' => $config['license']['title']));
@ -830,14 +830,16 @@ function common_notice_form($action=NULL, $content=NULL) {
$user = common_current_user();
assert(!is_null($user));
common_element_start('form', array('id' => 'status_form',
'method' => 'POST',
'method' => 'post',
'action' => common_local_url('newnotice')));
common_element_start('p');
common_element('label', array('for' => 'status_update',
common_element('label', array('for' => 'status_textarea',
'id' => 'status_label'),
_t('What\'s up, ').$user->nickname.'?');
common_element('span', array('id' => 'counter', 'class' => 'counter'), '140');
common_element('textarea', array('id' => 'status_textarea',
'cols' => 60,
'rows' => 3,
'name' => 'status_textarea'),
($content) ? $content : '');
if ($action) {