';
// Loads regular stylesheet when first loaded (when pixo_saved is 'new') but loads from pixopoint.com the rest of the time.
if (get_option('pixo_saved') == 'new') {echo '';}
else {echo '';}
?>
$value) { // Process each chunk
$data = explode("=", $value); // Seperate chunks into variables and results
foreach ($data as $key2 => $value2) {
if ($a == 1) { // only process every second one (coz they come in two's)
$temp2 = $data[$key2-1]; // coz can't stick array inside another array
$variable[$temp2] = $data[$key2]; // Set variables
}
$a = $a + 1;if ($a == 2) {$a = 0;} // so only process every second one
}
}
// If no number is set, then specify one in the WP database
if (get_option('pixo_saved') == '' AND $variable['saved'] == '') {add_option('pixo_saved', 'new');}
if ($variable['saved'] != '') {update_option('pixo_saved', $variable['saved']);}
$variable['saved'] = get_option('pixo_saved');
// If pass was correct, then marks this in database so it doesn't need to be sent every time (PixoPoint will just check the username and some other specs first)
if ($variable['password'] == 'correct') {update_option('pixo_password', 'correct');}
else {update_option('pixo_password', '');}
// Get current URL (minus 'saved' sent via $_REQUEST)
$variable['currenturl'] = 'http' . ((!empty($_SERVER['HTTPS'])) ? 's' : '') . '://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$variable['currenturl'] = str_replace('?saved='.$_REQUEST['saved'], '', $variable['currenturl']);
}
// Adds editor to footer
add_action('wp_footer', 'pixopoint_menu_editor');
function pixopoint_menu_editor() {global $variable,$pixopoint_menu_version,$pixopoint_codingengine,$pixopoint_menu_images;
if (current_user_can('manage_options')) {require('editor.php');} // only load for admins
}
?>