<?php define('CID', false); require_once '../../../../include.php'; ModuleManager::load_modules(); $lang = Base_LangCommon::get_lang_code(); function filename($lang) { return 'modules/Base/EssClient/tos/' . $lang . '_privacy.html'; } if (!file_exists(filename($lang))) { $lang = 'en'; } $message = file_get_contents(filename($lang)); Utils_FrontPageCommon::display(__('Privacy Policy'), $message);
<?php define('CID', false); require_once '../../../../include.php'; ModuleManager::load_modules(); $lang = Base_LangCommon::get_lang_code(); function filename($lang) { return 'modules/Base/EssClient/tos/' . $lang . '_tos.html'; } if (!file_exists(filename($lang))) { $lang = 'en'; } $message = file_get_contents(filename($lang)); Utils_FrontPageCommon::display(__('Terms of Service'), $message);
case 2: $color = 'red'; $solution = true; break; } $html .= '<span style="font-weight:bold;float:right;margin-right:100px;color:' . $color . '">' . $t['status'] . '</span>'; $html .= '<span style="margin-left:40px;">' . $t['label'] . '</span>'; $html .= '<br>'; } if ($solution) { //$html .= 'Solution available here: <a target="_blank" href="'.$c['solution'].'">'.$c['solution'].'</a>'; //$html .= '<br>'; } $html .= '<br>'; } $html .= '<br><br>'; $html .= '<font size=-2>'; $html .= 'Legend:<br>'; $html .= '<span style="color:#00CC00;">Green</span> - matches EPESI requirements<br>'; $html .= '<span style="color:#CCAA00;">Yellow</span> - shouldn\'t prevent EPESI from running, but it\'s recommended to change the settings<br>'; $html .= '<span style="color:red;">Red</span> - check failed, it\'s necessary to change the settings<br>'; $html .= '</font>'; if ($fullscreen) { if (class_exists('Utils_FrontPageCommon')) { Utils_FrontPageCommon::display('EPESI Compatibility check', $html); } else { print '<div style="width:600px;margin:0 auto;">' . $html . '</div>'; } } else { print $html; }
function error_message($code='') { Utils_FrontPageCommon::display(__( 'Error occured'), __( 'There was an error accessing Google Docs service.').'<br><br>'.__( 'Please contact your administrator.').'<br><br>'.$code); die(); }