<?php /** * @package Minify */ /** */ require_once realpath(dirname(__FILE__).'/../../lib/initialize.php'); // Configure web application $path = $_SERVER['REQUEST_URI']; Initialize($path); require_once LIB_DIR.'/minify.php'; /** * Configuration for default Minify application * @package Minify */ /** * In 'debug' mode, Minify can combine files with no minification and * add comments to indicate line #s of the original files. * * To allow debugging, set this option to true and add "&debug=1" to * a URI. E.g. /min/?f=script1.js,script2.js&debug=1 */ $min_allowDebugFlag = true;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <?php include 'lib/core.php'; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Entry Added</title> </head> <body> <?php include 'header.php'; $con = Initialize(); // We strip out all but a few harmless tags incase something malicious has been specifed. $title = strip_tags(mysql_real_escape_string($_POST['title'], $con)); $author = strip_tags(mysql_real_escape_string($_POST['author'], $con)); $body = strip_tags(mysql_real_escape_string($_POST['body'], $con), ALLOWED_TAGS); if (empty($title)) { echo "A title was not specified.\n"; } else { if (empty($author)) { echo "An author was not specified.\n"; } else { if (empty($body)) { echo "A body was not specified.\n"; } else { $result = mysql_query('INSERT INTO entries (date, title, author, body) VALUES (utc_timestamp(), "' . $title . '", "' . $author . '", "' . $body . '")', $con); if ($result) { echo "The entry has been added to the blog.</br>\n"; } else {
Some of the pre-installation tests have failed. Please see the error messages listed below and correct these issues. Once they have been corrected, you can reload this script to continue the installation process. </div> <div class="alert margin-bottom"> {foreach var=error from=\$errors} {\$error|htmlspecialchars}<br /> {/foreach} </div> {elseif \$mode == 'login'} <div class="notice margin-bottom margin-top"> The software initialization has been completed; use the information below to login to the control panel </div> <b>Control Panel URL:</b> <a href="{\$control_panel}" onclick="return confirm('Have you written down your username and password?')">{\$control_panel}</a><br /> <b>Username:</b> administrator<br /> <b>Password:</b> {\$password|htmlspecialchars} {else} <div class="notice margin-bottom margin-top"> The software has already been installed, please remove this file from your server </div> {/if} </div> </div> </body> </html> TEMPLATE; Initialize();