summaryrefslogtreecommitdiffstats
path: root/wp-admin/wpmu-feeds.php
blob: 98fd2135219229d13ca8275fbd848a0c8c57bac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
require_once('admin.php');

$title = __('WPMU Admin');
$parent_file = 'wpmu-admin.php';
require_once('admin-header.php');
if( is_site_admin() == false ) {
    die( __('<p>You do not have permission to access this page.</p>') );
}
if (isset($_GET['updated'])) {
	?><div id="message" class="updated fade"><p><?php _e('Options saved.') ?></p></div><?php
}
print '<div class="wrap">';
switch( $_GET[ 'action' ] ) {
	default: 
	break;
}

$customizefeed1 = get_site_option( 'customizefeed1' );
$customizefeed2 = get_site_option( 'customizefeed2' );
$dashboardfeed1 = get_site_option( 'dashboardfeed1' );
$dashboardfeed2 = get_site_option( 'dashboardfeed2' );
$dashboardfeed1name = get_site_option( 'dashboardfeed1name' );
$dashboardfeed2name = get_site_option( 'dashboardfeed2name' );

?>
<h2>Dashboard Feeds</h2>
<p>The dashboard displays two feeds. You can allow your users to customize those feeds to set them to a feed of your own.</p>
<form action='wpmu-edit.php?action=updatefeeds' method='POST'>
<table>
<tr><td valign='top'>Feed 1</td><td><ul><li> User customizable: <input type='radio' name='customizefeed1' value='1'<?php echo $customizefeed1 == 1 ? ' checked' : ''?>> Yes <input type='radio' name='customizefeed1' value='0'<?php echo $customizefeed1 == 0 ? ' checked' : ''?>> No</li>
			<li> Title: <input type='text' name='dashboardfeed1name' size='40' value='<?php echo $dashboardfeed1name ?>'></li>
			<li> Default Feed URL: <input type='text' name='dashboardfeed1' size='40' value='<?php echo $dashboardfeed1 ?>'></li></ul></td></tr>
<tr><td valign='top'>Feed 2</td><td><ul><li> User customizable: <input type='radio' name='customizefeed2' value='1'<?php echo $customizefeed2 == 1 ? ' checked' : ''?>> Yes <input type='radio' name='customizefeed2' value='0'<?php echo $customizefeed2 == 0 ? ' checked' : ''?>> No</li>
			<li> Title: <input type='text' name='dashboardfeed2name' size='40' value='<?php echo $dashboardfeed2name ?>'></li>
			<li> Default Feed URL: <input type='text' name='dashboardfeed2' size='40' value='<?php echo $dashboardfeed2 ?>'></li></ul></td></tr>

</table>
<input type='submit' value='Update Feeds'>
</form>

</div>
<?php include('admin-footer.php'); ?>