@@ -14,13 +14,13 @@ discard block |
||
| 14 | 14 | * as the title argument or an two element array - the first element of this array will be |
| 15 | 15 | * the title and the second is a style specification applied to the given menu item |
| 16 | 16 | */ |
| 17 | - public function __construct($menuArray,$visibility = 'all') { |
|
| 17 | + public function __construct($menuArray, $visibility = 'all') { |
|
| 18 | 18 | $this->menu = $menuArray; |
| 19 | 19 | $this->visibility = $visibility; |
| 20 | 20 | } |
| 21 | - public function printMenu($menu = NULL,$id=NULL) { |
|
| 21 | + public function printMenu($menu = NULL, $id = NULL) { |
|
| 22 | 22 | $menu = $menu ?? $this->menu; |
| 23 | - if(count($menu) == 0) { |
|
| 23 | + if (count($menu) == 0) { |
|
| 24 | 24 | return; |
| 25 | 25 | } |
| 26 | 26 | $out = "\n<ul>\n"; |
@@ -30,13 +30,13 @@ discard block |
||
| 30 | 30 | $iD = $menuItem['id'] ?? $id; |
| 31 | 31 | $catInfo = NULL; |
| 32 | 32 | if (!empty($menuItem['catInfo'])) { |
| 33 | - $catInfo = 'javascript:infoCAT("'.$iD.'", "'.$menuItem['catInfo'][0].'","'.$menuItem['catInfo'][1].'")'; |
|
| 33 | + $catInfo = 'javascript:infoCAT("' . $iD . '", "' . $menuItem['catInfo'][0] . '","' . $menuItem['catInfo'][1] . '")'; |
|
| 34 | 34 | } |
| 35 | 35 | $link = $catInfo ?? $menuItem['link'] ?? ''; |
| 36 | - $class = empty($menuItem['class']) ? '' : ' class="'.$menuItem['class'].'"'; |
|
| 37 | - $submenu = $menuItem['submenu'] ?? []; |
|
| 36 | + $class = empty($menuItem['class']) ? '' : ' class="' . $menuItem['class'] . '"'; |
|
| 37 | + $submenu = $menuItem['submenu'] ?? []; |
|
| 38 | 38 | $out .= $this->printMenuItem($menuItem['text'], $link, $class); |
| 39 | - $out .= $this->printMenu($submenu,$iD); |
|
| 39 | + $out .= $this->printMenu($submenu, $iD); |
|
| 40 | 40 | $out .= "</li>\n"; |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | return($out); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - private function printMenuItem($itemText,$itemLink = '',$itemClass = '') { |
|
| 49 | - return "<li><a href='" . $itemLink . "'".$itemClass.'>' . $itemText . "</a>"; |
|
| 48 | + private function printMenuItem($itemText, $itemLink = '', $itemClass = '') { |
|
| 49 | + return "<li><a href='" . $itemLink . "'" . $itemClass . '>' . $itemText . "</a>"; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | private $menu; |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | ?> |
| 19 | 19 | |
| 20 | 20 | <!-- JQuery --> |
| 21 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js") ?>"></script> |
|
| 22 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate-1.2.1.js") ?>"></script> |
|
| 23 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js") ?>"></script> |
|
| 21 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js") ?>"></script> |
|
| 22 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate-1.2.1.js") ?>"></script> |
|
| 23 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js") ?>"></script> |
|
| 24 | 24 | <!-- JQuery --> |
| 25 | 25 | |
| 26 | 26 | <script type="text/javascript"> |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | include("user/js/cat_js.php"); |
| 46 | 46 | ?> |
| 47 | 47 | var loading_ico = new Image(); |
| 48 | - loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>"; |
|
| 48 | + loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>"; |
|
| 49 | 49 | </script> |
| 50 | 50 | <?php $Gui->langObject->setTextDomain("web_user"); ?> |
| 51 | 51 | <!-- DiscoJuice --> |
@@ -53,9 +53,9 @@ discard block |
||
| 53 | 53 | <script type="text/javascript"> |
| 54 | 54 | var lang = "<?php echo($Gui->langObject->getLang()) ?>"; |
| 55 | 55 | </script> |
| 56 | -<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","discojuice/css/discojuice.css")?>" /> |
|
| 56 | +<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "discojuice/css/discojuice.css")?>" /> |
|
| 57 | 57 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> |
| 58 | -<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" /> |
|
| 58 | +<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" /> |
|
| 59 | 59 | </head> |
| 60 | 60 | <body> |
| 61 | 61 | <div id="wrap"> |
@@ -63,14 +63,14 @@ discard block |
||
| 63 | 63 | <?php include "div_heading.php"; ?> |
| 64 | 64 | <div id="main_page"> |
| 65 | 65 | <div id="loading_ico"> |
| 66 | - <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>" alt="Authenticating ..."/> |
|
| 66 | + <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>" alt="Authenticating ..."/> |
|
| 67 | 67 | </div> |
| 68 | 68 | <div id="info_overlay"> <!-- device info --> |
| 69 | 69 | <div id="info_window"></div> |
| 70 | - <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
| 70 | + <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
| 71 | 71 | </div> |
| 72 | 72 | <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu --> |
| 73 | - <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
| 73 | + <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
| 74 | 74 | <div id="main_menu_content"></div> |
| 75 | 75 | </div> |
| 76 | 76 | <div id="main_body"> |
@@ -4,9 +4,9 @@ discard block |
||
| 4 | 4 | $selectedLang = $Gui->langObject->getLang(); |
| 5 | 5 | foreach (CONFIG['LANGUAGES'] as $lang => $value) { |
| 6 | 6 | if ($lang == $selectedLang) { |
| 7 | - $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("'.$lang.'")', 'class'=>'selected-lang']; |
|
| 7 | + $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("' . $lang . '")', 'class'=>'selected-lang']; |
|
| 8 | 8 | } else { |
| 9 | - $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("'.$lang.'")']; |
|
| 9 | + $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("' . $lang . '")']; |
|
| 10 | 10 | } |
| 11 | 11 | } |
| 12 | 12 | |
@@ -18,34 +18,34 @@ discard block |
||
| 18 | 18 | 'text'=>_("Start page"), |
| 19 | 19 | 'visibility' => 'index'], |
| 20 | 20 | ['id'=>'about', |
| 21 | - 'text'=>_("About"),'link'=>'','submenu'=>[ |
|
| 21 | + 'text'=>_("About"), 'link'=>'', 'submenu'=>[ |
|
| 22 | 22 | ['text'=>sprintf(_("About %s"), CONFIG['APPEARANCE']['productname']), |
| 23 | - 'catInfo'=>['about_cat',sprintf(_("About %s"), CONFIG['APPEARANCE']['productname'])]], |
|
| 23 | + 'catInfo'=>['about_cat', sprintf(_("About %s"), CONFIG['APPEARANCE']['productname'])]], |
|
| 24 | 24 | ['text'=>sprintf(_("About %s"), CONFIG['CONSORTIUM']['name']), |
| 25 | 25 | 'link'=>CONFIG['CONSORTIUM']['homepage']], |
| 26 | 26 | ]], |
| 27 | 27 | ['id'=>'lang', |
| 28 | - 'text'=>_("Language"), 'submenu'=>$langsArray,], |
|
| 28 | + 'text'=>_("Language"), 'submenu'=>$langsArray, ], |
|
| 29 | 29 | ['id'=>'help', |
| 30 | 30 | 'text'=>_("Help"), 'submenu'=>[ |
| 31 | - ['text'=>_("My institution is not listed"), 'catInfo'=>['idp_not_listed',_("FAQ")], 'visibility'=>'index'], |
|
| 32 | - ['text'=>_("My device is not listed"), 'catInfo'=>['device_not_listed',_("FAQ")], 'visibility'=>'index'], |
|
| 33 | - ['text'=>_("SB help item"),'visibility'=>'xxx'], |
|
| 34 | - ['text'=>_("What is eduroam"), 'catInfo'=>['what_is_eduroam',_("FAQ")]], |
|
| 35 | - ['text'=>_("FAQ"), 'catInfo'=>['faq',_("FAQ")]], |
|
| 36 | - ['text'=>_("Contact"), 'catInfo'=>['contact',_("FAQ")]], |
|
| 31 | + ['text'=>_("My institution is not listed"), 'catInfo'=>['idp_not_listed', _("FAQ")], 'visibility'=>'index'], |
|
| 32 | + ['text'=>_("My device is not listed"), 'catInfo'=>['device_not_listed', _("FAQ")], 'visibility'=>'index'], |
|
| 33 | + ['text'=>_("SB help item"), 'visibility'=>'xxx'], |
|
| 34 | + ['text'=>_("What is eduroam"), 'catInfo'=>['what_is_eduroam', _("FAQ")]], |
|
| 35 | + ['text'=>_("FAQ"), 'catInfo'=>['faq', _("FAQ")]], |
|
| 36 | + ['text'=>_("Contact"), 'catInfo'=>['contact', _("FAQ")]], |
|
| 37 | 37 | ]], |
| 38 | 38 | ['id'=>'manage', |
| 39 | - 'text'=>_("Manage"),'submenu'=>[ |
|
| 40 | - ['text'=>sprintf(_("%s admin access"),CONFIG['CONSORTIUM']['name']), |
|
| 41 | - 'catInfo'=>['admin',sprintf(_("%s admin:<br>manage your IdP"), CONFIG['CONSORTIUM']['name'])]], |
|
| 39 | + 'text'=>_("Manage"), 'submenu'=>[ |
|
| 40 | + ['text'=>sprintf(_("%s admin access"), CONFIG['CONSORTIUM']['name']), |
|
| 41 | + 'catInfo'=>['admin', sprintf(_("%s admin:<br>manage your IdP"), CONFIG['CONSORTIUM']['name'])]], |
|
| 42 | 42 | ['text'=>_("Become a CAT developer"), |
| 43 | - 'catInfo'=>['develop',_("Become a CAT developer")]], |
|
| 43 | + 'catInfo'=>['develop', _("Become a CAT developer")]], |
|
| 44 | 44 | ['text'=>_("Documentation")], |
| 45 | 45 | ], |
| 46 | 46 | 'visibility' => 'index'], |
| 47 | 47 | ['id'=>'tou', |
| 48 | - 'text'=>_("Terms of use"), 'catInfo'=>['tou','TOU']], |
|
| 48 | + 'text'=>_("Terms of use"), 'catInfo'=>['tou', 'TOU']], |
|
| 49 | 49 | ], |
| 50 | 50 | $visibility |
| 51 | 51 | ); |
@@ -54,11 +54,11 @@ discard block |
||
| 54 | 54 | <div id="heading"> |
| 55 | 55 | <?php |
| 56 | 56 | print '<div id="cat_logo">'; |
| 57 | -print '<img id="logo_img" src="'. $Gui->skinObject->findResourceUrl("IMAGES","consortium_logo.png").'" alt="Consortium Logo"/>'; |
|
| 57 | +print '<img id="logo_img" src="' . $Gui->skinObject->findResourceUrl("IMAGES", "consortium_logo.png") . '" alt="Consortium Logo"/>'; |
|
| 58 | 58 | print '<span>Configuration Assistant Tool</span>'; |
| 59 | 59 | print '</div>'; |
| 60 | -print '<div id="motd">' . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ' ) . '</div> |
|
| 61 | -<img id="hamburger" src="'. $Gui->skinObject->findResourceUrl("IMAGES","icons/menu.png").'" alt="Menu"/>'; |
|
| 60 | +print '<div id="motd">' . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ') . '</div> |
|
| 61 | +<img id="hamburger" src="'. $Gui->skinObject->findResourceUrl("IMAGES", "icons/menu.png") . '" alt="Menu"/>'; |
|
| 62 | 62 | print '<div id="menu_top">'; |
| 63 | 63 | print $menu->printMenu(); |
| 64 | 64 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | <select id='lang' name='lang' onchange='this.form.submit()'>"; |
| 66 | 66 | |
| 67 | 67 | foreach (CONFIG['LANGUAGES'] as $lang => $value) { |
| 68 | - $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "" ) . " >" . $value['display'] . "</option> "; |
|
| 68 | + $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "") . " >" . $value['display'] . "</option> "; |
|
| 69 | 69 | } |
| 70 | 70 | $retval .= "</select>"; |
| 71 | 71 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $retval .= "</form> |
| 78 | 78 | </div><!--langselection-->"; |
| 79 | 79 | |
| 80 | - $logoUrl = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, (strrpos($_SERVER['PHP_SELF'], "admin/") !== FALSE ? strrpos($_SERVER['PHP_SELF'], "admin/") : strrpos($_SERVER['PHP_SELF'], "/")))."/resources/images/consortium_logo.png"; |
|
| 80 | + $logoUrl = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, (strrpos($_SERVER['PHP_SELF'], "admin/") !== FALSE ? strrpos($_SERVER['PHP_SELF'], "admin/") : strrpos($_SERVER['PHP_SELF'], "/"))) . "/resources/images/consortium_logo.png"; |
|
| 81 | 81 | $retval .= "<div class='consortium_logo'> |
| 82 | 82 | <img id='test_locate' src='$logoUrl' alt='Consortium Logo'> |
| 83 | 83 | </div> <!-- consortium_logo --> |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | switch ($area) { |
| 120 | 120 | case "ADMIN-IDP": |
| 121 | 121 | $cap1 = CONFIG['APPEARANCE']['productname_long']; |
| 122 | - $cap2 = sprintf(_("Administrator Interface - Identity Provider"),$this->ui->nomenclature_inst); |
|
| 122 | + $cap2 = sprintf(_("Administrator Interface - Identity Provider"), $this->ui->nomenclature_inst); |
|
| 123 | 123 | $advancedControls = TRUE; |
| 124 | 124 | break; |
| 125 | 125 | case "ADMIN-IDP-USERS": |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | break; |
| 140 | 140 | case "FEDERATION": |
| 141 | 141 | $cap1 = CONFIG['APPEARANCE']['productname_long']; |
| 142 | - $cap2 = sprintf(_("Administrator Interface - %s Management"),$this->ui->nomenclature_fed); |
|
| 142 | + $cap2 = sprintf(_("Administrator Interface - %s Management"), $this->ui->nomenclature_fed); |
|
| 143 | 143 | $advancedControls = TRUE; |
| 144 | 144 | break; |
| 145 | 145 | case "USER": |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | // content from here on will SCROLL instead of being fixed at the top |
| 169 | 169 | $retval .= "<div class='pagecontent'>"; // closes in footer again |
| 170 | 170 | $retval .= "<div class='trick'>"; // closes in footer again |
| 171 | - $retval .= "<div id='secondrow' style='border-bottom:5px solid ".CONFIG['APPEARANCE']['colour1']."; min-height:100px;'> |
|
| 171 | + $retval .= "<div id='secondrow' style='border-bottom:5px solid " . CONFIG['APPEARANCE']['colour1'] . "; min-height:100px;'> |
|
| 172 | 172 | <div id='secondarycaptions' style='display:inline-block; float:left'> |
| 173 | 173 | <h2>$cap2</h2> |
| 174 | 174 | </div><!--secondarycaptions-->"; |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | $cutoffPosition = strrpos($_SERVER['PHP_SELF'], "/"); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | - $cssUrl = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition )."/resources/css/cat.css.php"; |
|
| 216 | + $cssUrl = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition) . "/resources/css/cat.css.php"; |
|
| 217 | 217 | |
| 218 | 218 | $retval .= "<link rel='stylesheet' type='text/css' href='$cssUrl' />"; |
| 219 | 219 | $retval .= "<title>" . htmlspecialchars($pagetitle) . "</title>"; |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | $cutoffPosition = strrpos($_SERVER['PHP_SELF'], "/"); |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | - $logoBase = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition)."/resources/images"; |
|
| 244 | + $logoBase = "//" . $this->validator->hostname($_SERVER['SERVER_NAME']) . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition) . "/resources/images"; |
|
| 245 | 245 | |
| 246 | 246 | return "<span id='logos' style='position:fixed; left:50%;'><img src='$logoBase/dante.png' alt='DANTE' style='height:23px;width:47px'/> |
| 247 | 247 | <img src='$logoBase/eu.png' alt='EU' style='height:23px;width:27px;border-width:0px;'/></span> |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @package ModuleWriting |
| 20 | 20 | */ |
| 21 | 21 | namespace devices\xml; |
| 22 | -require_once(dirname(__FILE__).'/XML.inc.php'); |
|
| 22 | +require_once(dirname(__FILE__) . '/XML.inc.php'); |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * This class implements full functionality of the generic XML device |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $objs = []; |
| 155 | 155 | if ($this->langScope === 'global') { |
| 156 | 156 | foreach ($attributeList['langs'] as $language => $value) { |
| 157 | - $language = ( $language === 'C' ? 'any' : $language ); |
|
| 157 | + $language = ($language === 'C' ? 'any' : $language); |
|
| 158 | 158 | $obj = new $className(); |
| 159 | 159 | $obj->setValue($value); |
| 160 | 160 | $obj->setAttributes(['lang' => $language]); |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | $profileNameLangs = $attr['profile:name']['langs']; |
| 179 | 179 | } |
| 180 | 180 | foreach ($instNameLangs as $language => $value) { |
| 181 | - $language = ( $language === 'C' ? 'any' : $language ); |
|
| 181 | + $language = ($language === 'C' ? 'any' : $language); |
|
| 182 | 182 | $displayname = new DisplayName(); |
| 183 | 183 | if (isset($profileNameLangs)) { |
| 184 | 184 | $langOrC = isset($profileNameLangs[$language]) ? $profileNameLangs[$language] : $profileNameLangs['C']; |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | $clientCertificateObject->setValue(base64_encode($this->clientCert["certdata"])); |
| 352 | 352 | $clientCertificateObject->setAttributes(['format' => 'PKCS12', 'encoding' => 'base64']); |
| 353 | 353 | |
| 354 | - $clientsidecredential->setProperty('ClientCertificate',$clientCertificateObject); |
|
| 354 | + $clientsidecredential->setProperty('ClientCertificate', $clientCertificateObject); |
|
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | $authmethod->setProperty('ClientSideCredential', $clientsidecredential); |
@@ -120,10 +120,10 @@ discard block |
||
| 120 | 120 | !define MUI_HEADERIMAGE_BITMAP "cat_150.bmp" |
| 121 | 121 | !define MUI_COMPONENTSPAGE_SMALLDESC |
| 122 | 122 | |
| 123 | -!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>" |
|
| 124 | -!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi( _("Installation complete"))?>" |
|
| 125 | -!define FAREWELL_TEXT "<?php WindowsCommon::echo_nsi( _("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi( _("Your system is ready."))?>" |
|
| 126 | -!define FAREWELL_FAIL "<?php WindowsCommon::echo_nsi( _("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi( _("Please contact \${SUPPORT}."))?>" |
|
| 123 | +!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>" |
|
| 124 | +!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi(_("Installation complete"))?>" |
|
| 125 | +!define FAREWELL_TEXT "<?php WindowsCommon::echo_nsi(_("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Your system is ready."))?>" |
|
| 126 | +!define FAREWELL_FAIL "<?php WindowsCommon::echo_nsi(_("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Please contact \${SUPPORT}."))?>" |
|
| 127 | 127 | ;-------------------------------- |
| 128 | 128 | ;Languages |
| 129 | 129 | !insertmacro MUI_LANGUAGE "${LANG}" |
@@ -131,14 +131,14 @@ discard block |
||
| 131 | 131 | ;-------------------------------- |
| 132 | 132 | ; License file |
| 133 | 133 | !ifdef LICENSE_FILE |
| 134 | -LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi( _("Accept"))?>" |
|
| 134 | +LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi(_("Accept"))?>" |
|
| 135 | 135 | LicenseText "<?php WindowsCommon::echo_nsi(_("If you accept the conditions then select Accept and then click Install to continue."))?>" |
| 136 | 136 | LicenseData ${LICENSE_FILE} |
| 137 | 137 | !endif |
| 138 | 138 | |
| 139 | 139 | ;----------------------------------- |
| 140 | 140 | |
| 141 | -MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi( _("Finish"))?>" |
|
| 141 | +MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi(_("Finish"))?>" |
|
| 142 | 142 | ;---------------------------------- |
| 143 | 143 | ; FUNCTIONS |
| 144 | 144 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | |
| 172 | 172 | !macro install_ca_cert ca_file ca_fingerprint level |
| 173 | 173 | !insertmacro debug_cat 2 "locating certificate SHA=${ca_fingerprint} Level=${level}" |
| 174 | - DetailPrint "<?php WindowsCommon::echo_nsi( _("searching for certificate"))?> ${ca_file}" |
|
| 174 | + DetailPrint "<?php WindowsCommon::echo_nsi(_("searching for certificate"))?> ${ca_file}" |
|
| 175 | 175 | File "${ca_file}" |
| 176 | 176 | nsArray::Set Delete_files "${ca_file}" |
| 177 | 177 | !insertmacro debug_cat 2 "Testing machine store root" |
@@ -233,13 +233,13 @@ discard block |
||
| 233 | 233 | ${EndIf} |
| 234 | 234 | !insertmacro debug_cat 2 "installing certificate $TEMP\${ca_file}" |
| 235 | 235 | !insertmacro debug_cat 3 "Execute: certutil -addstore -user ${level} $TEMP\${ca_file}" |
| 236 | - DetailPrint "<?php WindowsCommon::echo_nsi( _("installing certificate"))?> ${ca_file}" |
|
| 236 | + DetailPrint "<?php WindowsCommon::echo_nsi(_("installing certificate"))?> ${ca_file}" |
|
| 237 | 237 | nsExec::Exec '"certutil" -addstore -user ${level} $TEMP\${ca_file}' |
| 238 | 238 | Pop $0 |
| 239 | 239 | !insertmacro debug_cat 3 "certutil returned $0" |
| 240 | 240 | ${If} $0 != 0 |
| 241 | 241 | IfSilent +2 |
| 242 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("could not install certificate"))?> ${ca_file}" |
|
| 242 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("could not install certificate"))?> ${ca_file}" |
|
| 243 | 243 | !insertmacro debug_cat 1 "could not install certificate ${ca_file}" |
| 244 | 244 | ${EndIf} |
| 245 | 245 | no_install_${ca_file}: |
@@ -428,26 +428,26 @@ discard block |
||
| 428 | 428 | pop $R0 |
| 429 | 429 | ${If} $tkip_count > 0 |
| 430 | 430 | ${If} $aes_count > 1 |
| 431 | - StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profiles are preferred. Always use them if you have a choice."))?>" |
|
| 431 | + StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profiles are preferred. Always use them if you have a choice."))?>" |
|
| 432 | 432 | ${Else} |
| 433 | - StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profile is preferred. Always use it if you have a choice."))?>" |
|
| 433 | + StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profile is preferred. Always use it if you have a choice."))?>" |
|
| 434 | 434 | ${EndIf} |
| 435 | 435 | ${Else} |
| 436 | 436 | StrCpy $R1 "" |
| 437 | 437 | ${EndIf} |
| 438 | 438 | ${If} $profile_count > 0 |
| 439 | - StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
| 440 | -<?php WindowsCommon::echo_nsi( _("The installer will create the following wireless profiles:"))?>$\r$\n\ |
|
| 439 | + StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
| 440 | +<?php WindowsCommon::echo_nsi(_("The installer will create the following wireless profiles:"))?>$\r$\n\ |
|
| 441 | 441 | $R0.\ |
| 442 | 442 | $R1$\r$\n$\n\ |
| 443 | -<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\ |
|
| 443 | +<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\ |
|
| 444 | 444 | EMAIL: ${SUPPORT}$\r$\n\ |
| 445 | 445 | WWW: ${URL}" |
| 446 | 446 | ${Else} |
| 447 | -StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
| 448 | -<?php WindowsCommon::echo_nsi( _("The installer will create the wireless profile:"))?> $R0.\ |
|
| 447 | +StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\ |
|
| 448 | +<?php WindowsCommon::echo_nsi(_("The installer will create the wireless profile:"))?> $R0.\ |
|
| 449 | 449 | $R1$\r$\n$\n\ |
| 450 | -<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\ |
|
| 450 | +<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\ |
|
| 451 | 451 | EMAIL: ${SUPPORT}$\r$\n\ |
| 452 | 452 | WWW: ${URL}" |
| 453 | 453 | ${EndIf} |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | SendMessage $HEADLINE ${WM_SETFONT} $HEADLINE_FONT 0 |
| 474 | 474 | ;TRANSLATION |
| 475 | 475 | nsDialogs::CreateControl STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 120u 46u -130u -32u "$welcome_message\ |
| 476 | -$\r$\n$\r$\n<?php WindowsCommon::echo_nsi( _("Installer created with software from the GEANT project."))?>" |
|
| 476 | +$\r$\n$\r$\n<?php WindowsCommon::echo_nsi(_("Installer created with software from the GEANT project."))?>" |
|
| 477 | 477 | Pop $TEXT |
| 478 | 478 | |
| 479 | 479 | SetCtlColors $DIALOG "" 0xffffff |
@@ -571,18 +571,18 @@ discard block |
||
| 571 | 571 | ${If} $wireless_result == 1 |
| 572 | 572 | !insertmacro debug_cat 1 "wlan_test.exe did not find wireless configuration service" |
| 573 | 573 | IfSilent +2 |
| 574 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("Windows wireless configuration service is not enabled. The installer cannot continue."))?>" |
|
| 574 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("Windows wireless configuration service is not enabled. The installer cannot continue."))?>" |
|
| 575 | 575 | Call Cleanup |
| 576 | 576 | ${EndIf} |
| 577 | 577 | ${If} $wireless_result == 2 |
| 578 | 578 | IfSilent +2 |
| 579 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("No wireless interfaces found. The installer cannot continue."))?>" |
|
| 579 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("No wireless interfaces found. The installer cannot continue."))?>" |
|
| 580 | 580 | Call Cleanup |
| 581 | 581 | ${EndIf} |
| 582 | 582 | ${Else} |
| 583 | 583 | ${If} $wireless_result > 0 |
| 584 | 584 | IfSilent +3 |
| 585 | - MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi( _("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes |
|
| 585 | + MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi(_("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes |
|
| 586 | 586 | Call Cleanup |
| 587 | 587 | wired_yes: |
| 588 | 588 | Push 1 |
@@ -598,7 +598,7 @@ discard block |
||
| 598 | 598 | ${If} $wired == 1 |
| 599 | 599 | ${If} $force_wired == 0 |
| 600 | 600 | IfSilent wired |
| 601 | - MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi( _("Do you want to enable access on wired interfaces?"))?>" IDYES wired |
|
| 601 | + MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi(_("Do you want to enable access on wired interfaces?"))?>" IDYES wired |
|
| 602 | 602 | Push 0 |
| 603 | 603 | Pop $wired |
| 604 | 604 | ${EndIf} |
@@ -633,7 +633,7 @@ discard block |
||
| 633 | 633 | ;================================ |
| 634 | 634 | |
| 635 | 635 | Function ShowInstfiles |
| 636 | - !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Profiles installation"))?>" " " |
|
| 636 | + !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Profiles installation"))?>" " " |
|
| 637 | 637 | FunctionEnd |
| 638 | 638 | ;================================ |
| 639 | 639 | ; Check if a wireless profile exist and put it on delete list |
@@ -652,7 +652,7 @@ discard block |
||
| 652 | 652 | |
| 653 | 653 | Function FindProfile |
| 654 | 654 | Pop $R8 |
| 655 | - DetailPrint "<?php WindowsCommon::echo_nsi( _("Checking for profile \$R8"))?>" |
|
| 655 | + DetailPrint "<?php WindowsCommon::echo_nsi(_("Checking for profile \$R8"))?>" |
|
| 656 | 656 | !insertmacro debug_cat 2 "Checking for profile $R8" |
| 657 | 657 | !insertmacro debug_cat 3 "Exec: $Netsh wlan show profiles $R8" |
| 658 | 658 | nsExec::Exec '"$Netsh" wlan show profiles "$R8"' |
@@ -660,7 +660,7 @@ discard block |
||
| 660 | 660 | !insertmacro debug_cat 4 "netsh returned $0" |
| 661 | 661 | ${If} $0 == 0 |
| 662 | 662 | !insertmacro debug_cat 1 "found profile $R8" |
| 663 | - DetailPrint "<?php WindowsCommon::echo_nsi( _("found profile \$R8"))?>" |
|
| 663 | + DetailPrint "<?php WindowsCommon::echo_nsi(_("found profile \$R8"))?>" |
|
| 664 | 664 | Push 0 |
| 665 | 665 | ${Else} |
| 666 | 666 | !insertmacro debug_cat 1 "profile $R8 not found" |
@@ -755,7 +755,7 @@ discard block |
||
| 755 | 755 | ${If} $Symantec_installed != 0 |
| 756 | 756 | !insertmacro debug_cat 3 "Symantec problem" |
| 757 | 757 | IfSilent +2 |
| 758 | - MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprint_nsi(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) ?>" |
|
| 758 | + MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprint_nsi(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) ?>" |
|
| 759 | 759 | Exec '"explorer" /select,"$EXEDIR\inst_cat.cmd"' |
| 760 | 760 | Quit |
| 761 | 761 | |
@@ -988,7 +988,7 @@ discard block |
||
| 988 | 988 | Function PFXCertificateSelect |
| 989 | 989 | !ifndef SILVERBULLET |
| 990 | 990 | ;TRANSLATION |
| 991 | -!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>" |
|
| 991 | +!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>" |
|
| 992 | 992 | ;TRANSLATION |
| 993 | 993 | IfSilent +2 |
| 994 | 994 | MessageBox MB_OK "<?php WindowsCommon::echo_nsi(_("Preparing to install personal certificate."))?>$\r$\n<?php WindowsCommon::echo_nsi(_("Click OK to continue"))?> " |
@@ -1004,7 +1004,7 @@ discard block |
||
| 1004 | 1004 | $certPasswordLenght = strlen($certPasswordLabel); |
| 1005 | 1005 | $certUsernameLabel = WindowsCommon::sprint_nsi(_("Username:")); |
| 1006 | 1006 | $certUsernameLength = strlen($certUsernameLabel); |
| 1007 | - $labelLength = max($certPasswordLenght,$certUsernameLength); |
|
| 1007 | + $labelLength = max($certPasswordLenght, $certUsernameLength); |
|
| 1008 | 1008 | ?> |
| 1009 | 1009 | ${NSD_CreateLabel} 0 0 100% 32u "<?php WindowsCommon::echo_nsi(_("Selected file: \$Cert_file"))?>" |
| 1010 | 1010 | !else |
@@ -1021,11 +1021,11 @@ discard block |
||
| 1021 | 1021 | !insertmacro debug_cat 3 "Vista level (Vista without Service pack): $VistaNoSP"; |
| 1022 | 1022 | ${If} $VistaNoSP == 0 |
| 1023 | 1023 | !ifdef PFX_USERNAME |
| 1024 | - !define LABEL_LENGTH "<?php echo($labelLength*3.5)?>u" |
|
| 1025 | - !define TEXT_START "<?php echo($labelLength*3.5 +5)?>u" |
|
| 1024 | + !define LABEL_LENGTH "<?php echo($labelLength * 3.5)?>u" |
|
| 1025 | + !define TEXT_START "<?php echo($labelLength * 3.5 + 5)?>u" |
|
| 1026 | 1026 | !else |
| 1027 | - !define LABEL_LENGTH "<?php echo($certPasswordLenght*3.5)?>u" |
|
| 1028 | - !define TEXT_START "<?php echo($certPasswordLenght*3.5 +5)?>u" |
|
| 1027 | + !define LABEL_LENGTH "<?php echo($certPasswordLenght * 3.5)?>u" |
|
| 1028 | + !define TEXT_START "<?php echo($certPasswordLenght * 3.5 + 5)?>u" |
|
| 1029 | 1029 | !endif |
| 1030 | 1030 | ${NSD_CreateLabel} 0 35u ${LABEL_LENGTH} 12u "<?php echo $certPasswordLabel?>" |
| 1031 | 1031 | ${NSD_CreatePassword} ${TEXT_START} 34.5u 120u 12u "" |
@@ -1212,7 +1212,7 @@ discard block |
||
| 1212 | 1212 | Section "-start" |
| 1213 | 1213 | SectionIn RO |
| 1214 | 1214 | |
| 1215 | -!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Installation"))?>" "<?php WindowsCommon::echo_nsi( _("Checking for existing wireless profiles"))?>" |
|
| 1215 | +!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Installation"))?>" "<?php WindowsCommon::echo_nsi(_("Checking for existing wireless profiles"))?>" |
|
| 1216 | 1216 | !ifndef PWD |
| 1217 | 1217 | !include "certs.nsh" |
| 1218 | 1218 | !endif |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | * @author Zilvinas Vaira |
| 12 | 12 | * |
| 13 | 13 | */ |
| 14 | -class GetTokenEmailDetails extends AbstractAjaxCommand{ |
|
| 14 | +class GetTokenEmailDetails extends AbstractAjaxCommand { |
|
| 15 | 15 | |
| 16 | 16 | const COMMAND = "gettokenemaildetails"; |
| 17 | 17 | const PARAM_TOKENLINK = "tokenlink"; |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * @param string $commandToken |
| 26 | 26 | * @param DefaultContext $context |
| 27 | 27 | */ |
| 28 | - public function __construct($commandToken, $context){ |
|
| 28 | + public function __construct($commandToken, $context) { |
|
| 29 | 29 | parent::__construct($commandToken, $context); |
| 30 | 30 | $this->subject = sprintf(_("Your %s access is ready"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
| 31 | 31 | $this->body = sprintf(_("Hello!\n\nA new %s access credential has been created for you by your network administrator.\n\nPlease follow the following link with the device you want to enable for eduroam to get a custom %s installation program just for you:"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * |
| 38 | 38 | * @return string |
| 39 | 39 | */ |
| 40 | - public function getSubject(){ |
|
| 40 | + public function getSubject() { |
|
| 41 | 41 | return $this->subject; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * @param string $invitationToken |
| 47 | 47 | * @return string |
| 48 | 48 | */ |
| 49 | - public function getBody($invitationToken){ |
|
| 49 | + public function getBody($invitationToken) { |
|
| 50 | 50 | return sprintf($this->body, $invitationToken); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * @see \web\lib\admin\http\AbstractCommand::execute() |
| 57 | 57 | */ |
| 58 | 58 | public function execute() { |
| 59 | - if(isset($_POST[self::PARAM_TOKENLINK])){ |
|
| 59 | + if (isset($_POST[self::PARAM_TOKENLINK])) { |
|
| 60 | 60 | |
| 61 | 61 | $invitationToken = $this->parseString($_POST[self::PARAM_TOKENLINK]); |
| 62 | 62 | |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * @author Zilvinas Vaira |
| 7 | 7 | * |
| 8 | 8 | */ |
| 9 | -class TermsOfUseBox extends AbstractDialogBox{ |
|
| 9 | +class TermsOfUseBox extends AbstractDialogBox { |
|
| 10 | 10 | |
| 11 | 11 | private $command = ''; |
| 12 | 12 | private $parameter = ''; |
@@ -28,28 +28,28 @@ discard block |
||
| 28 | 28 | * {@inheritDoc} |
| 29 | 29 | * @see \web\lib\admin\view\AbstractDialogBox::renderContent() |
| 30 | 30 | */ |
| 31 | - public function renderContent(){ |
|
| 31 | + public function renderContent() { |
|
| 32 | 32 | ?> |
| 33 | 33 | <hr> |
| 34 | 34 | <h2>Product Definition</h2> |
| 35 | - <p><?php echo \core\ProfileSilverbullet::PRODUCTNAME;?> outsources the technical setup of <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] ." ".CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?> functions to the <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'];?> Operations Team. The system includes</p> |
|
| 35 | + <p><?php echo \core\ProfileSilverbullet::PRODUCTNAME; ?> outsources the technical setup of <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] . " " . CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?> functions to the <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']; ?> Operations Team. The system includes</p> |
|
| 36 | 36 | <ul> |
| 37 | 37 | <li>a web-based user management interface where user accounts and access credentials can be created and revoked (there is a limit to the number of active users)</li> |
| 38 | 38 | <li>a technical infrastructure ("CA") which issues and revokes credentials</li> |
| 39 | - <li>a technical infrastructure ("RADIUS") which verifies access credentials and subsequently grants access to <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'];?></li> |
|
| 40 | - <li><span style='color: red;'>TBD: a lookup/notification system which informs you of network abuse complaints by <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'];?> Service Providers that pertain to your users</span></li> |
|
| 39 | + <li>a technical infrastructure ("RADIUS") which verifies access credentials and subsequently grants access to <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']; ?></li> |
|
| 40 | + <li><span style='color: red;'>TBD: a lookup/notification system which informs you of network abuse complaints by <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']; ?> Service Providers that pertain to your users</span></li> |
|
| 41 | 41 | </ul> |
| 42 | 42 | <h2>User Account Liability</h2> |
| 43 | - <p>As an <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] ." ".CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?> administrator using this system, you are authorized to create user accounts according to your local <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] ?> policy. You are fully responsible for the accounts you issue. In particular, you</p> |
|
| 43 | + <p>As an <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'] . " " . CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?> administrator using this system, you are authorized to create user accounts according to your local <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] ?> policy. You are fully responsible for the accounts you issue. In particular, you</p> |
|
| 44 | 44 | <ul> |
| 45 | - <li>only issue accounts to members of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?>, as defined by your local policy.</li> |
|
| 45 | + <li>only issue accounts to members of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?>, as defined by your local policy.</li> |
|
| 46 | 46 | <li>must make sure that all accounts that you issue can be linked by you to actual human end users</li> |
| 47 | - <li>have to immediately revoke accounts of users when they leave or otherwise stop being a member of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?></li> |
|
| 47 | + <li>have to immediately revoke accounts of users when they leave or otherwise stop being a member of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?></li> |
|
| 48 | 48 | <li>will act upon notifications about possible network abuse by your users and will appropriately sanction them</li> |
| 49 | 49 | </ul> |
| 50 | - <p>Failure to comply with these requirements may lead to the deletion of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?> (and all the users you create inside) in this system.</p> |
|
| 50 | + <p>Failure to comply with these requirements may lead to the deletion of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?> (and all the users you create inside) in this system.</p> |
|
| 51 | 51 | <h2>Privacy</h2> |
| 52 | - <p>With <?php echo \core\ProfileSilverbullet::PRODUCTNAME;?>, we are not interested in and strive not to collect any personally identifiable information about the end users you create. To that end,</p> |
|
| 52 | + <p>With <?php echo \core\ProfileSilverbullet::PRODUCTNAME; ?>, we are not interested in and strive not to collect any personally identifiable information about the end users you create. To that end,</p> |
|
| 53 | 53 | <ul> |
| 54 | 54 | <li>the usernames you create in the system are not expected to be human-readable identifiers of actual humans. We encourage you to create usernames like 'hr-user-12' rather than 'Jane Doe, Human Resources Department'. You are the only one who needs to be able to make a link to the human behind the identifiers you create.</li> |
| 55 | 55 | <li>the identifiers in the credentials we create are not linked to the usernames you add to the system; they are pseudonyms.</li> |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * {@inheritDoc} |
| 65 | 65 | * @see \web\lib\admin\view\AbstractDialogBox::renderControls() |
| 66 | 66 | */ |
| 67 | - public function renderControls(){ |
|
| 67 | + public function renderControls() { |
|
| 68 | 68 | ?> |
| 69 | 69 | <div style="position: relative; padding-bottom: 5px;"> |
| 70 | 70 | <input type="checkbox" name="<?php echo $this->parameter; ?>" value="true"> <label>I have read and agree to the terms.</label> |
@@ -10,18 +10,18 @@ discard block |
||
| 10 | 10 | ?> |
| 11 | 11 | <?php |
| 12 | 12 | function escaped_echo($s) { |
| 13 | - echo preg_replace('/"/','"',$s); |
|
| 13 | + echo preg_replace('/"/', '"', $s); |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | $langObject = new \core\common\Language(); |
| 17 | 17 | $langObject->setTextDomain('web_user'); |
| 18 | 18 | $cat = new core\CAT(); |
| 19 | 19 | $idpId = empty($_REQUEST['idp']) ? 0 : $_REQUEST['idp']; |
| 20 | -if (! is_numeric($idpId)) { |
|
| 20 | +if (!is_numeric($idpId)) { |
|
| 21 | 21 | exit; |
| 22 | 22 | } |
| 23 | 23 | $profileId = empty($_REQUEST['profile']) ? 0 : $_REQUEST['profile']; |
| 24 | -if (! is_numeric($profileId)) { |
|
| 24 | +if (!is_numeric($profileId)) { |
|
| 25 | 25 | exit; |
| 26 | 26 | } |
| 27 | 27 | ?> |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | result = j.status; |
| 71 | 71 | if(! result) { |
| 72 | 72 | alert("<?php escaped_echo(_("no matching data found"))?>"); |
| 73 | - document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/').'/'?>'; |
|
| 73 | + document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/'?>'; |
|
| 74 | 74 | } |
| 75 | 75 | j = j.data; |
| 76 | 76 | n = j.length; |
@@ -187,8 +187,8 @@ discard block |
||
| 187 | 187 | j1 = $.parseJSON(data); |
| 188 | 188 | result = j1.status; |
| 189 | 189 | if(! result) { |
| 190 | - alert("<?php escaped_echo( _("no matching data found"))?>"); |
|
| 191 | - document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/').'/'?>'; |
|
| 190 | + alert("<?php escaped_echo(_("no matching data found"))?>"); |
|
| 191 | + document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/'?>'; |
|
| 192 | 192 | } |
| 193 | 193 | j = j1.data; |
| 194 | 194 | if(j.description !== undefined && j.description) { |
@@ -199,15 +199,15 @@ discard block |
||
| 199 | 199 | $("#profile_desc").text(''); |
| 200 | 200 | } |
| 201 | 201 | if(j.local_url !== undefined && j.local_url) |
| 202 | - txt = txt+'<tr><td><?php escaped_echo(_("WWW:"));?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>'; |
|
| 202 | + txt = txt+'<tr><td><?php escaped_echo(_("WWW:")); ?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>'; |
|
| 203 | 203 | if(j.local_email !== undefined && j.local_email) |
| 204 | - txt = txt+'<tr><td><?php escaped_echo(_("email:"));?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>'; |
|
| 204 | + txt = txt+'<tr><td><?php escaped_echo(_("email:")); ?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>'; |
|
| 205 | 205 | if(j.local_phone !== undefined && j.local_phone) |
| 206 | - txt = txt+'<tr><td><?php escaped_echo(_("tel:"));?></td><td>'+j.local_phone+'</td></tr>'; |
|
| 206 | + txt = txt+'<tr><td><?php escaped_echo(_("tel:")); ?></td><td>'+j.local_phone+'</td></tr>'; |
|
| 207 | 207 | if(txt) |
| 208 | - txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"),$cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>'; |
|
| 208 | + txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"), $cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>'; |
|
| 209 | 209 | else |
| 210 | - txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"),$cat->nomenclature_inst)); ?>.</th></tr></table>"; |
|
| 210 | + txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"), $cat->nomenclature_inst)); ?>.</th></tr></table>"; |
|
| 211 | 211 | $("#user_info").html(txt); |
| 212 | 212 | $("#user_info").show(); |
| 213 | 213 | resetDevices(); |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | $("#g_"+v.id).addClass('alertButton'); |
| 221 | 221 | $("#cross_icon_"+v.id).show(); |
| 222 | 222 | $("#"+v.id).addClass('disabledDevice'); |
| 223 | - $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>"); |
|
| 223 | + $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>"); |
|
| 224 | 224 | $("#info_b_"+v.id+",#g_info_b_"+v.id).hide(); |
| 225 | 225 | } else { |
| 226 | 226 | if(v.status == -1) |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | $("#"+v.id+",#g_"+v.id).addClass('additionalInfo'); |
| 233 | 233 | $("#"+v.id+",#g_"+v.id).click(function(event){ |
| 234 | 234 | i_div = $("#info_"+$(this).attr('id')); |
| 235 | - t = "<?php escaped_echo(_("Your site administrator has specified that this device should be configured with resources located on a local page. When you click <b>Continue</b> this page will be opened in a new window/tab."))?>"+"<br><span class='redirect_link'><a href='"+v.redirect+"' target='_blank'><?php escaped_echo(_("Continue"));?></a></span>"; |
|
| 235 | + t = "<?php escaped_echo(_("Your site administrator has specified that this device should be configured with resources located on a local page. When you click <b>Continue</b> this page will be opened in a new window/tab."))?>"+"<br><span class='redirect_link'><a href='"+v.redirect+"' target='_blank'><?php escaped_echo(_("Continue")); ?></a></span>"; |
|
| 236 | 236 | i_div.html(t); |
| 237 | 237 | $(".redirect_link").click(function(event) { |
| 238 | 238 | i_div.hide(); |
@@ -240,13 +240,13 @@ discard block |
||
| 240 | 240 | |
| 241 | 241 | }); |
| 242 | 242 | } else if(v.device_customtext != '0' || v.eap_customtext != '0' || v.message != '0' || v.status > 0) { |
| 243 | - var continue_text = "<?php escaped_echo(_("Continue"));?>"; |
|
| 243 | + var continue_text = "<?php escaped_echo(_("Continue")); ?>"; |
|
| 244 | 244 | $("#"+v.id+",#g_"+v.id).addClass('additionalInfo'); |
| 245 | 245 | $("#"+v.id+",#g_"+v.id).click(function(event){ |
| 246 | 246 | i_div = $("#info_"+$(this).attr('id')); |
| 247 | 247 | if(v.status > 0) { |
| 248 | - t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>"; |
|
| 249 | - continue_text = "<?php escaped_echo(_("Close"));?>"; |
|
| 248 | + t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>"; |
|
| 249 | + continue_text = "<?php escaped_echo(_("Close")); ?>"; |
|
| 250 | 250 | } else { |
| 251 | 251 | t = i_div.html(); |
| 252 | 252 | if(v.message != '0') { |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | function infoCAT(k,subK,title) { |
| 304 | - $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE","user/cat_info.php")?>', {page: k, subpage: subK, lang: lang}, function(data) { |
|
| 304 | + $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/cat_info.php")?>', {page: k, subpage: subK, lang: lang}, function(data) { |
|
| 305 | 305 | if(data.substring(0,8) == 'no_title') { |
| 306 | 306 | data = data.substring(8,data.length); |
| 307 | 307 | } else { |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | $("#loading_ico").css('left',x+'px'); |
| 324 | 324 | $("#loading_ico").attr('src','resources/images/icons/loading9.gif'); |
| 325 | 325 | $("#loading_ico").show(); |
| 326 | - window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE","admin/overview_user.php")?>?lang="+lang); |
|
| 326 | + window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE", "admin/overview_user.php")?>?lang="+lang); |
|
| 327 | 327 | } |
| 328 | 328 | |
| 329 | 329 | |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | return(Math.round(windowWidth/2)); |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | -<?php if($idpId) { |
|
| 348 | +<?php if ($idpId) { |
|
| 349 | 349 | print "front_page = 0;\n"; |
| 350 | 350 | } ?> |
| 351 | 351 | |
@@ -384,10 +384,10 @@ discard block |
||
| 384 | 384 | $("#download_info a").attr('href',download_link); |
| 385 | 385 | $('#download_info').show(); |
| 386 | 386 | if( generateTimer > 0 ) { |
| 387 | - setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link",generateTimer); |
|
| 387 | + setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link",generateTimer); |
|
| 388 | 388 | } |
| 389 | 389 | else { |
| 390 | - document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link; |
|
| 390 | + document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link; |
|
| 391 | 391 | } |
| 392 | 392 | } |
| 393 | 393 | } |
@@ -460,13 +460,13 @@ discard block |
||
| 460 | 460 | "overlay":true,"cookie":true,"type":false, |
| 461 | 461 | "country":true,"location":true, |
| 462 | 462 | "title":"<?php escaped_echo($cat->nomenclature_inst) ?>", |
| 463 | - "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"),$cat->nomenclature_inst)) ?>", |
|
| 464 | - "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"),$cat->nomenclature_inst)) ?>", |
|
| 465 | - "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>", |
|
| 463 | + "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"), $cat->nomenclature_inst)) ?>", |
|
| 464 | + "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"), $cat->nomenclature_inst)) ?>", |
|
| 465 | + "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>", |
|
| 466 | 466 | "textLocateMe": "<?php escaped_echo(_("Locate me more accurately using HTML5 Geo-Location")) ?>", |
| 467 | 467 | "textShowProviders": "<?php escaped_echo(sprintf(_("Show %ss in"), $cat->nomenclature_inst)) ?>", |
| 468 | 468 | "textAllCountries": "<?php escaped_echo(_("all countries")) ?>", |
| 469 | - "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"),$cat->nomenclature_inst)) ?>", |
|
| 469 | + "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"), $cat->nomenclature_inst)) ?>", |
|
| 470 | 470 | "textShowAllCountries": "<?php escaped_echo(_("show all countries")) ?>", |
| 471 | 471 | "textLimited1" : "<?php escaped_echo(_("Results limited to"))?>", |
| 472 | 472 | "textLimited2" : "<?php escaped_echo(_("entries - show more"))?>", |