예제 #1
0
 /**
  * Concat a string that will add all $config["header_js"] and $config[header_css] files.
  *
  * @return string
  */
 function put_headers()
 {
     $str = PHP_EOL;
     $str .= put_headers_css();
     $str .= put_headers_js();
     return $str;
 }
예제 #2
0
<?php

defined('BASEPATH') or exit('No direct script access allowed');
/**
 * @author     Steffen Stollfuß <https://github.com/j0inty>
 * @license    GPL-3
 * @copyright  2015 Steffen Stollfuß
 * @link       https://github.com/j0inty/postfixadmin-ng
 */
?>
</div>
<?php 
echo put_headers_js();
?>
<script type="text/javascript" charset="utf8">
	$(function () {
		$('[data-toggle="tooltip"]').tooltip();
		$('[data-toggle="popover"]').popover();


		$("#pa_ng_logout").on('click', function () {
			$.post(
					$("body").data("base_url") + 'welcome/logout',
					{token: "qrer98u0df7sadfazds79fzas79fz"},
					function (jsonResp)
					{
						if (jsonResp.status === 'redirect')
						{
							window.location.href = jsonResp.data;
							return;
						}