1
0
Fork 0
MySQLDumper/application/views/helpers/GetServerProtocol.php
2011-06-10 21:55:32 +00:00

34 Zeilen
Kein EOL
716 B
PHP

<?php
/**
* This file is part of MySQLDumper released under the GNU/GPL 2 license
* http://www.mysqldumper.net
*
* @package MySQLDumper
* @subpackage View_Helpers
* @version SVN: $Rev$
* @author $Author$
*/
/**
* Get server protocol
*
* @package MySQLDumper
* @subpackage View_Helpers
*/
class Msd_View_Helper_GetServerProtocol extends Zend_View_Helper_Abstract
{
/**
* Get server protocol
*
* @return string
*/
public function getServerProtocol()
{
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
return 'https://';
} else {
return 'http://';
}
}
}