-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
234 lines (184 loc) · 7.17 KB
/
index.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<?php
$title = "MASGAU";
include_once 'headers.php';
include_once 'modules/AModule.php';
include_once 'modules/Page.php';
include_once 'modules/Downloads.php';
if(!isset($module)) {
$_GET['name'] = 'home';
$module = AModule::LoadModule('page');
}
if(isset($module)) {
$title .= $module->title();
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title><?php echo $title; ?></title>
<meta name="description" content="A save game backup and resture utility. Creates easy-to-use archives that can be restored to any supported system." />
<link media="Screen" href="/css/masgau.css" type="text/css" rel="stylesheet" />
<link media="Screen" href="/libs/smj/tooltip.css" type="text/css" rel="stylesheet" />
<link media="Screen" href="/libs/jquery/css/dark-hive/jquery-ui-1.8.19.custom.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/js/yoxview/yoxview-init.js"></script>
<script type="text/javascript" src="/libs/smj/tooltip.js"></script>
<script type="text/javascript" src="/js/masgau.js"></script>
<?php
if(isset($module)) {
$module->headers();
}
?>
<?php
global $test_mode;
echo $test_mode;
if(!$test_mode) {
echo "<script type=\"text/javascript\">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-28092952-1']);
_gaq.push(['_setDomainName', 'masgau.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>";
}
?>
</head>
<body>
<div class="left_side side"> </div>
<div class="right_side side"> </div>
<div class="body_box">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=241294469250236";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<a href="http://masgau.org/"><img src="/images/logo.png" class="logo" /></a>
<div class="download">
<?php
$agent = $_SERVER['HTTP_USER_AGENT'];
include_once 'updates/AUpdateList.php';
$version = AUpdateList::$latest_program_version;
$version_string = "v.".$version['major'].".".$version['minor'].".".$version['revision'];
echo '<a href="http://masgau.org/downloads/'.$version['filename'].'" target="_blank" onclick="_gaq.push([\'_trackEvent\',\'Download\',\''.$version['name'].'\',this.href]);">';
?>
<img src="/images/download.png" /><br/>
<?php
echo '<p>'.$version_string.' FOR WINDOWS</p>' ;
//echo $agent;
?>
</div>
</a>
<?php
$menus = array(
"For The Users"=>array(
array("Download MASGAU!","downloads",null),
array("Using MASGAU (Screenshots!)","page","using"),
array("Current Game Support","support",null),
array("Automatically Backup Your Saves On The Net","page","cloud"),
),
"For The Geeks"=>array(
array("How To Contribute","page","contribute"),
// array("How MASGAU Works","page","how"),
array("How To Add New Games","page","xml_spec"),
// array("How To Use The Analyzer","page","analyzer"),
array("Game Database","hyperlink","http://gamesave.info/"),
array("Changelog","hyperlink","https://github.com/MASGAU/MASGAU/blob/master/Docs/changelog.txt"),
array("Data Changelog","hyperlink","https://github.com/GameSaveInfo/Data/blob/master/changelog.txt"),
array("MASGAU on GitHub","hyperlink","https://github.com/MASGAU/"),
),
"For Some Help"=>array(
//array("Forums","hyperlink","http://forums.masgau.org/"),
array("Report A Problem!","hyperlink","https://github.com/MASGAU/MASGAU/issues/new"),
array("MASGAU On Twitter","hyperlink","http://twitter.com/MASGAU/"),
array("MASGAU On Facebook","hyperlink","http://www.facebook.com/masgau"),
array("MASGAU On Google+","hyperlink","http://plus.google.com/115220090159606871198"),
array("My Blog","hyperlink","http://sanmadjack.blogspot.com/"),
),
"For Fun"=>array(
array("MASGAU on alternativeTo","hyperlink","http://alternativeto.net/software/masgau/"),
array("Contributor Hall of Fame","contributors",null),
)
);
$i = 1;
foreach(array_keys($menus) as $row) {
echo '<div class="menu_title" id="menu_title_'.$i.'">'.$row.'</div>';
$i++;
}
?>
<div class="shadow_area">
<div class="fadeout"> </div>
<?php
$i = 1;
foreach($menus as $row) {
echo '<div class="menu" id="menu_'.$i.'">';
echo '<div class="items">';
foreach($row as $item) {
echo AModule::CreateLinkForModule($item[1],$item[2]).$item[0].'</a><br />';
}
echo '</div></div>';
$i++;
}
?>
<?php
if(isset($module)) {
echo '<div class="content yoxiew">';
$module->draw();
} else {
echo '<script type="text/javascript">home_page = true;</script>';
echo '<div class="content home_content">';
}
echo '<div class="clear_both"></div>';
echo '</div>';
?>
<div class="shadowin"> </div>
<div class="shadowout"> </div>
<div class="fadein"> </div>
</div>
<div class="footer">
<?php
if(isset($module)) {
echo $module->footer();
}
?>
<br/>MASGAU is created by Matthew Barbour and various other contributors
</div>
<div class="social_footer">
<div style="float:right;margin-right:10px;">
<span id="a2itemwidget"></span>
<script src="http://api.alternativeto.net/software/masgau/widgetjs/blue" type="text/javascript"></script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=183744235777";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
</div>
<div style="float:right;margin-right:10px;">
<div class="fb-like" data-href="https://www.facebook.com/masgau" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
</div>
<div style="float:right;margin-right:10px;">
<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-size="tall" data-href="https://plus.google.com/b/115220090159606871198/115220090159606871198"></div>
<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>
</div>
</div>
</body>
</html>