-
Notifications
You must be signed in to change notification settings - Fork 228
/
Copy pathtemplate.php
109 lines (102 loc) · 4.6 KB
/
template.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
<?
// @todo Ïåðåêëþ÷åíèå âåðñòîê ñàéòà, ïîñëå âñåõ òåñòîâ óäàëèòü
// #0017167
//if($_COOKIE['template_site'] == 'template3.php') {
include "template3.php";
return;
//}
if(!defined('IN_STDF')) return "";
if (!$page_title) $page_title = "Óäàëåííàÿ ðàáîòà (ôðè-ëàíñ) íà FL.ru";
if (!$page_keyw) $page_keyw = "ðàáîòà, óäàëåííàÿ ðàáîòà, ïîèñê ðàáîòû, ïðåäëîæåíèå ðàáîòû, ïîðòôîëèî ôðèëàíñåðîâ, fl.ru";
if (!$page_descr) $page_descr = "Free-lance.ru ýòî ïðîôåññèîíàëüíûé ðåñóðñ, ïðåäíàçíà÷åííûé äëÿ ïîèñêà ðàáîòû èëè èñïîëíèòåëÿ (ôðèëàíñåðà) íà óäàëåííóþ ðàáîòó (ôðè-ëàíñ).";
require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/static_compress.php");
$stc = new static_compress;
$tmp_old = 1;
/*@mark_0013129*/
$page_keyw = $page_title;
$page_descr = $page_title;
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta name="description" lang="ru" content="<?= $page_descr ?>" />
<meta name="keywords" lang="ru" content="<?= $page_keyw ?>" />
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type" />
<?php if(!empty($FBShare)) { ?>
<?= printMetaFBShare($FBShare); ?>
<?php }//if?>
<title><?= $page_title ?></title>
<link rel="shortcut icon" href="/favicon.ico" />
<? $stc->Add("/scripts/swfobject.js"); ?>
<? $stc->Add("/scripts/player.js"); ?>
<? $stc->Add("/scripts/warning.js"); ?>
<? $stc->Add("/scripts/mootools-new.js"); ?>
<? $stc->Add("/scripts/mootools-more.js"); ?>
<? $stc->Add("/scripts/new_site.js"); ?>
<? $stc->Add("/scripts/new.js"); ?>
<? $stc->Add("/scripts/nav.js"); ?>
<? $stc->Add("/scripts/navigate.js"); ?>
<? $stc->Add("/scripts/ajax_blocks.js"); ?>
<? $stc->Add("/scripts/csrf.js"); ?>
<? $stc->Add("/css/nav.css"); ?>
<? $stc->Add("/css/fl2.css"); ?>
<? $stc->Add("/css/main.css"); ?>
<?php if( !is_array($css_file) && $css_file ) { $stc->Add( ($css_file[0]=='/' ? '' : '/css/') . $css_file ); }
elseif ( $css_file ) {
foreach ($css_file as $css) { $stc->Add( ($css[0]=='/' ? '' : '/css/') . $css ); }
} ?>
<?php
if ( !empty($js_file) ) {
if ( !is_array($js_file) ) {
$js_file = array( $js_file );
}
foreach ( $js_file as $sStcFile ) {
$stc->Add( ($sStcFile[0]=='/' ? '' : '/scripts/') . $sStcFile );
}
}
?>
<?= parse_additional_header($additional_header, $stc)?>
<? $stc->addBem(); ?>
<? $stc->Send(); ?>
<script type="text/javascript">
var _TOKEN_KEY = '<?=$_SESSION['rand']?>';
var _UID = <?=(int) $_SESSION['uid']?>;
<?php if(get_uid(false)) { ?>
window.addEvent('domready', function() {
CSRF(_TOKEN_KEY);
});
<?php }//?>
</script>
</head>
<body <?php if (isset($onload)) { ?> onload="<?= $onload ?>"<?php } ?> class="<?= cssClassBody($body_class) ?> old <?= BROWSER_NAME?> <?php if(getOS()=='Macintosh') { ?>mac<?php } ?>">
<div class="container">
<? if (!$no_banner) include ("banner100pct.php"); ?>
<?php include_once($_SERVER['DOCUMENT_ROOT'] . '/consultant.php'); ?>
<div class="header">
<?php include (ABS_PATH . "/header.php") ?>
<?php if (!$no_personal) include (ABS_PATH . "/personal.php") ?>
</div>
<?php include (ABS_PATH . "/greymenu.php") ?>
<?php if($content == 'templates/main.php') { ?>
<span id="qaccess_top"></span>
<script type="text/javascript">qaccess();</script>
<?php } //if?>
<?php if($content == 'templates/main.php') {?>
<div id="pay_place_top"></div>
<script type="text/javascript">pay_place_top(0);</script>
<?php } //if?>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left" valign="top" style="padding-top: 10px;">
<div style="width: 954px; margin: 0 auto 30px auto;">
<a name="top"></a>
<?php include ($content); ?>
</div>
</td>
</tr>
</table>
<?php include (ABS_PATH . "/footer.html") ?>
</div>
<?php include_once(ABS_PATH . '/user/sex_demand.php'); ?>
</body>
<!-- <?= $_ENV["HOSTNAME"] ?> -->
</html>