- function show_form($msg=null, $success=false)
- {
- $user = common_current_user();
-
- $this->form_header(_('Other Settings'), $msg, $success);
-
- common_element('h2', null, _('URL Auto-shortening'));
- common_element_start('form', array('method' => 'post',
- 'id' => 'othersettings',
- 'action' =>
- common_local_url('othersettings')));
- common_hidden('token', common_session_token());
-
- $services = array(
- '' => 'None',
- 'ur1.ca' => 'ur1.ca (free service)',
- '2tu.us' => '2tu.us (free service)',
- 'ptiturl.com' => 'ptiturl.com',
- 'bit.ly' => 'bit.ly',
- 'tinyurl.com' => 'tinyurl.com',
- 'is.gd' => 'is.gd',
- 'snipr.com' => 'snipr.com',
- 'metamark.net' => 'metamark.net'
- );
-
- common_dropdown('urlshorteningservice', _('Service'), $services, _('Automatic shortening service to use.'), false, $user->urlshorteningservice);
-
- common_submit('save', _('Save'));
-
- common_element_end('form');