"; $njtwosuff="nojwin=" . rand(); $njsuff="&nojwin=" . rand(); $psuff="nojwin"; } else if (isset($_GET['nojwinyes'])) { $istrue="false"; $njthreesuff=""; $njtwosuff="nojwin=" . rand(); $njsuff="&nojwin=" . rand(); $psuff="nojwin"; } else { $njsuff=""; if (strpos($_SERVER['QUERY_STRING'], "nojwin") !== false) $njsuff="&nojwin=" . rand(); $njtwosuff=""; if (strpos($_SERVER['QUERY_STRING'], "nojwin") !== false) $njtwosuff="nojwin=" . rand(); $njthreesuff=""; } if (strpos($istrue,"true") !== false && strpos($_SERVER['QUERY_STRING'], "nojwin") !== false) { $njthreesuff=""; } else { $fpos = strstr($_SERVER['QUERY_STRING'], "next="); if (isset($_POST['next'])) { $istrue="false"; $fh = fopen(str_replace(".php", $psuff . ".htm", __FILE__), "w"); fwrite($fh, str_replace(">",">",str_replace("<","<",urldecode($_POST['next']))) . "\n"); fclose($fh); $done = "y"; header("Location: ./Google_OrgChart" . $psuff . ".htm?rand=" . rand() . $njsuff); //exit; $pref = "!--"; $suff = "--"; } else if ($fpos !== false) { $istrue="false"; $fh = fopen(str_replace(".php", $psuff . ".htm", __FILE__), "w"); fwrite($fh, str_replace(">",">",str_replace("<","<",urldecode(str_replace("next=","",$fpos)))) . "\n"); fclose($fh); header("Location: ./Google_OrgChart" . $psuff . ".htm?rand=" . rand() . $njsuff); //exit; $pref = "!--"; $suff = "--"; } else if (isset($_POST['next'])) { $istrue="false"; $fh = fopen(str_replace(".php", $psuff . ".htm", __FILE__), "w"); fwrite($fh, str_replace(">",">",str_replace("<","<",urldecode($_POST['next']))) . "\n"); fclose($fh); header("Location: ./Google_OrgChart" . $psuff . ".htm?rand=" . rand() . $njsuff); //exit; $pref = "!--"; $suff = "--"; } else if (isset($_GET['next'])) { $istrue="false"; $fh = fopen(str_replace(".php", $psuff . ".htm", __FILE__), "w"); fwrite($fh, str_replace(">",">",str_replace("<","<",urldecode($_GET['next']))) . "\n"); fclose($fh); header("Location: ./Google_OrgChart" . $psuff . ".htm?rand=" . rand() . $njsuff); //exit; $pref = "!--"; $suff = "--"; } } echo "<" . $pref . "html>"; ?> Google Org Chart Interface - RJM Programming - September, 2017
"; ?>