corrected autoupdate functions
This commit is contained in:
@ -27,7 +27,7 @@
|
||||
// http://board.fire-devils.org oder manuelw@fire-devils.org
|
||||
//
|
||||
// Damit auch alles in die DB gespeichert wird sollte man
|
||||
// "index.php?nooutput=1" in einen Cron aller Minute einbinden.
|
||||
// "autoupdate.php?nooutput=1" in einen Cron aller Minute einbinden.
|
||||
//
|
||||
// Die Status müssen in der .monrc folgendermaßen
|
||||
// definiert sein. Wichtig ist das KFZ: bzw LST: voran steht.
|
||||
@ -96,13 +96,13 @@ $template_dir = '_html/';
|
||||
$update_adresse_monrc = 1;
|
||||
|
||||
// IP Bereich fr auto Login
|
||||
$ip_start = '192.168.1.82';
|
||||
$ip_start = '192.168.1.2';
|
||||
$ip_ende = '192.168.1.250';
|
||||
|
||||
// UserID für IP
|
||||
$ip_users = array(
|
||||
"192.168.1.82" => 1,
|
||||
"192.168.1.21" => 1,
|
||||
"192.168.1.81" => 1,
|
||||
"192.168.1.80" => 1,
|
||||
"192.168.1.38" => 1,
|
||||
);
|
||||
|
||||
@ -309,12 +309,18 @@ $dbconn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname) or die (mysqli_erro
|
||||
//
|
||||
session_start();
|
||||
|
||||
if (!isset($_GET["nooutput"])) $_GET["nooutput"]="";
|
||||
if ($_GET["nooutput"] == 1) {
|
||||
$_SESSION["name"]="";
|
||||
$_SESSION["admin"]="";
|
||||
}
|
||||
|
||||
/////////////////
|
||||
// Requires
|
||||
/////////////////
|
||||
require_once('functions.inc.php');
|
||||
require_once('loginfunctions.inc.php');
|
||||
//if( $pmenable == '1' && $_GET["nooutput"] != '1' && $_SESSION["pmallow"] == '1' ) require_once('pmfunctions.inc.php');
|
||||
if ($_GET["nooutput"] != '1') require_once('loginfunctions.inc.php');
|
||||
if( $pmenable == '1' && $_GET["nooutput"] != '1' && $_SESSION["pmallow"] == '1' ) require_once('pmfunctions.inc.php');
|
||||
//if( $uw_checktime > 0 ) require_once('uw_check.inc.php');
|
||||
|
||||
///////////////////
|
||||
@ -329,7 +335,7 @@ if( $_SESSION["name"] )
|
||||
|
||||
// Navigationsleiste
|
||||
$nav_menu = '<a href="index.php">Home</a> | ';
|
||||
//$nav_menu .= '<a href="suche.php">Suche</a> | ';
|
||||
$nav_menu .= '<a href="suche.php">Suche</a> | ';
|
||||
//$nav_menu .= '<a href="kfz.php">Fahrzeuge</a> | ';
|
||||
$nav_menu .= '<a href="profile.php">Profil</a> | ';
|
||||
//$nav_menu .= '<a href="stats.php">Stats</a> | ';
|
||||
|
Reference in New Issue
Block a user