Line | |
---|
1 | <?php
|
---|
2 | define('WP_ADMIN', TRUE);
|
---|
3 | require_once('../../../wp-load.php');
|
---|
4 | require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
---|
5 | require_once('lib.php');
|
---|
6 |
|
---|
7 | $friend_comment = $_POST['friend_comment'];
|
---|
8 | $friend_comment = (isset($friend_comment) && $friend_comment == "on") ? 'Y' : 'N';
|
---|
9 |
|
---|
10 |
|
---|
11 |
|
---|
12 | if (!get_option('facebook_friendscomment'))
|
---|
13 | {
|
---|
14 | add_option("facebook_friendscomment", $friend_comment, '', 'yes');
|
---|
15 | } else {
|
---|
16 | update_option("facebook_friendscomment", $friend_comment, '', 'yes');
|
---|
17 | }
|
---|
18 |
|
---|
19 |
|
---|
20 | header('Location:'.$_POST['_wp_http_referer']);
|
---|
21 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.