Serve assets from a separate URL
This commit is contained in:
@@ -29,6 +29,7 @@ $mbname = 'www.rock.ru'; # The name of your forum.
|
||||
$language = 'russian'; # The default language file set for the forum.
|
||||
$boardurl = 'http://192.168.201.100/forum'; # URL to your forum's folder. (without the trailing /!)
|
||||
$staticurl = 'http://192.168.201.102/forum'; # URL to your forum's folder. (without the trailing /!)
|
||||
$assetsurl = 'http://192.168.201.102'; # URL to your forum's folder. (without the trailing /!)
|
||||
$boarddir = '/var/www/rock/forum';
|
||||
$sourcedir = '/var/www/rock/forum/Sources';
|
||||
$webmaster_email = 'noreply@rock.ru'; # Email address to send emails from. (like noreply@yourdomain.com.)
|
||||
|
||||
@@ -19,6 +19,7 @@ function template_init()
|
||||
function template_main_above()
|
||||
{
|
||||
global $context, $settings, $options, $scripturl, $txt, $modSettings;
|
||||
global $assetsurl;
|
||||
|
||||
// header("Content-Type: text/html; charset=windows-1251");
|
||||
// Show right to left and the character set for ease of translating.
|
||||
@@ -42,8 +43,8 @@ function template_main_above()
|
||||
<script language="JavaScript" type="text/javascript" src="http://yandex.st/jquery/cookie/1.0/jquery.cookie.min.js"></script>
|
||||
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js"></script>
|
||||
<script type="text/javascript" src="http://ads.rock.ru/www/delivery/spcjs.php?id=1"></script>
|
||||
<script type="text/javascript" src="http://img.rock.ru/js/bar.minified.js"></script>
|
||||
<link type="text/css" href="http://img.rock.ru/css/bar/default/jx.stylesheet.css?v=1" rel="stylesheet" media="screen"/>
|
||||
<script type="text/javascript" src="' . $assetsurl . '/js/bar.minified.js"></script>
|
||||
<link type="text/css" href="' . $assetsurl . '/css/bar/default/jx.stylesheet.css?v=1" rel="stylesheet" media="screen"/>
|
||||
|
||||
<script language="JavaScript" type="text/javascript"><!--
|
||||
var smf_theme_url = "', $settings['theme_url'], '";
|
||||
@@ -307,6 +308,7 @@ function template_main_above()
|
||||
function template_main_below()
|
||||
{
|
||||
global $context, $settings, $options, $scripturl, $txt;
|
||||
global $assetsurl;
|
||||
|
||||
echo '</td>
|
||||
</tr></table>';
|
||||
@@ -481,14 +483,14 @@ if (! defined('MOBILE')) {
|
||||
if (! $context['user']['is_guest']) {
|
||||
?>
|
||||
<ul class="jx-bar-button">
|
||||
<li title="Новые сообщения в темах, в которые Вы писали"><a href="http://rock.ru/forum/index.php?action=unreadreplies"><img src="http://img.rock.ru/images/reply.png" alt="" />Новые ответы</a>
|
||||
<li title="Новые сообщения в темах, в которые Вы писали"><a href="http://rock.ru/forum/index.php?action=unreadreplies"><img src="<?=$assetsurl?>/images/reply.png" alt="" />Новые ответы</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?
|
||||
if (!empty($context['current_topic']) && empty($context['is_watched']) ) {
|
||||
?>
|
||||
<ul class="jx-bar-button">
|
||||
<li title="Следить за темой"><a href="http://rock.ru/forum/index.php?action=watch;id_topic=<?=$context['current_topic']?>;return=<?=urlencode("topic=".$context['current_topic'].'.'.$context['start'])?>"><img src="http://img.rock.ru/images/reply.png" alt="" />Следить за темой</a>
|
||||
<li title="Следить за темой"><a href="http://rock.ru/forum/index.php?action=watch;id_topic=<?=$context['current_topic']?>;return=<?=urlencode("topic=".$context['current_topic'].'.'.$context['start'])?>"><img src="<?=$assetsurl?>/images/reply.png" alt="" />Следить за темой</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?
|
||||
@@ -496,7 +498,7 @@ if (! defined('MOBILE')) {
|
||||
?>
|
||||
|
||||
<ul class="jx-bar-button-right">
|
||||
<li title="Личные сообщения"><a href="http://rock.ru/forum/index.php?action=pm"><img src="http://img.rock.ru/images/mail.png" alt="" />(<?=$context['user']['unread_messages']?> новых)</a>
|
||||
<li title="Личные сообщения"><a href="http://rock.ru/forum/index.php?action=pm"><img src="<?=$assetsurl?>/images/mail.png" alt="" />(<?=$context['user']['unread_messages']?> новых)</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -505,7 +507,7 @@ if (! defined('MOBILE')) {
|
||||
}
|
||||
?>
|
||||
<ul class="jx-bar-button-right">
|
||||
<li title="Людей в чате: <?=$context['people_in_chat']?>"><a href="http://rock.ru/chat/"><img src="http://img.rock.ru/images/chat.png" alt="" />Чат</a>
|
||||
<li title="Людей в чате: <?=$context['people_in_chat']?>"><a href="http://rock.ru/chat/"><img src="<?=$assetsurl?>/images/chat.png" alt="" />Чат</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ function template_init()
|
||||
function template_main_above()
|
||||
{
|
||||
global $context, $settings, $options, $scripturl, $txt, $modSettings;
|
||||
global $assetsurl;
|
||||
|
||||
// header("Content-Type: text/html; charset=windows-1251");
|
||||
// Show right to left and the character set for ease of translating.
|
||||
@@ -33,8 +34,8 @@ function template_main_above()
|
||||
<script language="JavaScript" type="text/javascript" src="http://yandex.st/jquery/cookie/1.0/jquery.cookie.min.js"></script>
|
||||
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js"></script>
|
||||
<script type="text/javascript" src="http://rock.ru/ads/www/delivery/spcjs.php?id=1"></script>
|
||||
<script type="text/javascript" src="http://img.rock.ru/js/bar.minified.js"></script>
|
||||
<link type="text/css" href="http://img.rock.ru/css/bar/default/jx.stylesheet.css" rel="stylesheet" />
|
||||
<script type="text/javascript" src="' . $assetsurl . 'js/bar.minified.js"></script>
|
||||
<link type="text/css" href="' . $assetsurl . '/css/bar/default/jx.stylesheet.css" rel="stylesheet" />
|
||||
|
||||
|
||||
<script language="JavaScript" type="text/javascript"><!--
|
||||
@@ -297,6 +298,7 @@ function template_main_above()
|
||||
function template_main_below()
|
||||
{
|
||||
global $context, $settings, $options, $scripturl, $txt;
|
||||
global $assetsurl;
|
||||
|
||||
echo '</td>
|
||||
</tr></table>';
|
||||
@@ -476,12 +478,12 @@ screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
|
||||
if (! $context['user']['is_guest']) {
|
||||
?>
|
||||
<ul class="jx-bar-button">
|
||||
<li title="Новые сообщения в темах, в которые Вы писали"><a href="http://rock.ru/forum/index.php?action=unreadreplies"><img src="http://img.rock.ru/images/reply.png" alt="" />Новые ответы</a>
|
||||
<li title="Новые сообщения в темах, в которые Вы писали"><a href="http://rock.ru/forum/index.php?action=unreadreplies"><img src="<?=$assetsurl?>/images/reply.png" alt="" />Новые ответы</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="jx-bar-button-right">
|
||||
<li title="Личные сообщения"><a href="http://rock.ru/forum/index.php?action=pm"><img src="http://img.rock.ru/images/mail.png" alt="" />(<?=$context['user']['unread_messages']?> новых)</a>
|
||||
<li title="Личные сообщения"><a href="http://rock.ru/forum/index.php?action=pm"><img src="<?=$assetsurl?>/images/mail.png" alt="" />(<?=$context['user']['unread_messages']?> новых)</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -490,7 +492,7 @@ screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
|
||||
}
|
||||
?>
|
||||
<ul class="jx-bar-button-right">
|
||||
<li title="Людей в чате: <?=$context['people_in_chat']?>"><a href="http://rock.ru/chat/"><img src="http://img.rock.ru/images/chat.png" alt="" />Чат</a>
|
||||
<li title="Людей в чате: <?=$context['people_in_chat']?>"><a href="http://rock.ru/chat/"><img src="<?=$assetsurl?>/images/chat.png" alt="" />Чат</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user