";
function get_line($inidea, $j) {
$suffix="";
if ($j == 1) $suffix="";
return "\n" . '' . $suffix . "\n";
}
function webdisplay($h) {
global $fullname, $sn;
if ($h != '') {
file_put_contents(dirname(__FILE__) . "/interactive_becomes_web.htm", $h);
if (file_exists(dirname(__FILE__) . "/interactive_becomes_web.html")) unlink(dirname(__FILE__) . "/interactive_becomes_web.html");
//sleep(1);
exec("ksh -c \"perl -p -e 's/ /Profile for " . $fullname . "/g' " . dirname(__FILE__) . "/interactive_becomes_web.htm\" > " . dirname(__FILE__) . "/interactive_becomes_web.html");
//sleep(1);
exec("python -mwebbrowser http://" . $sn . "/interactive_becomes_web.html");
//exec("python -mwebbrowser http://" . $sn . "/interactive_becomes_web.htm");
}
}
if (strlen($_SERVER['QUERY_STRING']) > 0 || !isset($argv[0])) {
if (strpos($_SERVER['QUERY_STRING'], "reask=") !== false || strlen($_SERVER['QUERY_STRING']) == 0) {
for ($i=0; $i
";
$html="" . $idea . "
Parameter Value " . get_line($things_to_ask[$i], $i) . "