File indexing completed on 2025-05-04 05:29:15

0001 <?php
0002 /**
0003  *  ocs-webserver
0004  *
0005  *  Copyright 2016 by pling GmbH.
0006  *
0007  *    This file is part of ocs-webserver.
0008  *
0009  *    This program is free software: you can redistribute it and/or modify
0010  *    it under the terms of the GNU Affero General Public License as
0011  *    published by the Free Software Foundation, either version 3 of the
0012  *    License, or (at your option) any later version.
0013  *
0014  *    This program is distributed in the hope that it will be useful,
0015  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *    GNU Affero General Public License for more details.
0018  *
0019  *    You should have received a copy of the GNU Affero General Public License
0020  *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021  **/
0022 ?><!doctype html>
0023 <html lang="en">
0024 <head>
0025     <meta charset="utf-8">
0026     <?php echo $this->render('partials/htmlheader.phtml'); ?>
0027 
0028     <link rel="SHORTCUT ICON" href="<?=$this->template['favicon']?>"/>
0029     <meta name="viewport" content="width=device-width, initial-scale=1.0">
0030 
0031       <link rel="stylesheet" type="text/css" href="/theme/flatui/js/lib/tooltipster/dist/css/tooltipster.bundle.min.css" />
0032     <link rel="stylesheet" type="text/css" href="/theme/flatui/js/lib/tooltipster/dist/css/plugins/tooltipster/sideTip/themes/tooltipster-sideTip-light.min.css" />
0033     <link rel="stylesheet" type="text/css" href="/theme/flatui/css/tooltipster-light-customized.css" />
0034     <!-- Loading Bootstrap -->
0035     <link rel="stylesheet" href="/theme/flatui/css/bootstrap/bootstrap.min.css" type="text/css"  crossorigin="anonymous">
0036     <link rel="stylesheet" href="/tools/fancybox2.1.4/jquery.fancybox.css?v=2.1.4" type="text/css" media="screen" />
0037     <link rel="stylesheet" type="text/css" href="/theme/flatui/js/lib/tooltipster/dist/css/tooltipster.bundle.min.css" />
0038     <link rel="stylesheet" type="text/css" href="/theme/flatui/js/lib/tooltipster/dist/css/plugins/tooltipster/sideTip/themes/tooltipster-sideTip-light.min.css" />
0039     <link rel="stylesheet" type="text/css" href="/theme/flatui/css/tooltipster-light-customized.css" />
0040     <!-- custom styles -->
0041     <link href="/theme/flatui/css/style.css" rel="stylesheet">
0042     <link href="/theme/flatui/css/stylesheet.css?<?= APPLICATION_VERSION ?>" rel="stylesheet">
0043     <link href="/theme/flatui/css/explore_index.css" rel="stylesheet">
0044     <link href="/theme/flatui/css/startpage.css" rel="stylesheet">
0045 
0046 
0047 
0048     <link rel="alternate" type="application/rss+xml" title="Latest Products" href="/content.rdf"/>
0049     <link href="/theme/flatui/css/explore_index.css" rel="stylesheet">
0050     <link href="/theme/react/lib/mdl/material.min.css" rel="stylesheet">
0051     <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
0052     <link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500" rel="stylesheet">
0053 
0054     <link href="/theme/react/assets/css/style.css" rel="stylesheet">
0055     <link href="/theme/react/assets/css/metaheader.css" rel="stylesheet">
0056     <script src="/theme/flatui/js/lib/jquery-3.2.1.min.js" ></script>
0057     <script src="/theme/flatui/js/lib/bootstrap.min.js" ></script>
0058     <script type="text/javascript" src="/theme/flatui/js/lib/tooltipster/dist/js/tooltipster.bundle.min.js"></script>
0059     <script src="/theme/flatui/js/lib/moment.min.js"></script>
0060     <script type="text/javascript" src="/tools/fancybox2.1.4/jquery.fancybox.pack.js?v=2.1.4"></script>
0061     <?php /*
0062     <script type="text/javascript" src="/theme/react/lib/react/react.js"></script>
0063     <script type="text/javascript" src="/theme/react/lib/react-dom/react-dom.js"></script>
0064     */?>
0065      <script type="text/javascript" src="/theme/react/lib/react/react.production.min.js"></script>
0066     <script type="text/javascript" src="/theme/react/lib/react-dom/react-dom.production.min.js"></script>
0067     <script type="text/javascript" src="/theme/react/lib/redux/redux.min.js"></script>
0068     <script type="text/javascript" src="/theme/react/lib/redux/react-redux.min.js"></script>
0069     <script type="text/javascript" src="/theme/react/lib/mdl/material.min.js"></script>
0070     <script type="text/javascript" src="/theme/react/lib/timeago/timeago.min.js"></script>
0071     <script type="text/javascript" src="/theme/react/lib/md5/md5.js"></script>
0072     <script src="/theme/flatui/js/script.js?<?= APPLICATION_VERSION ?>"></script>
0073 
0074 </head>
0075 <body id="od-body">
0076 <?php echo $this->render('partials/header/template.phtml'); ?>
0077 <?php echo $this->render('partials/flashMessage.phtml'); ?>
0078 <?php echo $this->layout()->content; ?>
0079 <?php echo $this->render('partials/footer/template.phtml'); ?>
0080 
0081 <div id="modal-dialog" class="modal hide fade" tabindex="-1" role="dialog">
0082     <div class="modal-body"></div>
0083     <div id="error"></div>
0084 </div>
0085 
0086 
0087 
0088 <?php
0089 echo $this->render('partials/propagateLogin.phtml');
0090 echo $this->render('partials/propagateLogout.phtml');
0091 ?>
0092 
0093 <?=$this->inlineScript() ?>
0094 
0095 <script type="text/javascript" src="/theme/react/all.js"></script>
0096 <script src="/theme/react/carousel.js" type="text/javascript"></script>
0097 
0098 <?php if (APPLICATION_ENV != 'development') { ?>
0099     <?php
0100     $googleid ='UA-78422931-1';
0101     $domainconfig = Zend_Registry::isRegistered('store_config') ? Zend_Registry::get('store_config') : null;
0102     if($domainconfig)
0103     {
0104         $googleid = $domainconfig->google_id;
0105     }
0106     ?>
0107     <script>
0108         (function (i, s, o, g, r, a, m) {
0109             i['GoogleAnalyticsObject'] = r;
0110             i[r] = i[r] || function () {
0111                     (i[r].q = i[r].q || []).push(arguments)
0112                 }, i[r].l = 1 * new Date();
0113             a = s.createElement(o),
0114                 m = s.getElementsByTagName(o)[0];
0115             a.async = 1;
0116             a.src = g;
0117             m.parentNode.insertBefore(a, m)
0118         })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
0119 
0120         ga('create', '<?php echo $googleid ?>', 'auto', {'allowLinker': true});
0121         ga('require', 'linker');
0122         ga('linker:autoLink', ['<?php echo $_SERVER["SERVER_NAME"] ?>'] );
0123         ga('send', 'pageview');
0124 
0125     </script>
0126 
0127 
0128     <!-- Piwik -->
0129     <?php
0130     $piwikid ='1';
0131     if($domainconfig)
0132     {
0133         $piwikid = $domainconfig->piwik_id;
0134     }
0135     ?>
0136     <script type="text/javascript">
0137       var _paq = _paq || [];
0138       /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
0139       _paq.push(['trackPageView']);
0140       _paq.push(['enableLinkTracking']);
0141       (function() {
0142         var u="//piwik.opendesktop.org/";
0143         _paq.push(['setTrackerUrl', u+'piwik.php']);
0144         _paq.push(['setSiteId', '<?= $piwikid ?>']);
0145         var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
0146         g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
0147       })();
0148     </script>
0149     <!-- End Piwik Code -->
0150 <?php } ?>
0151 <?php
0152  echo $this->render('partials/profiler.phtml')
0153 ?>
0154 <?php
0155 $session = new Zend_Session_Namespace();
0156 $apiv4 = Zend_Registry::get("config")->settings->server->ip->api->v4;
0157 $apiv6 = Zend_Registry::get("config")->settings->server->ip->api->v6;
0158 if (false == $session->stat_valid) : ?>
0159     <script src="/tools/fpjs2/fp2.compressed.js" ></script>
0160     <script type="text/javascript">OcsStats.readStats('<?php echo $apiv4; ?>','<?php echo $apiv6; ?>');</script>
0161 <?php endif; ?>
0162 </body>
0163 </html>