Compare commits
No commits in common. "7f2f35b7deb96755afd215200ae14b4693d11f58" and "9ff7d0da7196983396843bc0029c99bf763b06d8" have entirely different histories.
7f2f35b7de
...
9ff7d0da71
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
$host = getenv('POSTGRES_HOST');
|
$host = 'server';
|
||||||
$db = getenv('POSTGRES_DB');
|
$db = 'haushaltsbuch';
|
||||||
$user = getenv('POSTGRES_APPUSER');
|
$user = getenv('POSTGRES_APPUSER');
|
||||||
$pass = getenv('POSTGRES_APPPASSWORD');
|
$pass = getenv('POSTGRES_APPPASSWORD');
|
||||||
$port = getenv('POSTGRES_PORT');
|
$port = "5432";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$dsn = "pgsql:host=$host;port=$port;dbname=$db;";
|
$dsn = "pgsql:host=$host;port=$port;dbname=$db;";
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/includes/db_connect.php';
|
require_once __DIR__ . '/includes/db_connect.php';
|
||||||
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
|
|
||||||
|
|
||||||
$stmt = $pdo->query("SELECT k.id,
|
$stmt = $pdo->query("SELECT k.id,
|
||||||
k.bezeichnung,
|
k.bezeichnung,
|
||||||
@ -39,11 +38,6 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<?php
|
|
||||||
if($system == 'test') {
|
|
||||||
echo '<h2 class="restguthaben">Testsystem</h2>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<h2 class="restguthaben">
|
<h2 class="restguthaben">
|
||||||
Restguthaben <?= htmlspecialchars($monat)?>: <?= htmlspecialchars($restguthaben ?? '0') ?> €
|
Restguthaben <?= htmlspecialchars($monat)?>: <?= htmlspecialchars($restguthaben ?? '0') ?> €
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/includes/db_connect.php';
|
require_once __DIR__ . '/includes/db_connect.php';
|
||||||
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
|
|
||||||
|
|
||||||
$konto_id = $_GET['id'];
|
$konto_id = $_GET['id'];
|
||||||
|
|
||||||
@ -62,11 +61,6 @@
|
|||||||
id="konto_navigationLinks">
|
id="konto_navigationLinks">
|
||||||
Neue Kontobewegung
|
Neue Kontobewegung
|
||||||
</a>
|
</a>
|
||||||
<?php
|
|
||||||
if($system == 'test') {
|
|
||||||
echo '<h2 class="restguthaben">Testsystem</h2>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<h2 class="kontoübersicht" id="h2_kontoübersicht">
|
<h2 class="kontoübersicht" id="h2_kontoübersicht">
|
||||||
<?= htmlspecialchars($konto_bezeichnung) ?>: <?= htmlspecialchars(number_format($konto_kontostand, 2, ",", ".")) ?> €
|
<?= htmlspecialchars($konto_bezeichnung) ?>: <?= htmlspecialchars(number_format($konto_kontostand, 2, ",", ".")) ?> €
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user