* @version * Version 2.50.1, 25.02.2012<br/> * */ if (!isset($moduleManager)) { IPSUtils_Include ('IPSModuleManager.class.php', 'IPSLibrary::install::IPSModuleManager'); echo 'ModuleManager Variable not set --> Create "default" ModuleManager'.PHP_EOL; $moduleManager = new IPSModuleManager('IPSLogger'); } IPSUtils_Include ("IPSInstaller.inc.php", "IPSLibrary::install::IPSInstaller"); $WFC10_ConfigId = $moduleManager->GetConfigValueIntDef('ID', 'WFC10', GetWFCIdDefault()); DeleteWFCItems ($WFC10_ConfigId, 'IPSLogger_Widget'); Unregister_PhpErrorHandler($moduleManager); // ------------------------------------------------------------------------------------------------ function Unregister_PhpErrorHandler($moduleManager) { $file = IPS_GetKernelDir().'scripts\\__autoload.php'; if (!file_exists($file)) { return; } $FileContent = file_get_contents($file); $includeCommand = 'IPSUtils_Include("IPSLogger_PhpErrorHandler.inc.php", "IPSLibrary::app::core::IPSLogger");'; $FileContent = str_replace($includeCommand, '', $FileContent); $moduleManager->LogHandler()->Log('Unregister Php ErrorHandler of IPSLogger in File __autoload.php'); file_put_contents($file, $FileContent);
CreateLinkByDestination('Limits', $SunriseLimits, $categoryId_WebFrontTopRight, 10); CreateLinkByDestination('Zivile Dämmerung', $CivilDisplay, $categoryId_WebFrontTopLeft, 20); CreateLinkByDestination('Limits', $CivilLimits, $categoryId_WebFrontTopRight, 20); CreateLinkByDestination('Nautische Dämmerung', $NauticDisplay, $categoryId_WebFrontTopLeft, 30); CreateLinkByDestination('Limits', $NauticLimits, $categoryId_WebFrontTopRight, 30); CreateLinkByDestination('Astronomische Dämmerung', $AstronomicDisplay, $categoryId_WebFrontTopLeft, 40); CreateLinkByDestination('Limits', $AstronomicLimits, $categoryId_WebFrontTopRight, 40); CreateLinkByDestination("Tag- und Nachtstunden in $Location", $YearMediaId, $categoryId_WebFrontBottom, 10); CreateLinkByDestination('Show Limited', $DisplaySwitchId, $categoryId_WebFrontRight, 10); CreateLinkByDestination('Aktueller Tag', $DayMediaId, $categoryId_WebFrontRight, 20); $UId = date('Hi'); $tabItem = $WFC10_TabPaneItem.$WFC10_TabItem; DeleteWFCItems($WFC10_ConfigId, 'WeatherTPSunrise'); DeleteWFCItems($WFC10_ConfigId, $tabItem); CreateWFCItemTabPane ($WFC10_ConfigId, $WFC10_TabPaneItem, $WFC10_TabPaneParent, $WFC10_TabPaneOrder, $WFC10_TabPaneName, $WFC10_TabPaneIcon); CreateWFCItemSplitPane ($WFC10_ConfigId, $tabItem, $WFC10_TabPaneItem, $WFC10_TabOrder, $WFC10_TabName, $WFC10_TabIcon, 1 /*Vertical*/, 300 /*Width*/, 1 /*Target=Pane2*/, 1/*UsePixel*/, 'true'); CreateWFCItemSplitPane ($WFC10_ConfigId, $tabItem.'_Left', $tabItem, 10, '', '', 0 /*Horicontal*/, 205 /*Height*/, 0 /*Target=Pane1*/, 1 /*UsePixel*/, 'true'); CreateWFCItemCategory ($WFC10_ConfigId, $tabItem.'_Right'.$UId, $tabItem, 20, '', '', $categoryId_WebFrontRight /*BaseId*/, 'false' /*BarBottomVisible*/); CreateWFCItemSplitPane ($WFC10_ConfigId, $tabItem.'_Top', $tabItem.'_Left', 10, '', '', 1 /*Vertical*/, 50 /*Width*/, 0 /*Target=Pane1*/, 0 /*UsePercentage*/, 'true'); CreateWFCItemCategory ($WFC10_ConfigId, $tabItem.'_Bottom'.$UId, $tabItem.'_Left', 20, '', '', $categoryId_WebFrontBottom /*BaseId*/, 'false' /*BarBottomVisible*/); CreateWFCItemCategory ($WFC10_ConfigId, $tabItem.'_TopLeft'.$UId, $tabItem.'_Top', 10, '', '', $categoryId_WebFrontTopLeft /*BaseId*/, 'false' /*BarBottomVisible*/); CreateWFCItemCategory ($WFC10_ConfigId, $tabItem.'_TopRight'.$UId, $tabItem.'_Top', 20, '', '', $categoryId_WebFrontTopRight /*BaseId*/, 'false' /*BarBottomVisible*/); ReloadAllWebFronts(); } // ---------------------------------------------------------------------------------------------------------------------------- // Mobile Installation // ---------------------------------------------------------------------------------------------------------------------------- if ($Mobile_Enabled) {
$Forecast2TextShort = CreateVariable("Tomorrow1ForecastLong", 3 /*String*/, $categoryId_Data, 330, '~String', null, ''); $Forecast2TextLong = CreateVariable("Tomorrow1ForecastShort",3 /*String*/, $categoryId_Data, 340, '~String', null, ''); $Forecast2Icon = CreateVariable("Tomorrow1Icon", 3 /*String*/, $categoryId_Data, 350, '~String', null, ''); $Forecast3DayOfWeek = CreateVariable("Tomorrow2Day", 3 /*String*/, $categoryId_Data, 400, '~String', null, ''); $Forecast3TempMin = CreateVariable("Tomorrow2TempMin", 1 /*Integer*/, $categoryId_Data, 410, null, null, 0); $Forecast3TempMax = CreateVariable("Tomorrow2TempMax", 1 /*Integer*/, $categoryId_Data, 420, null, null, 0); $Forecast3TextShort = CreateVariable("Tomorrow2ForecastLong", 3 /*String*/, $categoryId_Data, 430, '~String', null, ''); $Forecast3TextLong = CreateVariable("Tomorrow2ForecastShort",3 /*String*/, $categoryId_Data, 440, '~String', null, ''); $Forecast3Icon = CreateVariable("Tomorrow2Icon", 3 /*String*/, $categoryId_Data, 450, '~String', null, ''); $iForecast = CreateVariable("iForecast", 3 /*String*/, $categoryId_Data, 1000, '~HTMLBox', null, '<iframe frameborder="0" width="100%" height="4000px" src="../user/Weather/Weather.php"</iframe>'); // Webfront Installation if ($WFC10_Enabled) { DeleteWFCItems($WFC10_ConfigId, $WFC10_TabPaneItem.$WFC10_TabItem); CreateWFCItemTabPane ($WFC10_ConfigId, $WFC10_TabPaneItem, $WFC10_TabPaneParent, $WFC10_TabPaneOrder, $WFC10_TabPaneName, $WFC10_TabPaneIcon); CreateWFCItemExternalPage ($WFC10_ConfigId, $WFC10_TabPaneItem.$WFC10_TabItem, $WFC10_TabPaneItem, $WFC10_TabOrder, $WFC10_TabName, $WFC10_TabIcon, "user\/IPSWeatherForcastAT\/Weather.php", 'false' /*BarBottomVisible*/); ReloadAllWebFronts(); } // iPhone Installation if ($Mobile_Enabled) { $mobileId = CreateCategoryPath($Mobile_Path, $Mobile_PathOrder, $Mobile_PathIcon); $mobileId = CreateCategoryPath($Mobile_Path.'.'.$Mobile_Name, $Mobile_Order, $Mobile_Icon); CreateLink('Vorhersage', $iForecast, $mobileId, 10); } // Execute Data Refresh IPSUtils_Include ("IPSWeatherForcastAT_Refresh.ips.php", "IPSLibrary::app::modules::Weather::IPSWeatherForcastAT");