root/afridex/plugins/Flutter/ajax/canvas-save-option.php @ 21

Revision 21, 0.5 kB (checked in by admin, 18 years ago)
Line 
1<?php
2
3//if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER ['HTTP_X_REQUESTED_WITH']  == 'XMLHttpRequest') {     
4        require( dirname(__FILE__) . '/../../../../wp-config.php' );
5        if (!(is_user_logged_in() && current_user_can('edit_posts')))
6                die("Athentication failed!");
7
8        include_once('../RCCWP_Options.php');
9        if($_POST)
10        foreach($_POST as $key => $value) {
11                $key = trim(urldecode($key));
12                $value = trim(urldecode($value));
13                //if($value == 1) $value = 'true';
14                //      elseif($value == 0) $value = 'false';
15                RCCWP_Options::Set($key, $value);
16        }
17//}
18?>
Note: See TracBrowser for help on using the browser.