Compare commits

..

No commits in common. "7f2f35b7deb96755afd215200ae14b4693d11f58" and "9ff7d0da7196983396843bc0029c99bf763b06d8" have entirely different histories.

3 changed files with 3 additions and 15 deletions

View File

@ -1,9 +1,9 @@
<?php
$host = getenv('POSTGRES_HOST');
$db = getenv('POSTGRES_DB');
$host = 'server';
$db = 'haushaltsbuch';
$user = getenv('POSTGRES_APPUSER');
$pass = getenv('POSTGRES_APPPASSWORD');
$port = getenv('POSTGRES_PORT');
$port = "5432";
try {
$dsn = "pgsql:host=$host;port=$port;dbname=$db;";

View File

@ -1,6 +1,5 @@
<?php
require_once __DIR__ . '/includes/db_connect.php';
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
$stmt = $pdo->query("SELECT k.id,
k.bezeichnung,
@ -39,11 +38,6 @@
<body>
<div class="header">
<?php
if($system == 'test') {
echo '<h2 class="restguthaben">Testsystem</h2>';
}
?>
<h2 class="restguthaben">
Restguthaben <?= htmlspecialchars($monat)?>: <?= htmlspecialchars($restguthaben ?? '0') ?> €
</h2>

View File

@ -1,6 +1,5 @@
<?php
require_once __DIR__ . '/includes/db_connect.php';
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
$konto_id = $_GET['id'];
@ -62,11 +61,6 @@
id="konto_navigationLinks">
Neue Kontobewegung
</a>
<?php
if($system == 'test') {
echo '<h2 class="restguthaben">Testsystem</h2>';
}
?>
<h2 class="kontoübersicht" id="h2_kontoübersicht">
<?= htmlspecialchars($konto_bezeichnung) ?>: <?= htmlspecialchars(number_format($konto_kontostand, 2, ",", ".")) ?> €
</h2>