| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/moke/components/com_proforms/includes/ |
Upload File : |
<?php
/**
* @name MOOJ Proforms
* @version 1.0
* @package proforms
* @copyright Copyright (C) 2008-2010 Mad4Media. All rights reserved.
* @author Dipl. Inf.(FH) Fahrettin Kutyol
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Please note that some Javascript files are not under GNU/GPL License.
* These files are under the mad4media license
* They may edited and used infinitely but may not repuplished or redistributed.
* For more information read the header notice of the js files.
**/
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
function init_calendar()
{
$lang =& JFactory::getLanguage();
$lang_code = substr($lang->getTag(),0,2);
// $lang_code = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
$document=& JFactory::getDocument();
$document->addStyleSheet(M4J_FRONTEND_CALENDAR.'calendar-system.css',"text/css","all",array("title"=>"green"));
$document->addScript(M4J_FRONTEND_CALENDAR.'m4j.js');
$document->addScript(M4J_FRONTEND_CALENDAR.'calendar_stripped.js');
if(M4J_FORCE_CALENDAR) $lang_code ="en";
if(file_exists(M4J_JS_CALNEDAR.'lang/calendar-'.$lang_code.'.js')){
$document->addScript(M4J_FRONTEND_CALENDAR.'lang/calendar-'.$lang_code.'.js');
}else{
$document->addScript(M4J_FRONTEND_CALENDAR.'lang/calendar-en.js');
}
}//EOF init_calendar
?>