Файловый менеджер - Редактировать - /var/www/jonas-eriksen.dk/result/index.php
Назад
<?php session_start(); include ('config.php'); include ('functions.php'); try { $db = new PDO("mysql:host={$DB_SERVER};dbname={$DB_NAME};",$DB_USERNAME,$DB_PASSWORD); $db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); } catch (PDOException $ex){ die("Failed to connect to the database: " . $ex->getMessage()); } include_once ('./admin/Class.admin.php'); include_once ('./user/Class.user.php'); $admin = new admin($db); $admin->passwordResetCheck(); $user = new user($db); $anniversary = $user->getUserAnniversary(); include ('static/header.php'); ?> <h2 style="margin-top: 0%">Jubilæum</h2> <table class="table-bordered"> <thead> <tr> <th>Navn</th> <th>Jubilæum</th> <th>År</th> </tr> </thead> <tfoot> <tr> <th>Navn</th> <th>Jubilæum</th> <th>År</th> </tr> </tfoot> <?php //anniversary foreach($anniversary AS $fca) { $age = date("Y") - $fca[2]; ?> <tr> <td> <a href="/user/profile.php?user=<?php echo $fca[0]; ?>"><?php echo $fca[1]; ?></a> </td> <td><?php echo $age; ?>. års jubilæum</td> <td><?php echo $fca[2]; ?></td> </tr> <?php } ?> </table> <div align="center"> <a href="<?php echo $companyLink ?>"><img src="static/<?php echo $logoName ?>" width="200"></a> <p style="color:blue; font-size: 100px">Velkommen</p> </div> <?php include ('static/footer.php'); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка