(22 апр 2014, 09:44) (
0/
0)
[
0]
Тема закрыта для обсуждения!
(14 янв 2013, 22:34) (
0/
1)
[
-1]
-=Dr.Bew2=-,
Где вставить ?
(14 янв 2013, 22:17) (
0/
0)
[
0]
-=Dr.Bew2=-,
[code]<?php
2:
3: // mod Gemorroj
4:
5: $GLOBALS[\'tm\'] = microtime(true);
6:
7:
8: header(\'Content-type: text/html; charset=utf-8\');
9: header(\'Expires: Thu, 21 Jul 1977 07:30:00
GMT\');
10: header(\'Last-Modified: \' . gmdate(\'r\') . \' GMT\');
11: header(\'Cache-Control: post-check=0, pre-
check=0\');
12: header(\'Pragma: no-cache\');
13:
14:
15: if ($setup[\'service_change\']) {
16: if (isset($_GET[\'url\'])) {
17: $_SESSION[\'site_url\'] = $setup[\'site_url\'] =
\'http://\' . htmlspecialchars($_GET[\'url\']);
18: } elseif (isset($_SESSION[\'site_url\'])) {
19: $setup[\'site_url\'] = $_SESSION[\'site_url\'];
20: }
21: }
22:
23: define(\'DIRECTORY\', str_replace(array(\'\\\\\', \'//\'),
\'/\', dirname($_SERVER[\'PHP_SELF\']) . \'/\'));
24:
25: if ($setup[\'style_change\']) {
26: if (isset($_POST[\'style\'])) {
27: $style = htmlspecialchars(rawurldecode
($_POST[\'style\']), ENT_COMPAT);
28: setcookie(\'style\', $_POST[\'style\'], $_SERVER
[\'REQUEST_TIME\'] + 2592000, DIRECTORY,
$_SERVER[\'HTTP_HOST\']);
29: } elseif (isset($_GET[\'style\'])) {
30: $style = htmlspecialchars(rawurldecode($_GET
[\'style\']), ENT_COMPAT);
31: setcookie(\'style\', $_GET[\'style\'], $_SERVER
[\'REQUEST_TIME\'] + 2592000, DIRECTORY,
$_SERVER[\'HTTP_HOST\']);
32: } elseif (isset($_COOKIE[\'style\'])) {
33: $style = htmlspecialchars($_COOKIE[\'style\'],
ENT_COMPAT);
34: } elseif (isset($_SESSION[\'style\'])) {
35: $style = $_SESSION[\'style\'];
36: } else {
37: $style = $_SERVER[\'HTTP_HOST\'] . DIRECTORY .
$setup[\'css\'] . \'.css\';
38: }
39: } else {
40: $style = $_SERVER[\'HTTP_HOST\'] . DIRECTORY .
$setup[\'css\'] . \'.css\';
41: }
42:
43:
44:
45: // функция замены title в буфере
46: function callback($buff)
47: {
48: return str_replace(\'</title>\', \' \' . ($GLOBALS
[\'title\'] ? $GLOBALS[\'title\'] : \'\') . \'</title>\', $buff);
49: }
50:
51: ob_start(\'callback\');
52: echo \'<?xml version=\"1.0\" encoding=\"UTF-8\"?>
53: <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML
Basic 1.1//EN\" \"http://www.w3.org/TR/xhtml-
basic/xhtml-basic11.dtd\">
54: <html xmlns=\"http://www.w3.org/1999/xhtml\"
xml:lang=\"ru\">
55: <head>
56: <link rel=\"alternate\" type=\"application/rss
+xml\" href=\"http://\' . $_SERVER[\'HTTP_HOST\'] .
DIRECTORY . \'rss.php\"/>
57: <link rel=\"stylesheet\" type=\"text/css\"
href=\"http://\' . $style . \'\"/>
58: <title>\' . $setup[\'zag\'] . \'</title>
59: </head>
60: <body>
61: <div>\';
62:
63: $title = \'\';
64:
65: ?>[/code]
(14 янв 2013, 21:42) (
0/
0)
[
0]
s60.h2m.ru
Как вставить и куда чтоб было лого ?