Massive upgrade
This commit is contained in:
parent
99a9ed919e
commit
c1a3437f9b
396 changed files with 29083 additions and 31939 deletions
|
@ -4,6 +4,8 @@ If (!defined("in_astat")) {
|
|||
}
|
||||
$session->page_begin("PM Module", FALSE);
|
||||
|
||||
use Smarty\Smarty;
|
||||
|
||||
class ajaxpm extends ajax_module{
|
||||
|
||||
function ajax(){
|
||||
|
@ -11,15 +13,17 @@ class ajaxpm extends ajax_module{
|
|||
if($session->userdata['uid']!=0){
|
||||
$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"]."/");
|
||||
if(isset($config["theme"]) && is_dir($root . '/modules/ajaxpm/templates/'.$config["theme"])){
|
||||
$this->tpl-> template_dir = $root . '/modules/ajaxpm/templates/'.$config["theme"];
|
||||
$this->tpl-> setTemplateDir($root . '/modules/ajaxpm/templates/'.$config["theme"]);
|
||||
}else{
|
||||
$this->tpl-> template_dir = $root . '/modules/ajaxpm/templates/default';
|
||||
$this->tpl-> setTemplateDir($root . '/modules/ajaxpm/templates/default');
|
||||
}
|
||||
$mybb=$cache->read('mybbconfig');
|
||||
$result = $db->query("SELECT `unreadpms` as `count` FROM `" . $mybb["prefix"] . "users` WHERE `uid`='".$session->userdata['fuid']."'");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue