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 | if (!get_option('facebook_gallery_widget_colums') && get_option('facebook_gallery_widget_colums')!='')
|
---|
8 | {
|
---|
9 | add_option("facebook_gallery_widget_colums", $_POST['fbgl_colums'], '', 'yes');
|
---|
10 | } else {
|
---|
11 | update_option("facebook_gallery_widget_colums", $_POST['fbgl_colums'], '', 'yes');
|
---|
12 | }
|
---|
13 |
|
---|
14 | if (!get_option('facebook_gallery_widget_rows') && get_option('facebook_gallery_widget_rows')!='')
|
---|
15 | {
|
---|
16 | add_option("facebook_gallery_widget_rows", $_POST['fbgl_rows'], '', 'yes');
|
---|
17 | } else {
|
---|
18 | update_option("facebook_gallery_widget_rows", $_POST['fbgl_rows'], '', 'yes');
|
---|
19 | }
|
---|
20 |
|
---|
21 | if (!get_option('facebook_gallery_widget_spacing') && get_option('facebook_gallery_widget_spacing')!='')
|
---|
22 | {
|
---|
23 | add_option("facebook_gallery_widget_spacing", $_POST['fbspacing'], '', 'yes');
|
---|
24 | } else {
|
---|
25 | update_option("facebook_gallery_widget_spacing", $_POST['fbspacing'], '', 'yes');
|
---|
26 | }
|
---|
27 |
|
---|
28 | if (!get_option('facebook_gallery_widget_padding') && get_option('facebook_gallery_widget_padding')!='')
|
---|
29 | {
|
---|
30 | add_option("facebook_gallery_widget_padding", $_POST['fbpadding'], '', 'yes');
|
---|
31 | } else {
|
---|
32 | update_option("facebook_gallery_widget_padding", $_POST['fbpadding'], '', 'yes');
|
---|
33 | }
|
---|
34 |
|
---|
35 | if (!get_option('facebook_gallery_widget_title') && get_option('facebook_gallery_widget_title')!='')
|
---|
36 | {
|
---|
37 | add_option("facebook_gallery_widget_title", $_POST['fbtitle'], '', 'yes');
|
---|
38 | } else {
|
---|
39 | update_option("facebook_gallery_widget_title", $_POST['fbtitle'], '', 'yes');
|
---|
40 | }
|
---|
41 |
|
---|
42 | if (!get_option('facebook_gallery_widget_class') && get_option('facebook_gallery_widget_class')!='')
|
---|
43 | {
|
---|
44 | add_option("facebook_gallery_widget_class", $_POST['fbclass'], '', 'yes');
|
---|
45 | } else {
|
---|
46 | update_option("facebook_gallery_widget_class", $_POST['fbclass'], '', 'yes');
|
---|
47 | }
|
---|
48 |
|
---|
49 | if (!get_option('facebook_gallery_widget_height') && get_option('facebook_gallery_widget_height')!='')
|
---|
50 | {
|
---|
51 | add_option("facebook_gallery_widget_height", $_POST['fbheight'], '', 'yes');
|
---|
52 | } else {
|
---|
53 | update_option("facebook_gallery_widget_height", $_POST['fbheight'], '', 'yes');
|
---|
54 | }
|
---|
55 |
|
---|
56 | if (!get_option('facebook_gallery_widget_width') && get_option('facebook_gallery_widget_width')!='')
|
---|
57 | {
|
---|
58 | add_option("facebook_gallery_widget_width", $_POST['fbwidth'], '', 'yes');
|
---|
59 | } else {
|
---|
60 | update_option("facebook_gallery_widget_width", $_POST['fbwidth'], '', 'yes');
|
---|
61 | }
|
---|
62 |
|
---|
63 | if (!get_option('facebook_photo_cache') && get_option('facebook_photo_cache')!='')
|
---|
64 | {
|
---|
65 | add_option("facebook_photo_cache", $_POST['fbcache'], '', 'yes');
|
---|
66 | } else {
|
---|
67 | update_option("facebook_photo_cache", $_POST['fbcache'], '', 'yes');
|
---|
68 | }
|
---|
69 |
|
---|
70 | header('Location:'.$_POST['_wp_http_referer']);
|
---|
71 | ?>
|
---|