forked from featherbb/featherbb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
117 lines (106 loc) · 3.86 KB
/
Copy pathheader.php
File metadata and controls
117 lines (106 loc) · 3.86 KB
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
<?php
/**
* Copyright (C) 2015 FeatherBB
* based on code by (C) 2008-2012 FluxBB
* and Rickard Andersson (C) 2002-2008 PunBB
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang_common['lang_identifier'] ?>" lang="<?php echo $lang_common['lang_identifier'] ?>" dir="<?php echo $lang_common['lang_direction'] ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo generate_page_title($page_title, $p) ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo get_base_url() ?>/style/<?php echo $feather->user->style.'.css' ?>" />
<?php
if (!defined('FEATHER_ALLOW_INDEX')) {
echo '<meta name="ROBOTS" content="NOINDEX, FOLLOW" />'."\n";
}
if (defined('FEATHER_ADMIN_CONSOLE')) {
if (file_exists(FEATHER_ROOT.'style/'.$feather->user->style.'/base_admin.css')) {
echo '<link rel="stylesheet" type="text/css" href="'.get_base_url().'/style/'.$feather->user->style.'/base_admin.css" />'."\n";
} else {
echo '<link rel="stylesheet" type="text/css" href="'.get_base_url().'/style/imports/base_admin.css" />'."\n";
}
}
if (isset($required_fields)) :
// Output JavaScript to validate form (make sure required fields are filled out)
?>
<script type="text/javascript">
/* <![CDATA[ */
function process_form(the_form)
{
var required_fields = {
<?php
// Output a JavaScript object with localised field names
$tpl_temp = count($required_fields);
foreach ($required_fields as $elem_orig => $elem_trans) {
echo "\t\t\"".$elem_orig.'": "'.addslashes(str_replace(' ', ' ', $elem_trans));
if (--$tpl_temp) {
echo "\",\n";
} else {
echo "\"\n\t};\n";
}
}
?>
if (document.all || document.getElementById)
{
for (var i = 0; i < the_form.length; ++i)
{
var elem = the_form.elements[i];
if (elem.name && required_fields[elem.name] && !elem.value && elem.type && (/^(?:text(?:area)?|password|file)$/i.test(elem.type)))
{
alert('"' + required_fields[elem.name] + '" <?php echo $lang_common['required field'] ?>');
elem.focus();
return false;
}
}
}
return true;
}
/* ]]> */
</script>
<?php
endif;
if (!empty($page_head)) :
echo implode("\n", $page_head)."\n";
endif;
?>
</head>
<body>
<div id="pun<?php echo FEATHER_ACTIVE_PAGE ?>" class="pun">
<div class="top-box"></div>
<div class="punwrap">
<div id="brdheader" class="block">
<div class="box">
<div id="brdtitle" class="inbox">
<h1><a href="<?php echo get_base_url() ?>/"><?php echo feather_escape($feather_config['o_board_title']) ?></a></h1>
<div id="brddesc"><?php echo $feather_config['o_board_desc'] ?></div>
</div>
<?php echo $navlinks ?>
<?php echo $page_info ?>
</div>
</div>
<?php if ($feather->user->g_read_board == '1' && $feather_config['o_announcement'] == '1') : ?>
<div id="announce" class="block">
<div class="hd"><h2><span><?php echo $lang_common['Announcement'] ?></span></h2></div>
<div class="box">
<div id="announce-block" class="inbox">
<div class="usercontent"><?php echo $feather_config['o_announcement_message'] ?></div>
</div>
</div>
</div>
<?php endif; ?>
<?php if (isset($flash['message'])) : ?>
<script type="text/javascript" src="<?=get_base_url();?>/js/common.js"></script>
<div id="msgflash" class="block">
<h2><span><?php echo $lang_common['Info'] ?></span><span style="float:right;cursor:pointer" onclick="fadeOut('msgflash', 9);">×</span></h2>
<div class="box">
<div class="inbox">
<p><?php echo feather_escape($flash['message']) ?></p>
</div>
</div>
</div>
<script type="text/javascript">fadeIn('msgflash', 0);</script>
<?php endif; ?>
<div id="brdmain">