public function smarty_filter_post_token($tpl_source, Smarty_Internal_template $template) { return addTokenToPost($tpl_source); }
$html = $page->asHTMLFirstPart(); if (!empty($html)) { echo addTokenToPost($html); // if(!$fast_settings){ // flush(); // } } } $html = $page->asHTMLSecondPart(); if (!empty($html)) { echo addTokenToPost($html); // if(!$fast_settings){ // flush(); // } } echo addTokenToPost($page->asHTML()); } //if(!$fast_settings){ // flush(); //} unset($page); } /*********** SAVE DATETIME OF LAST ACTIVITY ***********/ if ($current_user->isUser() and !$current_user->isRoot()) { $current_user->updateLastLogin(); if ($current_user->getMailSendNextLock() || $current_user->getMailSendBeforeLock()) { // reset inactivity by login $current_user->resetInactivity(); } if ($environment->inProjectRoom() or $environment->inCommunityRoom()) { if (!isset($portal_user) or empty($portal_user)) {