Commit a20d5a84 authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Remove old smarty setup from imported code

parent 97adee08
......@@ -80,45 +80,6 @@ $skynet_AJAX_jqueryui_theme = 'smoothness';
// skynet homepage
$skynet_homepage = 'http://phptodo.godshell.com';
// If there is a smarty instance, set the proper variables
if (defined('usesmarty')) {
// Set up smarty
include($skynet_smarty_dir . 'Smarty.class.php');
$smarty = new Smarty;
// Smarty directories
$smarty->template_dir = "$skynet_http_dir/templates";
$smarty->compile_dir = "$skynet_work_dir/templates_c";
$smarty->cache_dir = "$skynet_work_dir/cache";
$smarty->config_dir = "$skynet_work_dir/config";
// Load whitespace pre-filter for Smarty
$smarty->addPluginsDir($skynet_http_dir . '/libs/');
$smarty->loadFilter("pre", 'whitespace_control');
// Debug
$smarty->debugging = $skynet_debug;
// Assign the stylesheet and favicon to smarty
$smarty->assign('skynet_stylesheet', $skynet_stylesheet);
$smarty->assign('skynet_favicon', $skynet_favicon);
$smarty->assign('skynet_AJAX_jquery_version', $skynet_AJAX_jquery_version);
$smarty->assign('skynet_AJAX_jqueryui_version', $skynet_AJAX_jqueryui_version);
$smarty->assign('skynet_AJAX_jqueryui_theme', $skynet_AJAX_jqueryui_theme);
// Assign the Google API Key if set
if (isset($skynet_Google_APIKey)) {
$smarty->assign('skynet_Google_APIKey', $skynet_Google_APIKey);
}
// Assign the version number to smarty
$smarty->assign('skynet_version', $skynet_version);
// Assign the homepage to smarty
$smarty->assign('skynet_homepage', $skynet_homepage);
}
// Determine the script path
$skynet_serverpath = preg_replace('/' . basename($_SERVER['PHP_SELF']) . '/',
'', $_SERVER['PHP_SELF']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment