-
Notifications
You must be signed in to change notification settings - Fork 5
/
ahp-news.php
executable file
·71 lines (59 loc) · 2.3 KB
/
ahp-news.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/** AHP hierarchy project calculation with alternatives
* @author Klaus D. Goepel
* @package AHP online
* @since 2013-12-01 release first version ahp hierarchy
* @version 2017-03-11 last version w/o SVN
*
Copyright (C) 2022 <Klaus D. Goepel>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
include 'includes/config.php';
$login = new Login();
$class = 'AhpNews' . $lang;
$ahpOs = new $class();
$_SESSION['lang'] = $lang;
$version = substr('$LastChangedDate: 2022-04-30 12:26:26 +0800 (Sa, 30 Apr 2022) $', 18, 10);
$rev = trim('$Rev: 207 $', "$");
$rev = file_get_contents('VERSION');
/*
* --- Web Page HTML OUTPUT ---
*/
$webHtml = new WebHtml($ahpOs->titles1['pageTitle']);
include('includes/login/form.login-hl.php');
echo $ahpOs->titles1['h1title'];
$webHtml->displayLanguageSelection();
echo "<div class='entry-content'>";
printf($ahpOs->titles1['h2welc'], (isset($_SESSION['user_name']) ? $_SESSION['user_name'] : ""));
if (defined('SYS_MSG')) {
echo "<p class='hl'>" . SYS_MSG . "</p>";
}
printf($ahpOs->titles1['h3release'], "", $rev);
echo $ahpOs->info['news0'];
echo $ahpOs->info['news1'];
echo $ahpOs->titles1['h3news2'];
echo $ahpOs->info['news2'];
if (DONATIONS) {
echo $ahpOs->titles1['h3don'];
echo $ahpOs->info['don'];
// include "views/paypal-don.html";
}
echo "<div style='clear:both;text-align:justify;'>";
if (DONATIONS) {
echo "<p><a href='https://paypal.me/ahpDonation' target='_blank'>Paypal.me/ahpDonation</a></p>";
}
echo $ahpOs->msg['tu'];
echo "<br><img src='images/Klaus.png' alt='Klaus' width='103' height='44' />";
echo "<div style='text-align:center;'><a href='" . SITE_URL . "'>",$ahpOs->msg['cont'],
"</a></p></div>";
echo "</div>";
$webHtml->webHtmlFooter($version);