function delete_pic($pic_url) { //$picurl = "http://180.153.40.10:8081/".$fid; return custom($pic_url, 'DELETE'); }
// in the reply we must fill in the request id that came with the request $reqId = getReqId(); // check for a maximum number of datapoints (for safety) if ($xstepnum * $ystepnum > 10000) { echo "google.visualization.Query.setResponse({\r\n version:'0.6',\r\n reqId:'{$reqId}',\r\n status:'error',\r\n errors:[{reason:'not_supported', message:'Maximum number of datapoints exceeded'}]\r\n });"; exit; } // output the header part of the response echo "google.visualization.Query.setResponse({\r\n version:'0.6',\r\n reqId:'{$reqId}',\r\n status:'ok',\r\n table:{\r\n cols:[\r\n {id:'x',\r\n label:'x',\r\n type:'number'},\r\n {id:'y',\r\n label:'y',\r\n type:'number'},\r\n {id:'value',\r\n label:'',\r\n type:'number'}\r\n ],\r\n rows:["; // output the actual values $first = true; $xstep = ($xmax - $xmin) / $xstepnum; $ystep = ($ymax - $ymin) / $ystepnum; for ($x = $xmin; $x < $xmax; $x += $xstep) { for ($y = $ymin; $y < $ymax; $y += $ystep) { $value = custom($x, $y); if (!$first) { echo ",\n"; } else { echo "\n"; } echo " {c:[{v:{$x}}, {v:{$y}}, {v:{$value}}]}"; $first = false; } } // output the end part of the response echo " \r\n ]\r\n }\r\n});\r\n"; /** * Retrieve the request id from the get/post data * @return {number} $reqId The request id, or 0 if not found */
function pixopoint_menu($pixo_which = 1) { echo ' <!-- Multi-level Navigational Plugin by PixoPoint Web Development ... http://pixopoint.com/multi-level-navigation/ --> '; // Checks to see if theme CSS should be used and serves different HTML if isn't - so that theme CSS won't mess up plugin CSS if (get_option('suckerfish_generator') == 'Theme CSS') { echo ' <div id="menu_wrapper' . $pixo_which . '"> <div id="menu' . $pixo_which . '"> '; } else { echo ' <div id="pixopoint_menu_wrapper' . $pixo_which . '"> <div id="pixopoint_menu' . $pixo_which . '"> '; } if (get_option('suckerfish_titletags') == 'on') { ob_start(); } // Main menu option if ($pixo_which == '1') { ?> <ul class="sf-menu" id="suckerfishnav"><?php global $suckerfish_menuitem; foreach ($suckerfish_menuitem as $key => $menuitem) { switch ($menuitem) { case "Pages": pages(); break; case "Pages (single dropdown)": pagesdropdown(); break; case "Categories": category(); break; case "Categories (single dropdown)": categoriesdropdown(); break; case "Home": home(); break; case "Links - no categories": blogroll(); break; case "Links - no categories (single dropdown)": blogrolldropdown(); break; case "Links - with categories": blogrollcategories(); break; case "Links - with categories (single dropdown)": blogrollcategoriesdropdown(); break; case "Archives - months": archivesmonths(); break; case "Archives - years": archivesyears(); break; case "Archives - months (single dropdown)": archivesmonthsdropdown(); break; case "Archives - years (single dropdown)": archivesyearsdropdown(); break; case "Recent Comments (single dropdown)": recentcomments(); break; case "Custom 1": custom(); break; case "Custom 2": custom2(); break; case "Custom 3": custom3(); break; case "Custom 4": custom4(); break; case "Recent Posts (single dropdown)": recentposts(); break; } } } // Second menu option if ($pixo_which == '2') { ?> <ul class="sf-menu" id="suckerfishnav_2"><?php global $suckerfish_2_menuitem; foreach ($suckerfish_2_menuitem as $key => $menuitem) { switch ($menuitem) { case "Pages": pages(); break; case "Pages (single dropdown)": pagesdropdown(); break; case "Categories": category(); break; case "Categories (single dropdown)": categoriesdropdown(); break; case "Home": home(); break; case "Links - no categories": blogroll(); break; case "Links - no categories (single dropdown)": blogrolldropdown(); break; case "Links - with categories": blogrollcategories(); break; case "Links - with categories (single dropdown)": blogrollcategoriesdropdown(); break; case "Archives - months": archivesmonths(); break; case "Archives - years": archivesyears(); break; case "Archives - months (single dropdown)": archivesmonthsdropdown(); break; case "Archives - years (single dropdown)": archivesyearsdropdown(); break; case "Recent Comments (single dropdown)": recentcomments(); break; case "Custom 1": custom(); break; case "Custom 2": custom2(); break; case "Custom 3": custom3(); break; case "Custom 4": custom4(); break; case "Recent Posts (single dropdown)": recentposts(); break; } } } if (get_option('suckerfish_titletags') == 'on') { $pixo_menucontents = ob_get_contents(); ob_end_clean(); $pixo_menucontents = preg_replace('/title=\\"(.*?)\\"/', '', $pixo_menucontents); $pixo_menucontents = preg_replace('/title=\'(.*?)\'/', '', $pixo_menucontents); echo $pixo_menucontents; } ?> </ul> </div> </div> <?php }