Version 3.1.4
This commit is contained in:
1 parent
1d4720f3e2
commit
ae5c01cc78
2563 files changed
+283048
-240689
No files matched your search
Vendored
+10
-1
@@ -1 +1,10 @@
|
||||
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<hr>␍You have reached this page in error, please use your back button to return to the forum.␍<hr>␍<a href="http://www.invisionboard.com/">IP.Board</a>␍</body>␍</html>␍
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionboard.com/">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
+186
-184
@@ -1,185 +1,187 @@
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Database driver error template
|
||||
* Last Updated: $Date: 2009-07-15 09:58:43 -0400 (Wed, 15 Jul 2009) $
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @since 3.0
|
||||
* @version $Revision: 4890 $
|
||||
*
|
||||
*/
|
||||
|
||||
class ipsDriverErrorTemplate
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the database error
|
||||
*
|
||||
* @access public
|
||||
* @param boolean Show error in template or not
|
||||
* @param string Error message (only shown/needed if $showError is true)
|
||||
* @return void
|
||||
*/
|
||||
public function showError( $showError=false, $errorMessage='' )
|
||||
{
|
||||
$errorBlock = '';
|
||||
$name = $_SERVER['HTTP_HOST'];
|
||||
|
||||
if( $showError AND $errorMessage )
|
||||
{
|
||||
$errorMessage = htmlspecialchars($errorMessage);
|
||||
$errorBlock = <<<EOF
|
||||
<div class='database-error'>
|
||||
<form name='mysql'>
|
||||
<textarea rows="15" cols="60">{$errorMessage}</textarea>
|
||||
</form>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
|
||||
return <<<EOF
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="Fri, 01 January 1999 01:00:00 GMT" />
|
||||
<title>{$name} ошибка базы данных</title>
|
||||
<style type='text/css'>
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; }
|
||||
table { border-collapse:collapse; border-spacing:0; }
|
||||
fieldset,img { border:0; }
|
||||
address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; }
|
||||
ol,ul { list-style:none; }
|
||||
caption,th { text-align:left; }
|
||||
h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; }
|
||||
q:before,q:after { content:''; }
|
||||
abbr,acronym { border:0; }
|
||||
hr { display: none; }
|
||||
address{ display: inline; }
|
||||
body {
|
||||
font-family: arial, tahoma, sans-serif;
|
||||
font-size: 0.8em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: arial, tahoma, "times new roman", serif;
|
||||
font-size: 1.9em;
|
||||
color: #fff;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.6em;
|
||||
font-weight: normal;
|
||||
margin: 0 0 8px 0;
|
||||
clear: both;
|
||||
}
|
||||
a {
|
||||
color: #3e70a8;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #3d8ce4;
|
||||
}
|
||||
|
||||
a.cancel {
|
||||
color: #ad2930;
|
||||
}
|
||||
#branding {
|
||||
background: #484848;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#content {
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
padding: 20px 15px 0px 15px;
|
||||
}
|
||||
|
||||
* #content {
|
||||
height: 1%;
|
||||
}
|
||||
|
||||
.message {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #d7d7d7;
|
||||
background-color: #f5f5f5;
|
||||
padding: 7px 7px 7px 30px;
|
||||
margin: 0 0 10px 0;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.message.error {
|
||||
background-color: #f3dddd;
|
||||
border-color: #deb7b7;
|
||||
color: #281b1b;
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.message.unspecific {
|
||||
background-color: #f3f3f3;
|
||||
border-color: #d4d4d4;
|
||||
color: #515151;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.database-error {
|
||||
padding: 4px 0px 10px 80px;
|
||||
margin: 10px 0px 10px 0px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 700px;
|
||||
height: 250px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body id='ipboard_body'>
|
||||
<div id='header'>
|
||||
<div id='branding'>
|
||||
<h1>{$name} ошибка базы данных</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id='content'>
|
||||
<div class='message error'>
|
||||
Возникла ошибка при работе с базой данных.
|
||||
{$errorBlock}
|
||||
</div>
|
||||
|
||||
<p class='message unspecific'>
|
||||
К сожалению, на данный момент из-за технических проблем с базой данных, форум не может обработать ваш запрос. О проблеме уже сообщено администрации форума.
|
||||
<br /><br />
|
||||
Приносим свои извинения за причиненные неудобства.
|
||||
<br /><br />
|
||||
Вы можете попробовать обновить страницу нажав <a href="javascript:window.location=window.location;">сюда</a>
|
||||
</p>
|
||||
<p class='message unspecific footer'>
|
||||
«<a href='/index.php' title='На главную'>Вернуться на главную</a>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
}
|
||||
<?php
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* Database driver error template
|
||||
* Last Updated: $Date: 2010-08-13 07:08:58 -0400 (Fri, 13 Aug 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: matt $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 3.0
|
||||
* @version $Revision: 6749 $
|
||||
*
|
||||
*/
|
||||
|
||||
class ipsDriverErrorTemplate
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the database error
|
||||
*
|
||||
* @access public
|
||||
* @param boolean Show error in template or not
|
||||
* @param string Error message (only shown/needed if $showError is true)
|
||||
* @return void
|
||||
*/
|
||||
public function showError( $showError=false, $errorMessage='')
|
||||
{
|
||||
$errorBlock = '';
|
||||
$name = $_SERVER['HTTP_HOST'];
|
||||
|
||||
if( $showError AND $errorMessage )
|
||||
{
|
||||
$errorMessage = htmlspecialchars($errorMessage);
|
||||
$errorBlock = <<<EOF
|
||||
<div class='database-error'>
|
||||
<form name='mysql'>
|
||||
<textarea rows="15" cols="60">{$errorMessage}</textarea>
|
||||
</form>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
|
||||
return <<<EOF
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="Fri, 01 January 1999 01:00:00 GMT" />
|
||||
<title>{$name} ошибка базы данных</title>
|
||||
<style type='text/css'>
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; }
|
||||
table { border-collapse:collapse; border-spacing:0; }
|
||||
fieldset,img { border:0; }
|
||||
address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; }
|
||||
ol,ul { list-style:none; }
|
||||
caption,th { text-align:left; }
|
||||
h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; }
|
||||
q:before,q:after { content:''; }
|
||||
abbr,acronym { border:0; }
|
||||
hr { display: none; }
|
||||
address{ display: inline; }
|
||||
body {
|
||||
font-family: arial, tahoma, sans-serif;
|
||||
font-size: 0.8em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: arial, tahoma, "times new roman", serif;
|
||||
font-size: 1.9em;
|
||||
color: #fff;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.6em;
|
||||
font-weight: normal;
|
||||
margin: 0 0 8px 0;
|
||||
clear: both;
|
||||
}
|
||||
a {
|
||||
color: #3e70a8;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #3d8ce4;
|
||||
}
|
||||
|
||||
a.cancel {
|
||||
color: #ad2930;
|
||||
}
|
||||
#branding {
|
||||
background: #484848;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#content {
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
padding: 20px 15px 0px 15px;
|
||||
}
|
||||
|
||||
* #content {
|
||||
height: 1%;
|
||||
}
|
||||
|
||||
.message {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #d7d7d7;
|
||||
background-color: #f5f5f5;
|
||||
padding: 7px 7px 7px 30px;
|
||||
margin: 0 0 10px 0;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.message.error {
|
||||
background-color: #f3dddd;
|
||||
border-color: #deb7b7;
|
||||
color: #281b1b;
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.message.unspecific {
|
||||
background-color: #f3f3f3;
|
||||
border-color: #d4d4d4;
|
||||
color: #515151;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.database-error {
|
||||
padding: 4px 0px 10px 80px;
|
||||
margin: 10px 0px 10px 0px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 700px;
|
||||
height: 250px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body id='ipboard_body'>
|
||||
<div id='header'>
|
||||
<div id='branding'>
|
||||
<h1>{$name} ошибка базы данных</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id='content'>
|
||||
<div class='message error'>
|
||||
Возникла ошибка при работе с базой данных.
|
||||
{$errorBlock}
|
||||
</div>
|
||||
|
||||
<p class='message unspecific'>
|
||||
К сожалению, на данный момент из-за технических проблем с базой данных, форум не может обработать ваш запрос. О проблеме уже сообщено администрации форума.
|
||||
<br /><br />
|
||||
Приносим свои извинения за причиненные неудобства.
|
||||
<br /><br />
|
||||
Вы можете попробовать обновить страницу нажав <a href="javascript:window.location=window.location;">сюда</a>
|
||||
</p>
|
||||
<p class='message unspecific footer'>
|
||||
«<a href='/index.php' title='На главную'>Вернуться на главную</a>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
}
|
||||
}
|
||||
+171
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* Database driver error template
|
||||
* Last Updated: $Date: 2010-01-15 15:18:44 +0000 (Fri, 15 Jan 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 3.0
|
||||
* @version $Revision: 5713 $
|
||||
*
|
||||
*/
|
||||
|
||||
class ipsDriverErrorTemplate
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the database error
|
||||
*
|
||||
* @access public
|
||||
* @param boolean Show error in template or not
|
||||
* @param string Error message (only shown/needed if $showError is true)
|
||||
* @return void
|
||||
*/
|
||||
public function showError( $showError=false, $errorMessage='' )
|
||||
{
|
||||
$errorBlock = '';
|
||||
$name = $_SERVER['HTTP_HOST'];
|
||||
|
||||
$errorMessage = nl2br( trim( $errorMessage ) );
|
||||
|
||||
return <<<EOF
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xml:lang="ru" lang="ru" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="Fri, 01 January 1999 01:00:00 GMT" />
|
||||
<title>Ошибка при работе с {$name}</title>
|
||||
<style type='text/css'>
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; }
|
||||
table { border-collapse:collapse; border-spacing:0; }
|
||||
fieldset,img { border:0; }
|
||||
address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; }
|
||||
ol,ul { list-style:none; }
|
||||
caption,th { text-align:left; }
|
||||
h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; }
|
||||
q:before,q:after { content:''; }
|
||||
abbr,acronym { border:0; }
|
||||
hr { display: none; }
|
||||
address{ display: inline; }
|
||||
body {
|
||||
font-family: arial, tahoma, sans-serif;
|
||||
font-size: 0.8em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: arial, tahoma, "times new roman", serif;
|
||||
font-size: 1.9em;
|
||||
color: #fff;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.6em;
|
||||
font-weight: normal;
|
||||
margin: 0 0 8px 0;
|
||||
clear: both;
|
||||
}
|
||||
a {
|
||||
color: #3e70a8;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #3d8ce4;
|
||||
}
|
||||
|
||||
a.cancel {
|
||||
color: #ad2930;
|
||||
}
|
||||
#branding {
|
||||
background: #484848;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#content {
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
padding: 20px 15px 0px 15px;
|
||||
}
|
||||
|
||||
* #content {
|
||||
height: 1%;
|
||||
}
|
||||
|
||||
.message {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #d7d7d7;
|
||||
background-color: #f5f5f5;
|
||||
padding: 7px 30px 7px 30px;
|
||||
margin: 0 0 10px 0;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.message.error {
|
||||
background-color: #f5bbbb;
|
||||
border-color: #deb7b7;
|
||||
color: #281b1b;
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.message.error p.desc {
|
||||
font-size: 0.8em;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.message.unspecific {
|
||||
background-color: #f3f3f3;
|
||||
border-color: #d4d4d4;
|
||||
color: #515151;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
line-height: 150%;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body id='ipboard_body'>
|
||||
<div id='header'>
|
||||
<div id='branding'>
|
||||
<h1>Ошибка</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id='content'>
|
||||
<div class='message error'>
|
||||
Возникла проблема при работе с SQL сервером:
|
||||
<p class='message unspecific'>$errorMessage</p>
|
||||
<p class='desc'>
|
||||
Данная проблема не является ошибкой внутри IP.Board и скорее всего связана с проблемами на вашем SQL сервере. Постарайтесь сообщить об этой проблеме вашему хостинг-провайдеру.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p class='message unspecific footer'>
|
||||
«<a href='/index.php' title='На главную'>Вернуться на главную страницу</a>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
}
|
||||
}
|
||||
+70
-60
@@ -1,61 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* IN_DEV Remapping.
|
||||
* Last Updated: $Date: 2009-01-05 22:21:54 +0000 (Mon, 05 Jan 2009) $
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @since 3.0
|
||||
* @version $Revision: 3572 $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* This file is used to map skin IDs to a "master skin" directory for offline editing
|
||||
* It is only used when IN_DEV is on.
|
||||
* You are responsible for creating any directory and setting appropriate permission for IP.Board to write into it
|
||||
* You can then import/export the skin in master format from the ACP -> Look & Feel (Menu button on appropriate skin row that will show when you have added it to the $REMAP array below
|
||||
*/
|
||||
|
||||
/*
|
||||
To be able to edit a skin outside of the ACP, do this.
|
||||
|
||||
1) Create a new skin set within the ACP. It can be a 'root' skin or a 'child'. It doesn't matter. Make sure you enter a 'skin_key' which must be unique.
|
||||
2) Put your board in IN_DEV mode by editing the constant in conf_global.php
|
||||
3) Create a new master skin directory in /cache/skin_cache. It must be something unique, like 'master_myskin' for example.
|
||||
4) Add your new 'skin_key' to the 'templates' array below.
|
||||
5) Back into your ACP, go to the list of skin sets. Click on the menu icon for your new skin set and choose: 'EXPORT Templates into 'master' directory...'.
|
||||
|
||||
You should now be able to edit those files as you browse the board without the ACP. When you are done, simply choose 'IMPORT Templates..'.
|
||||
*/
|
||||
|
||||
$REMAP = array(
|
||||
# This is the skin IPB uses when IN_DEV is switched on. Change the ID to
|
||||
# your own skin if desired.
|
||||
'inDevDefault' => 0,
|
||||
|
||||
# This defines which skins are exported for the installer
|
||||
'export' => array( 0 => 0,
|
||||
1 => 'xmlskin',
|
||||
2 => 'lofi' ),
|
||||
|
||||
# Templates array. setID OR setKey => styleDir. styleDir must be created in 'cache/skin_cache' first
|
||||
'templates' => array(
|
||||
0 => 'master_skin',
|
||||
'xmlskin' => 'master_skin_xml',
|
||||
'lofi' => 'master_skin_lofi',
|
||||
),
|
||||
|
||||
# CSS. setID OR setKey => cssDir. cssDir must be created in 'public/style_css' first
|
||||
'css' => array(
|
||||
0 => 'master_css',
|
||||
'xmlskin' => 'master_css_xml',
|
||||
'lofi' => 'master_css_lofi',
|
||||
|
||||
)
|
||||
<?php
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IN_DEV Remapping.
|
||||
* Last Updated: $Date: 2010-07-14 05:39:43 -0400 (Wed, 14 Jul 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: matt $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 3.0
|
||||
* @version $Revision: 6648 $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* This file is used to map skin IDs to a "master skin" directory for offline editing
|
||||
* It is only used when IN_DEV is on.
|
||||
* You are responsible for creating any directory and setting appropriate permission for IP.Board to write into it
|
||||
* You can then import/export the skin in master format from the ACP -> Look & Feel (Menu button on appropriate skin row that will show when you have added it to the $REMAP array below
|
||||
*/
|
||||
|
||||
/*
|
||||
To be able to edit a skin outside of the ACP, do this.
|
||||
|
||||
1) Create a new skin set within the ACP. It can be a 'root' skin or a 'child'. It doesn't matter. Make sure you enter a 'skin_key' which must be unique.
|
||||
2) Put your board in IN_DEV mode by editing the constant in conf_global.php
|
||||
3) Create a new master skin directory in /cache/skin_cache. It must be something unique like 'mytest', like 'master_skin_mytest' for example.
|
||||
4) Add your new 'skin_key' to the 'templates' array below.
|
||||
5) Back into your ACP, go to the list of skin sets. Click on the menu icon for your new skin set and choose: 'EXPORT Templates into 'master' directory...'.
|
||||
|
||||
You should now be able to edit those files as you browse the board without the ACP. When you are done, simply choose 'IMPORT Templates..'.
|
||||
*/
|
||||
|
||||
$REMAP = array(
|
||||
# This is the skin IPB uses when IN_DEV is switched on. Change the ID to
|
||||
# your own skin if desired.
|
||||
'inDevDefault' => 'root',
|
||||
|
||||
# Master skins - please do not modify
|
||||
'masterKeys' => array( 'root', 'xmlskin', 'mobile' ),
|
||||
|
||||
# This defines which skins are exported for the installer
|
||||
'export' => array( 0 => 'root',
|
||||
2 => 'xmlskin',
|
||||
1 => 'mobile' ),
|
||||
|
||||
# Templates array. setID OR setKey => styleDir. styleDir must be created in 'cache/skin_cache' first
|
||||
'templates' => array(
|
||||
'root' => 'master_skin',
|
||||
'xmlskin' => 'master_skin_xml',
|
||||
'mobile' => 'master_skin_mobile',
|
||||
#'mytest' => 'master_skin_mytest',
|
||||
),
|
||||
|
||||
# CSS. setID OR setKey => cssDir. cssDir must be created in 'public/style_css' first
|
||||
'css' => array(
|
||||
'root' => 'master_css',
|
||||
'xmlskin' => 'master_css_xml',
|
||||
'mobile' => 'master_css_mobile',
|
||||
),
|
||||
|
||||
# Images
|
||||
'images' => array( 'root' => 'master',
|
||||
'xmlskin' => 'master',
|
||||
'mobile' => 'mobile' )
|
||||
);
|
||||
Reference in new issue
Block a user