-
Notifications
You must be signed in to change notification settings - Fork 14
/
gennews-html.php
163 lines (153 loc) · 7.1 KB
/
gennews-html.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?php
// error_reporting(E_ALL);
$rootpath = $_SERVER['DOCUMENT_ROOT'] . '/';
$title = 'MAMEdev.org | Home of The MAME Project';
?>
<?php require($_SERVER['DOCUMENT_ROOT'] . '/_include/html/header.html'); ?>
<!-- Full Width Image Header with Logo -->
<!-- Image backgrounds are set within the full-width-pics.css file. -->
<header class="image-bg-fluid-height">
<img class="img-responsive img-center" src="_include/img/logo-mame.png" alt="">
</header>
<!-- Page Content -->
<div class="container">
<?php
if ($post == "")
{
?>
<!-- Marketing Icons Section -->
<div class="row">
<center><h1 class="page-header">Welcome to The Official Site of the MAME Development Team</h1></center>
<div class="panel panel-primary">
<div class="panel-heading">
<h4>What is MAME?</h4>
</div>
<div class="panel-body">
<p>MAME is a multi-purpose emulation framework.</p>
<p>MAME’s purpose is to preserve decades of software history. As electronic technology continues to rush forward, MAME prevents this important "vintage" software from being lost and forgotten. This is achieved by documenting the hardware and how it functions. The source code to MAME serves as this documentation. The fact that the software is usable serves primarily to validate the accuracy of the documentation (how else can you prove that you have recreated the hardware faithfully?). Over time, MAME (originally stood for Multiple Arcade Machine Emulator) absorbed the sister-project MESS (Multi Emulator Super System), so MAME now documents a wide variety of (mostly vintage) computers, video game consoles and calculators, in addition to the arcade video games that were its initial focus.</p>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading">
<h4>License</h4>
</div>
<div class="panel-body">
<p>The MAME project as a whole is distributed under the terms of the <a href="https://opensource.org/licenses/GPL-2.0">GNU General Public License, 2</a> (GPL-2.0), since it contains code made available under multiple GPL-compatible licenses.
A great majority of files (over 90% including core files) are under the <a href="https://opensource.org/licenses/BSD-3-Clause">BSD-3-Clause License</a> and we would encourage new contributors to distribute files under this license.</p>
<p>Please note that MAME is a registered trademark of Gregory Ember, and permission is required to use the "MAME" name, logo or wordmark.</p>
</div>
</div>
</div>
<!-- /.row -->
<!-- Supported Platforms Section -->
<div class="row">
<div class="col-lg-12">
<center><h2 class="page-header">Supported Platforms</h2></center>
</div>
<div class="col-md-4 col-sm-4 col-xs-6">
<center><i class="fa fa-windows fa-5x"></i><br/><br/><a href="release.php" class="btn btn-success"><h2>Download</h2></a><br/><br/></center>
</div>
<div class="col-md-4 col-sm-4 col-xs-6">
<center><i class="fa fa-apple fa-5x"></i><br/><br/><a href="//wiki.mamedev.org/index.php/SDL_Supported_Platforms" class="btn btn-success"><h2>Download</h2></a><br/><br/></center>
</div>
<div class="col-md-4 col-sm-4 col-xs-12">
<center><i class="fa fa-linux fa-5x"></i><br/><br/><a href="//wiki.mamedev.org/index.php/SDL_Supported_Platforms" class="btn btn-success"><h2>Download</h2></a><br/><br/></center>
</div>
</div>
<!-- /.row -->
<?php
}
?>
<!-- Posts Section -->
<div class="row">
<div class="col-lg-12">
<center><h2 class="page-header">News</h2></center>
</div>
<!-- navigation bar -->
<div class="row">
<?php
if ($pagenum == "" && $post == "")
{
echo("\t<div id=\"new-news-nav" . "\" class=\"col-md-4 col-sm-4 col-xs-4\">\n");
echo("\t\t<center><a title=\"< Newer News" . "\" rel=\"prev\" href=\"/" . $prevurl . "\" class=\"btn btn-success btn-sm\" disabled=\"disabled\">" . "< Newer" . "</a></center>\n");
echo("\t\t</div>\n");
}
else
{
echo("\t<div id=\"new-news-nav" . "\" class=\"col-md-4 col-sm-4 col-xs-4\">\n");
echo("\t\t<center><a title=\"< Newer News" . "\" rel=\"prev\" href=\"/" . $prevurl . "\" class=\"btn btn-success btn-sm\">" . "< Newer" . "</a></center>\n");
echo("\t\t</div>\n");
}
?>
<div class="col-md-4 col-sm-4 col-xs-4"></div>
<?php
echo("\t<div id=\"old-news-nav" . "\" class=\"col-md-4 col-sm-4 col-xs-4\">\n");
echo("\t\t<center><a title=\"Older News >" . "\" rel=\"next\" href=\"/" . $nexturl . "\" class=\"btn btn-success btn-sm\">" . "Older >" . "</a></center>\n");
echo("\t\t</div>\n");
?>
</div>
<!-- /.row -->
<?php
if (count($entries) == 0)
echo("<p>No matching items found!</p>");
for ($index = 0; $index < count($entries); $index++)
{
$entry = $entries[$index];
$data = file($postpath . "/" . $entry);
$title = trim(strip_tags($data[0]));
$number = getpostnumber($entry);
echo("\t\t\t\t\t<div id=\"post-" . $number . "\" class=\"col-md-8\">\n");
echo("\t\t\t\t\t\t<h2><a title=\"Permanent Link to " . $title . "\" rel=\"bookmark\" href=\"/?p=" . $number . "\">" . $title . "</a></h2>\n");
echo("\t\t\t\t\t\t<small>" . date("d M Y", getposttimestamp($entry)) . "</small>\n");
echo("\t\t\t\t\t\t<div class=\"entry\">\n");
for ($line = 1; $line < count($data); $line++)
{
if (!preg_match("/\A\s*<!--\s*more\s*-->\s*$/", $data[$line]))
{
echo("\t\t\t\t\t\t\t" . $data[$line]);
}
else if ($post == "")
{
echo("\t\t\t\t\t\t\t<p><a href=\"/?p=" . $number . "#readmore\">Read the rest of this entry »</a></p>\n");
break;
}
else
{
echo("\t\t\t\t\t\t\t<a name=\"readmore\"></a>\n");
}
}
echo("\t\t\t\t\t\t</div>\n");
echo("\t\t\t\t\t</div>\n");
}
?>
<!-- posts end -->
</div>
<div class="row"></div>
<!-- navigation bar -->
<div class="row">
<?php
if ($pagenum == "" && $post == "")
{
echo("\t<div id=\"new-news-nav" . "\" class=\"col-md-4 col-sm-4 col-xs-4\">\n");
echo("\t\t<center><a title=\"< Newer News" . "\" rel=\"prev\" href=\"/" . $prevurl . "\" class=\"btn btn-success btn-sm\" disabled=\"disabled\">" . "< Newer" . "</a></center>\n");
echo("\t\t</div>\n");
}
else
{
echo("\t<div id=\"new-news-nav" . "\" class=\"col-md-4 col-sm-4 col-xs-4\">\n");
echo("\t\t<center><a title=\"< Newer News" . "\" rel=\"prev\" href=\"/" . $prevurl . "\" class=\"btn btn-success btn-sm\">" . "< Newer" . "</a></center>\n");
echo("\t\t</div>\n");
}
?>
<div class="col-md-4 col-sm-4 col-xs-4"></div>
<?php
echo("\t<div id=\"old-news-nav" . "\" class=\"col-md-4 col-sm-4 col-xs-4\">\n");
echo("\t\t<center><a title=\"Older News >" . "\" rel=\"next\" href=\"/" . $nexturl . "\" class=\"btn btn-success btn-sm\">" . "Older >" . "</a></center>\n");
echo("\t\t</div>\n");
?>
</div>
<!-- /.row -->
<!-- /.container -->
<br/><br/><br/>
<br/><br/><br/>
<?php require($_SERVER['DOCUMENT_ROOT'] . '/_include/html/footer.html'); ?>