"; $meta .= ""; $meta .= "Macbeth Act 1 Scene 1 by William Shakespeare"; $meta .= ''; $meta .= ''; $meta .= "
\n"; $meta .= '
'; $meta2 .= '
'; $meta2 .= '
'; $gt = ""; $aa = ""; $tts = ""; if (isset($_GET['thingtosay'])) { $tts = $_GET['thingtosay']; } if (file_exists(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html")) { $gt = file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/aatest" . $suffix . ".html")) { $aa = file_get_contents(dirname(__FILE__) . "/aatest" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/aaatest" . $suffix . ".html")) { $aa = file_get_contents(dirname(__FILE__) . "/aaatest" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/aaaatest" . $suffix . ".html")) { $aa = file_get_contents(dirname(__FILE__) . "/aaaatest" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/aaaaatest" . $suffix . ".html")) { $aa = file_get_contents(dirname(__FILE__) . "/aaaaatest" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/aaaaaatest" . $suffix . ".html")) { $aa = file_get_contents(dirname(__FILE__) . "/aaaaaatest" . $suffix . ".html"); } if (!isset($_GET['thingtosay']) && $aa == "") { // Python = First Witch if (file_exists(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) { unlink(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm"); } if (file_exists(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html")) { unlink(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html"); } exec("/usr/bin/python " . dirname(__FILE__) . "/conversation1.py >> " . dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm"); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta . $meta2) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm") . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if (isset($_GET['stage']) || (strlen(str_replace("stage=", "", $gt)) != strlen($gt) && $aa != "")) { $bits = explode('"', $tts); $bitss = explode('stage=', $gt); //$origurl = str_replace("3;URL=", "", $bits[4]); if (isset($_GET['stage'])) { $stage = $_GET['stage']; } else { $bitsa = explode('&', $bitss[1]); $stage = $bitsa[0]; } $sofar = file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm"); if (strlen(str_replace($anarray[$stage + 1], "", $sofar)) == strlen($sofar)) { $stage = $stage + 1; if ($stage == 1) { // PHP = Second Witch file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm", lengthen(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm") . "Second Witch: When the hurlyburly's done,
When the battle's lost and won.

")); //sleep(2); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 2) { // Perl = Third Witch exec("/usr/bin/perl " . dirname(__FILE__) . "/conversation1.perl >> " . dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm"); //sleep(2); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta . $meta2) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 3) { // back to First Witch exec("/usr/bin/python " . dirname(__FILE__) . "/conversation2.py >> " . dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm"); //sleep(2); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 4) { // back to Second Witch file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm", lengthen(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm") . "Second Witch: Upon the heath.

")); //sleep(2); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 5) { // back to Third Witch exec("/usr/bin/perl " . dirname(__FILE__) . "/conversation2.perl >> " . dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm"); //sleep(2); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta . $meta2) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 6) { // back to First Witch exec("/usr/bin/python " . dirname(__FILE__) . "/conversation3.py >> " . dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm"); //sleep(2); file_put_contents(dirname(__FILE__) . "/aatest" . $suffix . ".html", file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 7) { // back to Second Witch file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm", lengthen(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm") . "Second Witch: Paddock calls.

")); //sleep(2); file_put_contents(dirname(__FILE__) . "/aaatest" . $suffix . ".html", file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 8) { // back to Third Witch exec("/usr/bin/perl " . dirname(__FILE__) . "/conversation3.perl >> " . dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm"); //sleep(2); file_put_contents(dirname(__FILE__) . "/aaaatest" . $suffix . ".html", file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 9) { // back to Second Witch file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm", lengthen(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm") . "All: Fair is foul, and foul is fair:
Hover through the fog and filthy air.

")); //sleep(2); file_put_contents(dirname(__FILE__) . "/aaaaatest" . $suffix . ".html", file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta . $meta2) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 10) { // back to Second Witch file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm", lengthen(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm") . "

[Exeunt.

")); //sleep(2); file_put_contents(dirname(__FILE__) . "/aaaaaatest" . $suffix . ".html", file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")); file_put_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html", lengthen(str_replace($origurl, "./conversation_supervisor.php?stage=" . $stage . "&thingtosay=" . rawurlencode (shorten(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".htm"))), $meta) . file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) . ""); header("Location: http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $subplace . "macbeth_act1_scene1" . $suffix . ".html"); } else if ($stage == 11) { echo file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html"); sleep(1); if ($suffix != "") { if (file_exists(dirname(__FILE__) . "/aatest" . $suffix . ".html")) { unlink(dirname(__FILE__) . "/aatest" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/aaatest" . $suffix . ".html")) { unlink(dirname(__FILE__) . "/aaatest" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/aaaatest" . $suffix . ".html")) { unlink(dirname(__FILE__) . "/aaaatest" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/aaaaatest" . $suffix . ".html")) { unlink(dirname(__FILE__) . "/aaaaatest" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/aaaaaatest" . $suffix . ".html")) { unlink(dirname(__FILE__) . "/aaaaaatest" . $suffix . ".html"); } if (file_exists(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm")) { unlink(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".htm"); } if (file_exists(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html")) { unlink(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html"); } } } } else { echo file_get_contents(dirname(__FILE__) . "/macbeth_act1_scene1" . $suffix . ".html"); } } ?>