# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: tmp_create_site.php,v 1.4 2005/04/18 15:21:39 filetreefrog Exp $
##################################################
//GREP:HARDCODEDTEXT
if (!defined('PATHOS')) {
    exit('');
}
if (!defined("SYS_BACKUP")) {
    require_once BASE . "subsystems/backup.php";
}
$eql = BASE . "install/sitetypes/db/_default.eql";
$errors = array();
pathos_backup_restoreDatabase($db, $eql, $errors, 0);
?>
<div class="installer_title">
<img src="images/blocks.png" width="32" height="32" />
Populating Database (Default Content)
</div>
<br /><br />
<?php 
if (count($errors)) {
    echo "Errors were encountered populating the site database.<br /><br />";
    foreach ($errors as $e) {
        echo $e . "<br />";
    }
} else {
    echo "Default content has been inserted into your database.  This content structure should help you to learn how Exponent works, and how to use it for your website.";
    echo "<br /><br />Click <a href='?page=final'>here</a> to complete the installation.";
Exemplo n.º 2
0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: process.php,v 1.3 2005/04/18 15:23:54 filetreefrog Exp $
##################################################
if (!defined("PATHOS")) {
    exit("");
}
if (!defined("SYS_BACKUP")) {
    require_once BASE . "subsystems/backup.php";
}
$errors = null;
$template = new template("importer", "_eql_results", $loc);
//GREP:UPLOADCHECK
if (!pathos_backup_restoreDatabase($db, $_FILES["file"]["tmp_name"], $errors)) {
    $template->assign("success", 0);
    $template->assign("errors", $errors);
} else {
    $template->assign("success", 1);
}
$template->output();