Merge branch 'develop' of github.com:phpbb/phpbb3 into develop
* 'develop' of github.com:phpbb/phpbb3: (44 commits)
[ticket/10374] Remove 'custom template' cache prefix.
[feature/remove-db-styles] Remove forgotten template variables.
[feature/remove-db-styles] Removed style.php!
[feature/remove-db-styles] Rework filesystem permission checks from 6d24a71
.
[feature/remove-db-styles] Update language to reflect removal of db storage.
[feature/remove-db-styles] Mark log entrys as deprecated.
[feature/remove-db-styles] Add error if template/theme file is unwritable.
[feature/remove-db-styles] Add schema changes sinces 3.0.x.
[feature/remove-db-styles] Readd table constant for upgrades etc.
[feature/remove-db-styles] Update database schemas.
[feature/remove-db-styles] Remove style.php DB storage.
[feature/remove-db-styles] Remove parse_css_file option from themes.
[feature/remove-db-styles] Remove DB theme handling code from session.
[feature/remove-db-styles] ACP has forgotten how to store themes in the DB.
[feature/remove-db-styles] Missed a few template DB bits in acp_styles.
[feature/remove-db-styles] Removing unused methods from acp_style.
[feature/remove-db-styles] Removed database storage of style components.
[ticket/10371] Removing last mentions of imageset
[ticket/10370] Add function documentation for get_stacktrace().
[ticket/10370] Explain that we are not the ones hiding backtrace pieces.
...
|
@ -56,9 +56,6 @@ $template->set_custom_template($phpbb_admin_path . 'style', 'admin');
|
|||
$template->assign_var('T_ASSETS_PATH', $phpbb_root_path . 'assets');
|
||||
$template->assign_var('T_TEMPLATE_PATH', $phpbb_admin_path . 'style');
|
||||
|
||||
// the acp template is never stored in the database
|
||||
$user->theme['template_storedb'] = false;
|
||||
|
||||
// Instantiate new module
|
||||
$module = new p_master();
|
||||
|
||||
|
|
|
@ -32,10 +32,6 @@
|
|||
<dt><label for="new_theme_id">{L_DELETE_THEME}:</label><br /><span>{L_REPLACE_THEME_EXPLAIN}</span></dt>
|
||||
<dd><select id="new_theme_id" name="new_theme_id">{S_REPLACE_THEME_OPTIONS}</select></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="new_imageset_id">{L_DELETE_IMAGESET}:</label><br /><span>{L_REPLACE_IMAGESET_EXPLAIN}</span></dt>
|
||||
<dd><select id="new_imageset_id" name="new_imageset_id">{S_REPLACE_IMAGESET_OPTIONS}</select></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<p class="quick">
|
||||
|
@ -45,127 +41,6 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
|
||||
<!-- ELSEIF S_EDIT_IMAGESET -->
|
||||
|
||||
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a>
|
||||
|
||||
<h1>{L_TITLE}</h1>
|
||||
|
||||
<p>{L_EXPLAIN}</p>
|
||||
|
||||
<!-- IF SUCCESS -->
|
||||
<div class="successbox">
|
||||
<p>{L_IMAGESET_UPDATED}</p>
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF ERROR -->
|
||||
<div class="errorbox">
|
||||
<p>{L_NO_IMAGE}</p>
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<script type="text/javascript" defer="defer">
|
||||
// <![CDATA[
|
||||
function update_image(newimage)
|
||||
{
|
||||
document.getElementById('newimg').src = (newimage) ? '../styles/{A_PATH}/imageset/' + encodeURI(newimage) : 'images/no_image.png';
|
||||
}
|
||||
// ]]>
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
/**
|
||||
* Handle displaying/hiding the dimension fields
|
||||
*/
|
||||
function display_options(value)
|
||||
{
|
||||
if (value == 0)
|
||||
{
|
||||
dE('img_dimensions', -1);
|
||||
}
|
||||
else
|
||||
{
|
||||
dE('img_dimensions', 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Init the wanted display functionality if javascript is enabled.
|
||||
* If javascript is not available, the user is still able to properly administer.
|
||||
*/
|
||||
onload = function()
|
||||
{
|
||||
<!-- IF not IMAGE_SIZE -->
|
||||
dE('img_dimensions', -1);
|
||||
<!-- ENDIF -->
|
||||
}
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<form method="post" action="{U_ACTION}">
|
||||
|
||||
<fieldset class="quick" style="text-align: left;">
|
||||
<legend>{L_SELECT_IMAGE}</legend>
|
||||
{L_SELECT_IMAGE}: <select name="imgname" onchange="this.form.submit();">
|
||||
<!-- BEGIN category -->
|
||||
<option class="sep" value="" disabled="disabled">{category.NAME}</option>
|
||||
<!-- BEGIN images --><option value="{category.images.VALUE}"<!-- IF category.images.SELECTED--> selected="selected"<!-- ENDIF -->> {category.images.TEXT}</option>
|
||||
<!-- END images -->
|
||||
<!-- END category -->
|
||||
</select> <input class="button1" type="submit" value="{L_SELECT}" tabindex="100" />
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{L_EDIT_IMAGESET}</legend>
|
||||
<dl>
|
||||
<dt><label>{L_CURRENT_IMAGE}:</label></dt>
|
||||
<dd><img src="<!-- IF IMAGE_REQUEST -->{IMAGE_REQUEST}<!-- ELSE -->images/no_image.png<!-- ENDIF -->" alt="" /></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label>{L_SELECTED_IMAGE}:</label></dt>
|
||||
<dd><img src="{IMG_SRC}" id="newimg" alt="" /></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{L_IMAGE}</legend>
|
||||
<dl>
|
||||
<dt><label for="imgpath">{L_IMAGE}:</label></dt>
|
||||
<dd><select id="imgpath" name="imgpath" onchange="update_image(this.options[selectedIndex].value);"><option value=""<!-- IF not IMAGE_SELECT--> selected="selected"<!-- ENDIF -->>{L_NO_IMAGE}</option>
|
||||
<!-- BEGIN imagesetlist -->
|
||||
<option class="sep" value=""><!-- IF imagesetlist.TYPE -->{L_LOCALISED_IMAGES}<!-- ELSE -->{L_GLOBAL_IMAGES}<!-- ENDIF --></option>
|
||||
<!-- BEGIN images -->
|
||||
<option value="{imagesetlist.images.VALUE}"<!-- IF imagesetlist.images.SELECTED--> selected="selected"<!-- ENDIF -->>{imagesetlist.images.TEXT}</option>
|
||||
<!-- END images -->
|
||||
<!-- END imagesetlist -->
|
||||
</select>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="imgsize">{L_INCLUDE_DIMENSIONS}:</label><br /><span>{L_DIMENSIONS_EXPLAIN}</span></dt>
|
||||
<dd><label><input type="radio" class="radio" name="imgsize" id="imgsize" onclick="display_options(1);" value="1"<!-- IF IMAGE_SIZE --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
|
||||
<label><input type="radio" class="radio" name="imgsize" onclick="display_options(0);" value="0"<!-- IF not IMAGE_SIZE --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
|
||||
</dl>
|
||||
<div id="img_dimensions">
|
||||
<dl>
|
||||
<dt><label for="imgwidth">{L_IMAGE_WIDTH}:</label><br /><span>{L_AUTOMATIC_EXPLAIN}</span></dt>
|
||||
<dd><input id="imgwidth" type="text" name="imgwidth" value="{IMAGE_SIZE}" /></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="imgheight">{L_IMAGE_HEIGHT}:</label><br /><span>{L_AUTOMATIC_EXPLAIN}</span></dt>
|
||||
<dd><input id="imgheight" type="text" name="imgheight" value="{IMAGE_HEIGHT}" /></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="submit-buttons">
|
||||
<legend>{L_SUBMIT}</legend>
|
||||
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" /> <input class="button2" type="reset" value="{L_RESET}" />
|
||||
{S_FORM_TOKEN}
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<!-- ELSEIF S_EDIT_TEMPLATE or S_EDIT_THEME -->
|
||||
|
||||
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a>
|
||||
|
@ -354,11 +229,6 @@
|
|||
<dd><label><input type="radio" class="radio" id="inc_theme" name="inc_theme" value="1" checked="checked" /> {L_YES}</label>
|
||||
<label><input type="radio" class="radio" name="inc_theme" value="0" /> {L_NO}</label></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="inc_imageset">{L_INCLUDE_IMAGESET}:</label></dt>
|
||||
<dd><label><input type="radio" class="radio" id="inc_imageset" name="inc_imageset" value="1" checked="checked" /> {L_YES}</label>
|
||||
<label><input type="radio" class="radio" name="inc_imageset" value="0" /> {L_NO}</label></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<dl>
|
||||
<dt><label for="store">{L_DOWNLOAD_STORE}:</label><br /><span>{L_DOWNLOAD_STORE_EXPLAIN}</span></dt>
|
||||
|
@ -491,17 +361,6 @@
|
|||
<dt><label for="theme_id">{L_STYLE_THEME}:</label></dt>
|
||||
<dd><!-- IF S_INSTALL --><strong id="theme_id">{THEME_NAME}</strong><!-- ELSE --><select id="theme_id" name="theme_id">{S_THEME_OPTIONS}</select><!-- ENDIF --></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="imageset_id">{L_STYLE_IMAGESET}:</label></dt>
|
||||
<dd><!-- IF S_INSTALL --><strong id="imageset_id">{IMAGESET_NAME}</strong><!-- ELSE --><select id="imageset_id" name="imageset_id">{S_IMAGESET_OPTIONS}</select><!-- ENDIF --></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF (S_TEMPLATE or S_THEME) and (S_LOCATION or not S_INSTALL) -->
|
||||
<dl>
|
||||
<dt><label for="store_db">{L_LOCATION}:</label><br /><span><!-- IF S_STORE_DB_DISABLED -->{L_LOCATION_DISABLED_EXPLAIN}<!-- ELSE -->{L_LOCATION_EXPLAIN}<!-- ENDIF --></span></dt>
|
||||
<dd><label><input type="radio" class="radio" name="store_db" value="0"<!-- IF not S_STORE_DB --> id="store_db" checked="checked"<!-- ENDIF --> <!-- IF S_STORE_DB_DISABLED -->disabled="disabled" <!-- ENDIF --> />{L_STORE_FILESYSTEM}</label>
|
||||
<label><input type="radio" class="radio" name="store_db" value="1"<!-- IF S_STORE_DB --> id="store_db" checked="checked"<!-- ENDIF --> <!-- IF S_STORE_DB_DISABLED -->disabled="disabled" <!-- ENDIF -->/> {L_STORE_DATABASE}</label></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF S_STYLE -->
|
||||
</fieldset>
|
||||
|
|
|
@ -1657,7 +1657,6 @@ function get_schema_struct()
|
|||
'template_copyright' => array('VCHAR_UNI', ''),
|
||||
'template_path' => array('VCHAR:100', ''),
|
||||
'bbcode_bitfield' => array('VCHAR:255', 'kNg='),
|
||||
'template_storedb' => array('BOOL', 0),
|
||||
'template_inherits_id' => array('UINT:4', 0),
|
||||
'template_inherit_path' => array('VCHAR', ''),
|
||||
),
|
||||
|
@ -1667,29 +1666,12 @@ function get_schema_struct()
|
|||
),
|
||||
);
|
||||
|
||||
$schema_data['phpbb_styles_template_data'] = array(
|
||||
'COLUMNS' => array(
|
||||
'template_id' => array('UINT', 0),
|
||||
'template_filename' => array('VCHAR:100', ''),
|
||||
'template_included' => array('TEXT', ''),
|
||||
'template_mtime' => array('TIMESTAMP', 0),
|
||||
'template_data' => array('MTEXT_UNI', ''),
|
||||
),
|
||||
'KEYS' => array(
|
||||
'tid' => array('INDEX', 'template_id'),
|
||||
'tfn' => array('INDEX', 'template_filename'),
|
||||
),
|
||||
);
|
||||
|
||||
$schema_data['phpbb_styles_theme'] = array(
|
||||
'COLUMNS' => array(
|
||||
'theme_id' => array('UINT', NULL, 'auto_increment'),
|
||||
'theme_name' => array('VCHAR_UNI:255', ''),
|
||||
'theme_copyright' => array('VCHAR_UNI', ''),
|
||||
'theme_path' => array('VCHAR:100', ''),
|
||||
'theme_storedb' => array('BOOL', 0),
|
||||
'theme_mtime' => array('TIMESTAMP', 0),
|
||||
'theme_data' => array('MTEXT_UNI', ''),
|
||||
),
|
||||
'PRIMARY_KEY' => 'theme_id',
|
||||
'KEYS' => array(
|
||||
|
|
274
phpBB/develop/imageset_to_css.php
Normal file
|
@ -0,0 +1,274 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
Converts imageset to CSS code
|
||||
|
||||
Change style name and path below, open in browser.
|
||||
*/
|
||||
|
||||
$phpbb_root_path = '../';
|
||||
$style = 'subsilver2';
|
||||
|
||||
$imageset_path = $phpbb_root_path . 'styles/' . $style . '/imageset';
|
||||
$theme_path = $phpbb_root_path . 'styles/' . $style . '/theme2';
|
||||
|
||||
// Start output buffering
|
||||
ob_start();
|
||||
|
||||
// Get global and English images
|
||||
$images_global = get_imageset($imageset_path);
|
||||
if($images_global === false)
|
||||
{
|
||||
echo 'imageset.cfg was not found.';
|
||||
echo ob_get_clean();
|
||||
return;
|
||||
}
|
||||
$images_en = get_imageset($imageset_path, 'en');
|
||||
if($images_en === false)
|
||||
{
|
||||
echo 'English imageset.cfg was not found.';
|
||||
echo ob_get_clean();
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove duplicate images
|
||||
foreach($images_en as $key => $row)
|
||||
{
|
||||
unset($images_global[$key]);
|
||||
}
|
||||
|
||||
// CSS replacements
|
||||
$not_compatible = array(
|
||||
'{T_TEMPLATE_PATH}',
|
||||
'{T_IMAGESET_PATH}',
|
||||
'{T_IMAGESET_LANG_PATH}',
|
||||
'{T_STYLESHEET_NAME}',
|
||||
'{S_USER_LANG}'
|
||||
);
|
||||
$replace = array(
|
||||
'{T_THEME_PATH}' => '.',
|
||||
);
|
||||
// Enable/disable one of lines below to enable/disable replacement of English buttons
|
||||
// $replace = array_merge($replace, get_replacements($images_global));
|
||||
$replace = array_merge($replace, get_replacements($images_global), get_replacements($images_en));
|
||||
|
||||
// Get all CSS files, parse them
|
||||
$files = list_files($theme_path, 'css');
|
||||
if($files === false || !count($files))
|
||||
{
|
||||
echo 'No CSS files found in theme directory.<br />';
|
||||
}
|
||||
else for($i=0; $i<count($files); $i++)
|
||||
{
|
||||
$file = $theme_path . '/' . $files[$i];
|
||||
$data = file_get_contents($file);
|
||||
$hash = md5($data);
|
||||
$data = strtr($data, $replace);
|
||||
$errors = false;
|
||||
for($j=0; $j<count($not_compatible); $j++)
|
||||
{
|
||||
if(strpos($data, $not_compatible[$j]) !== false)
|
||||
{
|
||||
echo 'Error: ', $file, ' contains ', $not_compatible[$j], '. That variable cannot be converted.<br />';
|
||||
}
|
||||
}
|
||||
if(md5($data) == $hash)
|
||||
{
|
||||
echo 'Nothing to replace in ', $file, '<br />';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Updated ', $file, ':', dump_code($data, $files[$i]);
|
||||
}
|
||||
}
|
||||
|
||||
// Check if there are invalid images in imageset
|
||||
$list = array_merge($images_global, $images_en);
|
||||
foreach($list as $key => $row)
|
||||
{
|
||||
if($row['skip'])
|
||||
{
|
||||
echo 'Unable to generate code to add to CSS files because some images are missing or invalid. See errors above.';
|
||||
echo ob_get_clean();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Code to add to CSS files
|
||||
$code = '
|
||||
/* Former imageset */
|
||||
span.imageset {
|
||||
display: inline-block;
|
||||
background: transparent none 0 0 no-repeat;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Global imageset items */
|
||||
' . css($images_global, './images/') . '
|
||||
|
||||
/* English images for fallback */
|
||||
' . css($images_en, './en/');
|
||||
echo 'Code to add to CSS file:', dump_code($code, 'imageset.css');
|
||||
|
||||
$list = list_languages($imageset_path);
|
||||
for($i=0; $i<count($list); $i++)
|
||||
{
|
||||
$lang = $list[$i];
|
||||
$images = get_imageset($imageset_path . '/' . $lang);
|
||||
if(!count($images)) continue;
|
||||
$code = '/* ' . strtoupper($lang) . ' Language Pack */
|
||||
' . css($images, './');
|
||||
echo 'New CSS file: ', $theme_path, '/', $lang, '/stylesheet.css', dump_code($code, 'stylesheet_' . $lang . '.css');
|
||||
}
|
||||
|
||||
echo ob_get_clean();
|
||||
return;
|
||||
|
||||
|
||||
/*
|
||||
Functions
|
||||
*/
|
||||
function get_imageset($path, $lang = '')
|
||||
{
|
||||
$cfg = $path . ($lang ? '/' . $lang : '') . '/imageset.cfg';
|
||||
if(!@file_exists($cfg)) return false;
|
||||
$data = file($cfg);
|
||||
$result = array();
|
||||
for($i=0; $i<count($data); $i++)
|
||||
{
|
||||
$str = trim($data[$i]);
|
||||
if(substr($str, 0, 4) != 'img_') continue;
|
||||
$list = explode('=', $data[$i]);
|
||||
if(count($list) != 2) continue;
|
||||
$key = trim($list[0]);
|
||||
$row = explode('*', trim($list[1]));
|
||||
$file = trim($row[0]);
|
||||
$height = isset($row[1]) && intval($row[1]) ? intval($row[1]) : false;
|
||||
$width = isset($row[2]) && intval($row[2]) ? intval($row[2]) : false;
|
||||
$skip = false;
|
||||
if(strlen($file) && (!$width || !$height))
|
||||
{
|
||||
// Try to detect width/height
|
||||
$filename = $path . ($lang ? '/' . $lang : '') . '/' . $file;
|
||||
if(!@file_exists($filename))
|
||||
{
|
||||
echo 'Error: file ', $filename, ' does not exist and its dimensions are not available in imageset.cfg<br />';
|
||||
$skip = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$size = @getimagesize($filename);
|
||||
if($size === false)
|
||||
{
|
||||
echo 'Error: file ', $filename, ' is not a valid image<br />';
|
||||
$skip = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!$width) $width = intval($size[0]);
|
||||
if(!$height) $height = intval($size[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
$result[$key] = array(
|
||||
'lang' => $lang,
|
||||
'file' => $file,
|
||||
'height' => $height,
|
||||
'width' => $width,
|
||||
'skip' => $skip
|
||||
);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function get_replacements($list)
|
||||
{
|
||||
$result = array();
|
||||
foreach($list as $key => $row)
|
||||
{
|
||||
$key = '{' . strtoupper($key);
|
||||
$result[$key . '_SRC}'] = strlen($row['file']) ? ($row['lang'] ? './' . $row['lang'] : './images') . '/' . $row['file'] : '';
|
||||
$result[$key . '_WIDTH}'] = intval($row['width']);
|
||||
$result[$key . '_HEIGHT}'] = intval($row['height']);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function list_files($dir, $ext)
|
||||
{
|
||||
$res = @opendir($dir);
|
||||
if($res === false) return false;
|
||||
$files = array();
|
||||
while(($file = readdir($res)) !== false)
|
||||
{
|
||||
$list = explode('.', $file);
|
||||
if(count($list) > 1 && strtolower($list[count($list) - 1]) == $ext)
|
||||
{
|
||||
$files[] = $file;
|
||||
}
|
||||
}
|
||||
closedir($res);
|
||||
return $files;
|
||||
}
|
||||
|
||||
function list_languages($dir)
|
||||
{
|
||||
$res = @opendir($dir);
|
||||
if($res === false) return array();
|
||||
$files = array();
|
||||
while(($file = readdir($res)) !== false)
|
||||
{
|
||||
if(substr($file, 0, 1) == '.') continue;
|
||||
$filename = $dir . '/' . $file;
|
||||
if(is_dir($filename) && file_exists($filename . '/imageset.cfg'))
|
||||
{
|
||||
$files[] = $file;
|
||||
}
|
||||
}
|
||||
closedir($res);
|
||||
return $files;
|
||||
}
|
||||
|
||||
function dump_code($code, $filename = 'file.txt')
|
||||
{
|
||||
$hash = md5($code);
|
||||
if(isset($_GET['download']) && $_GET['download'] === $hash)
|
||||
{
|
||||
// Download file
|
||||
ob_end_clean();
|
||||
header('Pragma: public');
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
header('Content-Type: application/force-download');
|
||||
header('Content-Disposition: attachment; filename="' . $filename . '";');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Content-Length: ' . strlen($code));
|
||||
echo $code;
|
||||
exit;
|
||||
}
|
||||
$list = explode("\n", $code);
|
||||
$height = 15 * count($list);
|
||||
echo ' [ <a href="?download=', $hash, '">download</a> <a href="javascript:void(0);" onclick="document.getElementById(\'code-', $hash, '\').style.height = \'', $height, 'px\'; this.style.display = \'none\'; return false;">expand</a> ]<br />';
|
||||
echo '<textarea id="code-', $hash, '" onfocus="this.select();" style="width: 98%; height: 200px;">', htmlspecialchars($code), '</textarea><br />';
|
||||
}
|
||||
|
||||
function css($list, $path = './')
|
||||
{
|
||||
$code = '';
|
||||
foreach($list as $key => $row)
|
||||
{
|
||||
if(!strlen($row['file'])) continue;
|
||||
$code .= '.imageset.' . substr($key, 4) . ' {
|
||||
background-image: url("' . $path . $row['file'] . '");
|
||||
padding-left: ' . $row['width'] . 'px;
|
||||
padding-top: ' . $row['height'] . 'px;
|
||||
}
|
||||
';
|
||||
}
|
||||
return $code;
|
||||
}
|
||||
|
|
@ -1094,14 +1094,12 @@ function get_schema_struct()
|
|||
'style_active' => array('BOOL', 1),
|
||||
'template_id' => array('UINT', 0),
|
||||
'theme_id' => array('UINT', 0),
|
||||
'imageset_id' => array('UINT', 0),
|
||||
),
|
||||
'PRIMARY_KEY' => 'style_id',
|
||||
'KEYS' => array(
|
||||
'style_name' => array('UNIQUE', 'style_name'),
|
||||
'template_id' => array('INDEX', 'template_id'),
|
||||
'theme_id' => array('INDEX', 'theme_id'),
|
||||
'imageset_id' => array('INDEX', 'imageset_id'),
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -1152,35 +1150,6 @@ function get_schema_struct()
|
|||
),
|
||||
);
|
||||
|
||||
$schema_data['phpbb_styles_imageset'] = array(
|
||||
'COLUMNS' => array(
|
||||
'imageset_id' => array('UINT', NULL, 'auto_increment'),
|
||||
'imageset_name' => array('VCHAR_UNI:255', ''),
|
||||
'imageset_copyright' => array('VCHAR_UNI', ''),
|
||||
'imageset_path' => array('VCHAR:100', ''),
|
||||
),
|
||||
'PRIMARY_KEY' => 'imageset_id',
|
||||
'KEYS' => array(
|
||||
'imgset_nm' => array('UNIQUE', 'imageset_name'),
|
||||
),
|
||||
);
|
||||
|
||||
$schema_data['phpbb_styles_imageset_data'] = array(
|
||||
'COLUMNS' => array(
|
||||
'image_id' => array('UINT', NULL, 'auto_increment'),
|
||||
'image_name' => array('VCHAR:200', ''),
|
||||
'image_filename' => array('VCHAR:200', ''),
|
||||
'image_lang' => array('VCHAR:30', ''),
|
||||
'image_height' => array('USINT', 0),
|
||||
'image_width' => array('USINT', 0),
|
||||
'imageset_id' => array('UINT', 0),
|
||||
),
|
||||
'PRIMARY_KEY' => 'image_id',
|
||||
'KEYS' => array(
|
||||
'i_d' => array('INDEX', 'imageset_id'),
|
||||
),
|
||||
);
|
||||
|
||||
$schema_data['phpbb_topics'] = array(
|
||||
'COLUMNS' => array(
|
||||
'topic_id' => array('UINT', NULL, 'auto_increment'),
|
||||
|
|
|
@ -127,7 +127,7 @@ if (!$feed_updated_time)
|
|||
// Some default assignments
|
||||
// FEED_IMAGE is not used (atom)
|
||||
$global_vars = array_merge($global_vars, array(
|
||||
'FEED_IMAGE' => ($user->img('site_logo', '', false, '', 'src')) ? $board_url . '/' . substr($user->img('site_logo', '', false, '', 'src'), strlen($phpbb_root_path)) : '',
|
||||
'FEED_IMAGE' => '',
|
||||
'SELF_LINK' => feed_append_sid('/feed.' . $phpEx, $params),
|
||||
'FEED_LINK' => $board_url . '/index.' . $phpEx,
|
||||
'FEED_TITLE' => $config['sitename'],
|
||||
|
|
|
@ -797,11 +797,6 @@ class acp_language
|
|||
$sql = 'DELETE FROM ' . PROFILE_FIELDS_LANG_TABLE . ' WHERE lang_id = ' . $lang_id;
|
||||
$db->sql_query($sql);
|
||||
|
||||
$sql = 'DELETE FROM ' . STYLES_IMAGESET_DATA_TABLE . " WHERE image_lang = '" . $db->sql_escape($row['lang_iso']) . "'";
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$cache->destroy('sql', STYLES_IMAGESET_DATA_TABLE);
|
||||
|
||||
add_log('admin', 'LOG_LANGUAGE_PACK_DELETED', $row['lang_english_name']);
|
||||
|
||||
trigger_error(sprintf($user->lang['LANGUAGE_PACK_DELETED'], $row['lang_english_name']) . adm_back_link($this->u_action));
|
||||
|
@ -866,66 +861,6 @@ class acp_language
|
|||
$db->sql_query('INSERT INTO ' . LANG_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary));
|
||||
$lang_id = $db->sql_nextid();
|
||||
|
||||
$valid_localized = array(
|
||||
'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq', 'icon_contact_jabber', 'icon_contact_msnm', 'icon_contact_pm', 'icon_contact_yahoo', 'icon_contact_www', 'icon_post_delete', 'icon_post_edit', 'icon_post_info', 'icon_post_quote', 'icon_post_report', 'icon_user_online', 'icon_user_offline', 'icon_user_profile', 'icon_user_search', 'icon_user_warn', 'button_pm_forward', 'button_pm_new', 'button_pm_reply', 'button_topic_locked', 'button_topic_new', 'button_topic_reply',
|
||||
);
|
||||
|
||||
$sql_ary = array();
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . STYLES_IMAGESET_TABLE;
|
||||
$result = $db->sql_query($sql);
|
||||
while ($imageset_row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if (@file_exists("{$phpbb_root_path}styles/{$imageset_row['imageset_path']}/imageset/{$lang_pack['iso']}/imageset.cfg"))
|
||||
{
|
||||
$cfg_data_imageset_data = parse_cfg_file("{$phpbb_root_path}styles/{$imageset_row['imageset_path']}/imageset/{$lang_pack['iso']}/imageset.cfg");
|
||||
foreach ($cfg_data_imageset_data as $image_name => $value)
|
||||
{
|
||||
if (strpos($value, '*') !== false)
|
||||
{
|
||||
if (substr($value, -1, 1) === '*')
|
||||
{
|
||||
list($image_filename, $image_height) = explode('*', $value);
|
||||
$image_width = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
list($image_filename, $image_height, $image_width) = explode('*', $value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$image_filename = $value;
|
||||
$image_height = $image_width = 0;
|
||||
}
|
||||
|
||||
if (strpos($image_name, 'img_') === 0 && $image_filename)
|
||||
{
|
||||
$image_name = substr($image_name, 4);
|
||||
if (in_array($image_name, $valid_localized))
|
||||
{
|
||||
$sql_ary[] = array(
|
||||
'image_name' => (string) $image_name,
|
||||
'image_filename' => (string) $image_filename,
|
||||
'image_height' => (int) $image_height,
|
||||
'image_width' => (int) $image_width,
|
||||
'imageset_id' => (int) $imageset_row['imageset_id'],
|
||||
'image_lang' => (string) $lang_pack['iso'],
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (sizeof($sql_ary))
|
||||
{
|
||||
$db->sql_multi_insert(STYLES_IMAGESET_DATA_TABLE, $sql_ary);
|
||||
$cache->destroy('sql', STYLES_IMAGESET_DATA_TABLE);
|
||||
}
|
||||
|
||||
// Now let's copy the default language entries for custom profile fields for this new language - makes admin's life easier.
|
||||
$sql = 'SELECT lang_id
|
||||
FROM ' . LANG_TABLE . "
|
||||
|
|
|
@ -23,7 +23,6 @@ class acp_styles_info
|
|||
'style' => array('title' => 'ACP_STYLES', 'auth' => 'acl_a_styles', 'cat' => array('ACP_STYLE_MANAGEMENT')),
|
||||
'template' => array('title' => 'ACP_TEMPLATES', 'auth' => 'acl_a_styles', 'cat' => array('ACP_STYLE_COMPONENTS')),
|
||||
'theme' => array('title' => 'ACP_THEMES', 'auth' => 'acl_a_styles', 'cat' => array('ACP_STYLE_COMPONENTS')),
|
||||
'imageset' => array('title' => 'ACP_IMAGESETS', 'auth' => 'acl_a_styles', 'cat' => array('ACP_STYLE_COMPONENTS')),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -49,13 +49,15 @@ class phpbb_error_collector
|
|||
{
|
||||
$text .= "<br />\n";
|
||||
}
|
||||
|
||||
list($errno, $msg_text, $errfile, $errline) = $error;
|
||||
$text .= "Errno $errno: $msg_text";
|
||||
if (defined('DEBUG_EXTRA') || defined('IN_INSTALL'))
|
||||
{
|
||||
$text .= " at $errfile line $errline";
|
||||
}
|
||||
|
||||
// Prevent leakage of local path to phpBB install
|
||||
$errfile = phpbb_filter_root_path($errfile);
|
||||
|
||||
$text .= "Errno $errno: $msg_text at $errfile line $errline";
|
||||
}
|
||||
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3156,61 +3156,44 @@ function add_log()
|
|||
}
|
||||
|
||||
/**
|
||||
* Return a nicely formatted backtrace (parts from the php manual by diz at ysagoon dot com)
|
||||
* Return a nicely formatted backtrace.
|
||||
*
|
||||
* Turns the array returned by debug_backtrace() into HTML markup.
|
||||
* Also filters out absolute paths to phpBB root.
|
||||
*
|
||||
* @return string HTML markup
|
||||
*/
|
||||
function get_backtrace()
|
||||
{
|
||||
global $phpbb_root_path;
|
||||
|
||||
$output = '<div style="font-family: monospace;">';
|
||||
$backtrace = debug_backtrace();
|
||||
$path = phpbb_realpath($phpbb_root_path);
|
||||
|
||||
foreach ($backtrace as $number => $trace)
|
||||
// We skip the first one, because it only shows this file/function
|
||||
unset($backtrace[0]);
|
||||
|
||||
foreach ($backtrace as $trace)
|
||||
{
|
||||
// We skip the first one, because it only shows this file/function
|
||||
if ($number == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Strip the current directory from path
|
||||
if (empty($trace['file']))
|
||||
{
|
||||
$trace['file'] = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$trace['file'] = str_replace(array($path, '\\'), array('', '/'), $trace['file']);
|
||||
$trace['file'] = substr($trace['file'], 1);
|
||||
}
|
||||
$args = array();
|
||||
$trace['file'] = (empty($trace['file'])) ? '(not given by php)' : htmlspecialchars(phpbb_filter_root_path($trace['file']));
|
||||
$trace['line'] = (empty($trace['line'])) ? '(not given by php)' : $trace['line'];
|
||||
|
||||
// If include/require/include_once is not called, do not show arguments - they may contain sensible information
|
||||
if (!in_array($trace['function'], array('include', 'require', 'include_once')))
|
||||
// Only show function arguments for include etc.
|
||||
// Other parameters may contain sensible information
|
||||
$argument = '';
|
||||
if (!empty($trace['args'][0]) && in_array($trace['function'], array('include', 'require', 'include_once', 'require_once')))
|
||||
{
|
||||
unset($trace['args']);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Path...
|
||||
if (!empty($trace['args'][0]))
|
||||
{
|
||||
$argument = htmlspecialchars($trace['args'][0]);
|
||||
$argument = str_replace(array($path, '\\'), array('', '/'), $argument);
|
||||
$argument = substr($argument, 1);
|
||||
$args[] = "'{$argument}'";
|
||||
}
|
||||
$argument = htmlspecialchars(phpbb_filter_root_path($trace['args'][0]));
|
||||
}
|
||||
|
||||
$trace['class'] = (!isset($trace['class'])) ? '' : $trace['class'];
|
||||
$trace['type'] = (!isset($trace['type'])) ? '' : $trace['type'];
|
||||
|
||||
$output .= '<br />';
|
||||
$output .= '<b>FILE:</b> ' . htmlspecialchars($trace['file']) . '<br />';
|
||||
$output .= '<b>FILE:</b> ' . $trace['file'] . '<br />';
|
||||
$output .= '<b>LINE:</b> ' . ((!empty($trace['line'])) ? $trace['line'] : '') . '<br />';
|
||||
|
||||
$output .= '<b>CALL:</b> ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function']) . '(' . ((sizeof($args)) ? implode(', ', $args) : '') . ')<br />';
|
||||
$output .= '<b>CALL:</b> ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function']);
|
||||
$output .= '(' . (($argument !== '') ? "'$argument'" : '') . ')<br />';
|
||||
}
|
||||
$output .= '</div>';
|
||||
return $output;
|
||||
|
@ -3759,9 +3742,8 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
|||
|
||||
if (strpos($errfile, 'cache') === false && strpos($errfile, 'template.') === false)
|
||||
{
|
||||
// remove complete path to installation, with the risk of changing backslashes meant to be there
|
||||
$errfile = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $errfile);
|
||||
$msg_text = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $msg_text);
|
||||
$errfile = phpbb_filter_root_path($errfile);
|
||||
$msg_text = phpbb_filter_root_path($msg_text);
|
||||
$error_name = ($errno === E_WARNING) ? 'PHP Warning' : 'PHP Notice';
|
||||
echo '<b>[phpBB Debug] ' . $error_name . '</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br />' . "\n";
|
||||
|
||||
|
@ -3939,6 +3921,29 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes absolute path to phpBB root directory from error messages
|
||||
* and converts backslashes to forward slashes.
|
||||
*
|
||||
* @param string $errfile Absolute file path
|
||||
* (e.g. /var/www/phpbb3/phpBB/includes/functions.php)
|
||||
* Please note that if $errfile is outside of the phpBB root,
|
||||
* the root path will not be found and can not be filtered.
|
||||
* @return string Relative file path
|
||||
* (e.g. /includes/functions.php)
|
||||
*/
|
||||
function phpbb_filter_root_path($errfile)
|
||||
{
|
||||
static $root_path;
|
||||
|
||||
if (empty($root_path))
|
||||
{
|
||||
$root_path = phpbb_realpath(dirname(__FILE__) . '/../');
|
||||
}
|
||||
|
||||
return str_replace(array($root_path, '\\'), array('[ROOT]', '/'), $errfile);
|
||||
}
|
||||
|
||||
/**
|
||||
* Queries the session table to get information about online guests
|
||||
* @param int $item_id Limits the search to the item with this id
|
||||
|
@ -4554,8 +4559,6 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
|||
'T_THEME_PATH' => "{$web_path}styles/" . $user->theme['theme_path'] . '/theme',
|
||||
'T_TEMPLATE_PATH' => "{$web_path}styles/" . $user->theme['template_path'] . '/template',
|
||||
'T_SUPER_TEMPLATE_PATH' => (isset($user->theme['template_inherit_path']) && $user->theme['template_inherit_path']) ? "{$web_path}styles/" . $user->theme['template_inherit_path'] . '/template' : "{$web_path}styles/" . $user->theme['template_path'] . '/template',
|
||||
'T_IMAGESET_PATH' => "{$web_path}styles/" . $user->theme['imageset_path'] . '/imageset',
|
||||
'T_IMAGESET_LANG_PATH' => "{$web_path}styles/" . $user->theme['imageset_path'] . '/imageset/' . $user->lang_name,
|
||||
'T_IMAGES_PATH' => "{$web_path}images/",
|
||||
'T_SMILIES_PATH' => "{$web_path}{$config['smilies_path']}/",
|
||||
'T_AVATAR_PATH' => "{$web_path}{$config['avatar_path']}/",
|
||||
|
@ -4563,14 +4566,14 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
|||
'T_ICONS_PATH' => "{$web_path}{$config['icons_path']}/",
|
||||
'T_RANKS_PATH' => "{$web_path}{$config['ranks_path']}/",
|
||||
'T_UPLOAD_PATH' => "{$web_path}{$config['upload_path']}/",
|
||||
'T_STYLESHEET_LINK' => (!$user->theme['theme_storedb']) ? "{$web_path}styles/" . $user->theme['theme_path'] . '/theme/stylesheet.css' : append_sid("{$phpbb_root_path}style.$phpEx", 'id=' . $user->theme['style_id'] . '&lang=' . $user->lang_name),
|
||||
'T_STYLESHEET_LINK' => "{$web_path}styles/" . $user->theme['theme_path'] . '/theme/stylesheet.css',
|
||||
'T_STYLESHEET_LANG_LINK' => "{$web_path}styles/" . $user->theme['theme_path'] . '/theme/' . $user->lang_name . '/stylesheet.css',
|
||||
'T_STYLESHEET_NAME' => $user->theme['theme_name'],
|
||||
|
||||
'T_THEME_NAME' => $user->theme['theme_path'],
|
||||
'T_THEME_LANG_NAME' => $user->data['user_lang'],
|
||||
'T_TEMPLATE_NAME' => $user->theme['template_path'],
|
||||
'T_SUPER_TEMPLATE_NAME' => (isset($user->theme['template_inherit_path']) && $user->theme['template_inherit_path']) ? $user->theme['template_inherit_path'] : $user->theme['template_path'],
|
||||
'T_IMAGESET_NAME' => $user->theme['imageset_path'],
|
||||
'T_IMAGESET_LANG_NAME' => $user->data['user_lang'],
|
||||
'T_IMAGES' => 'images',
|
||||
'T_SMILIES' => $config['smilies_path'],
|
||||
'T_AVATAR' => $config['avatar_path'],
|
||||
|
|
|
@ -458,7 +458,6 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
|
|||
$l_post_click_count => $post_click_count,
|
||||
'FORUM_IMG_STYLE' => $folder_image,
|
||||
'FORUM_FOLDER_IMG' => $user->img($folder_image, $folder_alt),
|
||||
'FORUM_FOLDER_IMG_SRC' => $user->img($folder_image, $folder_alt, false, '', 'src'),
|
||||
'FORUM_FOLDER_IMG_ALT' => isset($user->lang[$folder_alt]) ? $user->lang[$folder_alt] : '',
|
||||
'FORUM_IMAGE' => ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang[$folder_alt] . '" />' : '',
|
||||
'FORUM_IMAGE_SRC' => ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '',
|
||||
|
|
|
@ -976,9 +976,16 @@ function smtpmail($addresses, $subject, $message, &$err_msg, $headers = false)
|
|||
$smtp->add_backtrace('Connecting to ' . $config['smtp_host'] . ':' . $config['smtp_port']);
|
||||
|
||||
// Ok we have error checked as much as we can to this point let's get on it already.
|
||||
ob_start();
|
||||
if (!class_exists('phpbb_error_collector'))
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
include($phpbb_root_path . 'includes/error_collector.' . $phpEx);
|
||||
}
|
||||
$collector = new phpbb_error_collector;
|
||||
$collector->install();
|
||||
$smtp->socket = fsockopen($config['smtp_host'], $config['smtp_port'], $errno, $errstr, 20);
|
||||
$error_contents = ob_get_clean();
|
||||
$collector->uninstall();
|
||||
$error_contents = $collector->format_errors();
|
||||
|
||||
if (!$smtp->socket)
|
||||
{
|
||||
|
@ -1609,18 +1616,27 @@ function mail_encode($str, $eol = "\r\n")
|
|||
*/
|
||||
function phpbb_mail($to, $subject, $msg, $headers, $eol, &$err_msg)
|
||||
{
|
||||
global $config;
|
||||
global $config, $phpbb_root_path, $phpEx;
|
||||
|
||||
// We use the EOL character for the OS here because the PHP mail function does not correctly transform line endings. On Windows SMTP is used (SMTP is \r\n), on UNIX a command is used...
|
||||
// Reference: http://bugs.php.net/bug.php?id=15841
|
||||
$headers = implode($eol, $headers);
|
||||
|
||||
ob_start();
|
||||
if (!class_exists('phpbb_error_collector'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/error_collector.' . $phpEx);
|
||||
}
|
||||
|
||||
$collector = new phpbb_error_collector;
|
||||
$collector->install();
|
||||
|
||||
// On some PHP Versions mail() *may* fail if there are newlines within the subject.
|
||||
// Newlines are used as a delimiter for lines in mail_encode() according to RFC 2045 section 6.8.
|
||||
// Because PHP can't decide what is wanted we revert back to the non-RFC-compliant way of separating by one space (Use '' as parameter to mail_encode() results in SPACE used)
|
||||
$result = $config['email_function_name']($to, mail_encode($subject, ''), wordwrap(utf8_wordwrap($msg), 997, "\n", true), $headers);
|
||||
$err_msg = ob_get_clean();
|
||||
|
||||
$collector->uninstall();
|
||||
$err_msg = $collector->format_errors();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
|
@ -227,7 +227,6 @@ function mcp_forum_view($id, $mode, $action, $forum_info)
|
|||
'ATTACH_ICON_IMG' => ($auth->acl_get('u_download') && $auth->acl_get('f_download', $row['forum_id']) && $row['topic_attachment']) ? $user->img('icon_topic_attach', $user->lang['TOTAL_ATTACHMENTS']) : '',
|
||||
'TOPIC_IMG_STYLE' => $folder_img,
|
||||
'TOPIC_FOLDER_IMG' => $user->img($folder_img, $folder_alt),
|
||||
'TOPIC_FOLDER_IMG_SRC' => $user->img($folder_img, $folder_alt, false, '', 'src'),
|
||||
'TOPIC_ICON_IMG' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['img'] : '',
|
||||
'TOPIC_ICON_IMG_WIDTH' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['width'] : '',
|
||||
'TOPIC_ICON_IMG_HEIGHT' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['height'] : '',
|
||||
|
|
|
@ -1655,12 +1655,11 @@ class user extends session
|
|||
$style = ($style) ? $style : ((!$config['override_user_style']) ? $this->data['user_style'] : $config['default_style']);
|
||||
}
|
||||
|
||||
$sql = 'SELECT s.style_id, t.template_storedb, t.template_path, t.template_id, t.bbcode_bitfield, t.template_inherits_id, t.template_inherit_path, c.theme_path, c.theme_name, c.theme_storedb, c.theme_id, i.imageset_path, i.imageset_id, i.imageset_name
|
||||
FROM ' . STYLES_TABLE . ' s, ' . STYLES_TEMPLATE_TABLE . ' t, ' . STYLES_THEME_TABLE . ' c, ' . STYLES_IMAGESET_TABLE . " i
|
||||
$sql = 'SELECT s.style_id, t.template_path, t.template_id, t.bbcode_bitfield, t.template_inherits_id, t.template_inherit_path, c.theme_path, c.theme_name, c.theme_id
|
||||
FROM ' . STYLES_TABLE . ' s, ' . STYLES_TEMPLATE_TABLE . ' t, ' . STYLES_THEME_TABLE . " c
|
||||
WHERE s.style_id = $style
|
||||
AND t.template_id = s.template_id
|
||||
AND c.theme_id = s.theme_id
|
||||
AND i.imageset_id = s.imageset_id";
|
||||
AND c.theme_id = s.theme_id";
|
||||
$result = $db->sql_query($sql, 3600);
|
||||
$this->theme = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
@ -1675,12 +1674,11 @@ class user extends session
|
|||
WHERE user_id = {$this->data['user_id']}";
|
||||
$db->sql_query($sql);
|
||||
|
||||
$sql = 'SELECT s.style_id, t.template_storedb, t.template_path, t.template_id, t.bbcode_bitfield, c.theme_path, c.theme_name, c.theme_storedb, c.theme_id, i.imageset_path, i.imageset_id, i.imageset_name
|
||||
FROM ' . STYLES_TABLE . ' s, ' . STYLES_TEMPLATE_TABLE . ' t, ' . STYLES_THEME_TABLE . ' c, ' . STYLES_IMAGESET_TABLE . " i
|
||||
$sql = 'SELECT s.style_id, t.template_path, t.template_id, t.bbcode_bitfield, c.theme_path, c.theme_name, c.theme_id
|
||||
FROM ' . STYLES_TABLE . ' s, ' . STYLES_TEMPLATE_TABLE . ' t, ' . STYLES_THEME_TABLE . " c
|
||||
WHERE s.style_id = $style
|
||||
AND t.template_id = s.template_id
|
||||
AND c.theme_id = s.theme_id
|
||||
AND i.imageset_id = s.imageset_id";
|
||||
AND c.theme_id = s.theme_id";
|
||||
$result = $db->sql_query($sql, 3600);
|
||||
$this->theme = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
@ -1698,7 +1696,6 @@ class user extends session
|
|||
$parsed_items = $parsed_items['theme'];
|
||||
|
||||
$check_for = array(
|
||||
'parse_css_file' => (int) 0,
|
||||
'pagination_sep' => (string) ', '
|
||||
);
|
||||
|
||||
|
@ -1713,143 +1710,9 @@ class user extends session
|
|||
}
|
||||
}
|
||||
|
||||
// If the style author specified the theme needs to be cached
|
||||
// (because of the used paths and variables) than make sure it is the case.
|
||||
// For example, if the theme uses language-specific images it needs to be stored in db.
|
||||
if (!$this->theme['theme_storedb'] && $this->theme['parse_css_file'])
|
||||
{
|
||||
$this->theme['theme_storedb'] = 1;
|
||||
|
||||
$stylesheet = file_get_contents("{$phpbb_root_path}styles/{$this->theme['theme_path']}/theme/stylesheet.css");
|
||||
// Match CSS imports
|
||||
$matches = array();
|
||||
preg_match_all('/@import url\(["\'](.*)["\']\);/i', $stylesheet, $matches);
|
||||
|
||||
if (sizeof($matches))
|
||||
{
|
||||
$content = '';
|
||||
foreach ($matches[0] as $idx => $match)
|
||||
{
|
||||
if ($content = @file_get_contents("{$phpbb_root_path}styles/{$this->theme['theme_path']}/theme/" . $matches[1][$idx]))
|
||||
{
|
||||
$content = trim($content);
|
||||
}
|
||||
else
|
||||
{
|
||||
$content = '';
|
||||
}
|
||||
$stylesheet = str_replace($match, $content, $stylesheet);
|
||||
}
|
||||
unset($content);
|
||||
}
|
||||
|
||||
$stylesheet = str_replace('./', 'styles/' . $this->theme['theme_path'] . '/theme/', $stylesheet);
|
||||
|
||||
$sql_ary = array(
|
||||
'theme_data' => $stylesheet,
|
||||
'theme_mtime' => time(),
|
||||
'theme_storedb' => 1
|
||||
);
|
||||
|
||||
$sql = 'UPDATE ' . STYLES_THEME_TABLE . '
|
||||
SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
|
||||
WHERE theme_id = ' . $this->theme['theme_id'];
|
||||
$db->sql_query($sql);
|
||||
|
||||
unset($sql_ary);
|
||||
}
|
||||
|
||||
$template->set_template();
|
||||
|
||||
$this->img_lang = (file_exists($phpbb_root_path . 'styles/' . $this->theme['imageset_path'] . '/imageset/' . $this->lang_name)) ? $this->lang_name : $config['default_lang'];
|
||||
|
||||
// Same query in style.php
|
||||
$sql = 'SELECT *
|
||||
FROM ' . STYLES_IMAGESET_DATA_TABLE . '
|
||||
WHERE imageset_id = ' . $this->theme['imageset_id'] . "
|
||||
AND image_filename <> ''
|
||||
AND image_lang IN ('" . $db->sql_escape($this->img_lang) . "', '')";
|
||||
$result = $db->sql_query($sql, 3600);
|
||||
|
||||
$localised_images = false;
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if ($row['image_lang'])
|
||||
{
|
||||
$localised_images = true;
|
||||
}
|
||||
|
||||
$row['image_filename'] = rawurlencode($row['image_filename']);
|
||||
$this->img_array[$row['image_name']] = $row;
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// there were no localised images, try to refresh the localised imageset for the user's language
|
||||
if (!$localised_images)
|
||||
{
|
||||
// Attention: this code ignores the image definition list from acp_styles and just takes everything
|
||||
// that the config file contains
|
||||
$sql_ary = array();
|
||||
|
||||
$db->sql_transaction('begin');
|
||||
|
||||
$sql = 'DELETE FROM ' . STYLES_IMAGESET_DATA_TABLE . '
|
||||
WHERE imageset_id = ' . $this->theme['imageset_id'] . '
|
||||
AND image_lang = \'' . $db->sql_escape($this->img_lang) . '\'';
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
if (@file_exists("{$phpbb_root_path}styles/{$this->theme['imageset_path']}/imageset/{$this->img_lang}/imageset.cfg"))
|
||||
{
|
||||
$cfg_data_imageset_data = parse_cfg_file("{$phpbb_root_path}styles/{$this->theme['imageset_path']}/imageset/{$this->img_lang}/imageset.cfg");
|
||||
foreach ($cfg_data_imageset_data as $image_name => $value)
|
||||
{
|
||||
if (strpos($value, '*') !== false)
|
||||
{
|
||||
if (substr($value, -1, 1) === '*')
|
||||
{
|
||||
list($image_filename, $image_height) = explode('*', $value);
|
||||
$image_width = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
list($image_filename, $image_height, $image_width) = explode('*', $value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$image_filename = $value;
|
||||
$image_height = $image_width = 0;
|
||||
}
|
||||
|
||||
if (strpos($image_name, 'img_') === 0 && $image_filename)
|
||||
{
|
||||
$image_name = substr($image_name, 4);
|
||||
$sql_ary[] = array(
|
||||
'image_name' => (string) $image_name,
|
||||
'image_filename' => (string) $image_filename,
|
||||
'image_height' => (int) $image_height,
|
||||
'image_width' => (int) $image_width,
|
||||
'imageset_id' => (int) $this->theme['imageset_id'],
|
||||
'image_lang' => (string) $this->img_lang,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sizeof($sql_ary))
|
||||
{
|
||||
$db->sql_multi_insert(STYLES_IMAGESET_DATA_TABLE, $sql_ary);
|
||||
$db->sql_transaction('commit');
|
||||
$cache->destroy('sql', STYLES_IMAGESET_DATA_TABLE);
|
||||
|
||||
add_log('admin', 'LOG_IMAGESET_LANG_REFRESHED', $this->theme['imageset_name'], $this->img_lang);
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->sql_transaction('commit');
|
||||
add_log('admin', 'LOG_IMAGESET_LANG_MISSING', $this->theme['imageset_name'], $this->img_lang);
|
||||
}
|
||||
}
|
||||
$this->img_lang = $this->lang_name;
|
||||
|
||||
// Call phpbb_user_session_handler() in case external application want to "bend" some variables or replace classes...
|
||||
// After calling it we continue script execution...
|
||||
|
@ -2284,89 +2147,11 @@ class user extends session
|
|||
|
||||
/**
|
||||
* Specify/Get image
|
||||
* $suffix is no longer used - we know it. ;) It is there for backward compatibility.
|
||||
*/
|
||||
function img($img, $alt = '', $width = false, $suffix = '', $type = 'full_tag')
|
||||
function img($img, $alt = '')
|
||||
{
|
||||
static $imgs;
|
||||
global $phpbb_root_path;
|
||||
|
||||
$img_data = &$imgs[$img];
|
||||
|
||||
if (empty($img_data))
|
||||
{
|
||||
if (!isset($this->img_array[$img]))
|
||||
{
|
||||
// Do not fill the image to let designers decide what to do if the image is empty
|
||||
$img_data = '';
|
||||
return $img_data;
|
||||
}
|
||||
|
||||
// Use URL if told so
|
||||
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_root_path;
|
||||
|
||||
$path = 'styles/' . rawurlencode($this->theme['imageset_path']) . '/imageset/' . ($this->img_array[$img]['image_lang'] ? $this->img_array[$img]['image_lang'] .'/' : '') . $this->img_array[$img]['image_filename'];
|
||||
|
||||
$img_data['src'] = $root_path . $path;
|
||||
$img_data['width'] = $this->img_array[$img]['image_width'];
|
||||
$img_data['height'] = $this->img_array[$img]['image_height'];
|
||||
|
||||
// We overwrite the width and height to the phpbb logo's width
|
||||
// and height here if the contents of the site_logo file are
|
||||
// really equal to the phpbb_logo
|
||||
// This allows us to change the dimensions of the phpbb_logo without
|
||||
// modifying the imageset.cfg and causing a conflict for everyone
|
||||
// who modified it for their custom logo on updating
|
||||
if ($img == 'site_logo' && file_exists($phpbb_root_path . $path))
|
||||
{
|
||||
global $cache;
|
||||
|
||||
$img_file_hashes = $cache->get('imageset_site_logo_md5');
|
||||
|
||||
if ($img_file_hashes === false)
|
||||
{
|
||||
$img_file_hashes = array();
|
||||
}
|
||||
|
||||
$key = $this->theme['imageset_path'] . '::' . $this->img_array[$img]['image_lang'];
|
||||
if (!isset($img_file_hashes[$key]))
|
||||
{
|
||||
$img_file_hashes[$key] = md5(file_get_contents($phpbb_root_path . $path));
|
||||
$cache->put('imageset_site_logo_md5', $img_file_hashes);
|
||||
}
|
||||
|
||||
$phpbb_logo_hash = '0c461a32cd3621643105f0d02a772c10';
|
||||
|
||||
if ($phpbb_logo_hash == $img_file_hashes[$key])
|
||||
{
|
||||
$img_data['width'] = '149';
|
||||
$img_data['height'] = '52';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$alt = (!empty($this->lang[$alt])) ? $this->lang[$alt] : $alt;
|
||||
|
||||
switch ($type)
|
||||
{
|
||||
case 'src':
|
||||
return $img_data['src'];
|
||||
break;
|
||||
|
||||
case 'width':
|
||||
return ($width === false) ? $img_data['width'] : $width;
|
||||
break;
|
||||
|
||||
case 'height':
|
||||
return $img_data['height'];
|
||||
break;
|
||||
|
||||
default:
|
||||
$use_width = ($width === false) ? $img_data['width'] : $width;
|
||||
|
||||
return '<img src="' . $img_data['src'] . '"' . (($use_width) ? ' width="' . $use_width . '"' : '') . (($img_data['height']) ? ' height="' . $img_data['height'] . '"' : '') . ' alt="' . $alt . '" title="' . $alt . '" />';
|
||||
break;
|
||||
}
|
||||
return '<span class="imageset ' . $img . '">' . $alt . '</span>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -307,12 +307,13 @@ class phpbb_template_filter extends php_user_filter
|
|||
}
|
||||
|
||||
/**
|
||||
* Compile variables
|
||||
* Convert template variables into PHP varrefs
|
||||
*
|
||||
* @param string $text_blocks Variable reference in source template
|
||||
* @return string compiled template code
|
||||
* @param bool $is_expr Returns whether the source was an expression type variable (i.e. S_FIRST_ROW)
|
||||
* @return string PHP variable name
|
||||
*/
|
||||
private function compile_var_tags(&$text_blocks)
|
||||
private function get_varref($text_blocks, &$is_expr)
|
||||
{
|
||||
// change template varrefs into PHP varrefs
|
||||
$varrefs = array();
|
||||
|
@ -324,17 +325,38 @@ class phpbb_template_filter extends php_user_filter
|
|||
{
|
||||
$namespace = $var_val[1];
|
||||
$varname = $var_val[3];
|
||||
$new = $this->generate_block_varref($namespace, $varname, true, $var_val[2]);
|
||||
$new = $this->generate_block_varref($namespace, $varname, $is_expr, $var_val[2]);
|
||||
|
||||
$text_blocks = str_replace($var_val[0], $new, $text_blocks);
|
||||
}
|
||||
|
||||
// Handle special language tags L_ and LA_
|
||||
$this->compile_language_tags($text_blocks);
|
||||
// Language variables cannot be reduced to a single varref, so they must be skipped
|
||||
// These two replacements would break language variables, so we can only run them on non-language types
|
||||
if (strpos($text_blocks, '{L_') === false && strpos($text_blocks, '{LA_') === false)
|
||||
{
|
||||
// This will handle the remaining root-level varrefs
|
||||
$text_blocks = preg_replace('#\{(' . self::REGEX_VAR . ')\}#', "\$_rootref['\\1']", $text_blocks);
|
||||
$text_blocks = preg_replace('#\{\$(' . self::REGEX_VAR . ')\}#', "\$_tpldata['DEFINE']['.']['\\1']", $text_blocks);
|
||||
}
|
||||
|
||||
// This will handle the remaining root-level varrefs
|
||||
$text_blocks = preg_replace('#\{(' . self::REGEX_VAR . ')\}#', "<?php echo (isset(\$_rootref['\\1'])) ? \$_rootref['\\1'] : ''; /**/?>", $text_blocks);
|
||||
$text_blocks = preg_replace('#\{\$(' . self::REGEX_VAR . ')\}#', "<?php echo (isset(\$_tpldata['DEFINE']['.']['\\1'])) ? \$_tpldata['DEFINE']['.']['\\1'] : ''; /**/?>", $text_blocks);
|
||||
return $text_blocks;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compile variables
|
||||
*
|
||||
* @param string $text_blocks Variable reference in source template
|
||||
* @return string compiled template code
|
||||
*/
|
||||
private function compile_var_tags(&$text_blocks)
|
||||
{
|
||||
$text_blocks = $this->get_varref($text_blocks, $is_expr);
|
||||
$lang_replaced = $this->compile_language_tags($text_blocks);
|
||||
|
||||
if(!$lang_replaced)
|
||||
{
|
||||
$text_blocks = '<?php echo ' . ($is_expr ? "$text_blocks" : "(isset($text_blocks)) ? $text_blocks : ''") . '; /**/?>';
|
||||
}
|
||||
|
||||
return $text_blocks;
|
||||
}
|
||||
|
@ -343,21 +365,28 @@ class phpbb_template_filter extends php_user_filter
|
|||
* Handles special language tags L_ and LA_
|
||||
*
|
||||
* @param string $text_blocks Variable reference in source template
|
||||
* @return bool Whether a replacement occurred or not
|
||||
*/
|
||||
private function compile_language_tags(&$text_blocks)
|
||||
{
|
||||
$replacements = 0;
|
||||
|
||||
// transform vars prefixed by L_ into their language variable pendant if nothing is set within the tpldata array
|
||||
if (strpos($text_blocks, '{L_') !== false)
|
||||
{
|
||||
$text_blocks = preg_replace('#\{L_(' . self::REGEX_VAR . ')\}#', "<?php echo ((isset(\$_rootref['L_\\1'])) ? \$_rootref['L_\\1'] : ((isset(\$_lang['\\1'])) ? \$_lang['\\1'] : '{ \\1 }')); /**/?>", $text_blocks);
|
||||
$text_blocks = preg_replace('#\{L_(' . self::REGEX_VAR . ')\}#', "<?php echo ((isset(\$_rootref['L_\\1'])) ? \$_rootref['L_\\1'] : ((isset(\$_lang['\\1'])) ? \$_lang['\\1'] : '{ \\1 }')); /**/?>", $text_blocks, -1, $replacements);
|
||||
return (bool) $replacements;
|
||||
}
|
||||
|
||||
// Handle addslashed language variables prefixed with LA_
|
||||
// If a template variable already exist, it will be used in favor of it...
|
||||
if (strpos($text_blocks, '{LA_') !== false)
|
||||
{
|
||||
$text_blocks = preg_replace('#\{LA_(' . self::REGEX_VAR . '+)\}#', "<?php echo ((isset(\$_rootref['LA_\\1'])) ? \$_rootref['LA_\\1'] : ((isset(\$_rootref['L_\\1'])) ? addslashes(\$_rootref['L_\\1']) : ((isset(\$_lang['\\1'])) ? addslashes(\$_lang['\\1']) : '{ \\1 }'))); /**/?>", $text_blocks);
|
||||
$text_blocks = preg_replace('#\{LA_(' . self::REGEX_VAR . '+)\}#', "<?php echo ((isset(\$_rootref['LA_\\1'])) ? \$_rootref['LA_\\1'] : ((isset(\$_rootref['L_\\1'])) ? addslashes(\$_rootref['L_\\1']) : ((isset(\$_lang['\\1'])) ? addslashes(\$_lang['\\1']) : '{ \\1 }'))); /**/?>", $text_blocks, -1, $replacements);
|
||||
return (bool) $replacements;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -725,6 +754,18 @@ class phpbb_template_filter extends php_user_filter
|
|||
*/
|
||||
private function compile_tag_include($tag_args)
|
||||
{
|
||||
// Process dynamic includes
|
||||
if ($tag_args[0] == '{')
|
||||
{
|
||||
$var = $this->get_varref($tag_args, $is_expr);
|
||||
|
||||
// Make sure someone didn't try to include S_FIRST_ROW or similar
|
||||
if (!$is_expr)
|
||||
{
|
||||
return "if (isset($var)) { \$_template->_tpl_include($var); }";
|
||||
}
|
||||
}
|
||||
|
||||
return "\$_template->_tpl_include('$tag_args');";
|
||||
}
|
||||
|
||||
|
@ -822,17 +863,16 @@ class phpbb_template_filter extends php_user_filter
|
|||
*
|
||||
* @param string $namespace Namespace to access (expects a trailing "." on the namespace)
|
||||
* @param string $varname Variable name to use
|
||||
* @param bool $echo If true return an echo statement, otherwise a reference to the internal variable
|
||||
* @param bool $expr Returns whether the source was an expression type
|
||||
* @param bool $defop If true this is a variable created with the DEFINE construct, otherwise template variable
|
||||
* @return string Code to access variable or echo it if $echo is true
|
||||
*/
|
||||
private function generate_block_varref($namespace, $varname, $echo = true, $defop = false)
|
||||
private function generate_block_varref($namespace, $varname, &$expr, $defop = false)
|
||||
{
|
||||
// Strip the trailing period.
|
||||
$namespace = substr($namespace, 0, -1);
|
||||
|
||||
$expr = true;
|
||||
$isset = false;
|
||||
|
||||
// S_ROW_COUNT is deceptive, it returns the current row number now the number of rows
|
||||
// hence S_ROW_COUNT is deprecated in favour of S_ROW_NUM
|
||||
|
@ -868,11 +908,9 @@ class phpbb_template_filter extends php_user_filter
|
|||
$varref .= "['$varname']";
|
||||
|
||||
$expr = false;
|
||||
$isset = true;
|
||||
break;
|
||||
}
|
||||
// @todo Test the !$expr more
|
||||
$varref = ($echo) ? '<?php echo ' . ($isset ? "isset($varref) ? $varref : ''" : $varref) . '; /**/?>' : (($expr || isset($varref)) ? $varref : '');
|
||||
|
||||
return $varref;
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ class phpbb_template
|
|||
{
|
||||
$this->locator->set_custom_template($template_path, $fallback_template_path);
|
||||
|
||||
$this->cachepath = $this->phpbb_root_path . 'cache/ctpl_' . str_replace('_', '-', $style_name) . '_';
|
||||
$this->cachepath = $this->phpbb_root_path . 'cache/tpl_' . str_replace('_', '-', $style_name) . '_';
|
||||
|
||||
$this->context = new phpbb_template_context();
|
||||
|
||||
|
|
|
@ -161,7 +161,6 @@ class ucp_main
|
|||
|
||||
'TOPIC_IMG_STYLE' => $folder_img,
|
||||
'TOPIC_FOLDER_IMG' => $user->img($folder_img, $folder_alt),
|
||||
'TOPIC_FOLDER_IMG_SRC' => $user->img($folder_img, $folder_alt, false, '', 'src'),
|
||||
'ATTACH_ICON_IMG' => ($auth->acl_get('u_download') && $auth->acl_get('f_download', $forum_id) && $row['topic_attachment']) ? $user->img('icon_topic_attach', '') : '',
|
||||
|
||||
'S_USER_POSTED' => (!empty($row['topic_posted']) && $row['topic_posted']) ? true : false,
|
||||
|
@ -348,7 +347,6 @@ class ucp_main
|
|||
'FORUM_ID' => $forum_id,
|
||||
'FORUM_IMG_STYLE' => $folder_image,
|
||||
'FORUM_FOLDER_IMG' => $user->img($folder_image, $folder_alt),
|
||||
'FORUM_FOLDER_IMG_SRC' => $user->img($folder_image, $folder_alt, false, '', 'src'),
|
||||
'FORUM_IMAGE' => ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang[$folder_alt] . '" />' : '',
|
||||
'FORUM_IMAGE_SRC' => ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '',
|
||||
'FORUM_NAME' => $row['forum_name'],
|
||||
|
@ -825,7 +823,6 @@ class ucp_main
|
|||
|
||||
'TOPIC_IMG_STYLE' => $folder_img,
|
||||
'TOPIC_FOLDER_IMG' => $user->img($folder_img, $folder_alt),
|
||||
'TOPIC_FOLDER_IMG_SRC' => $user->img($folder_img, $folder_alt, false, '', 'src'),
|
||||
'TOPIC_FOLDER_IMG_ALT' => $user->lang[$folder_alt],
|
||||
'TOPIC_ICON_IMG' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['img'] : '',
|
||||
'TOPIC_ICON_IMG_WIDTH' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['width'] : '',
|
||||
|
|
|
@ -166,7 +166,6 @@ function view_folder($id, $mode, $folder_id, $folder)
|
|||
'PM_ICON_URL' => (!empty($icons[$row['icon_id']])) ? $config['icons_path'] . '/' . $icons[$row['icon_id']]['img'] : '',
|
||||
'FOLDER_IMG' => $user->img($folder_img, $folder_alt),
|
||||
'FOLDER_IMG_STYLE' => $folder_img,
|
||||
'FOLDER_IMG_SRC' => $user->img($folder_img, $folder_alt, false, '', 'src'),
|
||||
'PM_IMG' => ($row_indicator) ? $user->img('pm_' . $row_indicator, '') : '',
|
||||
'ATTACH_ICON_IMG' => ($auth->acl_get('u_pm_download') && $row['message_attachment'] && $config['allow_pm_attach']) ? $user->img('icon_topic_attach', $user->lang['TOTAL_ATTACHMENTS']) : '',
|
||||
|
||||
|
|
|
@ -1061,6 +1061,24 @@ function database_update_info()
|
|||
'group_legend' => array('UINT', 0),
|
||||
),
|
||||
),
|
||||
'drop_columns' => array(
|
||||
STYLES_TABLE => array(
|
||||
'imageset_id',
|
||||
),
|
||||
STYLES_TEMPLATE_TABLE => array(
|
||||
'template_storedb',
|
||||
),
|
||||
STYLES_THEME_TABLE => array(
|
||||
'theme_storedb',
|
||||
'theme_mtime',
|
||||
'theme_data',
|
||||
),
|
||||
),
|
||||
'drop_tables' => array(
|
||||
STYLES_IMAGESET_TABLE,
|
||||
STYLES_IMAGESET_DATA_TABLE,
|
||||
STYLES_TEMPLATE_DATA_TABLE,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -2128,6 +2146,10 @@ function change_database_data(&$no_updates, $version)
|
|||
);
|
||||
|
||||
_add_modules($modules_to_install);
|
||||
|
||||
$sql = 'DELETE FROM ' . MODULES_TABLE . "
|
||||
WHERE module_basename = 'styles' AND module_mode = 'imageset'";
|
||||
_sql($sql, $errored, $error_ary);
|
||||
|
||||
// Localise Global Announcements
|
||||
$sql = 'SELECT topic_id, topic_approved, (topic_replies + 1) AS topic_posts, topic_last_post_id, topic_last_post_subject, topic_last_post_time, topic_last_poster_id, topic_last_poster_name, topic_last_poster_colour
|
||||
|
|
|
@ -205,9 +205,6 @@ $template->set_custom_template('../adm/style', 'admin');
|
|||
$template->assign_var('T_ASSETS_PATH', '../assets');
|
||||
$template->assign_var('T_TEMPLATE_PATH', '../adm/style');
|
||||
|
||||
// the acp template is never stored in the database
|
||||
$user->theme['template_storedb'] = false;
|
||||
|
||||
$install = new module();
|
||||
|
||||
$install->create('install', "index.$phpEx", $mode, $sub);
|
||||
|
|
|
@ -1742,72 +1742,6 @@ class install_install extends module
|
|||
$error = $db->sql_error($db->sql_error_sql);
|
||||
$this->p_master->db_error($error['message'], $db->sql_error_sql, __LINE__, __FILE__);
|
||||
}
|
||||
|
||||
$valid_localized = array(
|
||||
'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq', 'icon_contact_jabber', 'icon_contact_msnm', 'icon_contact_pm', 'icon_contact_yahoo', 'icon_contact_www', 'icon_post_delete', 'icon_post_edit', 'icon_post_info', 'icon_post_quote', 'icon_post_report', 'icon_user_online', 'icon_user_offline', 'icon_user_profile', 'icon_user_search', 'icon_user_warn', 'button_pm_forward', 'button_pm_new', 'button_pm_reply', 'button_topic_locked', 'button_topic_new', 'button_topic_reply',
|
||||
);
|
||||
|
||||
$sql_ary = array();
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . STYLES_IMAGESET_TABLE;
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
while ($imageset_row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if (@file_exists("{$phpbb_root_path}styles/{$imageset_row['imageset_path']}/imageset/{$lang_pack['lang_iso']}/imageset.cfg"))
|
||||
{
|
||||
$cfg_data_imageset_data = parse_cfg_file("{$phpbb_root_path}styles/{$imageset_row['imageset_path']}/imageset/{$lang_pack['lang_iso']}/imageset.cfg");
|
||||
foreach ($cfg_data_imageset_data as $image_name => $value)
|
||||
{
|
||||
if (strpos($value, '*') !== false)
|
||||
{
|
||||
if (substr($value, -1, 1) === '*')
|
||||
{
|
||||
list($image_filename, $image_height) = explode('*', $value);
|
||||
$image_width = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
list($image_filename, $image_height, $image_width) = explode('*', $value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$image_filename = $value;
|
||||
$image_height = $image_width = 0;
|
||||
}
|
||||
|
||||
if (strpos($image_name, 'img_') === 0 && $image_filename)
|
||||
{
|
||||
$image_name = substr($image_name, 4);
|
||||
if (in_array($image_name, $valid_localized))
|
||||
{
|
||||
$sql_ary[] = array(
|
||||
'image_name' => (string) $image_name,
|
||||
'image_filename' => (string) $image_filename,
|
||||
'image_height' => (int) $image_height,
|
||||
'image_width' => (int) $image_width,
|
||||
'imageset_id' => (int) $imageset_row['imageset_id'],
|
||||
'image_lang' => (string) $lang_pack['lang_iso'],
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (sizeof($sql_ary))
|
||||
{
|
||||
$db->sql_multi_insert(STYLES_IMAGESET_DATA_TABLE, $sql_ary);
|
||||
|
||||
if ($db->sql_error_triggered)
|
||||
{
|
||||
$error = $db->sql_error($db->sql_error_sql);
|
||||
$this->p_master->db_error($error['message'], $db->sql_error_sql, __LINE__, __FILE__);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($dir);
|
||||
|
|
|
@ -134,9 +134,6 @@ class install_update extends module
|
|||
// Set custom template again. ;)
|
||||
$template->set_custom_template('../adm/style', 'admin');
|
||||
|
||||
// still, the acp template is never stored in the database
|
||||
$user->theme['template_storedb'] = false;
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_USER_LANG' => $user->lang['USER_LANG'],
|
||||
'S_CONTENT_DIRECTION' => $user->lang['DIRECTION'],
|
||||
|
|
|
@ -1077,8 +1077,7 @@ CREATE TABLE phpbb_styles (
|
|||
style_copyright VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
style_active INTEGER DEFAULT 1 NOT NULL,
|
||||
template_id INTEGER DEFAULT 0 NOT NULL,
|
||||
theme_id INTEGER DEFAULT 0 NOT NULL,
|
||||
imageset_id INTEGER DEFAULT 0 NOT NULL
|
||||
theme_id INTEGER DEFAULT 0 NOT NULL
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_styles ADD PRIMARY KEY (style_id);;
|
||||
|
@ -1086,7 +1085,6 @@ ALTER TABLE phpbb_styles ADD PRIMARY KEY (style_id);;
|
|||
CREATE UNIQUE INDEX phpbb_styles_style_name ON phpbb_styles(style_name);;
|
||||
CREATE INDEX phpbb_styles_template_id ON phpbb_styles(template_id);;
|
||||
CREATE INDEX phpbb_styles_theme_id ON phpbb_styles(theme_id);;
|
||||
CREATE INDEX phpbb_styles_imageset_id ON phpbb_styles(imageset_id);;
|
||||
|
||||
CREATE GENERATOR phpbb_styles_gen;;
|
||||
SET GENERATOR phpbb_styles_gen TO 0;;
|
||||
|
@ -1106,7 +1104,6 @@ CREATE TABLE phpbb_styles_template (
|
|||
template_copyright VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
template_path VARCHAR(100) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
bbcode_bitfield VARCHAR(255) CHARACTER SET NONE DEFAULT 'kNg=' NOT NULL,
|
||||
template_storedb INTEGER DEFAULT 0 NOT NULL,
|
||||
template_inherits_id INTEGER DEFAULT 0 NOT NULL,
|
||||
template_inherit_path VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL
|
||||
);;
|
||||
|
@ -1126,27 +1123,12 @@ BEGIN
|
|||
END;;
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_template_data'
|
||||
CREATE TABLE phpbb_styles_template_data (
|
||||
template_id INTEGER DEFAULT 0 NOT NULL,
|
||||
template_filename VARCHAR(100) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
template_included BLOB SUB_TYPE TEXT CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
template_mtime INTEGER DEFAULT 0 NOT NULL,
|
||||
template_data BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL
|
||||
);;
|
||||
|
||||
CREATE INDEX phpbb_styles_template_data_tid ON phpbb_styles_template_data(template_id);;
|
||||
CREATE INDEX phpbb_styles_template_data_tfn ON phpbb_styles_template_data(template_filename);;
|
||||
|
||||
# Table: 'phpbb_styles_theme'
|
||||
CREATE TABLE phpbb_styles_theme (
|
||||
theme_id INTEGER NOT NULL,
|
||||
theme_name VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
theme_copyright VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
theme_path VARCHAR(100) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
theme_storedb INTEGER DEFAULT 0 NOT NULL,
|
||||
theme_mtime INTEGER DEFAULT 0 NOT NULL,
|
||||
theme_data BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL
|
||||
theme_path VARCHAR(100) CHARACTER SET NONE DEFAULT '' NOT NULL
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_styles_theme ADD PRIMARY KEY (theme_id);;
|
||||
|
@ -1164,55 +1146,6 @@ BEGIN
|
|||
END;;
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_imageset'
|
||||
CREATE TABLE phpbb_styles_imageset (
|
||||
imageset_id INTEGER NOT NULL,
|
||||
imageset_name VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
imageset_copyright VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
imageset_path VARCHAR(100) CHARACTER SET NONE DEFAULT '' NOT NULL
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_styles_imageset ADD PRIMARY KEY (imageset_id);;
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_imageset_imgset_nm ON phpbb_styles_imageset(imageset_name);;
|
||||
|
||||
CREATE GENERATOR phpbb_styles_imageset_gen;;
|
||||
SET GENERATOR phpbb_styles_imageset_gen TO 0;;
|
||||
|
||||
CREATE TRIGGER t_phpbb_styles_imageset FOR phpbb_styles_imageset
|
||||
BEFORE INSERT
|
||||
AS
|
||||
BEGIN
|
||||
NEW.imageset_id = GEN_ID(phpbb_styles_imageset_gen, 1);
|
||||
END;;
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_imageset_data'
|
||||
CREATE TABLE phpbb_styles_imageset_data (
|
||||
image_id INTEGER NOT NULL,
|
||||
image_name VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
image_filename VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
image_lang VARCHAR(30) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
image_height INTEGER DEFAULT 0 NOT NULL,
|
||||
image_width INTEGER DEFAULT 0 NOT NULL,
|
||||
imageset_id INTEGER DEFAULT 0 NOT NULL
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_styles_imageset_data ADD PRIMARY KEY (image_id);;
|
||||
|
||||
CREATE INDEX phpbb_styles_imageset_data_i_d ON phpbb_styles_imageset_data(imageset_id);;
|
||||
|
||||
CREATE GENERATOR phpbb_styles_imageset_data_gen;;
|
||||
SET GENERATOR phpbb_styles_imageset_data_gen TO 0;;
|
||||
|
||||
CREATE TRIGGER t_phpbb_styles_imageset_data FOR phpbb_styles_imageset_data
|
||||
BEFORE INSERT
|
||||
AS
|
||||
BEGIN
|
||||
NEW.image_id = GEN_ID(phpbb_styles_imageset_data_gen, 1);
|
||||
END;;
|
||||
|
||||
|
||||
# Table: 'phpbb_topics'
|
||||
CREATE TABLE phpbb_topics (
|
||||
topic_id INTEGER NOT NULL,
|
||||
|
|
|
@ -1307,8 +1307,7 @@ CREATE TABLE [phpbb_styles] (
|
|||
[style_copyright] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[style_active] [int] DEFAULT (1) NOT NULL ,
|
||||
[template_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[theme_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[imageset_id] [int] DEFAULT (0) NOT NULL
|
||||
[theme_id] [int] DEFAULT (0) NOT NULL
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
@ -1328,9 +1327,6 @@ GO
|
|||
CREATE INDEX [theme_id] ON [phpbb_styles]([theme_id]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [imageset_id] ON [phpbb_styles]([imageset_id]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_template'
|
||||
|
@ -1341,7 +1337,6 @@ CREATE TABLE [phpbb_styles_template] (
|
|||
[template_copyright] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[template_path] [varchar] (100) DEFAULT ('') NOT NULL ,
|
||||
[bbcode_bitfield] [varchar] (255) DEFAULT ('kNg=') NOT NULL ,
|
||||
[template_storedb] [int] DEFAULT (0) NOT NULL ,
|
||||
[template_inherits_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[template_inherit_path] [varchar] (255) DEFAULT ('') NOT NULL
|
||||
) ON [PRIMARY]
|
||||
|
@ -1358,25 +1353,6 @@ CREATE UNIQUE INDEX [tmplte_nm] ON [phpbb_styles_template]([template_name]) ON
|
|||
GO
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_template_data'
|
||||
*/
|
||||
CREATE TABLE [phpbb_styles_template_data] (
|
||||
[template_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[template_filename] [varchar] (100) DEFAULT ('') NOT NULL ,
|
||||
[template_included] [varchar] (8000) DEFAULT ('') NOT NULL ,
|
||||
[template_mtime] [int] DEFAULT (0) NOT NULL ,
|
||||
[template_data] [text] DEFAULT ('') NOT NULL
|
||||
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [tid] ON [phpbb_styles_template_data]([template_id]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [tfn] ON [phpbb_styles_template_data]([template_filename]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_theme'
|
||||
*/
|
||||
|
@ -1384,11 +1360,8 @@ CREATE TABLE [phpbb_styles_theme] (
|
|||
[theme_id] [int] IDENTITY (1, 1) NOT NULL ,
|
||||
[theme_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[theme_copyright] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[theme_path] [varchar] (100) DEFAULT ('') NOT NULL ,
|
||||
[theme_storedb] [int] DEFAULT (0) NOT NULL ,
|
||||
[theme_mtime] [int] DEFAULT (0) NOT NULL ,
|
||||
[theme_data] [text] DEFAULT ('') NOT NULL
|
||||
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
||||
[theme_path] [varchar] (100) DEFAULT ('') NOT NULL
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
ALTER TABLE [phpbb_styles_theme] WITH NOCHECK ADD
|
||||
|
@ -1402,53 +1375,6 @@ CREATE UNIQUE INDEX [theme_name] ON [phpbb_styles_theme]([theme_name]) ON [PRI
|
|||
GO
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_imageset'
|
||||
*/
|
||||
CREATE TABLE [phpbb_styles_imageset] (
|
||||
[imageset_id] [int] IDENTITY (1, 1) NOT NULL ,
|
||||
[imageset_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[imageset_copyright] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[imageset_path] [varchar] (100) DEFAULT ('') NOT NULL
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
ALTER TABLE [phpbb_styles_imageset] WITH NOCHECK ADD
|
||||
CONSTRAINT [PK_phpbb_styles_imageset] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[imageset_id]
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE UNIQUE INDEX [imgset_nm] ON [phpbb_styles_imageset]([imageset_name]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_imageset_data'
|
||||
*/
|
||||
CREATE TABLE [phpbb_styles_imageset_data] (
|
||||
[image_id] [int] IDENTITY (1, 1) NOT NULL ,
|
||||
[image_name] [varchar] (200) DEFAULT ('') NOT NULL ,
|
||||
[image_filename] [varchar] (200) DEFAULT ('') NOT NULL ,
|
||||
[image_lang] [varchar] (30) DEFAULT ('') NOT NULL ,
|
||||
[image_height] [int] DEFAULT (0) NOT NULL ,
|
||||
[image_width] [int] DEFAULT (0) NOT NULL ,
|
||||
[imageset_id] [int] DEFAULT (0) NOT NULL
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
ALTER TABLE [phpbb_styles_imageset_data] WITH NOCHECK ADD
|
||||
CONSTRAINT [PK_phpbb_styles_imageset_data] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[image_id]
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [i_d] ON [phpbb_styles_imageset_data]([imageset_id]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_topics'
|
||||
*/
|
||||
|
|
|
@ -752,12 +752,10 @@ CREATE TABLE phpbb_styles (
|
|||
style_active tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
theme_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
PRIMARY KEY (style_id),
|
||||
UNIQUE style_name (style_name(255)),
|
||||
KEY template_id (template_id),
|
||||
KEY theme_id (theme_id),
|
||||
KEY imageset_id (imageset_id)
|
||||
KEY theme_id (theme_id)
|
||||
);
|
||||
|
||||
|
||||
|
@ -768,7 +766,6 @@ CREATE TABLE phpbb_styles_template (
|
|||
template_copyright blob NOT NULL,
|
||||
template_path varbinary(100) DEFAULT '' NOT NULL,
|
||||
bbcode_bitfield varbinary(255) DEFAULT 'kNg=' NOT NULL,
|
||||
template_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
template_inherits_id int(4) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
template_inherit_path varbinary(255) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (template_id),
|
||||
|
@ -776,57 +773,17 @@ CREATE TABLE phpbb_styles_template (
|
|||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_template_data'
|
||||
CREATE TABLE phpbb_styles_template_data (
|
||||
template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
template_filename varbinary(100) DEFAULT '' NOT NULL,
|
||||
template_included blob NOT NULL,
|
||||
template_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
template_data mediumblob NOT NULL,
|
||||
KEY tid (template_id),
|
||||
KEY tfn (template_filename)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_theme'
|
||||
CREATE TABLE phpbb_styles_theme (
|
||||
theme_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
theme_name blob NOT NULL,
|
||||
theme_copyright blob NOT NULL,
|
||||
theme_path varbinary(100) DEFAULT '' NOT NULL,
|
||||
theme_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
theme_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
theme_data mediumblob NOT NULL,
|
||||
PRIMARY KEY (theme_id),
|
||||
UNIQUE theme_name (theme_name(255))
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_imageset'
|
||||
CREATE TABLE phpbb_styles_imageset (
|
||||
imageset_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
imageset_name blob NOT NULL,
|
||||
imageset_copyright blob NOT NULL,
|
||||
imageset_path varbinary(100) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (imageset_id),
|
||||
UNIQUE imgset_nm (imageset_name(255))
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_imageset_data'
|
||||
CREATE TABLE phpbb_styles_imageset_data (
|
||||
image_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
image_name varbinary(200) DEFAULT '' NOT NULL,
|
||||
image_filename varbinary(200) DEFAULT '' NOT NULL,
|
||||
image_lang varbinary(30) DEFAULT '' NOT NULL,
|
||||
image_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
image_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
PRIMARY KEY (image_id),
|
||||
KEY i_d (imageset_id)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_topics'
|
||||
CREATE TABLE phpbb_topics (
|
||||
topic_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
|
|
|
@ -752,12 +752,10 @@ CREATE TABLE phpbb_styles (
|
|||
style_active tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
theme_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
PRIMARY KEY (style_id),
|
||||
UNIQUE style_name (style_name),
|
||||
KEY template_id (template_id),
|
||||
KEY theme_id (theme_id),
|
||||
KEY imageset_id (imageset_id)
|
||||
KEY theme_id (theme_id)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
|
@ -768,7 +766,6 @@ CREATE TABLE phpbb_styles_template (
|
|||
template_copyright varchar(255) DEFAULT '' NOT NULL,
|
||||
template_path varchar(100) DEFAULT '' NOT NULL,
|
||||
bbcode_bitfield varchar(255) DEFAULT 'kNg=' NOT NULL,
|
||||
template_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
template_inherits_id int(4) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
template_inherit_path varchar(255) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (template_id),
|
||||
|
@ -776,57 +773,17 @@ CREATE TABLE phpbb_styles_template (
|
|||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_template_data'
|
||||
CREATE TABLE phpbb_styles_template_data (
|
||||
template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
template_filename varchar(100) DEFAULT '' NOT NULL,
|
||||
template_included text NOT NULL,
|
||||
template_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
template_data mediumtext NOT NULL,
|
||||
KEY tid (template_id),
|
||||
KEY tfn (template_filename)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_theme'
|
||||
CREATE TABLE phpbb_styles_theme (
|
||||
theme_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
theme_name varchar(255) DEFAULT '' NOT NULL,
|
||||
theme_copyright varchar(255) DEFAULT '' NOT NULL,
|
||||
theme_path varchar(100) DEFAULT '' NOT NULL,
|
||||
theme_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
theme_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
theme_data mediumtext NOT NULL,
|
||||
PRIMARY KEY (theme_id),
|
||||
UNIQUE theme_name (theme_name)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_imageset'
|
||||
CREATE TABLE phpbb_styles_imageset (
|
||||
imageset_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
imageset_name varchar(255) DEFAULT '' NOT NULL,
|
||||
imageset_copyright varchar(255) DEFAULT '' NOT NULL,
|
||||
imageset_path varchar(100) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (imageset_id),
|
||||
UNIQUE imgset_nm (imageset_name)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
# Table: 'phpbb_styles_imageset_data'
|
||||
CREATE TABLE phpbb_styles_imageset_data (
|
||||
image_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
image_name varchar(200) DEFAULT '' NOT NULL,
|
||||
image_filename varchar(200) DEFAULT '' NOT NULL,
|
||||
image_lang varchar(30) DEFAULT '' NOT NULL,
|
||||
image_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
image_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
PRIMARY KEY (image_id),
|
||||
KEY i_d (imageset_id)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
# Table: 'phpbb_topics'
|
||||
CREATE TABLE phpbb_topics (
|
||||
topic_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
|
|
|
@ -1432,7 +1432,6 @@ CREATE TABLE phpbb_styles (
|
|||
style_active number(1) DEFAULT '1' NOT NULL,
|
||||
template_id number(8) DEFAULT '0' NOT NULL,
|
||||
theme_id number(8) DEFAULT '0' NOT NULL,
|
||||
imageset_id number(8) DEFAULT '0' NOT NULL,
|
||||
CONSTRAINT pk_phpbb_styles PRIMARY KEY (style_id),
|
||||
CONSTRAINT u_phpbb_style_name UNIQUE (style_name)
|
||||
)
|
||||
|
@ -1442,8 +1441,6 @@ CREATE INDEX phpbb_styles_template_id ON phpbb_styles (template_id)
|
|||
/
|
||||
CREATE INDEX phpbb_styles_theme_id ON phpbb_styles (theme_id)
|
||||
/
|
||||
CREATE INDEX phpbb_styles_imageset_id ON phpbb_styles (imageset_id)
|
||||
/
|
||||
|
||||
CREATE SEQUENCE phpbb_styles_seq
|
||||
/
|
||||
|
@ -1470,7 +1467,6 @@ CREATE TABLE phpbb_styles_template (
|
|||
template_copyright varchar2(765) DEFAULT '' ,
|
||||
template_path varchar2(100) DEFAULT '' ,
|
||||
bbcode_bitfield varchar2(255) DEFAULT 'kNg=' NOT NULL,
|
||||
template_storedb number(1) DEFAULT '0' NOT NULL,
|
||||
template_inherits_id number(4) DEFAULT '0' NOT NULL,
|
||||
template_inherit_path varchar2(255) DEFAULT '' ,
|
||||
CONSTRAINT pk_phpbb_styles_template PRIMARY KEY (template_id),
|
||||
|
@ -1495,23 +1491,6 @@ END;
|
|||
/
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_template_data'
|
||||
*/
|
||||
CREATE TABLE phpbb_styles_template_data (
|
||||
template_id number(8) DEFAULT '0' NOT NULL,
|
||||
template_filename varchar2(100) DEFAULT '' ,
|
||||
template_included clob DEFAULT '' ,
|
||||
template_mtime number(11) DEFAULT '0' NOT NULL,
|
||||
template_data clob DEFAULT ''
|
||||
)
|
||||
/
|
||||
|
||||
CREATE INDEX phpbb_styles_template_data_tid ON phpbb_styles_template_data (template_id)
|
||||
/
|
||||
CREATE INDEX phpbb_styles_template_data_tfn ON phpbb_styles_template_data (template_filename)
|
||||
/
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_theme'
|
||||
*/
|
||||
|
@ -1520,9 +1499,6 @@ CREATE TABLE phpbb_styles_theme (
|
|||
theme_name varchar2(765) DEFAULT '' ,
|
||||
theme_copyright varchar2(765) DEFAULT '' ,
|
||||
theme_path varchar2(100) DEFAULT '' ,
|
||||
theme_storedb number(1) DEFAULT '0' NOT NULL,
|
||||
theme_mtime number(11) DEFAULT '0' NOT NULL,
|
||||
theme_data clob DEFAULT '' ,
|
||||
CONSTRAINT pk_phpbb_styles_theme PRIMARY KEY (theme_id),
|
||||
CONSTRAINT u_phpbb_theme_name UNIQUE (theme_name)
|
||||
)
|
||||
|
@ -1545,70 +1521,6 @@ END;
|
|||
/
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_imageset'
|
||||
*/
|
||||
CREATE TABLE phpbb_styles_imageset (
|
||||
imageset_id number(8) NOT NULL,
|
||||
imageset_name varchar2(765) DEFAULT '' ,
|
||||
imageset_copyright varchar2(765) DEFAULT '' ,
|
||||
imageset_path varchar2(100) DEFAULT '' ,
|
||||
CONSTRAINT pk_phpbb_styles_imageset PRIMARY KEY (imageset_id),
|
||||
CONSTRAINT u_phpbb_imgset_nm UNIQUE (imageset_name)
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
CREATE SEQUENCE phpbb_styles_imageset_seq
|
||||
/
|
||||
|
||||
CREATE OR REPLACE TRIGGER t_phpbb_styles_imageset
|
||||
BEFORE INSERT ON phpbb_styles_imageset
|
||||
FOR EACH ROW WHEN (
|
||||
new.imageset_id IS NULL OR new.imageset_id = 0
|
||||
)
|
||||
BEGIN
|
||||
SELECT phpbb_styles_imageset_seq.nextval
|
||||
INTO :new.imageset_id
|
||||
FROM dual;
|
||||
END;
|
||||
/
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_imageset_data'
|
||||
*/
|
||||
CREATE TABLE phpbb_styles_imageset_data (
|
||||
image_id number(8) NOT NULL,
|
||||
image_name varchar2(200) DEFAULT '' ,
|
||||
image_filename varchar2(200) DEFAULT '' ,
|
||||
image_lang varchar2(30) DEFAULT '' ,
|
||||
image_height number(4) DEFAULT '0' NOT NULL,
|
||||
image_width number(4) DEFAULT '0' NOT NULL,
|
||||
imageset_id number(8) DEFAULT '0' NOT NULL,
|
||||
CONSTRAINT pk_phpbb_styles_imageset_data PRIMARY KEY (image_id)
|
||||
)
|
||||
/
|
||||
|
||||
CREATE INDEX phpbb_styles_imageset_data_i_d ON phpbb_styles_imageset_data (imageset_id)
|
||||
/
|
||||
|
||||
CREATE SEQUENCE phpbb_styles_imageset_data_seq
|
||||
/
|
||||
|
||||
CREATE OR REPLACE TRIGGER t_phpbb_styles_imageset_data
|
||||
BEFORE INSERT ON phpbb_styles_imageset_data
|
||||
FOR EACH ROW WHEN (
|
||||
new.image_id IS NULL OR new.image_id = 0
|
||||
)
|
||||
BEGIN
|
||||
SELECT phpbb_styles_imageset_data_seq.nextval
|
||||
INTO :new.image_id
|
||||
FROM dual;
|
||||
END;
|
||||
/
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_topics'
|
||||
*/
|
||||
|
|
|
@ -983,14 +983,12 @@ CREATE TABLE phpbb_styles (
|
|||
style_active INT2 DEFAULT '1' NOT NULL CHECK (style_active >= 0),
|
||||
template_id INT4 DEFAULT '0' NOT NULL CHECK (template_id >= 0),
|
||||
theme_id INT4 DEFAULT '0' NOT NULL CHECK (theme_id >= 0),
|
||||
imageset_id INT4 DEFAULT '0' NOT NULL CHECK (imageset_id >= 0),
|
||||
PRIMARY KEY (style_id)
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_style_name ON phpbb_styles (style_name);
|
||||
CREATE INDEX phpbb_styles_template_id ON phpbb_styles (template_id);
|
||||
CREATE INDEX phpbb_styles_theme_id ON phpbb_styles (theme_id);
|
||||
CREATE INDEX phpbb_styles_imageset_id ON phpbb_styles (imageset_id);
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_template'
|
||||
|
@ -1003,7 +1001,6 @@ CREATE TABLE phpbb_styles_template (
|
|||
template_copyright varchar(255) DEFAULT '' NOT NULL,
|
||||
template_path varchar(100) DEFAULT '' NOT NULL,
|
||||
bbcode_bitfield varchar(255) DEFAULT 'kNg=' NOT NULL,
|
||||
template_storedb INT2 DEFAULT '0' NOT NULL CHECK (template_storedb >= 0),
|
||||
template_inherits_id INT4 DEFAULT '0' NOT NULL CHECK (template_inherits_id >= 0),
|
||||
template_inherit_path varchar(255) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (template_id)
|
||||
|
@ -1011,20 +1008,6 @@ CREATE TABLE phpbb_styles_template (
|
|||
|
||||
CREATE UNIQUE INDEX phpbb_styles_template_tmplte_nm ON phpbb_styles_template (template_name);
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_template_data'
|
||||
*/
|
||||
CREATE TABLE phpbb_styles_template_data (
|
||||
template_id INT4 DEFAULT '0' NOT NULL CHECK (template_id >= 0),
|
||||
template_filename varchar(100) DEFAULT '' NOT NULL,
|
||||
template_included varchar(8000) DEFAULT '' NOT NULL,
|
||||
template_mtime INT4 DEFAULT '0' NOT NULL CHECK (template_mtime >= 0),
|
||||
template_data TEXT DEFAULT '' NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_styles_template_data_tid ON phpbb_styles_template_data (template_id);
|
||||
CREATE INDEX phpbb_styles_template_data_tfn ON phpbb_styles_template_data (template_filename);
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_theme'
|
||||
*/
|
||||
|
@ -1035,47 +1018,11 @@ CREATE TABLE phpbb_styles_theme (
|
|||
theme_name varchar(255) DEFAULT '' NOT NULL,
|
||||
theme_copyright varchar(255) DEFAULT '' NOT NULL,
|
||||
theme_path varchar(100) DEFAULT '' NOT NULL,
|
||||
theme_storedb INT2 DEFAULT '0' NOT NULL CHECK (theme_storedb >= 0),
|
||||
theme_mtime INT4 DEFAULT '0' NOT NULL CHECK (theme_mtime >= 0),
|
||||
theme_data TEXT DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (theme_id)
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_theme_theme_name ON phpbb_styles_theme (theme_name);
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_imageset'
|
||||
*/
|
||||
CREATE SEQUENCE phpbb_styles_imageset_seq;
|
||||
|
||||
CREATE TABLE phpbb_styles_imageset (
|
||||
imageset_id INT4 DEFAULT nextval('phpbb_styles_imageset_seq'),
|
||||
imageset_name varchar(255) DEFAULT '' NOT NULL,
|
||||
imageset_copyright varchar(255) DEFAULT '' NOT NULL,
|
||||
imageset_path varchar(100) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (imageset_id)
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_imageset_imgset_nm ON phpbb_styles_imageset (imageset_name);
|
||||
|
||||
/*
|
||||
Table: 'phpbb_styles_imageset_data'
|
||||
*/
|
||||
CREATE SEQUENCE phpbb_styles_imageset_data_seq;
|
||||
|
||||
CREATE TABLE phpbb_styles_imageset_data (
|
||||
image_id INT4 DEFAULT nextval('phpbb_styles_imageset_data_seq'),
|
||||
image_name varchar(200) DEFAULT '' NOT NULL,
|
||||
image_filename varchar(200) DEFAULT '' NOT NULL,
|
||||
image_lang varchar(30) DEFAULT '' NOT NULL,
|
||||
image_height INT2 DEFAULT '0' NOT NULL CHECK (image_height >= 0),
|
||||
image_width INT2 DEFAULT '0' NOT NULL CHECK (image_width >= 0),
|
||||
imageset_id INT4 DEFAULT '0' NOT NULL CHECK (imageset_id >= 0),
|
||||
PRIMARY KEY (image_id)
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_styles_imageset_data_i_d ON phpbb_styles_imageset_data (imageset_id);
|
||||
|
||||
/*
|
||||
Table: 'phpbb_topics'
|
||||
*/
|
||||
|
|
|
@ -434,86 +434,13 @@ INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order)
|
|||
INSERT INTO phpbb_acl_roles (role_name, role_description, role_type, role_order) VALUES ('ROLE_FORUM_NEW_MEMBER', 'ROLE_DESCRIPTION_FORUM_NEW_MEMBER', 'f_', 10);
|
||||
|
||||
# -- phpbb_styles
|
||||
INSERT INTO phpbb_styles (style_name, style_copyright, style_active, template_id, theme_id, imageset_id) VALUES ('prosilver', '© phpBB Group', 1, 1, 1, 1);
|
||||
|
||||
# -- phpbb_styles_imageset
|
||||
INSERT INTO phpbb_styles_imageset (imageset_name, imageset_copyright, imageset_path) VALUES ('prosilver', '© phpBB Group', 'prosilver');
|
||||
|
||||
# -- phpbb_styles_imageset_data
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('site_logo', 'site_logo.gif', '', 52, 139, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_link', 'forum_link.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_read', 'forum_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_read_locked', 'forum_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_read_subforum', 'forum_read_subforum.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_unread', 'forum_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_unread_locked', 'forum_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('forum_unread_subforum', 'forum_unread_subforum.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_moved', 'topic_moved.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read', 'topic_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_mine', 'topic_read_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_hot', 'topic_read_hot.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_hot_mine', 'topic_read_hot_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_locked', 'topic_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_read_locked_mine', 'topic_read_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread', 'topic_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_mine', 'topic_unread_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_hot', 'topic_unread_hot.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_hot_mine', 'topic_unread_hot_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_locked', 'topic_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('topic_unread_locked_mine', 'topic_unread_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_read', 'sticky_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_read_mine', 'sticky_read_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_read_locked', 'sticky_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_read_locked_mine', 'sticky_read_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_unread', 'sticky_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_unread_mine', 'sticky_unread_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_unread_locked', 'sticky_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('sticky_unread_locked_mine', 'sticky_unread_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_read', 'announce_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_read_mine', 'announce_read_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_read_locked', 'announce_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_read_locked_mine', 'announce_read_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_unread', 'announce_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_unread_mine', 'announce_unread_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_unread_locked', 'announce_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('announce_unread_locked_mine', 'announce_unread_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_read', 'announce_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_read_mine', 'announce_read_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_read_locked', 'announce_read_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_read_locked_mine', 'announce_read_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_unread', 'announce_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_unread_mine', 'announce_unread_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_unread_locked', 'announce_unread_locked.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('global_unread_locked_mine', 'announce_unread_locked_mine.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('pm_read', 'topic_read.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('pm_unread', 'topic_unread.gif', '', 27, 27, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_back_top', 'icon_back_top.gif', '', 11, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_aim', 'icon_contact_aim.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_email', 'icon_contact_email.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_icq', 'icon_contact_icq.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_jabber', 'icon_contact_jabber.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_msnm', 'icon_contact_msnm.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_www', 'icon_contact_www.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_contact_yahoo', 'icon_contact_yahoo.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_delete', 'icon_post_delete.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_info', 'icon_post_info.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_report', 'icon_post_report.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_target', 'icon_post_target.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_post_target_unread', 'icon_post_target_unread.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_attach', 'icon_topic_attach.gif', '', 10, 7, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_latest', 'icon_topic_latest.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_newest', 'icon_topic_newest.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_reported', 'icon_topic_reported.gif', '', 14, 16, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_topic_unapproved', 'icon_topic_unapproved.gif', '', 14, 16, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('icon_user_warn', 'icon_user_warn.gif', '', 20, 20, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('subforum_read', 'subforum_read.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles_imageset_data (image_name, image_filename, image_lang, image_height, image_width, imageset_id) VALUES ('subforum_unread', 'subforum_unread.gif', '', 9, 11, 1);
|
||||
INSERT INTO phpbb_styles (style_name, style_copyright, style_active, template_id, theme_id) VALUES ('prosilver', '© phpBB Group', 1, 1, 1);
|
||||
|
||||
# -- phpbb_styles_template
|
||||
INSERT INTO phpbb_styles_template (template_name, template_copyright, template_path, bbcode_bitfield, template_storedb) VALUES ('prosilver', '© phpBB Group', 'prosilver', 'lNg=', 0);
|
||||
INSERT INTO phpbb_styles_template (template_name, template_copyright, template_path, bbcode_bitfield) VALUES ('prosilver', '© phpBB Group', 'prosilver', 'lNg=');
|
||||
|
||||
# -- phpbb_styles_theme
|
||||
INSERT INTO phpbb_styles_theme (theme_name, theme_copyright, theme_path, theme_storedb, theme_data) VALUES ('prosilver', '© phpBB Group', 'prosilver', 1, '');
|
||||
INSERT INTO phpbb_styles_theme (theme_name, theme_copyright, theme_path) VALUES ('prosilver', '© phpBB Group', 'prosilver');
|
||||
|
||||
# -- Forums
|
||||
INSERT INTO phpbb_forums (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents) VALUES ('{L_FORUMS_FIRST_CATEGORY}', '', 1, 4, 0, 0, 1, 1, 1, 1, 2, 'Admin', 'AA0000', 972086460, '', '', '', '', '', '', '', 0, 0, '');
|
||||
|
|
|
@ -727,14 +727,12 @@ CREATE TABLE phpbb_styles (
|
|||
style_copyright varchar(255) NOT NULL DEFAULT '',
|
||||
style_active INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
template_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
theme_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
imageset_id INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
theme_id INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_style_name ON phpbb_styles (style_name);
|
||||
CREATE INDEX phpbb_styles_template_id ON phpbb_styles (template_id);
|
||||
CREATE INDEX phpbb_styles_theme_id ON phpbb_styles (theme_id);
|
||||
CREATE INDEX phpbb_styles_imageset_id ON phpbb_styles (imageset_id);
|
||||
|
||||
# Table: 'phpbb_styles_template'
|
||||
CREATE TABLE phpbb_styles_template (
|
||||
|
@ -743,61 +741,22 @@ CREATE TABLE phpbb_styles_template (
|
|||
template_copyright varchar(255) NOT NULL DEFAULT '',
|
||||
template_path varchar(100) NOT NULL DEFAULT '',
|
||||
bbcode_bitfield varchar(255) NOT NULL DEFAULT 'kNg=',
|
||||
template_storedb INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
template_inherits_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
template_inherit_path varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_template_tmplte_nm ON phpbb_styles_template (template_name);
|
||||
|
||||
# Table: 'phpbb_styles_template_data'
|
||||
CREATE TABLE phpbb_styles_template_data (
|
||||
template_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
template_filename varchar(100) NOT NULL DEFAULT '',
|
||||
template_included text(65535) NOT NULL DEFAULT '',
|
||||
template_mtime INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
template_data mediumtext(16777215) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_styles_template_data_tid ON phpbb_styles_template_data (template_id);
|
||||
CREATE INDEX phpbb_styles_template_data_tfn ON phpbb_styles_template_data (template_filename);
|
||||
|
||||
# Table: 'phpbb_styles_theme'
|
||||
CREATE TABLE phpbb_styles_theme (
|
||||
theme_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
theme_name varchar(255) NOT NULL DEFAULT '',
|
||||
theme_copyright varchar(255) NOT NULL DEFAULT '',
|
||||
theme_path varchar(100) NOT NULL DEFAULT '',
|
||||
theme_storedb INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
theme_mtime INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
theme_data mediumtext(16777215) NOT NULL DEFAULT ''
|
||||
theme_path varchar(100) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_theme_theme_name ON phpbb_styles_theme (theme_name);
|
||||
|
||||
# Table: 'phpbb_styles_imageset'
|
||||
CREATE TABLE phpbb_styles_imageset (
|
||||
imageset_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
imageset_name varchar(255) NOT NULL DEFAULT '',
|
||||
imageset_copyright varchar(255) NOT NULL DEFAULT '',
|
||||
imageset_path varchar(100) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX phpbb_styles_imageset_imgset_nm ON phpbb_styles_imageset (imageset_name);
|
||||
|
||||
# Table: 'phpbb_styles_imageset_data'
|
||||
CREATE TABLE phpbb_styles_imageset_data (
|
||||
image_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
image_name varchar(200) NOT NULL DEFAULT '',
|
||||
image_filename varchar(200) NOT NULL DEFAULT '',
|
||||
image_lang varchar(30) NOT NULL DEFAULT '',
|
||||
image_height INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
image_width INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
imageset_id INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_styles_imageset_data_i_d ON phpbb_styles_imageset_data (imageset_id);
|
||||
|
||||
# Table: 'phpbb_topics'
|
||||
CREATE TABLE phpbb_topics (
|
||||
topic_id INTEGER PRIMARY KEY NOT NULL ,
|
||||
|
|
|
@ -104,7 +104,6 @@ $lang = array_merge($lang, array(
|
|||
|
||||
'ACP_ICONS' => 'Topic icons',
|
||||
'ACP_ICONS_SMILIES' => 'Topic icons/smilies',
|
||||
'ACP_IMAGESETS' => 'Imagesets',
|
||||
'ACP_INACTIVE_USERS' => 'Inactive users',
|
||||
'ACP_INDEX' => 'ACP index',
|
||||
|
||||
|
@ -593,16 +592,6 @@ $lang = array_merge($lang, array(
|
|||
|
||||
'LOG_IMAGE_GENERATION_ERROR' => '<strong>Error while creating image</strong><br />» Error in %1$s on line %2$s: %3$s',
|
||||
|
||||
'LOG_IMAGESET_ADD_DB' => '<strong>Added new imageset to database</strong><br />» %s',
|
||||
'LOG_IMAGESET_ADD_FS' => '<strong>Add new imageset on filesystem</strong><br />» %s',
|
||||
'LOG_IMAGESET_DELETE' => '<strong>Deleted imageset</strong><br />» %s',
|
||||
'LOG_IMAGESET_EDIT_DETAILS' => '<strong>Edited imageset details</strong><br />» %s',
|
||||
'LOG_IMAGESET_EDIT' => '<strong>Edited imageset</strong><br />» %s',
|
||||
'LOG_IMAGESET_EXPORT' => '<strong>Exported imageset</strong><br />» %s',
|
||||
'LOG_IMAGESET_LANG_MISSING' => '<strong>Imageset misses “%2$s” localisation</strong><br />» %1$s',
|
||||
'LOG_IMAGESET_LANG_REFRESHED' => '<strong>Refreshed “%2$s” localisation of imageset</strong><br />» %1$s',
|
||||
'LOG_IMAGESET_REFRESHED' => '<strong>Refreshed imageset</strong><br />» %s',
|
||||
|
||||
'LOG_INACTIVE_ACTIVATE' => '<strong>Activated inactive users</strong><br />» %s',
|
||||
'LOG_INACTIVE_DELETE' => '<strong>Deleted inactive users</strong><br />» %s',
|
||||
'LOG_INACTIVE_REMIND' => '<strong>Sent reminder e-mails to inactive users</strong><br />» %s',
|
||||
|
@ -686,22 +675,28 @@ $lang = array_merge($lang, array(
|
|||
'LOG_STYLE_EDIT_DETAILS' => '<strong>Edited style</strong><br />» %s',
|
||||
'LOG_STYLE_EXPORT' => '<strong>Exported style</strong><br />» %s',
|
||||
|
||||
// @deprecated 3.1
|
||||
'LOG_TEMPLATE_ADD_DB' => '<strong>Added new template set to database</strong><br />» %s',
|
||||
// @deprecated 3.1
|
||||
'LOG_TEMPLATE_ADD_FS' => '<strong>Add new template set on filesystem</strong><br />» %s',
|
||||
'LOG_TEMPLATE_CACHE_CLEARED' => '<strong>Deleted cached versions of template files in template set <em>%1$s</em></strong><br />» %2$s',
|
||||
'LOG_TEMPLATE_DELETE' => '<strong>Deleted template set</strong><br />» %s',
|
||||
'LOG_TEMPLATE_EDIT' => '<strong>Edited template set <em>%1$s</em></strong><br />» %2$s',
|
||||
'LOG_TEMPLATE_EDIT_DETAILS' => '<strong>Edited template details</strong><br />» %s',
|
||||
'LOG_TEMPLATE_EXPORT' => '<strong>Exported template set</strong><br />» %s',
|
||||
// @deprecated 3.1
|
||||
'LOG_TEMPLATE_REFRESHED' => '<strong>Refreshed template set</strong><br />» %s',
|
||||
|
||||
// @deprecated 3.1
|
||||
'LOG_THEME_ADD_DB' => '<strong>Added new theme to database</strong><br />» %s',
|
||||
// @deprecated 3.1
|
||||
'LOG_THEME_ADD_FS' => '<strong>Add new theme on filesystem</strong><br />» %s',
|
||||
'LOG_THEME_DELETE' => '<strong>Theme deleted</strong><br />» %s',
|
||||
'LOG_THEME_EDIT_DETAILS' => '<strong>Edited theme details</strong><br />» %s',
|
||||
'LOG_THEME_EDIT' => '<strong>Edited theme <em>%1$s</em></strong>',
|
||||
'LOG_THEME_EDIT_FILE' => '<strong>Edited theme <em>%1$s</em></strong><br />» Modified file <em>%2$s</em>',
|
||||
'LOG_THEME_EXPORT' => '<strong>Exported theme</strong><br />» %s',
|
||||
// @deprecated 3.1
|
||||
'LOG_THEME_REFRESHED' => '<strong>Refreshed theme</strong><br />» %s',
|
||||
|
||||
'LOG_UPDATE_DATABASE' => '<strong>Updated Database from version %1$s to version %2$s</strong>',
|
||||
|
|
|
@ -36,12 +36,9 @@ if (empty($lang) || !is_array($lang))
|
|||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
'ACP_IMAGESETS_EXPLAIN' => 'Imagesets comprise all the button, forum, folder, etc. and other non-style specific images used by the board. Here you can edit, export or delete existing imagesets and import or activate new sets.',
|
||||
'ACP_STYLES_EXPLAIN' => 'Here you can manage the available styles on your board. A style consists of a template, theme and imageset. You may alter existing styles, delete, deactivate, reactivate, create or import new ones. You can also see what a style will look like using the preview function. The current default style is noted by the presence of an asterisk (*). Also listed is the total user count for each style, note that overriding user styles will not be reflected here.',
|
||||
'ACP_STYLES_EXPLAIN' => 'Here you can manage the available styles on your board. A style consists of a template and theme. You may alter existing styles, delete, deactivate, reactivate, create or import new ones. You can also see what a style will look like using the preview function. The current default style is noted by the presence of an asterisk (*). Also listed is the total user count for each style, note that overriding user styles will not be reflected here.',
|
||||
'ACP_TEMPLATES_EXPLAIN' => 'A template set comprises all the markup used to generate the layout of your board. Here you can edit existing template sets, delete, export, import and preview sets. You can also modify the templating code used to generate BBCode.',
|
||||
'ACP_THEMES_EXPLAIN' => 'From here you can create, install, edit, delete and export themes. A theme is the combination of colours and images that are applied to your templates to define the basic look of your board. The range of options open to you depends on the configuration of your server and phpBB installation, see the manual for further details. Please note that when creating new themes the use of an existing theme as a basis is optional.',
|
||||
'ADD_IMAGESET' => 'Create imageset',
|
||||
'ADD_IMAGESET_EXPLAIN' => 'Here you can create a new imageset. Depending on your server configuration and file permissions you may have additional options here. For example you may be able to base this imageset on an existing one. You may also be able to upload or import (from the store directory) a imageset archive. If you upload or import an archive the imageset name can be optionally taken from the archive name (to do this leave the imageset name blank).',
|
||||
'ADD_STYLE' => 'Create style',
|
||||
'ADD_STYLE_EXPLAIN' => 'Here you can create a new style. Depending on your server configuration and file permissions you may have additional options. For example you may be able to base this style on an existing one. You may also be able to upload or import (from the store directory) a style archive. If you upload or import an archive the style name will be determined automatically.',
|
||||
'ADD_TEMPLATE' => 'Create template',
|
||||
|
@ -62,12 +59,8 @@ $lang = array_merge($lang, array(
|
|||
'CACHE_FILENAME' => 'Template file',
|
||||
'CACHE_FILESIZE' => 'File size',
|
||||
'CACHE_MODIFIED' => 'Modified',
|
||||
'CONFIRM_IMAGESET_REFRESH' => 'Are you sure you wish to refresh all imageset data? The settings from the imageset configuration file will overwrite all modifications to the imageset which have been carried out with the imageset editor.',
|
||||
'CONFIRM_TEMPLATE_CLEAR_CACHE' => 'Are you sure you wish to clear all cached versions of your template files?',
|
||||
'CONFIRM_TEMPLATE_REFRESH' => 'Are you sure you wish to refresh all template data in the database with the contents of the template files on the filesystem? This will overwrite all modifications which have been carried out with the template editor while the template was stored in the database.',
|
||||
'CONFIRM_THEME_REFRESH' => 'Are you sure you wish to refresh the theme data stored in the database with the contents of the theme on the filesystem? This will overwrite all modifications which have been carried out with the theme editor while the theme was stored in the database.',
|
||||
'COPYRIGHT' => 'Copyright',
|
||||
'CREATE_IMAGESET' => 'Create new imageset',
|
||||
'CREATE_STYLE' => 'Create new style',
|
||||
'CREATE_TEMPLATE' => 'Create new template set',
|
||||
'CREATE_THEME' => 'Create new theme',
|
||||
|
@ -75,8 +68,6 @@ $lang = array_merge($lang, array(
|
|||
|
||||
'DEACTIVATE_DEFAULT' => 'You cannot deactivate the default style.',
|
||||
'DELETE_FROM_FS' => 'Delete from filesystem',
|
||||
'DELETE_IMAGESET' => 'Delete imageset',
|
||||
'DELETE_IMAGESET_EXPLAIN' => 'Here you can remove the selected imageset from the database. Please note that there is no undo capability. It is recommended that you first export your set for possible future use.',
|
||||
'DELETE_STYLE' => 'Delete style',
|
||||
'DELETE_STYLE_EXPLAIN' => 'Here you can remove the selected style. Take care in deleting styles, there is no undo capability.',
|
||||
'DELETE_TEMPLATE' => 'Delete template',
|
||||
|
@ -87,23 +78,16 @@ $lang = array_merge($lang, array(
|
|||
'DIMENSIONS_EXPLAIN' => 'Selecting yes here will include width/height parameters.',
|
||||
|
||||
|
||||
'EDIT_DETAILS_IMAGESET' => 'Edit imageset details',
|
||||
'EDIT_DETAILS_IMAGESET_EXPLAIN' => 'Here you can edit certain imageset details such as its name.',
|
||||
'EDIT_DETAILS_STYLE' => 'Edit style',
|
||||
'EDIT_DETAILS_STYLE_EXPLAIN' => 'Using the form below you can modify this existing style. You may alter the combination of template, theme and imageset which define the style itself. You may also make the style the default one.',
|
||||
'EDIT_DETAILS_STYLE_EXPLAIN' => 'Using the form below you can modify this existing style. You may alter the combination of template and theme which define the style itself. You may also make the style the default one.',
|
||||
'EDIT_DETAILS_TEMPLATE' => 'Edit template details',
|
||||
'EDIT_DETAILS_TEMPLATE_EXPLAIN' => 'Here you can edit certain template details such as its name. You may also have the option to switch storage of the stylesheet from the filesystem to the database and vice versa. This option depends on your PHP configuration and whether your template set can be written to by the web server.',
|
||||
'EDIT_DETAILS_TEMPLATE_EXPLAIN' => 'Here you can edit certain template details such as its name.',
|
||||
'EDIT_DETAILS_THEME' => 'Edit theme details',
|
||||
'EDIT_DETAILS_THEME_EXPLAIN' => 'Here you can edit certain theme details such as its name. You may also have the option to switch storage of the stylesheet from the filesystem to the database and vice versa. This option depends on your PHP configuration and whether your stylesheet can be written to by the web server.',
|
||||
'EDIT_IMAGESET' => 'Edit imageset',
|
||||
'EDIT_IMAGESET_EXPLAIN' => 'Here you can edit the individual images which define the imageset. You can also specify dimensions for the image. Dimensions are optional, specifying them can overcome certain rendering issues with some browsers. By not specifying them you reduce the size of the database record a little.',
|
||||
'EDIT_DETAILS_THEME_EXPLAIN' => 'Here you can edit certain theme details such as its name.',
|
||||
'EDIT_TEMPLATE' => 'Edit template',
|
||||
'EDIT_TEMPLATE_EXPLAIN' => 'Here you can edit your template set directly. Please remember that these edits are permanent and cannot be undone once submitted. If PHP can write to the template files in your styles directory any changes here will be written directly to those files. If PHP cannot write to those files they will be copied into the database and all changes will only be reflected there. Please take care when editing your template set, remember to close all replacement variable terms {XXXX} and conditional statements.',
|
||||
'EDIT_TEMPLATE_STORED_DB' => 'The template file was unwritable so the template set is now stored in the database containing the modified file.',
|
||||
'EDIT_TEMPLATE_EXPLAIN' => 'Here you can edit your template set directly. Please remember that these edits are permanent and cannot be undone once submitted. Please take care when editing your template set, remember to close all replacement variable terms {XXXX} and conditional statements.',
|
||||
'EDIT_THEME' => 'Edit theme',
|
||||
'EDIT_THEME_EXPLAIN' => 'Here you can edit the selected theme, changing colours, images, etc.',
|
||||
'EDIT_THEME_STORED_DB' => 'The stylesheet file was unwritable so the stylesheet is now stored in the database containing your modification.',
|
||||
'EDIT_THEME_STORE_PARSED' => 'The theme requires that its stylesheet is parsed. This is only possible if it’s stored in the database.',
|
||||
'EDITOR_DISABLED' => 'The template editor is disabled.',
|
||||
'EXPORT' => 'Export',
|
||||
|
||||
|
@ -123,24 +107,7 @@ $lang = array_merge($lang, array(
|
|||
'IMAGE_NAME' => 'Image name',
|
||||
'IMAGE_PARAMETER' => 'Parameter',
|
||||
'IMAGE_VALUE' => 'Value',
|
||||
'IMAGESET_ADDED' => 'New imageset added on filesystem.',
|
||||
'IMAGESET_ADDED_DB' => 'New imageset added to database.',
|
||||
'IMAGESET_DELETED' => 'Imageset deleted successfully.',
|
||||
'IMAGESET_DELETED_FS' => 'Imageset removed from database but some files may remain on the filesystem.',
|
||||
'IMAGESET_DETAILS_UPDATED' => 'Imageset details successfully updated.',
|
||||
'IMAGESET_ERR_ARCHIVE' => 'Please select an archive method.',
|
||||
'IMAGESET_ERR_COPY_LONG' => 'The copyright can be no longer than 60 characters.',
|
||||
'IMAGESET_ERR_NAME_CHARS' => 'The imageset name can only contain alphanumeric characters, -, +, _ and space.',
|
||||
'IMAGESET_ERR_NAME_EXIST' => 'A imageset with that name already exists.',
|
||||
'IMAGESET_ERR_NAME_LONG' => 'The imageset name can be no longer than 30 characters.',
|
||||
'IMAGESET_ERR_NOT_IMAGESET' => 'The archive you specified does not contain a valid imageset.',
|
||||
'IMAGESET_ERR_STYLE_NAME' => 'You must supply a name for this imageset.',
|
||||
'IMAGESET_EXPORT' => 'Export imageset',
|
||||
'IMAGESET_EXPORT_EXPLAIN' => 'Here you can export an imageset in the form of an archive. This archive will contain all the data necessary to install the set of images on another board. You may select whether to download the file directly or to place it in your store folder for download later or via FTP.',
|
||||
'IMAGESET_EXPORTED' => 'Imageset exported successfully and stored in %s.',
|
||||
'IMAGESET_NAME' => 'Imageset name',
|
||||
'IMAGESET_REFRESHED' => 'Imageset refreshed successfully.',
|
||||
'IMAGESET_UPDATED' => 'Imageset updated successfully.',
|
||||
|
||||
'ITALIC' => 'Italic',
|
||||
|
||||
'IMG_CAT_BUTTONS' => 'Localised buttons',
|
||||
|
@ -268,45 +235,36 @@ $lang = array_merge($lang, array(
|
|||
'IMG_USER_ICON10' => 'User defined image 10',
|
||||
|
||||
'INCLUDE_DIMENSIONS' => 'Include dimensions',
|
||||
'INCLUDE_IMAGESET' => 'Include imageset',
|
||||
'INCLUDE_TEMPLATE' => 'Include template',
|
||||
'INCLUDE_THEME' => 'Include theme',
|
||||
'INHERITING_FROM' => 'Inherits from',
|
||||
'INSTALL_IMAGESET' => 'Install imageset',
|
||||
'INSTALL_IMAGESET_EXPLAIN' => 'Here you can install your selected imageset. You can edit certain details if you wish or use the installation defaults.',
|
||||
'INSTALL_STYLE' => 'Install style',
|
||||
'INSTALL_STYLE_EXPLAIN' => 'Here you can install a new style and if appropriate the corresponding style elements. If you already have the relevant style elements installed they will not be overwritten. Some styles require existing style elements to already be installed. If you try installing such a style and do not have the required elements you will be notified.',
|
||||
'INSTALL_TEMPLATE' => 'Install Template',
|
||||
'INSTALL_TEMPLATE_EXPLAIN' => 'Here you can install a new template set. Depending on your server configuration you may have a number of options here.',
|
||||
'INSTALL_THEME' => 'Install theme',
|
||||
'INSTALL_THEME_EXPLAIN' => 'Here you can install your selected theme. You can edit certain details if you wish or use the installation defaults.',
|
||||
'INSTALLED_IMAGESET' => 'Installed imagesets',
|
||||
'INSTALLED_STYLE' => 'Installed styles',
|
||||
'INSTALLED_TEMPLATE' => 'Installed templates',
|
||||
'INSTALLED_THEME' => 'Installed themes',
|
||||
|
||||
'KEEP_IMAGESET' => 'Keep “%s” imageset',
|
||||
'KEEP_TEMPLATE' => 'Keep “%s” template',
|
||||
'KEEP_THEME' => 'Keep “%s” theme',
|
||||
|
||||
'LINE_SPACING' => 'Line spacing',
|
||||
'LOCALISED_IMAGES' => 'Localised',
|
||||
'LOCATION_DISABLED_EXPLAIN' => 'This setting is inherited and cannot be changed.',
|
||||
|
||||
'NO_CLASS' => 'Cannot find class in stylesheet.',
|
||||
'NO_IMAGESET' => 'Cannot find imageset on filesystem.',
|
||||
'NO_IMAGE' => 'No image',
|
||||
'NO_IMAGE_ERROR' => 'Cannot find image on filesystem.',
|
||||
'NO_STYLE' => 'Cannot find style on filesystem.',
|
||||
'NO_TEMPLATE' => 'Cannot find template on filesystem.',
|
||||
'NO_THEME' => 'Cannot find theme on filesystem.',
|
||||
'NO_UNINSTALLED_IMAGESET' => 'No uninstalled imagesets detected.',
|
||||
'NO_UNINSTALLED_STYLE' => 'No uninstalled styles detected.',
|
||||
'NO_UNINSTALLED_TEMPLATE' => 'No uninstalled templates detected.',
|
||||
'NO_UNINSTALLED_THEME' => 'No uninstalled themes detected.',
|
||||
'NO_UNIT' => 'None',
|
||||
|
||||
'ONLY_IMAGESET' => 'This is the only remaining imageset, you cannot delete it.',
|
||||
'ONLY_STYLE' => 'This is the only remaining style, you cannot delete it.',
|
||||
'ONLY_TEMPLATE' => 'This is the only remaining template set, you cannot delete it.',
|
||||
'ONLY_THEME' => 'This is the only remaining theme, you cannot delete it.',
|
||||
|
@ -317,8 +275,6 @@ $lang = array_merge($lang, array(
|
|||
'REPEAT_X' => 'Only horizontally',
|
||||
'REPEAT_Y' => 'Only vertically',
|
||||
'REPEAT_ALL' => 'Both directions',
|
||||
'REPLACE_IMAGESET' => 'Replace imageset with',
|
||||
'REPLACE_IMAGESET_EXPLAIN' => 'This imageset will replace the one you are deleting in any styles that use it.',
|
||||
'REPLACE_STYLE' => 'Replace style with',
|
||||
'REPLACE_STYLE_EXPLAIN' => 'This style will replace the one being deleted for members that use it.',
|
||||
'REPLACE_TEMPLATE' => 'Replace template with',
|
||||
|
@ -326,7 +282,6 @@ $lang = array_merge($lang, array(
|
|||
'REPLACE_THEME' => 'Replace theme with',
|
||||
'REPLACE_THEME_EXPLAIN' => 'This theme will replace the one you are deleting in any styles that use it.',
|
||||
'REPLACE_WITH_OPTION' => 'Replace with “%s”',
|
||||
'REQUIRES_IMAGESET' => 'This style requires the %s imageset to be installed.',
|
||||
'REQUIRES_TEMPLATE' => 'This style requires the %s template set to be installed.',
|
||||
'REQUIRES_THEME' => 'This style requires the %s theme to be installed.',
|
||||
|
||||
|
@ -334,12 +289,10 @@ $lang = array_merge($lang, array(
|
|||
'SELECT_TEMPLATE' => 'Select template file',
|
||||
'SELECT_THEME' => 'Select theme file',
|
||||
'SELECTED_IMAGE' => 'Selected image',
|
||||
'SELECTED_IMAGESET' => 'Selected imageset',
|
||||
'SELECTED_TEMPLATE' => 'Selected template',
|
||||
'SELECTED_TEMPLATE_FILE' => 'Selected template file',
|
||||
'SELECTED_THEME' => 'Selected theme',
|
||||
'SELECTED_THEME_FILE' => 'Selected theme file',
|
||||
'STORE_DATABASE' => 'Database',
|
||||
'STORE_FILESYSTEM' => 'Filesystem',
|
||||
'STYLE_ACTIVATE' => 'Activate',
|
||||
'STYLE_ACTIVE' => 'Active',
|
||||
|
@ -354,27 +307,25 @@ $lang = array_merge($lang, array(
|
|||
'STYLE_ERR_NAME_CHARS' => 'The style name can only contain alphanumeric characters, -, +, _ and space.',
|
||||
'STYLE_ERR_NAME_EXIST' => 'A style with that name already exists.',
|
||||
'STYLE_ERR_NAME_LONG' => 'The style name can be no longer than 30 characters.',
|
||||
'STYLE_ERR_NO_IDS' => 'You must select a template, theme and imageset for this style.',
|
||||
'STYLE_ERR_NO_IDS' => 'You must select a template and theme for this style.',
|
||||
'STYLE_ERR_NOT_STYLE' => 'The imported or uploaded file did not contain a valid style archive.',
|
||||
'STYLE_ERR_STYLE_NAME' => 'You must supply a name for this style.',
|
||||
'STYLE_EXPORT' => 'Export style',
|
||||
'STYLE_EXPORT_EXPLAIN' => 'Here you can export a style in the form of an archive. A style does not need to contain all elements but it must contain at least one. For example if you have created a new theme and imageset for a commonly used template you could simply export the theme and imageset and omit the template. You may select whether to download the file directly or to place it in your store folder for download later or via FTP.',
|
||||
'STYLE_EXPORT_EXPLAIN' => 'Here you can export a style in the form of an archive. A style does not need to contain all elements but it must contain at least one. For example if you have created a new theme for a commonly used template you could simply export the theme and omit the template. You may select whether to download the file directly or to place it in your store folder for download later or via FTP.',
|
||||
'STYLE_EXPORTED' => 'Style exported successfully and stored in %s.',
|
||||
'STYLE_IMAGESET' => 'Imageset',
|
||||
'STYLE_NAME' => 'Style name',
|
||||
'STYLE_TEMPLATE' => 'Template',
|
||||
'STYLE_THEME' => 'Theme',
|
||||
'STYLE_USED_BY' => 'Used by (including robots)',
|
||||
|
||||
'TEMPLATE_ADDED' => 'Template set added and stored on filesystem.',
|
||||
'TEMPLATE_ADDED_DB' => 'Template set added and stored in database.',
|
||||
'TEMPLATE_ADDED' => 'Template set added.',
|
||||
'TEMPLATE_CACHE' => 'Template cache',
|
||||
'TEMPLATE_CACHE_EXPLAIN' => 'By default phpBB caches the compiled version of its templates. This decreases the load on the server each time a page is viewed and thus may reduce the page generation time. Here you can view the cache status of each file and delete individual files or the entire cache.',
|
||||
'TEMPLATE_CACHE_CLEARED' => 'Template cache cleared successfully.',
|
||||
'TEMPLATE_CACHE_EMPTY' => 'There are no cached templates.',
|
||||
'TEMPLATE_DELETED' => 'Template set deleted successfully.',
|
||||
'TEMPLATE_DELETE_DEPENDENT' => 'The template set cannot be deleted as there are one or more other template sets inheriting from it:',
|
||||
'TEMPLATE_DELETED_FS' => 'Template set removed from database but some files may remain on the filesystem.',
|
||||
'TEMPLATE_DELETED_FS' => 'Template set removed from database but files remain on the filesystem.',
|
||||
'TEMPLATE_DETAILS_UPDATED' => 'Template details successfully updated.',
|
||||
'TEMPLATE_EDITOR' => 'Raw HTML template editor',
|
||||
'TEMPLATE_EDITOR_HEIGHT' => 'Template editor height',
|
||||
|
@ -393,14 +344,10 @@ $lang = array_merge($lang, array(
|
|||
'TEMPLATE_FILE' => 'Template file',
|
||||
'TEMPLATE_FILE_UPDATED' => 'Template file updated successfully.',
|
||||
'TEMPLATE_INHERITS' => 'This template sets inherits from %s and thus cannot have a different storage setting than its super template.',
|
||||
'TEMPLATE_LOCATION' => 'Store templates in',
|
||||
'TEMPLATE_LOCATION_EXPLAIN' => 'Images are always stored on the filesystem.',
|
||||
'TEMPLATE_NAME' => 'Template name',
|
||||
'TEMPLATE_FILE_NOT_WRITABLE'=> 'Unable to write to template file %s. Please check the permissions for the directory and the files.',
|
||||
'TEMPLATE_REFRESHED' => 'Template refreshed successfully.',
|
||||
|
||||
'THEME_ADDED' => 'New theme added on filesystem.',
|
||||
'THEME_ADDED_DB' => 'New theme added to database.',
|
||||
'THEME_ADDED' => 'New theme added.',
|
||||
'THEME_CLASS_ADDED' => 'Custom class added successfully.',
|
||||
'THEME_DELETED' => 'Theme deleted successfully.',
|
||||
'THEME_DELETED_FS' => 'Theme removed from database but files remain on the filesystem.',
|
||||
|
@ -414,20 +361,16 @@ $lang = array_merge($lang, array(
|
|||
'THEME_ERR_NAME_EXIST' => 'A theme with that name already exists.',
|
||||
'THEME_ERR_NAME_LONG' => 'The theme name can be no longer than 30 characters.',
|
||||
'THEME_ERR_NOT_THEME' => 'The archive you specified does not contain a valid theme.',
|
||||
'THEME_ERR_REFRESH_FS' => 'This theme is stored on the filesystem so there is no need to refresh it.',
|
||||
'THEME_ERR_STYLE_NAME' => 'You must supply a name for this theme.',
|
||||
'THEME_FILE' => 'Theme file',
|
||||
'THEME_FILE_NOT_WRITABLE' => 'Unable to write to theme file %s. Please check the permissions for the directory and the files.',
|
||||
'THEME_EXPORT' => 'Export Theme',
|
||||
'THEME_EXPORT_EXPLAIN' => 'Here you can export a theme in the form of an archive. This archive will contain all the data necessary to install the theme on another board. You may select whether to download the file directly or to place it in your store folder for download later or via FTP.',
|
||||
'THEME_EXPORTED' => 'Theme exported successfully and stored in %s.',
|
||||
'THEME_LOCATION' => 'Store stylesheet in',
|
||||
'THEME_LOCATION_EXPLAIN' => 'Images are always stored on the filesystem.',
|
||||
'THEME_NAME' => 'Theme name',
|
||||
'THEME_REFRESHED' => 'Theme refreshed successfully.',
|
||||
'THEME_UPDATED' => 'Theme updated successfully.',
|
||||
|
||||
'UNDERLINE' => 'Underline',
|
||||
'UNINSTALLED_IMAGESET' => 'Uninstalled imagesets',
|
||||
'UNINSTALLED_STYLE' => 'Uninstalled styles',
|
||||
'UNINSTALLED_TEMPLATE' => 'Uninstalled templates',
|
||||
'UNINSTALLED_THEME' => 'Uninstalled themes',
|
||||
|
|
|
@ -344,7 +344,7 @@ $lang = array_merge($lang, array(
|
|||
'SUB_LICENSE' => 'License',
|
||||
'SUB_SUPPORT' => 'Support',
|
||||
'SUCCESSFUL_CONNECT' => 'Successful connection',
|
||||
'SUPPORT_BODY' => 'Full support will be provided for the current stable release of phpBB3, free of charge. This includes:</p><ul><li>installation</li><li>configuration</li><li>technical questions</li><li>problems relating to potential bugs in the software</li><li>updating from Release Candidate (RC) versions to the latest stable version</li><li>converting from phpBB 2.0.x to phpBB3</li><li>converting from other discussion board software to phpBB3 (please see the <a href="http://www.phpbb.com/community/viewforum.php?f=65">Convertors Forum</a>)</li></ul><p>We encourage users still running beta versions of phpBB3 to replace their installation with a fresh copy of the latest version.</p><h2>MODs / Styles</h2><p>For issues relating to MODs, please post in the appropriate <a href="http://www.phpbb.com/community/viewforum.php?f=81">Modifications Forum</a>.<br />For issues relating to styles, templates and imagesets, please post in the appropriate <a href="http://www.phpbb.com/community/viewforum.php?f=80">Styles Forum</a>.<br /><br />If your question relates to a specific package, please post directly in the topic dedicated to the package.</p><h2>Obtaining Support</h2><p><a href="http://www.phpbb.com/community/viewtopic.php?f=14&t=571070">The phpBB Welcome Package</a><br /><a href="http://www.phpbb.com/support/">Support Section</a><br /><a href="http://www.phpbb.com/support/documentation/3.0/quickstart/">Quick Start Guide</a><br /><br />To ensure you stay up to date with the latest news and releases, why not <a href="http://www.phpbb.com/support/">subscribe to our mailing list</a>?<br /><br />',
|
||||
'SUPPORT_BODY' => 'Full support will be provided for the current stable release of phpBB3, free of charge. This includes:</p><ul><li>installation</li><li>configuration</li><li>technical questions</li><li>problems relating to potential bugs in the software</li><li>updating from Release Candidate (RC) versions to the latest stable version</li><li>converting from phpBB 2.0.x to phpBB3</li><li>converting from other discussion board software to phpBB3 (please see the <a href="http://www.phpbb.com/community/viewforum.php?f=65">Convertors Forum</a>)</li></ul><p>We encourage users still running beta versions of phpBB3 to replace their installation with a fresh copy of the latest version.</p><h2>MODs / Styles</h2><p>For issues relating to MODs, please post in the appropriate <a href="http://www.phpbb.com/community/viewforum.php?f=81">Modifications Forum</a>.<br />For issues relating to styles, templates and themes, please post in the appropriate <a href="http://www.phpbb.com/community/viewforum.php?f=80">Styles Forum</a>.<br /><br />If your question relates to a specific package, please post directly in the topic dedicated to the package.</p><h2>Obtaining Support</h2><p><a href="http://www.phpbb.com/community/viewtopic.php?f=14&t=571070">The phpBB Welcome Package</a><br /><a href="http://www.phpbb.com/support/">Support Section</a><br /><a href="http://www.phpbb.com/support/documentation/3.0/quickstart/">Quick Start Guide</a><br /><br />To ensure you stay up to date with the latest news and releases, why not <a href="http://www.phpbb.com/support/">subscribe to our mailing list</a>?<br /><br />',
|
||||
'SYNC_FORUMS' => 'Starting to synchronise forums',
|
||||
'SYNC_POST_COUNT' => 'Synchronising post_counts',
|
||||
'SYNC_POST_COUNT_ID' => 'Synchronising post_counts from <var>entry</var> %1$s to %2$s.',
|
||||
|
|
|
@ -872,10 +872,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
|||
|
||||
'TOPIC_IMG_STYLE' => $folder_img,
|
||||
'TOPIC_FOLDER_IMG' => $user->img($folder_img, $folder_alt),
|
||||
'TOPIC_FOLDER_IMG_SRC' => $user->img($folder_img, $folder_alt, false, '', 'src'),
|
||||
'TOPIC_FOLDER_IMG_ALT' => $user->lang[$folder_alt],
|
||||
'TOPIC_FOLDER_IMG_WIDTH'=> $user->img($folder_img, '', false, '', 'width'),
|
||||
'TOPIC_FOLDER_IMG_HEIGHT' => $user->img($folder_img, '', false, '', 'height'),
|
||||
|
||||
'TOPIC_ICON_IMG' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['img'] : '',
|
||||
'TOPIC_ICON_IMG_WIDTH' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['width'] : '',
|
||||
|
|
304
phpBB/style.php
|
@ -1,304 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
*
|
||||
* @package phpBB3
|
||||
* @version $Id$
|
||||
* @copyright (c) 2005 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
define('IN_PHPBB', true);
|
||||
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
|
||||
require($phpbb_root_path . 'includes/startup.' . $phpEx);
|
||||
require($phpbb_root_path . 'config.' . $phpEx);
|
||||
|
||||
if (!defined('PHPBB_INSTALLED') || empty($dbms) || empty($acm_type))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
// Load Extensions
|
||||
if (!empty($load_extensions) && function_exists('dl'))
|
||||
{
|
||||
$load_extensions = explode(',', $load_extensions);
|
||||
|
||||
foreach ($load_extensions as $extension)
|
||||
{
|
||||
@dl(trim($extension));
|
||||
}
|
||||
}
|
||||
|
||||
// no $request here because it is not loaded yet
|
||||
$id = (isset($_GET['id'])) ? intval($_GET['id']) : 0;
|
||||
|
||||
// This is a simple script to grab and output the requested CSS data stored in the DB
|
||||
// We include a session_id check to try and limit 3rd party linking ... unless they
|
||||
// happen to have a current session it will output nothing. We will also cache the
|
||||
// resulting CSS data for five minutes ... anything to reduce the load on the SQL
|
||||
// server a little
|
||||
if ($id)
|
||||
{
|
||||
// Include files
|
||||
require($phpbb_root_path . 'includes/class_loader.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/constants.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/functions.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
|
||||
|
||||
$class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx);
|
||||
$class_loader->register();
|
||||
|
||||
// set up caching
|
||||
$cache_factory = new phpbb_cache_factory($acm_type);
|
||||
$cache = $cache_factory->get_service();
|
||||
$class_loader->set_cache($cache->get_driver());
|
||||
|
||||
$request = new phpbb_request();
|
||||
$db = new $sql_db();
|
||||
|
||||
// make sure request_var uses this request instance
|
||||
request_var('', 0, false, false, $request); // "dependency injection" for a function
|
||||
|
||||
// Connect to DB
|
||||
if (!@$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
unset($dbpasswd);
|
||||
|
||||
$config = new phpbb_config_db($db, $cache->get_driver(), CONFIG_TABLE);
|
||||
set_config(null, null, null, $config);
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
$user = false;
|
||||
|
||||
// try to get a session ID from REQUEST array
|
||||
$sid = request_var('sid', '');
|
||||
|
||||
if (!$sid)
|
||||
{
|
||||
// if that failed, then look in the cookies
|
||||
$sid = request_var($config['cookie_name'] . '_sid', '', false, true);
|
||||
}
|
||||
|
||||
if (strspn($sid, 'abcdefABCDEF0123456789') !== strlen($sid))
|
||||
{
|
||||
$sid = '';
|
||||
}
|
||||
|
||||
if ($sid)
|
||||
{
|
||||
$sql = 'SELECT u.user_id, u.user_lang
|
||||
FROM ' . SESSIONS_TABLE . ' s, ' . USERS_TABLE . " u
|
||||
WHERE s.session_id = '" . $db->sql_escape($sid) . "'
|
||||
AND s.session_user_id = u.user_id";
|
||||
$result = $db->sql_query($sql);
|
||||
$user = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
$recompile = $config['load_tplcompile'];
|
||||
if (!$user)
|
||||
{
|
||||
$id = ($id) ? $id : $config['default_style'];
|
||||
// Commented out because calls do not always include the SID anymore
|
||||
// $recompile = false;
|
||||
$user = array('user_id' => ANONYMOUS);
|
||||
}
|
||||
|
||||
$sql = 'SELECT s.style_id, c.theme_id, c.theme_data, c.theme_path, c.theme_name, c.theme_mtime, i.*, t.template_path
|
||||
FROM ' . STYLES_TABLE . ' s, ' . STYLES_TEMPLATE_TABLE . ' t, ' . STYLES_THEME_TABLE . ' c, ' . STYLES_IMAGESET_TABLE . ' i
|
||||
WHERE s.style_id = ' . $id . '
|
||||
AND t.template_id = s.template_id
|
||||
AND c.theme_id = s.theme_id
|
||||
AND i.imageset_id = s.imageset_id';
|
||||
$result = $db->sql_query($sql, 300);
|
||||
$theme = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (!$theme)
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($user['user_id'] == ANONYMOUS)
|
||||
{
|
||||
$user['user_lang'] = $config['default_lang'];
|
||||
}
|
||||
|
||||
$user_image_lang = (file_exists($phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $user['user_lang'])) ? $user['user_lang'] : $config['default_lang'];
|
||||
|
||||
// Same query in session.php
|
||||
$sql = 'SELECT *
|
||||
FROM ' . STYLES_IMAGESET_DATA_TABLE . '
|
||||
WHERE imageset_id = ' . $theme['imageset_id'] . "
|
||||
AND image_filename <> ''
|
||||
AND image_lang IN ('" . $db->sql_escape($user_image_lang) . "', '')";
|
||||
$result = $db->sql_query($sql, 3600);
|
||||
|
||||
$img_array = array();
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$img_array[$row['image_name']] = $row;
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// gzip_compression
|
||||
if ($config['gzip_compress'])
|
||||
{
|
||||
// IE6 is not able to compress the style (do not ask us why!)
|
||||
$browser = strtolower($request->header('User-Agent'));
|
||||
|
||||
if ($browser && strpos($browser, 'msie 6.0') === false && @extension_loaded('zlib') && !headers_sent())
|
||||
{
|
||||
ob_start('ob_gzhandler');
|
||||
}
|
||||
}
|
||||
|
||||
// Expire time of seven days if not recached
|
||||
$expire_time = 7*86400;
|
||||
$recache = false;
|
||||
|
||||
// Re-cache stylesheet data if necessary
|
||||
if ($recompile || empty($theme['theme_data']))
|
||||
{
|
||||
$recache = (empty($theme['theme_data'])) ? true : false;
|
||||
$update_time = time();
|
||||
|
||||
// We test for stylesheet.css because it is faster and most likely the only file changed on common themes
|
||||
if (!$recache && $theme['theme_mtime'] < @filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css'))
|
||||
{
|
||||
$recache = true;
|
||||
$update_time = @filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css');
|
||||
}
|
||||
else if (!$recache)
|
||||
{
|
||||
$last_change = $theme['theme_mtime'];
|
||||
$dir = @opendir("{$phpbb_root_path}styles/{$theme['theme_path']}/theme");
|
||||
|
||||
if ($dir)
|
||||
{
|
||||
while (($entry = readdir($dir)) !== false)
|
||||
{
|
||||
if (substr(strrchr($entry, '.'), 1) == 'css' && $last_change < @filemtime("{$phpbb_root_path}styles/{$theme['theme_path']}/theme/{$entry}"))
|
||||
{
|
||||
$recache = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
closedir($dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($recache)
|
||||
{
|
||||
include_once($phpbb_root_path . 'includes/acp/acp_styles.' . $phpEx);
|
||||
|
||||
$theme['theme_data'] = acp_styles::db_theme_data($theme);
|
||||
$theme['theme_mtime'] = $update_time;
|
||||
|
||||
// Save CSS contents
|
||||
$sql_ary = array(
|
||||
'theme_mtime' => $theme['theme_mtime'],
|
||||
'theme_data' => $theme['theme_data']
|
||||
);
|
||||
|
||||
$sql = 'UPDATE ' . STYLES_THEME_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . "
|
||||
WHERE theme_id = {$theme['theme_id']}";
|
||||
$db->sql_query($sql);
|
||||
|
||||
$cache->destroy('sql', STYLES_THEME_TABLE);
|
||||
}
|
||||
|
||||
// Only set the expire time if the theme changed data is older than 30 minutes - to cope with changes from the ACP
|
||||
if ($recache || $theme['theme_mtime'] > (time() - 1800))
|
||||
{
|
||||
header('Expires: 0');
|
||||
}
|
||||
else
|
||||
{
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + $expire_time));
|
||||
}
|
||||
|
||||
header('Content-type: text/css; charset=UTF-8');
|
||||
|
||||
// Parse Theme Data
|
||||
$replace = array(
|
||||
'{T_THEME_PATH}' => "{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme',
|
||||
'{T_TEMPLATE_PATH}' => "{$phpbb_root_path}styles/" . $theme['template_path'] . '/template',
|
||||
'{T_IMAGESET_PATH}' => "{$phpbb_root_path}styles/" . $theme['imageset_path'] . '/imageset',
|
||||
'{T_IMAGESET_LANG_PATH}' => "{$phpbb_root_path}styles/" . $theme['imageset_path'] . '/imageset/' . $user_image_lang,
|
||||
'{T_STYLESHEET_NAME}' => $theme['theme_name'],
|
||||
'{S_USER_LANG}' => $user['user_lang']
|
||||
);
|
||||
|
||||
$theme['theme_data'] = str_replace(array_keys($replace), array_values($replace), $theme['theme_data']);
|
||||
|
||||
$matches = array();
|
||||
preg_match_all('#\{IMG_([A-Za-z0-9_]*?)_(WIDTH|HEIGHT|SRC)\}#', $theme['theme_data'], $matches);
|
||||
|
||||
$imgs = $find = $replace = array();
|
||||
if (isset($matches[0]) && sizeof($matches[0]))
|
||||
{
|
||||
foreach ($matches[1] as $i => $img)
|
||||
{
|
||||
$img = strtolower($img);
|
||||
$find[] = $matches[0][$i];
|
||||
|
||||
if (!isset($img_array[$img]))
|
||||
{
|
||||
$replace[] = '';
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($imgs[$img]))
|
||||
{
|
||||
$img_data = &$img_array[$img];
|
||||
$imgsrc = ($img_data['image_lang'] ? $img_data['image_lang'] . '/' : '') . $img_data['image_filename'];
|
||||
$imgs[$img] = array(
|
||||
'src' => $phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $imgsrc,
|
||||
'width' => $img_data['image_width'],
|
||||
'height' => $img_data['image_height'],
|
||||
);
|
||||
}
|
||||
|
||||
switch ($matches[2][$i])
|
||||
{
|
||||
case 'SRC':
|
||||
$replace[] = $imgs[$img]['src'];
|
||||
break;
|
||||
|
||||
case 'WIDTH':
|
||||
$replace[] = $imgs[$img]['width'];
|
||||
break;
|
||||
|
||||
case 'HEIGHT':
|
||||
$replace[] = $imgs[$img]['height'];
|
||||
break;
|
||||
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (sizeof($find))
|
||||
{
|
||||
$theme['theme_data'] = str_replace($find, $replace, $theme['theme_data']);
|
||||
}
|
||||
}
|
||||
|
||||
echo $theme['theme_data'];
|
||||
|
||||
if (!empty($cache))
|
||||
{
|
||||
$cache->unload();
|
||||
}
|
||||
$db->sql_close();
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
#
|
||||
# phpBB Imageset Configuration File
|
||||
#
|
||||
# @package phpBB3
|
||||
# @copyright (c) 2006 phpBB Group
|
||||
# @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
#
|
||||
#
|
||||
# At the left is the name, please do not change this
|
||||
# At the right the value is entered
|
||||
# For on/off options the valid values are on, off, 1, 0, true and false
|
||||
#
|
||||
# Values get trimmed, if you want to add a space in front or at the end of
|
||||
# the value, then enclose the value with single or double quotes.
|
||||
# Single and double quotes do not need to be escaped.
|
||||
#
|
||||
#
|
||||
|
||||
# Images
|
||||
img_icon_contact_pm = icon_contact_pm.gif*20*28
|
||||
|
||||
img_icon_post_edit = icon_post_edit.gif*20*42
|
||||
img_icon_post_quote = icon_post_quote.gif*20*54
|
||||
|
||||
img_icon_user_online = icon_user_online.gif*58*58
|
||||
img_icon_user_offline =
|
||||
img_icon_user_search =
|
||||
|
||||
img_button_pm_forward = button_pm_forward.gif*25*96
|
||||
img_button_pm_new = button_pm_new.gif*25*84
|
||||
img_button_pm_reply = button_pm_reply.gif*25*96
|
||||
|
||||
img_button_topic_locked = button_topic_locked.gif*25*88
|
||||
img_button_topic_new = button_topic_new.gif*25*96
|
||||
img_button_topic_reply = button_topic_reply.gif*25*96
|
|
@ -1,116 +0,0 @@
|
|||
#
|
||||
# phpBB Imageset Configuration File
|
||||
#
|
||||
# @package phpBB3
|
||||
# @copyright (c) 2006 phpBB Group
|
||||
# @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
#
|
||||
#
|
||||
# At the left is the name, please do not change this
|
||||
# At the right the value is entered
|
||||
# For on/off options the valid values are on, off, 1, 0, true and false
|
||||
#
|
||||
# Values get trimmed, if you want to add a space in front or at the end of
|
||||
# the value, then enclose the value with single or double quotes.
|
||||
# Single and double quotes do not need to be escaped.
|
||||
#
|
||||
#
|
||||
|
||||
# General Information about this style
|
||||
name = prosilver
|
||||
copyright = © phpBB Group, 2007
|
||||
version = 3.1.0-dev
|
||||
|
||||
# Images
|
||||
img_site_logo = site_logo.gif*52*139
|
||||
img_poll_left =
|
||||
img_poll_center =
|
||||
img_poll_right =
|
||||
img_icon_friend =
|
||||
img_icon_foe =
|
||||
|
||||
img_forum_link = forum_link.gif*27*27
|
||||
img_forum_read = forum_read.gif*27*27
|
||||
img_forum_read_locked = forum_read_locked.gif*27*27
|
||||
img_forum_read_subforum = forum_read_subforum.gif*27*27
|
||||
img_forum_unread = forum_unread.gif*27*27
|
||||
img_forum_unread_locked = forum_unread_locked.gif*27*27
|
||||
img_forum_unread_subforum = forum_unread_subforum.gif*27*27
|
||||
|
||||
img_topic_moved = topic_moved.gif*27*27
|
||||
|
||||
img_topic_read = topic_read.gif*27*27
|
||||
img_topic_read_mine = topic_read_mine.gif*27*27
|
||||
img_topic_read_hot = topic_read_hot.gif*27*27
|
||||
img_topic_read_hot_mine = topic_read_hot_mine.gif*27*27
|
||||
img_topic_read_locked = topic_read_locked.gif*27*27
|
||||
img_topic_read_locked_mine = topic_read_locked_mine.gif*27*27
|
||||
|
||||
img_topic_unread = topic_unread.gif*27*27
|
||||
img_topic_unread_mine = topic_unread_mine.gif*27*27
|
||||
img_topic_unread_hot = topic_unread_hot.gif*27*27
|
||||
img_topic_unread_hot_mine = topic_unread_hot_mine.gif*27*27
|
||||
img_topic_unread_locked = topic_unread_locked.gif*27*27
|
||||
img_topic_unread_locked_mine = topic_unread_locked_mine.gif*27*27
|
||||
|
||||
img_sticky_read = sticky_read.gif*27*27
|
||||
img_sticky_read_mine = sticky_read_mine.gif*27*27
|
||||
img_sticky_read_locked = sticky_read_locked.gif*27*27
|
||||
img_sticky_read_locked_mine = sticky_read_locked_mine.gif*27*27
|
||||
img_sticky_unread = sticky_unread.gif*27*27
|
||||
img_sticky_unread_mine = sticky_unread_mine.gif*27*27
|
||||
img_sticky_unread_locked = sticky_unread_locked.gif*27*27
|
||||
img_sticky_unread_locked_mine = sticky_unread_locked_mine.gif*27*27
|
||||
|
||||
img_announce_read = announce_read.gif*27*27
|
||||
img_announce_read_mine = announce_read_mine.gif*27*27
|
||||
img_announce_read_locked = announce_read_locked.gif*27*27
|
||||
img_announce_read_locked_mine = announce_read_locked_mine.gif*27*27
|
||||
img_announce_unread = announce_unread.gif*27*27
|
||||
img_announce_unread_mine = announce_unread_mine.gif*27*27
|
||||
img_announce_unread_locked = announce_unread_locked.gif*27*27
|
||||
img_announce_unread_locked_mine = announce_unread_locked_mine.gif*27*27
|
||||
|
||||
img_global_read = announce_read.gif*27*27
|
||||
img_global_read_mine = announce_read_mine.gif*27*27
|
||||
img_global_read_locked = announce_read_locked.gif*27*27
|
||||
img_global_read_locked_mine = announce_read_locked_mine.gif*27*27
|
||||
img_global_unread = announce_unread.gif*27*27
|
||||
img_global_unread_mine = announce_unread_mine.gif*27*27
|
||||
img_global_unread_locked = announce_unread_locked.gif*27*27
|
||||
img_global_unread_locked_mine = announce_unread_locked_mine.gif*27*27
|
||||
|
||||
img_subforum_read = subforum_read.gif*9*11
|
||||
img_subforum_unread = subforum_unread.gif*9*11
|
||||
|
||||
img_pm_read = topic_read.gif*27*27
|
||||
img_pm_unread = topic_unread.gif*27*27
|
||||
|
||||
img_icon_back_top = icon_back_top.gif*11*11
|
||||
|
||||
img_icon_contact_aim = icon_contact_aim.gif*20*20
|
||||
img_icon_contact_email = icon_contact_email.gif*20*20
|
||||
img_icon_contact_icq = icon_contact_icq.gif*20*20
|
||||
img_icon_contact_jabber = icon_contact_jabber.gif*20*20
|
||||
img_icon_contact_msnm = icon_contact_msnm.gif*20*20
|
||||
|
||||
img_icon_contact_www = icon_contact_www.gif*20*20
|
||||
img_icon_contact_yahoo = icon_contact_yahoo.gif*20*20
|
||||
|
||||
img_icon_post_delete = icon_post_delete.gif*20*20
|
||||
|
||||
img_icon_post_info = icon_post_info.gif*20*20
|
||||
|
||||
img_icon_post_report = icon_post_report.gif*20*20
|
||||
img_icon_post_target = icon_post_target.gif*9*11
|
||||
img_icon_post_target_unread = icon_post_target_unread.gif*9*11
|
||||
|
||||
img_icon_topic_attach = icon_topic_attach.gif*10*7
|
||||
img_icon_topic_latest = icon_topic_latest.gif*9*11
|
||||
img_icon_topic_newest = icon_topic_newest.gif*9*11
|
||||
img_icon_topic_reported = icon_topic_reported.gif*14*16
|
||||
img_icon_topic_unapproved = icon_topic_unapproved.gif*14*16
|
||||
|
||||
img_icon_user_profile =
|
||||
|
||||
img_icon_user_warn = icon_user_warn.gif*20*20
|
|
@ -78,7 +78,7 @@
|
|||
<td style="text-align: center">{usernotes.REPORT_AT}</td>
|
||||
<td>{usernotes.ACTION}</td>
|
||||
|
||||
<!-- IF S_CLEAR_ALLOWED --><td width="5%" align="center"><input type="checkbox" name="marknote[]" id="note-{usernotes.ID}" value="{usernotes.ID}" /></td><!-- ENDIF -->
|
||||
<!-- IF S_CLEAR_ALLOWED --><td style="width: 5%; text-align: center;"><input type="checkbox" name="marknote[]" id="note-{usernotes.ID}" value="{usernotes.ID}" /></td><!-- ENDIF -->
|
||||
</tr>
|
||||
<!-- BEGINELSE -->
|
||||
<tr>
|
||||
|
|
|
@ -78,6 +78,7 @@
|
|||
|
||||
<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
|
||||
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />
|
||||
<link href="{T_STYLESHEET_LANG_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />
|
||||
|
||||
<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
|
||||
<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
|
||||
<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
|
||||
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />
|
||||
<link href="{T_STYLESHEET_LANG_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />
|
||||
|
||||
<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
|
||||
<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
|
||||
|
|
|
@ -42,12 +42,12 @@
|
|||
.forwardpm-icon span { background: none 0 0 no-repeat; }
|
||||
|
||||
/* Set big button dimensions */
|
||||
.buttons div.reply-icon { width: {IMG_BUTTON_TOPIC_REPLY_WIDTH}px; height: {IMG_BUTTON_TOPIC_REPLY_HEIGHT}px; }
|
||||
.buttons div.post-icon { width: {IMG_BUTTON_TOPIC_NEW_WIDTH}px; height: {IMG_BUTTON_TOPIC_NEW_HEIGHT}px; }
|
||||
.buttons div.locked-icon { width: {IMG_BUTTON_TOPIC_LOCKED_WIDTH}px; height: {IMG_BUTTON_TOPIC_LOCKED_HEIGHT}px; }
|
||||
.buttons div.pmreply-icon { width: {IMG_BUTTON_PM_REPLY_WIDTH}px; height: {IMG_BUTTON_PM_REPLY_HEIGHT}px; }
|
||||
.buttons div.newpm-icon { width: {IMG_BUTTON_PM_NEW_WIDTH}px; height: {IMG_BUTTON_PM_NEW_HEIGHT}px; }
|
||||
.buttons div.forwardpm-icon { width: {IMG_BUTTON_PM_FORWARD_WIDTH}px; height: {IMG_BUTTON_PM_FORWARD_HEIGHT}px; }
|
||||
.buttons div.reply-icon { width: 96px; height: 25px; }
|
||||
.buttons div.post-icon { width: 96px; height: 25px; }
|
||||
.buttons div.locked-icon { width: 88px; height: 25px; }
|
||||
.buttons div.pmreply-icon { width: 96px; height: 25px; }
|
||||
.buttons div.newpm-icon { width: 84px; height: 25px; }
|
||||
.buttons div.forwardpm-icon { width: 96px; height: 25px; }
|
||||
|
||||
/* Sub-header (navigation bar)
|
||||
--------------------------------------------- */
|
||||
|
@ -136,20 +136,20 @@ ul.profile-icons li a:hover { background: none; }
|
|||
.info-icon, .info-icon a { background: none top left no-repeat; }
|
||||
|
||||
/* Set profile icon dimensions */
|
||||
ul.profile-icons li.email-icon { width: {IMG_ICON_CONTACT_EMAIL_WIDTH}px; height: {IMG_ICON_CONTACT_EMAIL_HEIGHT}px; }
|
||||
ul.profile-icons li.aim-icon { width: {IMG_ICON_CONTACT_AIM_WIDTH}px; height: {IMG_ICON_CONTACT_AIM_HEIGHT}px; }
|
||||
ul.profile-icons li.yahoo-icon { width: {IMG_ICON_CONTACT_YAHOO_WIDTH}px; height: {IMG_ICON_CONTACT_YAHOO_HEIGHT}px; }
|
||||
ul.profile-icons li.web-icon { width: {IMG_ICON_CONTACT_WWW_WIDTH}px; height: {IMG_ICON_CONTACT_WWW_HEIGHT}px; }
|
||||
ul.profile-icons li.msnm-icon { width: {IMG_ICON_CONTACT_MSNM_WIDTH}px; height: {IMG_ICON_CONTACT_MSNM_HEIGHT}px; }
|
||||
ul.profile-icons li.icq-icon { width: {IMG_ICON_CONTACT_ICQ_WIDTH}px; height: {IMG_ICON_CONTACT_ICQ_HEIGHT}px; }
|
||||
ul.profile-icons li.jabber-icon { width: {IMG_ICON_CONTACT_JABBER_WIDTH}px; height: {IMG_ICON_CONTACT_JABBER_HEIGHT}px; }
|
||||
ul.profile-icons li.pm-icon { width: {IMG_ICON_CONTACT_PM_WIDTH}px; height: {IMG_ICON_CONTACT_PM_HEIGHT}px; }
|
||||
ul.profile-icons li.quote-icon { width: {IMG_ICON_POST_QUOTE_WIDTH}px; height: {IMG_ICON_POST_QUOTE_HEIGHT}px; }
|
||||
ul.profile-icons li.report-icon { width: {IMG_ICON_POST_REPORT_WIDTH}px; height: {IMG_ICON_POST_REPORT_HEIGHT}px; }
|
||||
ul.profile-icons li.edit-icon { width: {IMG_ICON_POST_EDIT_WIDTH}px; height: {IMG_ICON_POST_EDIT_HEIGHT}px; }
|
||||
ul.profile-icons li.delete-icon { width: {IMG_ICON_POST_DELETE_WIDTH}px; height: {IMG_ICON_POST_DELETE_HEIGHT}px; }
|
||||
ul.profile-icons li.info-icon { width: {IMG_ICON_POST_INFO_WIDTH}px; height: {IMG_ICON_POST_INFO_HEIGHT}px; }
|
||||
ul.profile-icons li.warn-icon { width: {IMG_ICON_USER_WARN_WIDTH}px; height: {IMG_ICON_USER_WARN_HEIGHT}px; }
|
||||
ul.profile-icons li.email-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.aim-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.yahoo-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.web-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.msnm-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.icq-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.jabber-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.pm-icon { width: 28px; height: 20px; }
|
||||
ul.profile-icons li.quote-icon { width: 54px; height: 20px; }
|
||||
ul.profile-icons li.report-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.edit-icon { width: 42px; height: 20px; }
|
||||
ul.profile-icons li.delete-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.info-icon { width: 20px; height: 20px; }
|
||||
ul.profile-icons li.warn-icon { width: 20px; height: 20px; }
|
||||
|
||||
/* Fix profile icon default margins */
|
||||
ul.profile-icons li.edit-icon { margin: 0 0 0 3px; }
|
||||
|
|
|
@ -49,7 +49,7 @@ hr.dashed {
|
|||
---------------------------------------- */
|
||||
.headerbar {
|
||||
background-color: #12A3EB;
|
||||
background-image: url("{T_THEME_PATH}/images/bg_header.gif");
|
||||
background-image: url("./images/bg_header.gif");
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
@ -59,12 +59,12 @@ hr.dashed {
|
|||
|
||||
.forabg {
|
||||
background-color: #0076b1;
|
||||
background-image: url("{T_THEME_PATH}/images/bg_list.gif");
|
||||
background-image: url("./images/bg_list.gif");
|
||||
}
|
||||
|
||||
.forumbg {
|
||||
background-color: #12A3EB;
|
||||
background-image: url("{T_THEME_PATH}/images/bg_header.gif");
|
||||
background-image: url("./images/bg_header.gif");
|
||||
}
|
||||
|
||||
.panel {
|
||||
|
@ -93,19 +93,19 @@ hr.dashed {
|
|||
}
|
||||
|
||||
span.corners-top {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_left.png");
|
||||
background-image: url("./images/corners_left.png");
|
||||
}
|
||||
|
||||
span.corners-top span {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_right.png");
|
||||
background-image: url("./images/corners_right.png");
|
||||
}
|
||||
|
||||
span.corners-bottom {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_left.png");
|
||||
background-image: url("./images/corners_left.png");
|
||||
}
|
||||
|
||||
span.corners-bottom span {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_right.png");
|
||||
background-image: url("./images/corners_right.png");
|
||||
}
|
||||
|
||||
/* Horizontal lists
|
||||
|
@ -191,7 +191,7 @@ dl.details dd {
|
|||
|
||||
/* Pagination in viewforum for multipage topics */
|
||||
.row .pagination {
|
||||
background-image: url("{T_THEME_PATH}/images/icon_pages.gif");
|
||||
background-image: url("./images/icon_pages.gif");
|
||||
}
|
||||
|
||||
.row .pagination span a, li.pagination span a {
|
||||
|
@ -338,18 +338,18 @@ a.topictitle:active {
|
|||
|
||||
/* Back to top of page */
|
||||
a.top {
|
||||
background-image: url("{IMG_ICON_BACK_TOP_SRC}");
|
||||
background-image: url("./images/icon_back_top.gif");
|
||||
}
|
||||
|
||||
a.top2 {
|
||||
background-image: url("{IMG_ICON_BACK_TOP_SRC}");
|
||||
background-image: url("./images/icon_back_top.gif");
|
||||
}
|
||||
|
||||
/* Arrow links */
|
||||
a.up { background-image: url("{T_THEME_PATH}/images/arrow_up.gif") }
|
||||
a.down { background-image: url("{T_THEME_PATH}/images/arrow_down.gif") }
|
||||
a.left { background-image: url("{T_THEME_PATH}/images/arrow_left.gif") }
|
||||
a.right { background-image: url("{T_THEME_PATH}/images/arrow_right.gif") }
|
||||
a.up { background-image: url("./images/arrow_up.gif") }
|
||||
a.down { background-image: url("./images/arrow_down.gif") }
|
||||
a.left { background-image: url("./images/arrow_left.gif") }
|
||||
a.right { background-image: url("./images/arrow_right.gif") }
|
||||
|
||||
a.up:hover {
|
||||
background-color: transparent;
|
||||
|
@ -371,7 +371,7 @@ Colours and backgrounds for content.css
|
|||
|
||||
ul.forums {
|
||||
background-color: #eef5f9;
|
||||
background-image: url("{T_THEME_PATH}/images/gradient.gif");
|
||||
background-image: url("./images/gradient.gif");
|
||||
}
|
||||
|
||||
ul.topiclist li {
|
||||
|
@ -388,11 +388,11 @@ ul.topiclist dd {
|
|||
}
|
||||
|
||||
ul.topiclist li.row dt a.subforum.read {
|
||||
background-image: url("{IMG_SUBFORUM_READ_SRC}");
|
||||
background-image: url("./images/subforum_read.gif");
|
||||
}
|
||||
|
||||
ul.topiclist li.row dt a.subforum.unread {
|
||||
background-image: url("{IMG_SUBFORUM_UNREAD_SRC}");
|
||||
background-image: url("./images/subforum_unread.gif");
|
||||
}
|
||||
|
||||
li.row {
|
||||
|
@ -467,12 +467,12 @@ dl.faq dt {
|
|||
/* Quote block */
|
||||
blockquote {
|
||||
background-color: #EBEADD;
|
||||
background-image: url("{T_THEME_PATH}/images/quote.gif");
|
||||
background-image: url("./images/quote.gif");
|
||||
border-color:#DBDBCE;
|
||||
}
|
||||
|
||||
.rtl blockquote {
|
||||
background-image: url("{T_THEME_PATH}/images/quote_rtl.gif");
|
||||
background-image: url("./images/quote_rtl.gif");
|
||||
}
|
||||
|
||||
blockquote blockquote {
|
||||
|
@ -652,7 +652,7 @@ fieldset.polls dd div {
|
|||
}
|
||||
|
||||
.online {
|
||||
background-image: url("{IMG_ICON_USER_ONLINE_SRC}");
|
||||
background-image: url("./en/icon_user_online.gif");
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -661,107 +661,107 @@ Colours and backgrounds for buttons.css
|
|||
-------------------------------------------------------------- */
|
||||
|
||||
/* Big button images */
|
||||
.reply-icon span { background-image: url("{IMG_BUTTON_TOPIC_REPLY_SRC}"); }
|
||||
.post-icon span { background-image: url("{IMG_BUTTON_TOPIC_NEW_SRC}"); }
|
||||
.locked-icon span { background-image: url("{IMG_BUTTON_TOPIC_LOCKED_SRC}"); }
|
||||
.pmreply-icon span { background-image: url("{IMG_BUTTON_PM_REPLY_SRC}") ;}
|
||||
.newpm-icon span { background-image: url("{IMG_BUTTON_PM_NEW_SRC}") ;}
|
||||
.forwardpm-icon span { background-image: url("{IMG_BUTTON_PM_FORWARD_SRC}") ;}
|
||||
.reply-icon span { background-image: url("./en/button_topic_reply.gif"); }
|
||||
.post-icon span { background-image: url("./en/button_topic_new.gif"); }
|
||||
.locked-icon span { background-image: url("./en/button_topic_locked.gif"); }
|
||||
.pmreply-icon span { background-image: url("./en/button_pm_reply.gif") ;}
|
||||
.newpm-icon span { background-image: url("./en/button_pm_new.gif") ;}
|
||||
.forwardpm-icon span { background-image: url("./en/button_pm_forward.gif") ;}
|
||||
|
||||
a.print {
|
||||
background-image: url("{T_THEME_PATH}/images/icon_print.gif");
|
||||
background-image: url("./images/icon_print.gif");
|
||||
}
|
||||
|
||||
a.sendemail {
|
||||
background-image: url("{T_THEME_PATH}/images/icon_sendemail.gif");
|
||||
background-image: url("./images/icon_sendemail.gif");
|
||||
}
|
||||
|
||||
/* Icon images
|
||||
---------------------------------------- */
|
||||
.sitehome { background-image: url("{T_THEME_PATH}/images/icon_home.gif"); }
|
||||
.icon-faq { background-image: url("{T_THEME_PATH}/images/icon_faq.gif"); }
|
||||
.icon-members { background-image: url("{T_THEME_PATH}/images/icon_members.gif"); }
|
||||
.icon-home { background-image: url("{T_THEME_PATH}/images/icon_home.gif"); }
|
||||
.icon-ucp { background-image: url("{T_THEME_PATH}/images/icon_ucp.gif"); }
|
||||
.icon-register { background-image: url("{T_THEME_PATH}/images/icon_register.gif"); }
|
||||
.icon-logout { background-image: url("{T_THEME_PATH}/images/icon_logout.gif"); }
|
||||
.icon-bookmark { background-image: url("{T_THEME_PATH}/images/icon_bookmark.gif"); }
|
||||
.icon-bump { background-image: url("{T_THEME_PATH}/images/icon_bump.gif"); }
|
||||
.icon-subscribe { background-image: url("{T_THEME_PATH}/images/icon_subscribe.gif"); }
|
||||
.icon-unsubscribe { background-image: url("{T_THEME_PATH}/images/icon_unsubscribe.gif"); }
|
||||
.icon-pages { background-image: url("{T_THEME_PATH}/images/icon_pages.gif"); }
|
||||
.icon-search { background-image: url("{T_THEME_PATH}/images/icon_search.gif"); }
|
||||
.sitehome { background-image: url("./images/icon_home.gif"); }
|
||||
.icon-faq { background-image: url("./images/icon_faq.gif"); }
|
||||
.icon-members { background-image: url("./images/icon_members.gif"); }
|
||||
.icon-home { background-image: url("./images/icon_home.gif"); }
|
||||
.icon-ucp { background-image: url("./images/icon_ucp.gif"); }
|
||||
.icon-register { background-image: url("./images/icon_register.gif"); }
|
||||
.icon-logout { background-image: url("./images/icon_logout.gif"); }
|
||||
.icon-bookmark { background-image: url("./images/icon_bookmark.gif"); }
|
||||
.icon-bump { background-image: url("./images/icon_bump.gif"); }
|
||||
.icon-subscribe { background-image: url("./images/icon_subscribe.gif"); }
|
||||
.icon-unsubscribe { background-image: url("./images/icon_unsubscribe.gif"); }
|
||||
.icon-pages { background-image: url("./images/icon_pages.gif"); }
|
||||
.icon-search { background-image: url("./images/icon_search.gif"); }
|
||||
|
||||
/* Profile & navigation icons */
|
||||
.email-icon, .email-icon a { background-image: url("{IMG_ICON_CONTACT_EMAIL_SRC}"); }
|
||||
.aim-icon, .aim-icon a { background-image: url("{IMG_ICON_CONTACT_AIM_SRC}"); }
|
||||
.yahoo-icon, .yahoo-icon a { background-image: url("{IMG_ICON_CONTACT_YAHOO_SRC}"); }
|
||||
.web-icon, .web-icon a { background-image: url("{IMG_ICON_CONTACT_WWW_SRC}"); }
|
||||
.msnm-icon, .msnm-icon a { background-image: url("{IMG_ICON_CONTACT_MSNM_SRC}"); }
|
||||
.icq-icon, .icq-icon a { background-image: url("{IMG_ICON_CONTACT_ICQ_SRC}"); }
|
||||
.jabber-icon, .jabber-icon a { background-image: url("{IMG_ICON_CONTACT_JABBER_SRC}"); }
|
||||
.pm-icon, .pm-icon a { background-image: url("{IMG_ICON_CONTACT_PM_SRC}"); }
|
||||
.quote-icon, .quote-icon a { background-image: url("{IMG_ICON_POST_QUOTE_SRC}"); }
|
||||
.email-icon, .email-icon a { background-image: url("./images/icon_contact_email.gif"); }
|
||||
.aim-icon, .aim-icon a { background-image: url("./images/icon_contact_aim.gif"); }
|
||||
.yahoo-icon, .yahoo-icon a { background-image: url("./images/icon_contact_yahoo.gif"); }
|
||||
.web-icon, .web-icon a { background-image: url("./images/icon_contact_www.gif"); }
|
||||
.msnm-icon, .msnm-icon a { background-image: url("./images/icon_contact_msnm.gif"); }
|
||||
.icq-icon, .icq-icon a { background-image: url("./images/icon_contact_icq.gif"); }
|
||||
.jabber-icon, .jabber-icon a { background-image: url("./images/icon_contact_jabber.gif"); }
|
||||
.pm-icon, .pm-icon a { background-image: url("./en/icon_contact_pm.gif"); }
|
||||
.quote-icon, .quote-icon a { background-image: url("./en/icon_post_quote.gif"); }
|
||||
|
||||
/* Moderator icons */
|
||||
.report-icon, .report-icon a { background-image: url("{IMG_ICON_POST_REPORT_SRC}"); }
|
||||
.edit-icon, .edit-icon a { background-image: url("{IMG_ICON_POST_EDIT_SRC}"); }
|
||||
.delete-icon, .delete-icon a { background-image: url("{IMG_ICON_POST_DELETE_SRC}"); }
|
||||
.info-icon, .info-icon a { background-image: url("{IMG_ICON_POST_INFO_SRC}"); }
|
||||
.warn-icon, .warn-icon a { background-image: url("{IMG_ICON_USER_WARN_SRC}"); } /* Need updated warn icon */
|
||||
.report-icon, .report-icon a { background-image: url("./images/icon_post_report.gif"); }
|
||||
.edit-icon, .edit-icon a { background-image: url("./en/icon_post_edit.gif"); }
|
||||
.delete-icon, .delete-icon a { background-image: url("./images/icon_post_delete.gif"); }
|
||||
.info-icon, .info-icon a { background-image: url("./images/icon_post_info.gif"); }
|
||||
.warn-icon, .warn-icon a { background-image: url("./images/icon_user_warn.gif"); } /* Need updated warn icon */
|
||||
|
||||
/* Forum icons & Topic icons */
|
||||
.global_read { background-image: url("{IMG_GLOBAL_READ_SRC}"); }
|
||||
.global_read_mine { background-image: url("{IMG_GLOBAL_READ_MINE_SRC}"); }
|
||||
.global_read_locked { background-image: url("{IMG_GLOBAL_READ_LOCKED_SRC}"); }
|
||||
.global_read_locked_mine { background-image: url("{IMG_GLOBAL_READ_LOCKED_MINE_SRC}"); }
|
||||
.global_unread { background-image: url("{IMG_GLOBAL_UNREAD_SRC}"); }
|
||||
.global_unread_mine { background-image: url("{IMG_GLOBAL_UNREAD_MINE_SRC}"); }
|
||||
.global_unread_locked { background-image: url("{IMG_GLOBAL_UNREAD_LOCKED_SRC}"); }
|
||||
.global_unread_locked_mine { background-image: url("{IMG_GLOBAL_UNREAD_LOCKED_MINE_SRC}"); }
|
||||
.global_read { background-image: url("./images/announce_read.gif"); }
|
||||
.global_read_mine { background-image: url("./images/announce_read_mine.gif"); }
|
||||
.global_read_locked { background-image: url("./images/announce_read_locked.gif"); }
|
||||
.global_read_locked_mine { background-image: url("./images/announce_read_locked_mine.gif"); }
|
||||
.global_unread { background-image: url("./images/announce_unread.gif"); }
|
||||
.global_unread_mine { background-image: url("./images/announce_unread_mine.gif"); }
|
||||
.global_unread_locked { background-image: url("./images/announce_unread_locked.gif"); }
|
||||
.global_unread_locked_mine { background-image: url("./images/announce_unread_locked_mine.gif"); }
|
||||
|
||||
.announce_read { background-image: url("{IMG_ANNOUNCE_READ_SRC}"); }
|
||||
.announce_read_mine { background-image: url("{IMG_ANNOUNCE_READ_MINE_SRC}"); }
|
||||
.announce_read_locked { background-image: url("{IMG_ANNOUNCE_READ_LOCKED_SRC}"); }
|
||||
.announce_read_locked_mine { background-image: url("{IMG_ANNOUNCE_READ_LOCKED_MINE_SRC}"); }
|
||||
.announce_unread { background-image: url("{IMG_ANNOUNCE_UNREAD_SRC}"); }
|
||||
.announce_unread_mine { background-image: url("{IMG_ANNOUNCE_UNREAD_MINE_SRC}"); }
|
||||
.announce_unread_locked { background-image: url("{IMG_ANNOUNCE_UNREAD_LOCKED_SRC}"); }
|
||||
.announce_unread_locked_mine { background-image: url("{IMG_ANNOUNCE_UNREAD_LOCKED_MINE_SRC}"); }
|
||||
.announce_read { background-image: url("./images/announce_read.gif"); }
|
||||
.announce_read_mine { background-image: url("./images/announce_read_mine.gif"); }
|
||||
.announce_read_locked { background-image: url("./images/announce_read_locked.gif"); }
|
||||
.announce_read_locked_mine { background-image: url("./images/announce_read_locked_mine.gif"); }
|
||||
.announce_unread { background-image: url("./images/announce_unread.gif"); }
|
||||
.announce_unread_mine { background-image: url("./images/announce_unread_mine.gif"); }
|
||||
.announce_unread_locked { background-image: url("./images/announce_unread_locked.gif"); }
|
||||
.announce_unread_locked_mine { background-image: url("./images/announce_unread_locked_mine.gif"); }
|
||||
|
||||
.forum_link { background-image: url("{IMG_FORUM_LINK_SRC}"); }
|
||||
.forum_read { background-image: url("{IMG_FORUM_READ_SRC}"); }
|
||||
.forum_read_locked { background-image: url("{IMG_FORUM_READ_LOCKED_SRC}"); }
|
||||
.forum_read_subforum { background-image: url("{IMG_FORUM_READ_SUBFORUM_SRC}"); }
|
||||
.forum_unread { background-image: url("{IMG_FORUM_UNREAD_SRC}"); }
|
||||
.forum_unread_locked { background-image: url("{IMG_FORUM_UNREAD_LOCKED_SRC}"); }
|
||||
.forum_unread_subforum { background-image: url("{IMG_FORUM_UNREAD_SUBFORUM_SRC}"); }
|
||||
.forum_link { background-image: url("./images/forum_link.gif"); }
|
||||
.forum_read { background-image: url("./images/forum_read.gif"); }
|
||||
.forum_read_locked { background-image: url("./images/forum_read_locked.gif"); }
|
||||
.forum_read_subforum { background-image: url("./images/forum_read_subforum.gif"); }
|
||||
.forum_unread { background-image: url("./images/forum_unread.gif"); }
|
||||
.forum_unread_locked { background-image: url("./images/forum_unread_locked.gif"); }
|
||||
.forum_unread_subforum { background-image: url("./images/forum_unread_subforum.gif"); }
|
||||
|
||||
.sticky_read { background-image: url("{IMG_STICKY_READ_SRC}"); }
|
||||
.sticky_read_mine { background-image: url("{IMG_STICKY_READ_MINE_SRC}"); }
|
||||
.sticky_read_locked { background-image: url("{IMG_STICKY_READ_LOCKED_SRC}"); }
|
||||
.sticky_read_locked_mine { background-image: url("{IMG_STICKY_READ_LOCKED_MINE_SRC}"); }
|
||||
.sticky_unread { background-image: url("{IMG_STICKY_UNREAD_SRC}"); }
|
||||
.sticky_unread_mine { background-image: url("{IMG_STICKY_UNREAD_MINE_SRC}"); }
|
||||
.sticky_unread_locked { background-image: url("{IMG_STICKY_UNREAD_LOCKED_SRC}"); }
|
||||
.sticky_unread_locked_mine { background-image: url("{IMG_STICKY_UNREAD_LOCKED_MINE_SRC}"); }
|
||||
.sticky_read { background-image: url("./images/sticky_read.gif"); }
|
||||
.sticky_read_mine { background-image: url("./images/sticky_read_mine.gif"); }
|
||||
.sticky_read_locked { background-image: url("./images/sticky_read_locked.gif"); }
|
||||
.sticky_read_locked_mine { background-image: url("./images/sticky_read_locked_mine.gif"); }
|
||||
.sticky_unread { background-image: url("./images/sticky_unread.gif"); }
|
||||
.sticky_unread_mine { background-image: url("./images/sticky_unread_mine.gif"); }
|
||||
.sticky_unread_locked { background-image: url("./images/sticky_unread_locked.gif"); }
|
||||
.sticky_unread_locked_mine { background-image: url("./images/sticky_unread_locked_mine.gif"); }
|
||||
|
||||
.topic_moved { background-image: url("{IMG_TOPIC_MOVED_SRC}"); }
|
||||
.topic_read { background-image: url("{IMG_TOPIC_READ_SRC}"); }
|
||||
.topic_read_mine { background-image: url("{IMG_TOPIC_READ_MINE_SRC}"); }
|
||||
.topic_read_hot { background-image: url("{IMG_TOPIC_READ_HOT_SRC}"); }
|
||||
.topic_read_hot_mine { background-image: url("{IMG_TOPIC_READ_HOT_MINE_SRC}"); }
|
||||
.topic_read_locked { background-image: url("{IMG_TOPIC_READ_LOCKED_SRC}"); }
|
||||
.topic_read_locked_mine { background-image: url("{IMG_TOPIC_READ_LOCKED_MINE_SRC}"); }
|
||||
.topic_unread { background-image: url("{IMG_TOPIC_UNREAD_SRC}"); }
|
||||
.topic_unread_mine { background-image: url("{IMG_TOPIC_UNREAD_MINE_SRC}"); }
|
||||
.topic_unread_hot { background-image: url("{IMG_TOPIC_UNREAD_HOT_SRC}"); }
|
||||
.topic_unread_hot_mine { background-image: url("{IMG_TOPIC_UNREAD_HOT_MINE_SRC}"); }
|
||||
.topic_unread_locked { background-image: url("{IMG_TOPIC_UNREAD_LOCKED_SRC}"); }
|
||||
.topic_unread_locked_mine { background-image: url("{IMG_TOPIC_UNREAD_LOCKED_MINE_SRC}"); }
|
||||
.topic_moved { background-image: url("./images/topic_moved.gif"); }
|
||||
.topic_read { background-image: url("./images/topic_read.gif"); }
|
||||
.topic_read_mine { background-image: url("./images/topic_read_mine.gif"); }
|
||||
.topic_read_hot { background-image: url("./images/topic_read_hot.gif"); }
|
||||
.topic_read_hot_mine { background-image: url("./images/topic_read_hot_mine.gif"); }
|
||||
.topic_read_locked { background-image: url("./images/topic_read_locked.gif"); }
|
||||
.topic_read_locked_mine { background-image: url("./images/topic_read_locked_mine.gif"); }
|
||||
.topic_unread { background-image: url("./images/topic_unread.gif"); }
|
||||
.topic_unread_mine { background-image: url("./images/topic_unread_mine.gif"); }
|
||||
.topic_unread_hot { background-image: url("./images/topic_unread_hot.gif"); }
|
||||
.topic_unread_hot_mine { background-image: url("./images/topic_unread_hot_mine.gif"); }
|
||||
.topic_unread_locked { background-image: url("./images/topic_unread_locked.gif"); }
|
||||
.topic_unread_locked_mine { background-image: url("./images/topic_unread_locked_mine.gif"); }
|
||||
|
||||
.pm_read { background-image: url("{IMG_TOPIC_READ_SRC}"); }
|
||||
.pm_unread { background-image: url("{IMG_TOPIC_UNREAD_SRC}"); }
|
||||
.pm_read { background-image: url("./images/topic_read.gif"); }
|
||||
.pm_unread { background-image: url("./images/topic_unread.gif"); }
|
||||
|
||||
/*
|
||||
--------------------------------------------------------------
|
||||
|
@ -801,11 +801,11 @@ ul.cplist {
|
|||
/* CP tabbed menu
|
||||
----------------------------------------*/
|
||||
#tabs a {
|
||||
background-image: url("{T_THEME_PATH}/images/bg_tabs1.gif");
|
||||
background-image: url("./images/bg_tabs1.gif");
|
||||
}
|
||||
|
||||
#tabs a span {
|
||||
background-image: url("{T_THEME_PATH}/images/bg_tabs2.gif");
|
||||
background-image: url("./images/bg_tabs2.gif");
|
||||
color: #536482;
|
||||
}
|
||||
|
||||
|
@ -846,11 +846,11 @@ ul.cplist {
|
|||
#navigation a {
|
||||
color: #333;
|
||||
background-color: #B2C2CF;
|
||||
background-image: url("{T_THEME_PATH}/images/bg_menu.gif");
|
||||
background-image: url("./images/bg_menu.gif");
|
||||
}
|
||||
|
||||
.rtl #navigation a {
|
||||
background-image: url("{T_THEME_PATH}/images/bg_menu_rtl.gif");
|
||||
background-image: url("./images/bg_menu_rtl.gif");
|
||||
background-position: 0 100%;
|
||||
}
|
||||
|
||||
|
@ -885,36 +885,36 @@ ul.cplist {
|
|||
}
|
||||
|
||||
#cp-main span.corners-top, #cp-menu span.corners-top {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_left2.gif");
|
||||
background-image: url("./images/corners_left2.gif");
|
||||
}
|
||||
|
||||
#cp-main span.corners-top span, #cp-menu span.corners-top span {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_right2.gif");
|
||||
background-image: url("./images/corners_right2.gif");
|
||||
}
|
||||
|
||||
#cp-main span.corners-bottom, #cp-menu span.corners-bottom {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_left2.gif");
|
||||
background-image: url("./images/corners_left2.gif");
|
||||
}
|
||||
|
||||
#cp-main span.corners-bottom span, #cp-menu span.corners-bottom span {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_right2.gif");
|
||||
background-image: url("./images/corners_right2.gif");
|
||||
}
|
||||
|
||||
/* Topicreview */
|
||||
#cp-main .panel #topicreview span.corners-top, #cp-menu .panel #topicreview span.corners-top {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_left.gif");
|
||||
background-image: url("./images/corners_left.gif");
|
||||
}
|
||||
|
||||
#cp-main .panel #topicreview span.corners-top span, #cp-menu .panel #topicreview span.corners-top span {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_right.gif");
|
||||
background-image: url("./images/corners_right.gif");
|
||||
}
|
||||
|
||||
#cp-main .panel #topicreview span.corners-bottom, #cp-menu .panel #topicreview span.corners-bottom {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_left.gif");
|
||||
background-image: url("./images/corners_left.gif");
|
||||
}
|
||||
|
||||
#cp-main .panel #topicreview span.corners-bottom span, #cp-menu .panel #topicreview span.corners-bottom span {
|
||||
background-image: url("{T_THEME_PATH}/images/corners_right.gif");
|
||||
background-image: url("./images/corners_right.gif");
|
||||
}
|
||||
|
||||
/* Friends list */
|
||||
|
@ -1042,7 +1042,7 @@ fieldset.quick-login input.inputbox {
|
|||
a.button1, input.button1, input.button3, a.button2, input.button2 {
|
||||
color: #000;
|
||||
background-color: #FAFAFA;
|
||||
background-image: url("{T_THEME_PATH}/images/bg_button.gif");
|
||||
background-image: url("./images/bg_button.gif");
|
||||
}
|
||||
|
||||
a.button1, input.button1 {
|
||||
|
@ -1070,7 +1070,7 @@ a.button1:hover, input.button1:hover, a.button2:hover, input.button2:hover, inpu
|
|||
}
|
||||
|
||||
input.search {
|
||||
background-image: url("{T_THEME_PATH}/images/icon_textbox_search.gif");
|
||||
background-image: url("./images/icon_textbox_search.gif");
|
||||
}
|
||||
|
||||
input.disabled {
|
||||
|
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 677 B |
Before Width: | Height: | Size: 853 B After Width: | Height: | Size: 853 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 423 B |
64
phpBB/styles/prosilver/theme/en/stylesheet.css
Normal file
|
@ -0,0 +1,64 @@
|
|||
/* Set big button dimensions */
|
||||
.buttons div.reply-icon { width: 96px; height: 25px; }
|
||||
.buttons div.post-icon { width: 96px; height: 25px; }
|
||||
.buttons div.locked-icon { width: 88px; height: 25px; }
|
||||
.buttons div.pmreply-icon { width: 96px; height: 25px; }
|
||||
.buttons div.newpm-icon { width: 84px; height: 25px; }
|
||||
.buttons div.forwardpm-icon { width: 96px; height: 25px; }
|
||||
|
||||
/* Set profile icon dimensions */
|
||||
ul.profile-icons li.pm-icon { width: 28px; height: 20px; }
|
||||
ul.profile-icons li.quote-icon { width: 54px; height: 20px; }
|
||||
ul.profile-icons li.edit-icon { width: 42px; height: 20px; }
|
||||
|
||||
/* EN Language Pack */
|
||||
.imageset.icon_contact_pm {
|
||||
background-image: url("./icon_contact_pm.gif");
|
||||
padding-left: 28px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.imageset.icon_post_edit {
|
||||
background-image: url("./icon_post_edit.gif");
|
||||
padding-left: 42px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.imageset.icon_post_quote {
|
||||
background-image: url("./icon_post_quote.gif");
|
||||
padding-left: 54px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.imageset.icon_user_online {
|
||||
background-image: url("./icon_user_online.gif");
|
||||
padding-left: 58px;
|
||||
padding-top: 58px;
|
||||
}
|
||||
.imageset.button_pm_forward {
|
||||
background-image: url("./button_pm_forward.gif");
|
||||
padding-left: 96px;
|
||||
padding-top: 25px;
|
||||
}
|
||||
.imageset.button_pm_new {
|
||||
background-image: url("./button_pm_new.gif");
|
||||
padding-left: 84px;
|
||||
padding-top: 25px;
|
||||
}
|
||||
.imageset.button_pm_reply {
|
||||
background-image: url("./button_pm_reply.gif");
|
||||
padding-left: 96px;
|
||||
padding-top: 25px;
|
||||
}
|
||||
.imageset.button_topic_locked {
|
||||
background-image: url("./button_topic_locked.gif");
|
||||
padding-left: 88px;
|
||||
padding-top: 25px;
|
||||
}
|
||||
.imageset.button_topic_new {
|
||||
background-image: url("./button_topic_new.gif");
|
||||
padding-left: 96px;
|
||||
padding-top: 25px;
|
||||
}
|
||||
.imageset.button_topic_reply {
|
||||
background-image: url("./button_topic_reply.gif");
|
||||
padding-left: 96px;
|
||||
padding-top: 25px;
|
||||
}
|
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 754 B |
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 753 B After Width: | Height: | Size: 753 B |
Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 750 B |
Before Width: | Height: | Size: 756 B After Width: | Height: | Size: 756 B |
Before Width: | Height: | Size: 745 B After Width: | Height: | Size: 745 B |
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 791 B After Width: | Height: | Size: 791 B |
Before Width: | Height: | Size: 734 B After Width: | Height: | Size: 734 B |
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 707 B After Width: | Height: | Size: 707 B |
Before Width: | Height: | Size: 751 B After Width: | Height: | Size: 751 B |
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 693 B |
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 677 B |
Before Width: | Height: | Size: 751 B After Width: | Height: | Size: 751 B |
Before Width: | Height: | Size: 204 B After Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 546 B After Width: | Height: | Size: 546 B |
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 562 B After Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 1,014 B After Width: | Height: | Size: 1,014 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 590 B |
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 541 B |
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 528 B After Width: | Height: | Size: 528 B |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 151 B After Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 465 B After Width: | Height: | Size: 465 B |
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 462 B |
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 651 B After Width: | Height: | Size: 651 B |
Before Width: | Height: | Size: 646 B After Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 662 B After Width: | Height: | Size: 662 B |
Before Width: | Height: | Size: 659 B After Width: | Height: | Size: 659 B |
Before Width: | Height: | Size: 648 B After Width: | Height: | Size: 648 B |