Exemplo n.º 1
0
 /**
  * Class constructor
  *
  * @param   boolean  $exceptions  PHPMailer should throw external exceptions? [Optional]
  */
 public function __construct($exceptions = TRUE)
 {
     require_once Kohana::find_file('vendor/PHPMailer', 'PHPMailerAutoload');
     // Create phpmailer object
     $this->_mail = new PHPMailer($exceptions);
     // Set some defaults
     $this->_mail->setFrom(Config::get('site.site_email', '*****@*****.**'), Template::getSiteName());
     $this->_mail->WordWrap = 70;
     $this->_mail->CharSet = Kohana::$charset;
     $this->_mail->XMailer = Gleez::getVersion(FALSE, TRUE);
     $this->_mail->setLanguage(I18n::$lang);
     $this->_mail->Debugoutput = 'error_log';
 }
Exemplo n.º 2
0
 /**
  * Set the default server headers
  */
 protected function _set_default_server_headers()
 {
     $headers = $this->_config->get('headers', array());
     $headers['X-Gleez-Version'] = Gleez::getVersion(TRUE, TRUE) . ' (' . Gleez::CODENAME . ')';
     $xmlrpc = $this->_config->get('xmlrpc', NULL);
     if (!is_null($xmlrpc)) {
         $headers['X-Pingback'] = URL::site($xmlrpc, TRUE);
     }
     $this->_set_server_headers($headers);
 }
Exemplo n.º 3
0
    ?>
</p>
			<?php 
} else {
    ?>
				&nbsp;
			<?php 
}
?>
			</div>
			<div class="span-12 last right">
				<p><?php 
_e('Powered by :gleez', array(':gleez' => HTML::anchor('http://gleezcms.org/', 'Gleez CMS')));
?>
&nbsp;<?php 
echo Gleez::getVersion();
?>
</p>
			</div>
		</div>
	</div>

<?php 
if (Kohana::$environment === Kohana::PRODUCTION) {
    ?>
<script type="text/javascript">
//<![CDATA[
(function() {
	var links = document.getElementsByTagName('a');
	var query = '?';
	for(var i = 0; i < links.length; i++) {
Exemplo n.º 4
0
 /**
  * Get feed generator title and version
  *
  * @return  string
  *
  * @uses    Gleez::getVersion
  */
 public static function getGenerator()
 {
     return Gleez::getVersion(TRUE, TRUE) . ' ' . '(http://gleezcms.org)';
 }