diff options
-rw-r--r-- | update/plugin/wordpress/trunk/instadisc/instadisc.php | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/update/plugin/wordpress/trunk/instadisc/instadisc.php b/update/plugin/wordpress/trunk/instadisc/instadisc.php new file mode 100644 index 0000000..a5fe06a --- /dev/null +++ b/update/plugin/wordpress/trunk/instadisc/instadisc.php | |||
@@ -0,0 +1,91 @@ | |||
1 | <?php | ||
2 | /* | ||
3 | Plugin Name: InstaDisc Update Server | ||
4 | Plugin URI: http://fourisland.com/projects/instadisc/wiki/Update_Wordpress_Plugin | ||
5 | Description: This plugin provides two InstaDisc feeds for your Wordpress blog, a post subscription and a comment subscription. | ||
6 | Version: 1.0 | ||
7 | Author: Starla Insigna | ||
8 | Author URI: http://fourisland.com | ||
9 | */ | ||
10 | |||
11 | /* Copyright 2008 Starla Insigna (email : hatkirby@fourisland.com) | ||
12 | |||
13 | This program is free software; you can redistribute it and/or modify | ||
14 | it under the terms of the GNU General Public License as published by | ||
15 | the Free Software Foundation; either version 2 of the License, or | ||
16 | (at your option) any later version. | ||
17 | |||
18 | This program is distributed in the hope that it will be useful, | ||
19 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
21 | GNU General Public License for more details. | ||
22 | |||
23 | You should have received a copy of the GNU General Public License | ||
24 | along with this program; if not, write to the Free Software | ||
25 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
26 | */ | ||
27 | |||
28 | add_action('admin_menu', 'am_pages'); | ||
29 | |||
30 | function am_pages() | ||
31 | { | ||
32 | add_options_page('InstaDisc Settings', 'InstaDisc', 8, 'instadisc', 'id_settings_page'); | ||
33 | } | ||
34 | |||
35 | function id_settings_page() | ||
36 | { | ||
37 | ?><DIV CLASS="wrap"><H2>InstaDisc Settings</H2> | ||
38 | <FORM METHOD="post" ACTION="options.php"><?php | ||
39 | wp_nonce_field('update-options'); | ||
40 | ?> | ||
41 | <H3>General</H3> | ||
42 | <TABLE CLASS="form-table"> | ||
43 | <TR VALIGN="top"> | ||
44 | <TH SCOPE="row"><LABEL>Subscription Title Prefix</LABEL> | ||
45 | <TD> | ||
46 | <INPUT TYPE="text" NAME="instaDisc_subscription_title" VALUE="<?php echo(get_option('instaDisc_subscription_title')); ?>" SIZE="40"> | ||
47 | <BR>Because you have two subscriptions (blog posts and comments), you can specify a prefix to go before both subscriptions' titles. So, if the prefix was "Four Island", the blog post's title would be "Four Island" and the comments' would be "Four Island Comments". | ||
48 | </TD> | ||
49 | </TR> | ||
50 | </TABLE> | ||
51 | <H3>Blog Posts Subscription</H3> | ||
52 | <TABLE CLASS="form-table"> | ||
53 | <TR VALIGN="top"> | ||
54 | <TH SCOPE="row"><LABEL>Central Server Activation Key</LABEL> | ||
55 | <TD> | ||
56 | <INPUT TYPE="text" NAME="instaDisc_blogPost_centralServer_activationKey" VALUE="<?php echo(get_option('instaDisc_blogPost_centralServer_activationKey')); ?>" SIZE="40"> | ||
57 | <BR>When activating your subscription with a Central Server, it will require you to add an "activation key" to your "Subscription File" so as to prove that you actually do own the subscription. | ||
58 | </TD> | ||
59 | </TR> | ||
60 | <TR VALIGN="top"> | ||
61 | <TH SCOPE="row"><LABEL>Central Server URL</LABEL> | ||
62 | <TD> | ||
63 | <INPUT TYPE="text" NAME="instaDisc_blogPost_centralServer" VALUE="<?php echo(get_option('instaDisc_blogPost_centralServer')); ?>" SIZE="40"> | ||
64 | <BR>Both after registration and after activation, the Central Server you are using should tell you it's XML-RPC URL (usually a URL containing the string "xmlrpc.php"). Copy that URL into this field. | ||
65 | </TD> | ||
66 | </TR> | ||
67 | </TABLE> | ||
68 | <H3>Comments Subscription</H3> | ||
69 | <TABLE CLASS="form-table"> | ||
70 | <TR VALIGN="top"> | ||
71 | <TH SCOPE="row"><LABEL>Central Server Activation Key</LABEL> | ||
72 | <TD> | ||
73 | <INPUT TYPE="text" NAME="instaDisc_comment_centralServer_activationKey" VALUE="<?php echo(get_option('instaDisc_comment_centralServer_activationKey')); ?>" SIZE="40"> | ||
74 | <BR>When activating your subscription with a Central Server, it will require you to add an "activation key" to your "Subscription File" so as to prove that you actually do own the subscription. | ||
75 | </TD> | ||
76 | </TR> | ||
77 | <TR VALIGN="top"> | ||
78 | <TH SCOPE="row"><LABEL>Central Server URL</LABEL> | ||
79 | <TD> | ||
80 | <INPUT TYPE="text" NAME="instaDisc_comment_centralServer" VALUE="<?php echo(get_option('instaDisc_comment_centralServer')); ?>" SIZE="40"> | ||
81 | <BR>Both after registration and after activation, the Central Server you are using should tell you it's XML-RPC URL (usually a URL containing the string "xmlrpc.php"). Copy that URL into this field. | ||
82 | </TD> | ||
83 | </TR> | ||
84 | </TABLE> | ||
85 | <INPUT TYPE="hidden" NAME="action" VALUE="update"> | ||
86 | <INPUT TYPE="hidden" NAME="page_options" VALUE="instaDisc_subscription_title,instadisc_blogPost_centralServer_activationKey,instaDisc_blogPost_centralServer,instaDisc_comment_centralServer_activationKey,instaDisc_comment_centralServer"> | ||
87 | <P CLASS="submit"><INPUT TYPE="submit" NAME="Submit" VALUE="<?php _e('Save Changes') ?>"></P> | ||
88 | </FORM></DIV><?php | ||
89 | } | ||
90 | |||
91 | ?> | ||