summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/main.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/include/main.php b/include/main.php
index 265d20c..286cf4e 100644
--- a/include/main.php
+++ b/include/main.php
@@ -36,19 +36,23 @@
define('RPMPHP_VERSION', '1.0.0-dev');
require 'config.php';
-require 'Smarty/Smarty.class.php';
-$smarty = new Smarty();
+if (!defined('CLIONLY'))
+{
+ require 'Smarty/Smarty.class.php';
+
+ $smarty = new Smarty();
-$smarty->template_dir = 'smarty/templates/rpmphp';
-$smarty->compile_dir = 'smarty/templates_c';
-$smarty->cache_dir = 'smarty/cache';
-$smarty->config_dir = 'smarty/configs';
+ $smarty->template_dir = 'smarty/templates/rpmphp';
+ $smarty->compile_dir = 'smarty/templates_c';
+ $smarty->cache_dir = 'smarty/cache';
+ $smarty->config_dir = 'smarty/configs';
-$ariane[] = array (
- 'url' => './',
- 'text' => 'Reports home'
-);
+ $ariane[] = array (
+ 'url' => './',
+ 'text' => 'Reports home'
+ );
+}
/**
* Manage class autoload