aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-08-16 13:03:00 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-08-16 13:03:00 +0000
commitda65cd13974a42fe5a551a0b66cb3f3a6db6dcf4 (patch)
tree106c27b96cca8352d32b8b473891f8ef8e9187a0 /phpBB/includes
parent3a2f8753f6439deda28bf5cc2fa3af081e443e91 (diff)
downloadforums-da65cd13974a42fe5a551a0b66cb3f3a6db6dcf4.tar
forums-da65cd13974a42fe5a551a0b66cb3f3a6db6dcf4.tar.gz
forums-da65cd13974a42fe5a551a0b66cb3f3a6db6dcf4.tar.bz2
forums-da65cd13974a42fe5a551a0b66cb3f3a6db6dcf4.tar.xz
forums-da65cd13974a42fe5a551a0b66cb3f3a6db6dcf4.zip
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
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_template.php50
1 files changed, 3 insertions, 47 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php
index 436c8692b4..fef5b76fe1 100644
--- a/phpBB/includes/functions_template.php
+++ b/phpBB/includes/functions_template.php
@@ -50,7 +50,7 @@ class template_compile
{
$this->template = &$template;
}
-
+
/**
* Load template source from file
* @access private
@@ -72,7 +72,7 @@ class template_compile
if ($store_in_db)
{
global $db, $user;
-
+
$sql_ary = array(
'template_id' => $this->template->files_template[$handle],
'template_filename' => $this->template->filename[$handle],
@@ -80,7 +80,7 @@ class template_compile
'template_mtime' => time(),
'template_data' => trim(@file_get_contents($this->template->files[$handle])),
);
-
+
$sql = 'INSERT INTO ' . STYLES_TEMPLATE_DATA_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
$db->sql_query($sql);
}
@@ -518,50 +518,6 @@ class template_compile
else if (!empty($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;