forked from jdm/bugsahoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
55 lines (40 loc) · 1.46 KB
/
main.html
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
<?php
$html_title = 'Get Involved with Mozilla';
$breadcrumbs = array('');
$top_menu = array('selected' => '/contribute');
$menu = array(
'id' => 'contribute',
'selected' => '/contribute/',
);
$extra_headers = '
<meta name="keywords" content="get involved, contribute, mozilla, support, l10n, localization, qa, firefox, foxfire, camino, thunderbird, bugzilla, seamonkey, calendar, lightning, open web, better internet, webmaker" />
<META NAME="WT.ad" CONTENT="news_c">';
$base = $config['file_root'];
$rest = "contribute/bugs/index.html";
$fname = "{$base}/{$rest}";
if (file_exists($fname)) {
$contents = file_get_contents($fname);
} else {
$contents = file_get_contents("{$base}/mozilla.org/{$rest}");
}
preg_match("/<!--UHOH-->(.*)<!--OHNO-->/mis", $contents, $matches);
$extra_headers .= $matches[1];
require_once "{$config['file_root']}/includes/forms/contribute-form-header.inc.php";
require_once "{$config['file_root']}/includes/header-2010.inc.php";
?>
<div id="main-content" class="contribute landing" style="width: 175%;">
<?php
preg_match("/<!--OHDEAR-->(.*)<!--OHHDEAR-->/mis", $contents, $matches);
echo $matches[1];
?>
</div>
<div id="sidebar">
<?php //$left_menu->display(); ?>
<?php //include "{$config['file_root']}/includes/forms/contribute-form.inc.php"; ?>
</div>
<?php
$extra_footers = '
<script type="text/javascript" src="/script/1.0/mozilla-pager.js"></script>
';
require_once "{$config['file_root']}/includes/footer-2010.inc.php";
?>