refactoring away RainTPL and templating, resolves #36

This commit is contained in:
El RIDO
2016-07-19 14:02:26 +02:00
parent b94e019719
commit c5606a47fe
15 changed files with 1369 additions and 2237 deletions

View File

@@ -423,10 +423,8 @@ class privatebin
setcookie('lang', $languageselection);
}
$page = new RainTPL;
$page::$path_replace = false;
// we escape it here because ENT_NOQUOTES can't be used in RainTPL templates
$page->assign('CIPHERDATA', htmlspecialchars($this->_data, ENT_NOQUOTES));
$page = new view;
$page->assign('CIPHERDATA', $this->_data);
$page->assign('ERROR', i18n::_($this->_error));
$page->assign('STATUS', i18n::_($this->_status));
$page->assign('VERSION', self::VERSION);