$page_title = $_POST['title']; } else { // Error on failure exit('document.getElementById (\'hashover\').innerHTML = \'<b>HashOver</b>: Failed to obtain page title.\';'); } } // Autoload class files spl_autoload_register(function ($classname) { $classname = strtolower($classname); if (!@(include './' . $classname . '.php')) { exit('<b>HashOver</b>: "' . $classname . '.php" file could not be included!'); } }); // Instantiate HashOver class $hashover = new HashOver('javascript', $page_url, $page_title); $hashover->parseAll(); // Start output buffer ob_start(); // Attempt to include JavaScript frontend code if (!(include './javascript-mode.php')) { ob_end_clean(); exit('document.getElementById (\'hashover\').innerHTML = \'<b>HashOver - Error:</b> file "javascript-mode.php" could not be included!\';'); } // Get output buffer contents and turn off output buffering $javascript = ob_get_contents(); ob_end_clean(); // Minify JavaScript if enabled, and non-minified version isn't requested if ($hashover->settings->minifiesJavaScript === true) { if (!isset($_GET['hashover-unminified'])) { $jsminifier = new JSMinifier(); $javascript = $jsminifier->minify($javascript, $hashover->settings->minifyLevel);