Changeset 1664 for trunk/wp-admin/options-writing.php
- Timestamp:
- 09/15/2004 03:09:39 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-writing.php
r1656 r1664 5 5 $parent_file = 'options-general.php'; 6 6 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 42 7 $standalone = 0; 43 include_once(' admin-header.php');44 include(' options-head.php');8 include_once('./admin-header.php'); 9 include('./options-head.php'); 45 10 ?> 46 11 … … 93 58 <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> 94 59 </tr> 95 </table> 96 <fieldset class="options"> 60 </table> 61 62 <fieldset class="options"> 97 63 <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> 99 65 100 66 <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"> 103 70 <legend><?php _e('Writing by e-mail') ?></legend> 104 71 <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’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> 105 72 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 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"> 127 94 <?php 128 95 //Alreay have $categories from default_category … … 130 97 if ($category->cat_ID == get_settings('default_email_category')) $selected = " selected='selected'"; 131 98 else $selected = ''; 132 99 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>"; 133 100 endforeach; 134 101 ?> 135 136 137 138 139 140 141 </p> 142 102 </select></td> 103 </tr> 104 </table> 105 </fieldset> 106 <p class="submit"> 107 <input type="submit" name="Submit" value="<?php _e('Update Options') ?> »" /> 108 </p> 109 </form> 143 110 </div> 144 <?php include("admin-footer.php") ?> 111 112 <?php include('./admin-footer.php') ?>
Note: See TracChangeset
for help on using the changeset viewer.