-Subproject commit e06319c7261d4189e8bcef16ed50b9739e6e13a5
+Subproject commit 057ae7c5183e52efe4d5a972d878693613295b14
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
<h2>Checking DB</h2>
-<?
+<?php
if(isset($_GET["CreateDB"])){
print("Creating Database...<p>");
$db->createDb();
}
?>
-<?
+<?php
$canUseDb=$db->canUseDb();
if($canUseDb){
?>
Database exists and is usable.<p>
-<? form() ?>
+<?php form() ?>
<input type="submit" value="Show SQL Script to create DB." name="ShowCreateDB"/>
</form>
-<?
+<?php
}else{
?>
Database is not usable. Create?<br>
-<? form() ?>
+<?php form() ?>
<input type="submit" value="Yes, Create DB now." name="CreateDB"/>
<input type="submit" value="Show SQL Script to create DB." name="ShowCreateDB"/>
</form>
-<?
+<?php
}
?>
-<?
+<?php
if(isset($_GET["ShowCreateDB"])){
print("Creating Database...<p>");
$db->showCreateDb();
<h2>Restore Backups</h2>
-<? form("FILE") ?>
+<?php form("FILE") ?>
Backup file to restore:
<input type="file" name="restore"/><br/>
<input type="checkbox" name="overwrite" value="ovr">Overwrite existing data<br>
</form><p>
<font color="red"><b>Warning:</b></font> don't attempt to restore data unless you really lost it! Ideally restore should only be made on an empty database.<p>
-<?
+<?php
if(isset($_POST["restorenow"])){
echo "<h3>Restoring Data...</h3>\n";
$ov=false;
<h2>Restore from Old Database (MagicSmoke 1.x)</h2>
-<? if(isset($olddb)){ ?>
-<? form() ?>
+<?php if(isset($olddb)){ ?>
+<?php form() ?>
Enter "upgrade" here: <input type="text" name="olddbup"/>
<input type="submit" value="Upgrade DB Now"/>
</form><p>
<font color="red"><b>Warning:</b></font> don't attempt to upgrade data unless you really mean it! Upgrade deletes all data from the new database (MagicSmoke2) and overwrites it with the old data (MagicSmoke1). This re-uses the credentials from the configuration.<p>
-<? if(isset($_GET["olddbup"]) && $_GET["olddbup"]=="upgrade"){
+<?php if(isset($_GET["olddbup"]) && $_GET["olddbup"]=="upgrade"){
echo "<h3>Upgrading Database...</h3>\n";
DBUpgrade::upgrade();
} ?>
-<? }else{ //olddb not set ?>
+<?php }else{ //olddb not set ?>
If you want to upgrade from an old database version, please uncomment the $olddb-configuration in config.php.<p>
-<? } ?>
+<?php } ?>
<h2>Checking for Admin Users</h2>
-<?
+<?php
do{
if(isset($_POST["adminuser"])&&isset($_POST["adminpwd1"])&&isset($_POST["adminpwd2"])){
//do passwords match?
List of Admins:
<ul>
-<?
+<?php
$admlst=$db->select("userrole","uname","role='_admin'");
for($i=0;$i<count($admlst);$i++){
print("<li>".$admlst[$i][0]);
<h2>Checking for Hosts</h2>
-<?
+<?php
if(isset($_POST["updatehost"])){
if(!is_uploaded_file($_FILES["host"]["tmp_name"]))
die("Trying to work on non-uploaded file. Abort.");
List of Hosts:
<ul>
-<?
+<?php
$hlst=$db->select("host","hostname","");
for($i=0;$i<count($hlst);$i++){
print("<li>".$hlst[$i][0]."</li>\n");
</ul><p>
<b>Import Host File:</b><br>
-<? form("FILE"); ?>
+<?php form("FILE"); ?>
<input type="file" name="host"><br>
<input type="submit" name="updatehost" value="Upload">
</form>
</html>
-<?
+<?php
//done, thwart some stupid bots
exit(0);
//end of file
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// (c) Peter Keller, 2007/8
// protected under the GNU AGPL version 3 or at your option any newer
wob_autoclass('BaseVars','./inc/classes/basevars.php');
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// (c) Peter Keller, 2007/8
// protected under the GNU AGPL version 3 or at your option any newer
include("./inc/machine/autoload.php");
//move on in loader_nonadmin.php (or admin.php)
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// (c) Peter Keller, 2007/8
// protected under the GNU AGPL version 3 or at your option any newer
//done
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// (c) Peter Keller, 2007/8
// protected under the GNU AGPL version 3 or at your option any newer
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// (c) Peter Keller, 2007/8
// protected under the GNU AGPL version 3 or at your option any newer
//eof
return;
-?>
\ No newline at end of file
+?>
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// (c) Peter Keller, 2007/8
// protected under the GNU AGPL version 3 or at your option any newer
-<?
+<?php
// (c) Konrad Rosenbaum, 2007-2011
// protected under the GNU AGPL version 3 or at your option any newer
// see COPYING.AGPL
//done
exit(0);
-?>
\ No newline at end of file
+?>