Add namespace to make php checker happy
This commit is contained in:
parent
9e9f346fda
commit
3b23307652
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
require 'SQL.php';
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
require 'SQL.php';
|
||||
$db_link = ConnectDB();
|
||||
require '_login.php';
|
||||
require '_zeitbereich.php';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
require_once 'konfiguration.php';
|
||||
|
||||
class DB
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
namespace old;
|
||||
|
||||
require_once 'konfiguration.php';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
require_once("Wizard.php");
|
||||
|
||||
$wizard = new Wizard("../setupWizard.json");
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
require 'SQL.php';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,98 +1,8 @@
|
|||
<?php
|
||||
|
||||
class WizardStep
|
||||
{
|
||||
public $page = "";
|
||||
public array $redirects = array();
|
||||
public string $warning = "";
|
||||
public $code = null;
|
||||
public function __construct($step)
|
||||
{
|
||||
if (isset($step['page'])) {
|
||||
$this->page = $step['page'];
|
||||
}
|
||||
if (isset($step['redirects'])) {
|
||||
$this->redirects = $step['redirects'];
|
||||
}
|
||||
}
|
||||
public function setCurrentStep()
|
||||
{
|
||||
if (!empty($this->redirects)) {
|
||||
foreach ($this->redirects as $redirect) {
|
||||
if (isset($redirect['==']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['=='] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] == $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['!=']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['!='] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] != $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['>']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['>'] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] > $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['<']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['<'] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] < $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['>=']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['>='] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] >= $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['<=']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['<='] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] <= $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public function setCode(callable $function)
|
||||
{
|
||||
$this->code = $function;
|
||||
}
|
||||
}
|
||||
namespace Bengelsytem;
|
||||
|
||||
require_once 'WizardStep.php';
|
||||
|
||||
class Wizard
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,97 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
class WizardStep
|
||||
{
|
||||
public $page = "";
|
||||
public array $redirects = array();
|
||||
public string $warning = "";
|
||||
public $code = null;
|
||||
public function __construct($step)
|
||||
{
|
||||
if (isset($step['page'])) {
|
||||
$this->page = $step['page'];
|
||||
}
|
||||
if (isset($step['redirects'])) {
|
||||
$this->redirects = $step['redirects'];
|
||||
}
|
||||
}
|
||||
public function setCurrentStep()
|
||||
{
|
||||
if (!empty($this->redirects)) {
|
||||
foreach ($this->redirects as $redirect) {
|
||||
if (isset($redirect['==']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['=='] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] == $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['!=']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['!='] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] != $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['>']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['>'] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] > $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['<']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['<'] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] < $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['>=']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['>='] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] >= $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($redirect['<=']) && isset($redirect['id'])) {
|
||||
foreach ($redirect['<='] as $key => $value) {
|
||||
if (isset($_POST[$key]) && $_POST[$key] <= $value) {
|
||||
$_POST['step'] = $redirect['id'];
|
||||
if (isset($redirect['warning'])) {
|
||||
$this->warning = $redirect['warning'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public function setCode(callable $function)
|
||||
{
|
||||
$this->code = $function;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
function encode_string($key, $email, $level, $verification)
|
||||
{
|
||||
// String verification anfuegen am Ende, um abgeschnittene URLs zu verhindern
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
require_once 'konfiguration.php';
|
||||
require_once 'SQL.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
function KalenderDatum($start_date)
|
||||
{
|
||||
$format = 'Y,m,d';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsystem;
|
||||
|
||||
// Login und Admin Status testen. Wenn kein Admin-Status, Weiterleiten auf index.php und beenden
|
||||
require_once 'konfiguration.php';
|
||||
SESSION_START();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
|
||||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
// create the file below from the template:
|
||||
require_once __DIR__ . '/../bengelsystem_konfiguration.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Bengelsytem;
|
||||
|
||||
session_start();
|
||||
require_once 'SQL_old.php';
|
||||
require_once 'SQL.php';
|
||||
|
|
|
|||
Loading…
Reference in New Issue