} } elseif ($path_array[1] == "mib") { print_headers($VERSION, $_SERVER["REQUEST_URI"], $refresh, ""); $update_last = 1; if ($path_array[2] && $path_array[3] && $path_array[4]) { display_mib_graph($dbc, $path_array[2], $path_array[3], $path_array[4]); } elseif ($path_array[2] && $path_array[3]) { display_mib_interfaces($dbc, $path_array[2], $path_array[3]); } elseif ($path_array[2]) { display_mib_hosts($dbc, $path_array[2]); } else { display_mibs($dbc); } } elseif ($path_array[1] != "") { $bg1 = get_scheme("CONFIGNAME"); $bg2 = get_scheme("CONFIGVALUE"); if ($path_array[1] == "config") { print_headers($VERSION, $_SERVER["REQUEST_URI"], $refresh, ""); print "<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"; print "<TR><TD BGCOLOR=\"{$bg1}\" WIDTH=15%><B>" . locale("VARNAME") . "</B></TD>\n"; print "<TD BGCOLOR=\"{$bg2}\"><B>" . locale("VARCURRENT") . "</B></TD></TR>\n"; foreach ($cookie_values as $k => $v) { print "<TR><TD BGCOLOR=\"{$bg1}\">\n"; print "<A HREF=\"" . $_SERVER["SCRIPT_NAME"] . "/{$k}\">" . locale($cookie_values[$k]["name"]) . "</A>\n"; print "</TD><TD BGCOLOR=\"{$bg2}\">" . $_SESSION[$k] . "</TD>\n"; print "</TD></TR>\n"; } print "</TABLE>\n"; } elseif (isset($cookie_values[$path_array[1]])) { if (isset($path_array[2])) { $_SESSION[$path_array[1]] = $path_array[2];
//login forms to post to self. ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="main.css"/> <title>PilotPad.com -- The simplest way to save a private note to the cloud.</title> <meta property="og:title" content="PilotPad.com"/> <meta property="og:type" content="website"/> <meta property="og:url" content="<?php echo get_scheme(); ?> ://pilotpad.com/"/> <meta property="og:image" content="http://pilotpad.com/pilotpad.gif"/> <meta property="og:site_name" content="PilotPad"/> <meta property="fb:app_id" content="157974860936709"/> <meta property="fb:admins" content="513714656" /> <meta name="keywords" content="notes,notepad,notepad.cc,scratchpad,cloud pad,cloud,note taking,记事本,笔记本"/> <meta property="description" content="Do you ever email something to yourself? Open a draft email just to copy down some links or a quote you see? Try Pilotpad instead. Think of it as an extension to cut/paste, an extra clipboard, a simple place to save a note for later."/> <link href="./css/redmond/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="/js/jquery-1.5.1.min.js"></script>