source: trunk/www.guidonia.net/wp/wp-content/plugins/ferdinand-wordbook/fc_action.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 552 bytes
Line 
1<?php
2define('WP_ADMIN', TRUE);
3require_once('../../../wp-load.php');
4require_once(ABSPATH . 'wp-admin/includes/admin.php');
5require_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
20header('Location:'.$_POST['_wp_http_referer']);
21?>
Note: See TracBrowser for help on using the repository browser.