b2evolution PHP Cross Reference Blogging Systems

Source: /inc/settings/views/_xmlrpc.form.php - 53 lines - 1777 bytes - Text - Print

Description: This file implements the UI view for XML-RPC settings. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**
   3   * This file implements the UI view for XML-RPC settings.
   4   *
   5   * This file is part of the evoCore framework - {@link http://evocore.net/}
   6   * See also {@link http://sourceforge.net/projects/evocms/}.
   7   *
   8   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
   9   *
  10   * @package admin
  11   *
  12   * @version $Id: _xmlrpc.form.php 6136 2014-03-08 07:59:48Z manuel $
  13   */
  14  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  15  
  16  
  17  /**
  18   * @var User
  19   */
  20  global $current_User;
  21  /**
  22   * @var GeneralSettings
  23   */
  24  global $Settings;
  25  
  26  global $baseurl;
  27  
  28  
  29  $Form = new Form( NULL, 'remotepublish_checkchanges' );
  30  
  31  $Form->begin_form('fform');
  32  
  33  $Form->add_crumb( 'globalsettings' );
  34  $Form->hidden( 'ctrl', 'remotepublish' );
  35  $Form->hidden( 'tab', 'xmlrpc' );
  36  $Form->hidden( 'action', 'update' );
  37  
  38  // fp> TODO: it would be awesome to be able to enable the different APIs individually
  39  // that way you minimalize security/spam risks by enable just what you need.
  40  $Form->begin_fieldset( T_('Remote publishing').get_manual_link('remote_publishing') );
  41      $Form->checkbox_input( 'general_xmlrpc', $Settings->get('general_xmlrpc'), T_('Enable XML-RPC'), array( 'note' => T_('Enable the Movable Type, MetaWeblog, WordPress, Blogger and B2 XML-RPC publishing protocols.') ) );
  42      $Form->text_input( 'xmlrpc_default_title', $Settings->get('xmlrpc_default_title'), 50, T_('Default title'), '<br />'.T_('Default title for items created with a XML-RPC API that doesn\'t send a post title (e. g. the Blogger API).'), array( 'maxlength' => 255 ) );
  43  $Form->end_fieldset();
  44  
  45  if( $current_User->check_perm( 'options', 'edit' ) )
  46  {
  47      $Form->end_form( array(
  48          array( 'submit', '', T_('Update'), 'SaveButton' ),
  49          array( 'reset', '', T_('Reset'), 'ResetButton' ),
  50          ) );
  51  }
  52  
  53  ?>

title

Description

title

Description

title

Description

title

title

Body