Massive upgrade
This commit is contained in:
parent
99a9ed919e
commit
c1a3437f9b
396 changed files with 29083 additions and 31939 deletions
|
@ -22,19 +22,24 @@
|
|||
*/
|
||||
|
||||
$module["module"]["name"]="AJAX Module Template";
|
||||
$module["module"]["ver"]="0.2";
|
||||
$module["module"]["ver"]="0.3.0";
|
||||
use Smarty\Smarty;
|
||||
|
||||
|
||||
class ajax_module {
|
||||
|
||||
public $uses_default_templates=FALSE;
|
||||
|
||||
function __construct() {
|
||||
global $log,$config,$db,$task,$plugin;
|
||||
$this->tpl= new Smarty();
|
||||
global $log,$config,$tpl,$db,$task,$plugin;
|
||||
$root = $_SERVER['DOCUMENT_ROOT'] . $config["path"];
|
||||
$this->tpl->compile_dir = $root . '/core/template/templates_c';
|
||||
$this->tpl->cache_dir = $root . '/core/template/cache';
|
||||
$this->tpl->config_dir = $root . '/core/template/config';
|
||||
$this->tpl->caching = $config["caching"];
|
||||
$this->tpl= new Smarty();
|
||||
$this->tpl->setCompileDir($root . '/core/template/templates_c');
|
||||
$this->tpl->setCacheDir($root . '/core/template/cache');
|
||||
$this->tpl->setConfigDir($root . '/core/template/config');
|
||||
If($config["caching"]==1){
|
||||
$this->tpl->setCaching(Smarty::CACHING_LIFETIME_SAVED);
|
||||
}
|
||||
$this->tpl->assign("path",$config["path"]."/");
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
*/
|
||||
|
||||
$module["module"]["name"]="Modul Class";
|
||||
$module["module"]["ver"]="0.2";
|
||||
$module["module"]["ver"]="0.3.0";
|
||||
use Smarty\Smarty;
|
||||
|
||||
class module {
|
||||
|
||||
public $uses_default_templates=FALSE;
|
||||
|
@ -37,13 +39,15 @@ class module {
|
|||
|
||||
|
||||
function __construct() {
|
||||
global $log,$config,$db,$task,$plugin;
|
||||
global $log,$config,$db,$tpl,$task,$plugin;
|
||||
$this->tpl= new Smarty();
|
||||
$root = $_SERVER['DOCUMENT_ROOT'] . $config["path"];
|
||||
$this->tpl->compile_dir = $root . '/core/template/templates_c';
|
||||
$this->tpl->cache_dir = $root . '/core/template/cache';
|
||||
$this->tpl->config_dir = $root . '/core/template/config';
|
||||
$this->tpl->caching = $config["caching"];
|
||||
$this->tpl->setCompileDir($root . '/core/template/templates_c');
|
||||
$this->tpl->setCacheDir($root . '/core/template/cache');
|
||||
$this->tpl->setConfigDir($root . '/core/template/config');
|
||||
If($config["caching"]==1){
|
||||
$this->tpl->setCaching(Smarty::CACHING_LIFETIME_SAVED);
|
||||
}
|
||||
$this->tpl->assign("path",$config["path"]."/");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue