protected function actionInit($params) { if (!empty($params['SET_LANGUAGE'])) { \GO::config()->language = $params['SET_LANGUAGE']; } $this->loadInit(); // $this->render('index'); // $view = \GO::view(); $this->view->layout = 'html'; if (!$this->view->findViewFile('Login')) { //for backwards theme compat require \GO::view()->getTheme()->getPath() . 'Layout.php'; } else { if (\GO::user()) { $this->render('Init'); } else { $this->render('LoginHtml'); } } }
/** * Get the full path to the main theme folder with trailing slash. * * @return string */ public function getUrl() { return \GO::view()->getUrl() . 'themes/' . $this->getName() . '/'; }
<?php require \GO::view()->getTheme()->getPath() . 'Layout.php';
<div id="checker-icon"></div> <script type="text/javascript">Ext.get("load-status").update("<?php echo \GO::t('loadingLogin'); ?> ");</script> <script type="text/javascript"> Ext.onReady(GO.mainLayout.login, GO.mainLayout); </script> <?php } if (\GO::user() && !\GO::user()->mute_sound) { ?> <object width="0" height="0" id="alarmSound"> <param name="movie" value="<?php echo \GO::view()->getTheme()->getUrl(); ?> reminder.swf" /> <param name="loop" value="false" /> <param name="autostart" value="false" /> <embed src="<?php echo \GO::view()->getTheme()->getUrl(); ?> reminder.swf" autostart=false loop="false" width="0" height="0" name="alarmSound"></embed> </object> <?php } require \GO::view()->getTheme()->getPath() . 'footer.php';
<?php $favicon = !empty(\GO::config()->favicon) ? \GO::config()->favicon : \GO::view()->getTheme()->getUrl() . "images/groupoffice.ico?"; ?> <link href="<?php echo $favicon; ?> " rel="shortcut icon" type="image/x-icon"> <title><?php echo \GO::config()->title; ?> </title> <?php \GO::view()->addStylesheet(\GO::view()->getPath() . 'ext/resources/css/ext-all.css', \GO::view()->getUrl() . 'ext/resources/css/'); \GO::view()->addStylesheet(\GO::view()->getPath() . 'themes/Group-Office/xtheme-groupoffice.css', \GO::view()->getUrl() . 'themes/Group-Office/'); \GO::view()->addStylesheet(\GO::view()->getPath() . 'themes/Group-Office/style.css', \GO::view()->getUrl() . 'themes/Group-Office/'); \GO::view()->loadModuleStylesheets(); ?> <link href="<?php echo \GO::view()->getCachedStylesheet(); ?> " type="text/css" rel="stylesheet" /> <?php if (!empty(\GO::config()->custom_css_url)) { echo '<link href="' . \GO::config()->custom_css_url . '" type="text/css" rel="stylesheet" />'; } //$this is \GO\Core\Controller\Auth GO::router()->getController()->fireEvent('head'); ?> </head> <body>
<script type="text/javascript"> Ext.BLANK_IMAGE_URL = '<?php echo \GO::config()->host; ?> views/Extjs3/ext/resources/images/default/s.gif'; Ext.state.Manager.setProvider(new GO.state.HttpProvider()); <?php if (isset(\GO::session()->values['security_token'])) { echo 'Ext.Ajax.extraParams={security_token:"' . \GO::session()->values['security_token'] . '"};'; } GO::router()->getController()->fireEvent('inlinescripts'); ?> </script> <?php if (file_exists(\GO::view()->getTheme()->getPath() . 'MainLayout.js')) { echo '<script src="' . \GO::view()->getTheme()->getUrl() . 'MainLayout.js" type="text/javascript"></script>'; echo "\n"; } ?> <script type="text/javascript"> <?php //these parameter are passed by dialog.php. These are used to directly link to //a dialog. if (isset($_REQUEST['f'])) { if (substr($_REQUEST['f'], 0, 9) == '{GOCRYPT}') { $fp = \GO\Base\Util\Crypt::decrypt($_REQUEST['f']); } else { $fp = json_decode(base64_decode($_REQUEST['f']), true); } \GO::debug("External function parameters:"); \GO::debug($fp);