Make WordPress Core


Ignore:
Timestamp:
09/15/2004 03:09:39 PM (21 years ago)
Author:
saxmatt
Message:

Axing of geo stuff, major cleanups on permalink options, style tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-writing.php

    r1656 r1664  
    55$parent_file = 'options-general.php';
    66
    7 function add_magic_quotes($array) {
    8     foreach ($array as $k => $v) {
    9         if (is_array($v)) {
    10             $array[$k] = add_magic_quotes($v);
    11         } else {
    12             $array[$k] = addslashes($v);
    13         }
    14     }
    15     return $array;
    16 }
    17 
    18 if (!get_magic_quotes_gpc()) {
    19     $_GET    = add_magic_quotes($_GET);
    20     $_POST   = add_magic_quotes($_POST);
    21     $_COOKIE = add_magic_quotes($_COOKIE);
    22 }
    23 
    24 $wpvarstoreset = array('action','standalone', 'option_group_id');
    25 for ($i=0; $i<count($wpvarstoreset); $i += 1) {
    26     $wpvar = $wpvarstoreset[$i];
    27     if (!isset($$wpvar)) {
    28         if (empty($_POST["$wpvar"])) {
    29             if (empty($_GET["$wpvar"])) {
    30                 $$wpvar = '';
    31             } else {
    32                 $$wpvar = $_GET["$wpvar"];
    33             }
    34         } else {
    35             $$wpvar = $_POST["$wpvar"];
    36         }
    37     }
    38 }
    39 
    40 
    41 
    427$standalone = 0;
    43 include_once('admin-header.php');
    44 include('options-head.php');
     8include_once('./admin-header.php');
     9include('./options-head.php');
    4510?>
    4611
     
    9358<label for="new_users_can_blog2"><input name="new_users_can_blog" id="new_users_can_blog2" type="radio" value="2" <?php checked('2', get_settings('new_users_can_blog')); ?> /> <?php _e('May publish articles') ?></label><br /></td>
    9459      </tr>
    95     </table>
    96     <fieldset class="options">
     60    </table>
     61
     62<fieldset class="options">
    9763    <legend><?php _e('Update Services') ?></legend>
    98           <p><?php printf(__('Enter the sites that you would like to notify when you publish a new post. For a list of some recommended sites to ping please see <a href="%s">Update Services</a> on the wiki. Separate multiple URIs by line breaks.'), 'http://wiki.wordpress.org/index.php/UpdateServices') ?></p>
     64          <p><?php printf(__('When you publish a new post WordPress can notify site update services. For more about this see <a href="%s">Update Services</a> on the Codex. Separate multiple service URIs with line breaks.'), 'http://codex.wordpress.org/Update_Services') ?></p>
    9965   
    10066    <textarea name="ping_sites" id="ping_sites" style="width: 98%;"><?php form_option('ping_sites'); ?></textarea>
    101     </fieldset>
    102     <fieldset class="options">
     67</fieldset>
     68
     69<fieldset class="options">
    10370    <legend><?php _e('Writing by e-mail') ?></legend>
    10471    <p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: <code>%s</code>, <code>%s</code>, <code>%s</code>.'), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5)) ?></p>
    10572   
    106         <table width="100%" cellspacing="2" cellpadding="5" class="editform">
    107             <tr valign="top">
    108                 <th scope="row"><?php _e('Mail server:') ?></th>
    109                 <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" size="40" />
    110                 <label for="port"><?php _e('Port:') ?></label>
    111                 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" size="6" />
    112                 </td>
    113             </tr>
    114             <tr valign="top">
    115                 <th width="33%" scope="row"><?php _e('Login name:') ?></th>
    116                 <td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" size="40" /></td>
    117             </tr>
    118             <tr valign="top">
    119                 <th scope="row"><?php _e('Password:') ?></th>
    120                 <td>
    121                     <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" size="40" />
    122                 </td>
    123             </tr>
    124             <tr valign="top">
    125                 <th scope="row"><?php _e('Default post by mail category:') ?></th>
    126                 <td><select name="default_email_category" id="default_email_category">
     73    <table width="100%" cellspacing="2" cellpadding="5" class="editform">
     74        <tr valign="top">
     75            <th scope="row"><?php _e('Mail server:') ?></th>
     76            <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" size="40" />
     77            <label for="port"><?php _e('Port:') ?></label>
     78            <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" size="6" />
     79            </td>
     80        </tr>
     81        <tr valign="top">
     82            <th width="33%" scope="row"><?php _e('Login name:') ?></th>
     83            <td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" size="40" /></td>
     84        </tr>
     85        <tr valign="top">
     86            <th scope="row"><?php _e('Password:') ?></th>
     87            <td>
     88                <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" size="40" />
     89            </td>
     90        </tr>
     91        <tr valign="top">
     92            <th scope="row"><?php _e('Default post by mail category:') ?></th>
     93            <td><select name="default_email_category" id="default_email_category">
    12794<?php
    12895//Alreay have $categories from default_category
     
    13097if ($category->cat_ID == get_settings('default_email_category')) $selected = " selected='selected'";
    13198else $selected = '';
    132     echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
     99echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
    133100endforeach;
    134101?>
    135                 </select></td>
    136             </tr>
    137         </table>
    138         </fieldset>
    139     <p class="submit">
    140       <input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" />
    141     </p>
    142   </form>
     102            </select></td>
     103        </tr>
     104    </table>
     105</fieldset>
     106<p class="submit">
     107    <input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" />
     108</p>
     109</form>
    143110</div>
    144 <?php include("admin-footer.php") ?>
     111
     112<?php include('./admin-footer.php') ?>
Note: See TracChangeset for help on using the changeset viewer.