mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
only some space/tab changes as well as removing my debug code from the template file. ;)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8761 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3a2f8753f6
commit
da65cd1397
4 changed files with 14 additions and 57 deletions
|
@ -261,11 +261,11 @@
|
||||||
<!-- ELSEIF S_CACHE -->
|
<!-- ELSEIF S_CACHE -->
|
||||||
|
|
||||||
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a>
|
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a>
|
||||||
|
|
||||||
<h1>{L_TEMPLATE_CACHE}</h1>
|
<h1>{L_TEMPLATE_CACHE}</h1>
|
||||||
|
|
||||||
<p>{L_TEMPLATE_CACHE_EXPLAIN}</p>
|
<p>{L_TEMPLATE_CACHE_EXPLAIN}</p>
|
||||||
|
|
||||||
<form name="acp_styles" method="post" action="{U_ACTION}">
|
<form name="acp_styles" method="post" action="{U_ACTION}">
|
||||||
<fieldset class="tabulated">
|
<fieldset class="tabulated">
|
||||||
<legend>{L_TEMPLATE_CACHE}</legend>
|
<legend>{L_TEMPLATE_CACHE}</legend>
|
||||||
|
@ -361,7 +361,7 @@
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- ELSEIF S_FRONTEND -->
|
<!-- ELSEIF S_FRONTEND -->
|
||||||
|
@ -464,7 +464,7 @@
|
||||||
<!-- IF S_SUPERTEMPLATE -->
|
<!-- IF S_SUPERTEMPLATE -->
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="inheriting">{L_INHERITING_FROM}:</label></dt>
|
<dt><label for="inheriting">{L_INHERITING_FROM}:</label></dt>
|
||||||
<dd> <b id="inheriting">{S_SUPERTEMPLATE}</b></dd>
|
<dd><b id="inheriting">{S_SUPERTEMPLATE}</b></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- IF S_STYLE and not S_BASIS -->
|
<!-- IF S_STYLE and not S_BASIS -->
|
||||||
|
@ -513,7 +513,7 @@
|
||||||
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />
|
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />
|
||||||
{S_FORM_TOKEN}
|
{S_FORM_TOKEN}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href="#changelog">Changelog</a>
|
<li><a href="#changelog">Changelog</a>
|
||||||
<ol style="list-style-type: lower-roman;">
|
<ol style="list-style-type: lower-roman;">
|
||||||
|
<li><a href="#v302">Changes since 3.0.2</a></li>
|
||||||
<li><a href="#v301">Changes since 3.0.1</a></li>
|
<li><a href="#v301">Changes since 3.0.1</a></li>
|
||||||
<li><a href="#v300">Changes since 3.0.0</a></li>
|
<li><a href="#v300">Changes since 3.0.0</a></li>
|
||||||
<li><a href="#v30rc8">Changes since RC-8</a></li>
|
<li><a href="#v30rc8">Changes since RC-8</a></li>
|
||||||
|
|
|
@ -50,7 +50,7 @@ class template_compile
|
||||||
{
|
{
|
||||||
$this->template = &$template;
|
$this->template = &$template;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load template source from file
|
* Load template source from file
|
||||||
* @access private
|
* @access private
|
||||||
|
@ -72,7 +72,7 @@ class template_compile
|
||||||
if ($store_in_db)
|
if ($store_in_db)
|
||||||
{
|
{
|
||||||
global $db, $user;
|
global $db, $user;
|
||||||
|
|
||||||
$sql_ary = array(
|
$sql_ary = array(
|
||||||
'template_id' => $this->template->files_template[$handle],
|
'template_id' => $this->template->files_template[$handle],
|
||||||
'template_filename' => $this->template->filename[$handle],
|
'template_filename' => $this->template->filename[$handle],
|
||||||
|
@ -80,7 +80,7 @@ class template_compile
|
||||||
'template_mtime' => time(),
|
'template_mtime' => time(),
|
||||||
'template_data' => trim(@file_get_contents($this->template->files[$handle])),
|
'template_data' => trim(@file_get_contents($this->template->files[$handle])),
|
||||||
);
|
);
|
||||||
|
|
||||||
$sql = 'INSERT INTO ' . STYLES_TEMPLATE_DATA_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
|
$sql = 'INSERT INTO ' . STYLES_TEMPLATE_DATA_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
@ -518,50 +518,6 @@ class template_compile
|
||||||
else if (!empty($token))
|
else if (!empty($token))
|
||||||
{
|
{
|
||||||
$token = '(' . $token . ')';
|
$token = '(' . $token . ')';
|
||||||
/**
|
|
||||||
* If we need to really secure the usage, or force specific types on specific operations... the following would be the code
|
|
||||||
|
|
||||||
if (!isset($tokens[$i - 1]))
|
|
||||||
{
|
|
||||||
unset($tokens[$i]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
$prev_token = trim($tokens[$i - 1]);
|
|
||||||
|
|
||||||
switch ($prev_token)
|
|
||||||
{
|
|
||||||
// Integer
|
|
||||||
case '<':
|
|
||||||
case '>':
|
|
||||||
case '<=':
|
|
||||||
case '>=':
|
|
||||||
case '%':
|
|
||||||
$token = ( ((double) $token) != 0) ? (double) $token : (int) $token;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case '==':
|
|
||||||
case '!=':
|
|
||||||
$int_token = (((double) $token) != 0) ? (double) $token : (int) $token;
|
|
||||||
if ($int_token && $int_token == $token)
|
|
||||||
{
|
|
||||||
$token = $int_token;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// It is a string...
|
|
||||||
$token = '(' . $token . ')';
|
|
||||||
break;
|
|
||||||
|
|
||||||
case '!':
|
|
||||||
case '||':
|
|
||||||
case '&&':
|
|
||||||
default:
|
|
||||||
unset($tokens[$i]);
|
|
||||||
break;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -262,7 +262,7 @@ $lang = array_merge($lang, array(
|
||||||
'HOME' => 'Home',
|
'HOME' => 'Home',
|
||||||
|
|
||||||
'ICQ' => 'ICQ',
|
'ICQ' => 'ICQ',
|
||||||
'ICQ_STATUS' => 'ICQ status',
|
'ICQ_STATUS' => 'ICQ status',
|
||||||
'IF' => 'If',
|
'IF' => 'If',
|
||||||
'IMAGE' => 'Image',
|
'IMAGE' => 'Image',
|
||||||
'IMAGE_FILETYPE_INVALID' => 'Image file type %d for mimetype %s not supported.',
|
'IMAGE_FILETYPE_INVALID' => 'Image file type %d for mimetype %s not supported.',
|
||||||
|
@ -333,7 +333,7 @@ $lang = array_merge($lang, array(
|
||||||
'MODERATORS' => 'Moderators',
|
'MODERATORS' => 'Moderators',
|
||||||
'MONTH' => 'Month',
|
'MONTH' => 'Month',
|
||||||
'MOVE' => 'Move',
|
'MOVE' => 'Move',
|
||||||
'MSNM' => 'MSNM/WLM',
|
'MSNM' => 'MSNM/WLM',
|
||||||
|
|
||||||
'NA' => 'N/A',
|
'NA' => 'N/A',
|
||||||
'NEWEST_USER' => 'Our newest member <strong>%s</strong>',
|
'NEWEST_USER' => 'Our newest member <strong>%s</strong>',
|
||||||
|
@ -500,7 +500,7 @@ $lang = array_merge($lang, array(
|
||||||
'SEARCHING_FORUMS' => 'Searching forums',
|
'SEARCHING_FORUMS' => 'Searching forums',
|
||||||
'SEARCH_ACTIVE_TOPICS' => 'View active topics',
|
'SEARCH_ACTIVE_TOPICS' => 'View active topics',
|
||||||
'SEARCH_FOR' => 'Search for',
|
'SEARCH_FOR' => 'Search for',
|
||||||
'SEARCH_FORUM' => 'Search this forum…',
|
'SEARCH_FORUM' => 'Search this forum…',
|
||||||
'SEARCH_NEW' => 'View new posts',
|
'SEARCH_NEW' => 'View new posts',
|
||||||
'SEARCH_POSTS_BY' => 'Search posts by',
|
'SEARCH_POSTS_BY' => 'Search posts by',
|
||||||
'SEARCH_SELF' => 'View your posts',
|
'SEARCH_SELF' => 'View your posts',
|
||||||
|
@ -674,7 +674,7 @@ $lang = array_merge($lang, array(
|
||||||
'YEAR' => 'Year',
|
'YEAR' => 'Year',
|
||||||
'YEAR_MONTH_DAY' => '(YYYY-MM-DD)',
|
'YEAR_MONTH_DAY' => '(YYYY-MM-DD)',
|
||||||
'YES' => 'Yes',
|
'YES' => 'Yes',
|
||||||
'YIM' => 'YIM',
|
'YIM' => 'YIM',
|
||||||
'YOU_LAST_VISIT' => 'Last visit was: %s',
|
'YOU_LAST_VISIT' => 'Last visit was: %s',
|
||||||
'YOU_NEW_PM' => 'A new private message is waiting for you in your Inbox.',
|
'YOU_NEW_PM' => 'A new private message is waiting for you in your Inbox.',
|
||||||
'YOU_NEW_PMS' => 'New private messages are waiting for you in your Inbox.',
|
'YOU_NEW_PMS' => 'New private messages are waiting for you in your Inbox.',
|
||||||
|
|
Loading…
Add table
Reference in a new issue