funchat/class_templates/ajax_module.template.php

49 lines
1.5 KiB
PHP
Raw Normal View History

2025-06-02 10:01:12 +02:00
<?php
/**
* (c) 2009 BeCast
* -------------------------------------
* Filename: module.class.php
* Purpose: additional Module Functions
* CVS Header: $Header$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
$module["module"]["name"]="AJAX Module Template";
$module["module"]["ver"]="0.2";
class ajax_module {
public $uses_default_templates=FALSE;
function __construct() {
global $log,$config,$db,$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->assign("path",$config["path"]."/");
}
function __destruct() {
}
function meta() {
}
}
?>