This commit is contained in:
2026-02-03 15:01:59 +01:00
parent f6874ea235
commit dfa93ccf27
12 changed files with 30 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
# allebilder.php # allebilder.php

12
auth.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
include('config.inc.php');
if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW']) ||
$_SERVER['PHP_AUTH_USER'] !== $inc_username || $_SERVER['PHP_AUTH_PW'] !== $inc_password) {
header('WWW-Authenticate: Basic realm="Protected Area"');
header('HTTP/1.0 401 Unauthorized');
echo 'Access denied.';
exit;
}
?>

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
############################################################# #############################################################
# Konfigurations Datei für Webcams mit Motion # Konfigurations Datei für Webcams mit Motion
@@ -7,6 +8,13 @@
$inc_pfad_www = "/z/motion/"; $inc_pfad_www = "/z/motion/";
#################################
# Zugangsdaten
#################################
$inc_username = "TODO"
$inc_password = "TODO"
################################# #################################
# KAMERAS # KAMERAS
################################# #################################

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
# $datei # $datei

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
$jpg_quality = 75; $jpg_quality = 75;

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
$b = isset($_GET['b']) ? $_GET['b'] : '160'; $b = isset($_GET['b']) ? $_GET['b'] : '160';
$q = isset($_GET['q']) ? $_GET['q'] : '75'; $q = isset($_GET['q']) ? $_GET['q'] : '75';

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
$b = isset($_GET['b']) ? $_GET['b'] : '160'; $b = isset($_GET['b']) ? $_GET['b'] : '160';
$q = isset($_GET['q']) ? $_GET['q'] : '75'; $q = isset($_GET['q']) ? $_GET['q'] : '75';

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
include('config.inc.php'); include('config.inc.php');
$datei = basename(__FILE__); $datei = basename(__FILE__);

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
# letztenbilder.php # letztenbilder.php

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
# letztenbildermin.php # letztenbildermin.php

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
$datei = basename(__FILE__); $datei = basename(__FILE__);

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once 'auth.php';
# $datei # $datei