@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | case "core\User": |
| 127 | 127 | return $this->userName; |
| 128 | 128 | default: |
| 129 | - throw new Exception("Operating on a class where we don't know the relevant identifier in the DB - " . get_class($this) . "!"); |
|
| 129 | + throw new Exception("Operating on a class where we don't know the relevant identifier in the DB - ".get_class($this)."!"); |
|
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * @return array list of row id's of file-based attributes which weren't deleted |
| 163 | 163 | */ |
| 164 | 164 | public function beginFlushAttributes($extracondition = "") { |
| 165 | - $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
| 165 | + $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
| 166 | 166 | $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND option_name NOT LIKE '%_file' $extracondition"); |
| 167 | 167 | $this->updateFreshness(); |
| 168 | 168 | $execFlush = $this->databaseHandle->exec("SELECT row FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier $extracondition"); |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | * @return void |
| 182 | 182 | */ |
| 183 | 183 | public function commitFlushAttributes(array $tobedeleted) { |
| 184 | - $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
| 184 | + $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
| 185 | 185 | foreach (array_keys($tobedeleted) as $row) { |
| 186 | 186 | $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND row = $row"); |
| 187 | 187 | $this->updateFreshness(); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | public function addAttribute($attrName, $attrLang, $attrValue) { |
| 209 | 209 | $relevantId = $this->getRelevantIdentifier(); |
| 210 | 210 | $identifierType = (is_int($relevantId) ? "i" : "s"); |
| 211 | - $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType . "sss", $relevantId, $attrName, $attrLang, $attrValue); |
|
| 211 | + $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType."sss", $relevantId, $attrName, $attrLang, $attrValue); |
|
| 212 | 212 | $this->updateFreshness(); |
| 213 | 213 | } |
| 214 | 214 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | namespace core; |
| 34 | 34 | |
| 35 | -require_once dirname(__DIR__) . "/config/_config.php"; |
|
| 35 | +require_once dirname(__DIR__)."/config/_config.php"; |
|
| 36 | 36 | |
| 37 | 37 | CAT_session_start(); |
| 38 | 38 | |
@@ -105,19 +105,19 @@ discard block |
||
| 105 | 105 | parent::__construct(); |
| 106 | 106 | common\Entity::intoThePotatoes(); |
| 107 | 107 | |
| 108 | - $this->CAT_VERSION_STRING = sprintf(_("Unreleased %s Git Revision"),"<a href='https://github.com/GEANT/CAT/tree/master/Changes.md'>")."</a>"; |
|
| 108 | + $this->CAT_VERSION_STRING = sprintf(_("Unreleased %s Git Revision"), "<a href='https://github.com/GEANT/CAT/tree/master/Changes.md'>")."</a>"; |
|
| 109 | 109 | if (CAT::RELEASE_VERSION) { |
| 110 | - $temp_version = "CAT-" . CAT::VERSION_MAJOR . "." . CAT::VERSION_MINOR; |
|
| 111 | - $branch = "release_" . CAT::VERSION_MAJOR . "_" . CAT::VERSION_MINOR; |
|
| 110 | + $temp_version = "CAT-".CAT::VERSION_MAJOR.".".CAT::VERSION_MINOR; |
|
| 111 | + $branch = "release_".CAT::VERSION_MAJOR."_".CAT::VERSION_MINOR; |
|
| 112 | 112 | if (CAT::VERSION_PATCH != 0) { |
| 113 | - $temp_version .= "." . CAT::VERSION_PATCH; |
|
| 113 | + $temp_version .= ".".CAT::VERSION_PATCH; |
|
| 114 | 114 | } |
| 115 | 115 | if (CAT::VERSION_EXTRA != "") { |
| 116 | - $temp_version .= "-" . CAT::VERSION_EXTRA; |
|
| 116 | + $temp_version .= "-".CAT::VERSION_EXTRA; |
|
| 117 | 117 | } |
| 118 | - $this->CAT_VERSION_STRING = sprintf(_("Release <a href='%s'>%s</a>"), "https://github.com/GEANT/CAT/tree/" . $branch . "/Changes.md", $temp_version); |
|
| 118 | + $this->CAT_VERSION_STRING = sprintf(_("Release <a href='%s'>%s</a>"), "https://github.com/GEANT/CAT/tree/".$branch."/Changes.md", $temp_version); |
|
| 119 | 119 | } |
| 120 | - $this->CAT_COPYRIGHT = CONFIG['APPEARANCE']['productname'] . " - " . $this->CAT_VERSION_STRING . " © " . CAT::COPYRIGHT_MIN_YEAR . "-" . CAT::COPYRIGHT_MAX_YEAR . " " . CAT::COPYRIGHT_HOLDER . "<br/>on behalf of " . CAT::COPYRIGHT_CONSORTIA . "; and others <a href='copyright.php'>Full Copyright and Licenses</a>"; |
|
| 120 | + $this->CAT_COPYRIGHT = CONFIG['APPEARANCE']['productname']." - ".$this->CAT_VERSION_STRING." © ".CAT::COPYRIGHT_MIN_YEAR."-".CAT::COPYRIGHT_MAX_YEAR." ".CAT::COPYRIGHT_HOLDER."<br/>on behalf of ".CAT::COPYRIGHT_CONSORTIA."; and others <a href='copyright.php'>Full Copyright and Licenses</a>"; |
|
| 121 | 121 | |
| 122 | 122 | |
| 123 | 123 | /* Federations are created in DB with bootstrapFederation, and listed via listFederations |
@@ -49,11 +49,11 @@ discard block |
||
| 49 | 49 | $location = $this->Gui->skinObject->findResourceUrl("IMAGES", "consortium_logo.png"); |
| 50 | 50 | if ($location !== FALSE) { |
| 51 | 51 | $retval .= "<div id='cat_logo'> |
| 52 | - <a href='" . CONFIG_CONFASSISTANT['CONSORTIUM']['homepage'] . "'><img id='logo_img' src='$location' alt='Consortium Logo'/></a> |
|
| 52 | + <a href='" . CONFIG_CONFASSISTANT['CONSORTIUM']['homepage']."'><img id='logo_img' src='$location' alt='Consortium Logo'/></a> |
|
| 53 | 53 | <span>Configuration Assistant Tool</span> |
| 54 | 54 | </div>"; |
| 55 | 55 | } |
| 56 | - $retval .= "<div id='motd'>" . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ') . "</div>"; |
|
| 56 | + $retval .= "<div id='motd'>".(isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ')."</div>"; |
|
| 57 | 57 | $loc2 = $this->Gui->skinObject->findResourceUrl("IMAGES", "icons/menu.png"); |
| 58 | 58 | if ($loc2 !== FALSE) { |
| 59 | 59 | $retval .= "<img id='hamburger' src='$loc2' alt='Menu'/>"; |
@@ -71,13 +71,13 @@ discard block |
||
| 71 | 71 | public function divUserWelcome() { |
| 72 | 72 | $retval = " |
| 73 | 73 | <div id='user_welcome'> <!-- this information is shown just before the download --> |
| 74 | - <strong>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PAGEHEADING] . "</strong> |
|
| 74 | + <strong>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PAGEHEADING]."</strong> |
|
| 75 | 75 | <p> |
| 76 | 76 | <span id='download_info'> |
| 77 | 77 | <!-- the empty href is dynamically exchanged with the actual path by jQuery at runtime --> |
| 78 | - " . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_DOWNLOAD] . " |
|
| 78 | + " . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_DOWNLOAD]." |
|
| 79 | 79 | </span> |
| 80 | - <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_HEADING] . " |
|
| 80 | + <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_HEADING]." |
|
| 81 | 81 | <br/> |
| 82 | 82 | <br/>"; |
| 83 | 83 | switch (CONFIG_CONFASSISTANT['CONSORTIUM']['name']) { |
@@ -87,11 +87,11 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | $retval .= " |
| 89 | 89 | </p> |
| 90 | - <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_USAGE] . " |
|
| 91 | - <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PROBLEMS] . " |
|
| 90 | + <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_USAGE]." |
|
| 91 | + <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PROBLEMS]." |
|
| 92 | 92 | </p> |
| 93 | 93 | <p> |
| 94 | - <a href='javascript:back_to_downloads()'><strong>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_BACKTODOWNLOADS] . "</strong></a> |
|
| 94 | + <a href='javascript:back_to_downloads()'><strong>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_BACKTODOWNLOADS]."</strong></a> |
|
| 95 | 95 | </p> |
| 96 | 96 | </div> <!-- id='user_welcomer_page' --> |
| 97 | 97 | "; |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | public function divSilverbullet() { |
| 102 | 102 | $retval = " |
| 103 | 103 | <div id='silverbullet'>" |
| 104 | - . $this->Gui->textTemplates->templates[user\SB_GO_AWAY] . |
|
| 104 | + . $this->Gui->textTemplates->templates[user\SB_GO_AWAY]. |
|
| 105 | 105 | "</div> |
| 106 | 106 | "; |
| 107 | 107 | return $retval; |
@@ -114,10 +114,10 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | return " |
| 116 | 116 | <div id='welcome_top1'> |
| 117 | - " . $this->Gui->textTemplates->templates[user\HEADING_TOPLEVEL_GREET] . " |
|
| 117 | + " . $this->Gui->textTemplates->templates[user\HEADING_TOPLEVEL_GREET]." |
|
| 118 | 118 | </div> |
| 119 | 119 | <div id='top_invite'> |
| 120 | - " . $this->Gui->textTemplates->templates[user\HEADING_TOPLEVEL_PURPOSE] . $retval . " |
|
| 120 | + " . $this->Gui->textTemplates->templates[user\HEADING_TOPLEVEL_PURPOSE].$retval." |
|
| 121 | 121 | </div>"; |
| 122 | 122 | } |
| 123 | 123 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $retval = " |
| 126 | 126 | <div id='roller'> |
| 127 | 127 | <div id='slides'> |
| 128 | - <span id='line1'>" . $this->Gui->textTemplates->templates[user\FRONTPAGE_ROLLER_EASY] . "</span> |
|
| 128 | + <span id='line1'>" . $this->Gui->textTemplates->templates[user\FRONTPAGE_ROLLER_EASY]."</span> |
|
| 129 | 129 | <span id='line2'></span> |
| 130 | 130 | <span id='line3'></span> |
| 131 | 131 | <span id='line4'>"; |
@@ -177,9 +177,9 @@ discard block |
||
| 177 | 177 | public function divProfiles() { |
| 178 | 178 | return " |
| 179 | 179 | <div id='profiles'> <!-- this is the profile selection filled during run time --> |
| 180 | - <div id='profiles_h' class='sub_h'>" . $this->Gui->textTemplates->templates[user\PROFILE_SELECTION] . " |
|
| 180 | + <div id='profiles_h' class='sub_h'>" . $this->Gui->textTemplates->templates[user\PROFILE_SELECTION]." |
|
| 181 | 181 | </div>" . |
| 182 | - "<select id='profile_list'></select><div id='profile_desc' class='profile_desc'></div>" . |
|
| 182 | + "<select id='profile_list'></select><div id='profile_desc' class='profile_desc'></div>". |
|
| 183 | 183 | "</div>"; |
| 184 | 184 | } |
| 185 | 185 | |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | public function divInstitution($selectButton = TRUE) { |
| 194 | 194 | $retval = "<div id='institution_name'> |
| 195 | 195 | <span id='inst_name_span'></span> <div id='inst_extra_text'></div><!-- this will be filled with the IdP name -->" . |
| 196 | - ($selectButton ? "<a id='select_another' class='signin' href=\"\">" . $this->Gui->textTemplates->templates[user\INSTITUTION_SELECTION] . "</a>" : "") . |
|
| 196 | + ($selectButton ? "<a id='select_another' class='signin' href=\"\">".$this->Gui->textTemplates->templates[user\INSTITUTION_SELECTION]."</a>" : ""). |
|
| 197 | 197 | "</div>"; |
| 198 | 198 | $retval .= $this->emptyImage('idp_logo', 'IdP Logo'); |
| 199 | 199 | return $retval; |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | public function divOtherinstallers() { |
| 208 | 208 | $retval = " |
| 209 | 209 | <div class='sub_h'> |
| 210 | - <div id='other_installers'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE] . " |
|
| 210 | + <div id='other_installers'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]." |
|
| 211 | 211 | <table id='device_list' style='padding:0px;'>"; |
| 212 | 212 | |
| 213 | 213 | foreach ($this->Gui->listDevices(isset($_REQUEST['hidden']) ? $_REQUEST['hidden'] : 0) as $group => $deviceGroup) { |
@@ -215,18 +215,18 @@ discard block |
||
| 215 | 215 | $deviceIndex = 0; |
| 216 | 216 | |
| 217 | 217 | $imgTag = ""; |
| 218 | - $imgLocation = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/" . $group . ".png"); |
|
| 218 | + $imgLocation = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/".$group.".png"); |
|
| 219 | 219 | if ($imgLocation !== FALSE) { |
| 220 | - $imgTag = '<img src="' . $imgLocation . '" alt="' . $group . ' Device" title="' . $group . ' Device">'; |
|
| 220 | + $imgTag = '<img src="'.$imgLocation.'" alt="'.$group.' Device" title="'.$group.' Device">'; |
|
| 221 | 221 | } |
| 222 | - $retval .= '<tbody><tr><td class="vendor" rowspan="' . $groupIndex . '">' . $imgTag . '</td>'; |
|
| 222 | + $retval .= '<tbody><tr><td class="vendor" rowspan="'.$groupIndex.'">'.$imgTag.'</td>'; |
|
| 223 | 223 | foreach ($deviceGroup as $d => $D) { |
| 224 | 224 | if ($deviceIndex) { |
| 225 | 225 | $retval .= '<tr>'; |
| 226 | 226 | } |
| 227 | - $retval .= "<td><button id='" . $d . "'>" . $D['display'] . "</button>" |
|
| 228 | - . "<div class='device_info' id='info_" . $d . "'></div></td>" |
|
| 229 | - . "<td><button class='more_info_b' id='info_b_" . $d . "'>i</button></td></tr>\n"; |
|
| 227 | + $retval .= "<td><button id='".$d."'>".$D['display']."</button>" |
|
| 228 | + . "<div class='device_info' id='info_".$d."'></div></td>" |
|
| 229 | + . "<td><button class='more_info_b' id='info_b_".$d."'>i</button></td></tr>\n"; |
|
| 230 | 230 | $deviceIndex++; |
| 231 | 231 | } |
| 232 | 232 | $retval .= "</tbody>"; |
@@ -240,15 +240,15 @@ discard block |
||
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | public function divGuessOs($operatingSystem) { |
| 243 | - $vendorlogo = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/" . $operatingSystem['group'] . ".png"); |
|
| 243 | + $vendorlogo = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/".$operatingSystem['group'].".png"); |
|
| 244 | 244 | $vendorstyle = ""; |
| 245 | 245 | if ($vendorlogo !== FALSE) { |
| 246 | - $vendorstyle = "style='background-image:url(\"" . $vendorlogo . "\")'"; |
|
| 246 | + $vendorstyle = "style='background-image:url(\"".$vendorlogo."\")'"; |
|
| 247 | 247 | } |
| 248 | 248 | $deleteIcon = $this->Gui->skinObject->findResourceUrl("IMAGES", "icons/delete_32.png"); |
| 249 | 249 | $deleteImg = ""; |
| 250 | 250 | if ($deleteIcon !== FALSE) { |
| 251 | - $deleteImg = "<img id='cross_icon_" . $operatingSystem['device'] . "' src='$deleteIcon' >"; |
|
| 251 | + $deleteImg = "<img id='cross_icon_".$operatingSystem['device']."' src='$deleteIcon' >"; |
|
| 252 | 252 | } |
| 253 | 253 | return " |
| 254 | 254 | <div class='sub_h' id='guess_os'> |
@@ -256,23 +256,23 @@ discard block |
||
| 256 | 256 | <table id='browser'> |
| 257 | 257 | <tr> |
| 258 | 258 | <td> |
| 259 | - <button class='large_button guess_os' $vendorstyle id='g_" . $operatingSystem['device'] . "'> |
|
| 259 | + <button class='large_button guess_os' $vendorstyle id='g_".$operatingSystem['device']."'> |
|
| 260 | 260 | $deleteImg |
| 261 | - <div class='download_button_text_1' id='download_button_header_" . $operatingSystem['device'] . "'> " . $this->Gui->textTemplates->templates[user\DOWNLOAD_MESSAGE] . " |
|
| 261 | + <div class='download_button_text_1' id='download_button_header_".$operatingSystem['device']."'> ".$this->Gui->textTemplates->templates[user\DOWNLOAD_MESSAGE]." |
|
| 262 | 262 | </div> |
| 263 | 263 | <div class='download_button_text'>" . |
| 264 | - $operatingSystem['display'] . " |
|
| 264 | + $operatingSystem['display']." |
|
| 265 | 265 | </div> |
| 266 | 266 | </button> |
| 267 | - <div class='device_info' id='info_g_" . $operatingSystem['device'] . "'></div> |
|
| 267 | + <div class='device_info' id='info_g_" . $operatingSystem['device']."'></div> |
|
| 268 | 268 | </td> |
| 269 | 269 | <td style='vertical-align:top'> |
| 270 | - <button class='more_info_b large_button' id='g_info_b_" . $operatingSystem['device'] . "'>i</button> |
|
| 270 | + <button class='more_info_b large_button' id='g_info_b_" . $operatingSystem['device']."'>i</button> |
|
| 271 | 271 | </td> |
| 272 | 272 | </tr> |
| 273 | 273 | </table> <!-- id='browser' --> |
| 274 | 274 | <div class='sub_h'> |
| 275 | - <a href='javascript:other_installers()'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE] . "</a> |
|
| 275 | + <a href='javascript:other_installers()'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]."</a> |
|
| 276 | 276 | </div> |
| 277 | 277 | </div> <!-- id='guess_os' -->"; |
| 278 | 278 | } |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | </td>"; |
| 289 | 289 | |
| 290 | 290 | if (!empty(CONFIG['APPEARANCE']['privacy_notice_url'])) { |
| 291 | - $retval .= "<td><a href='" . CONFIG['APPEARANCE']['privacy_notice_url'] . "'>" . sprintf(_("%s Privacy Notice"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</a></td>"; |
|
| 291 | + $retval .= "<td><a href='".CONFIG['APPEARANCE']['privacy_notice_url']."'>".sprintf(_("%s Privacy Notice"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])."</a></td>"; |
|
| 292 | 292 | } |
| 293 | 293 | $retval .= "<td>"; |
| 294 | 294 | if (CONFIG_CONFASSISTANT['CONSORTIUM']['name'] == "eduroam" && isset(CONFIG_CONFASSISTANT['CONSORTIUM']['deployment-voodoo']) && CONFIG_CONFASSISTANT['CONSORTIUM']['deployment-voodoo'] == "Operations Team") { |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | <div id="user_page" style="display:block"> |
| 36 | 36 | <?php echo $divs->divPagetitle("eduroam CAT Copyright and Licensing", ""); ?> |
| 37 | 37 | <div style="padding:20px"> |
| 38 | - <?php require dirname(dirname(__DIR__)) . "/copyright.inc.php"; ?> |
|
| 38 | + <?php require dirname(dirname(__DIR__))."/copyright.inc.php"; ?> |
|
| 39 | 39 | </div> |
| 40 | 40 | </div> |
| 41 | 41 | </div> |
@@ -43,10 +43,10 @@ discard block |
||
| 43 | 43 | $operatingSystem = $Gui->detectOS(); |
| 44 | 44 | $Gui->loggerInstance->debug(4, $operatingSystem); |
| 45 | 45 | if ($operatingSystem) { |
| 46 | - print "recognisedOS = '" . $operatingSystem['device'] . "';\n"; |
|
| 46 | + print "recognisedOS = '".$operatingSystem['device']."';\n"; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | -print 'downloadMessage = "' . $Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE] . '";'; |
|
| 49 | +print 'downloadMessage = "'.$Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE].'";'; |
|
| 50 | 50 | //TODO modify this based on OS detection |
| 51 | 51 | $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? ""; |
| 52 | 52 | if (preg_match('/Android/', $userAgent)) { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | <?php echo $divs->divHeading($visibility); ?> |
| 76 | 76 | <div id="main_page"> |
| 77 | 77 | <div id="loading_ico"> |
| 78 | - <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif"); ?>" alt="Authenticating ..."/> |
|
| 78 | + <?php echo _("Authenticating")."..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif"); ?>" alt="Authenticating ..."/> |
|
| 79 | 79 | </div> |
| 80 | 80 | <div id="info_overlay"> <!-- device info --> |
| 81 | 81 | <div id="info_window"></div> |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | <?php if (empty($_REQUEST['idp'])) { ?> |
| 92 | 92 | <div id="front_page"> |
| 93 | 93 | <?php |
| 94 | - echo $divs->divTopWelcome(); |
|
| 94 | + echo $divs->divTopWelcome(); |
|
| 95 | 95 | // echo $divs->div_roller(); |
| 96 | 96 | // echo $divs->div_main_button(); ?> |
| 97 | 97 | </div> <!-- id="front_page" --> |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | ?> |
| 29 | 29 | |
| 30 | 30 | <!-- JQuery --> |
| 31 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js") ?>"></script> |
|
| 32 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate-1.2.1.js") ?>"></script> |
|
| 33 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js") ?>"></script> |
|
| 31 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js") ?>"></script> |
|
| 32 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate-1.2.1.js") ?>"></script> |
|
| 33 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js") ?>"></script> |
|
| 34 | 34 | <!-- JQuery --> |
| 35 | 35 | |
| 36 | 36 | <script type="text/javascript"> |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | $operatingSystem = $Gui->detectOS(); |
| 45 | 45 | $Gui->loggerInstance->debug(4, $operatingSystem); |
| 46 | 46 | if ($operatingSystem) { |
| 47 | - print "recognisedOS = '" . $operatingSystem['device'] . "';\n"; |
|
| 47 | + print "recognisedOS = '".$operatingSystem['device']."';\n"; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | -print 'downloadMessage = "' . $Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE] . '";'; |
|
| 50 | +print 'downloadMessage = "'.$Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE].'";'; |
|
| 51 | 51 | //TODO modify this based on OS detection |
| 52 | 52 | if (preg_match('/Android/', $_SERVER['HTTP_USER_AGENT'])) { |
| 53 | 53 | $profile_list_size = 1; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | include("user/js/cat_js.php"); |
| 59 | 59 | ?> |
| 60 | 60 | var loading_ico = new Image(); |
| 61 | - loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>"; |
|
| 61 | + loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>"; |
|
| 62 | 62 | </script> |
| 63 | 63 | <?php $Gui->langObject->setTextDomain("web_user"); ?> |
| 64 | 64 | <!-- DiscoJuice --> |
@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | front_page = 0; |
| 68 | 68 | var lang = "<?php echo($Gui->langObject->getLang()) ?>"; |
| 69 | 69 | </script> |
| 70 | -<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","discojuice/css/discojuice.css")?>" /> |
|
| 70 | +<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "discojuice/css/discojuice.css")?>" /> |
|
| 71 | 71 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> |
| 72 | -<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" /> |
|
| 72 | +<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" /> |
|
| 73 | 73 | </head> |
| 74 | 74 | <body> |
| 75 | 75 | <div id="wrap"> |
@@ -77,14 +77,14 @@ discard block |
||
| 77 | 77 | <?php echo $divs->divHeading($visibility); ?> |
| 78 | 78 | <div id="main_page"> |
| 79 | 79 | <div id="loading_ico"> |
| 80 | - <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>" alt="Authenticating ..."/> |
|
| 80 | + <?php echo _("Authenticating")."..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>" alt="Authenticating ..."/> |
|
| 81 | 81 | </div> |
| 82 | 82 | <div id="info_overlay"> <!-- device info --> |
| 83 | 83 | <div id="info_window"></div> |
| 84 | - <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
| 84 | + <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
| 85 | 85 | </div> |
| 86 | 86 | <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu --> |
| 87 | - <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
| 87 | + <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
| 88 | 88 | <div id="main_menu_content"></div> |
| 89 | 89 | </div> |
| 90 | 90 | <div id="main_body"> |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | ?> |
| 22 | 22 | <?php |
| 23 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
| 23 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
| 24 | 24 | |
| 25 | 25 | $auth = new \web\lib\admin\Authentication(); |
| 26 | 26 | $uiElements = new \web\lib\admin\UIElements(); |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | <?php |
| 58 | 58 | echo sprintf(_("On this page, you can add a new %s to your %s. Please fill out the form below to send out an email invitation to the new %s administrator."), $uiElements->nomenclatureInst, $uiElements->nomenclatureFed, $uiElements->nomenclatureInst); |
| 59 | 59 | if (CONFIG['DB']['enforce-external-sync']) { |
| 60 | - echo "<p>" . sprintf(_("You can either register a known %s (as defined in the %s database) or create a totally new %s."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclatureInst) . "</p>"; |
|
| 61 | - echo "<p>" . sprintf(_("The latter one is typically for an %s which is yet in a testing phase and therefore doesn't appear in the %s database yet."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</p>"; |
|
| 60 | + echo "<p>".sprintf(_("You can either register a known %s (as defined in the %s database) or create a totally new %s."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclatureInst)."</p>"; |
|
| 61 | + echo "<p>".sprintf(_("The latter one is typically for an %s which is yet in a testing phase and therefore doesn't appear in the %s database yet."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])."</p>"; |
|
| 62 | 62 | } |
| 63 | 63 | ?> |
| 64 | 64 | <hr/> |
@@ -68,12 +68,12 @@ discard block |
||
| 68 | 68 | <?php |
| 69 | 69 | if (CONFIG['DB']['enforce-external-sync']) { |
| 70 | 70 | echo "<tr><td> |
| 71 | - <input type='radio' name='creation' value='existing'>" . _("Existing IdP:") . "</input> |
|
| 71 | + <input type='radio' name='creation' value='existing'>" . _("Existing IdP:")."</input> |
|
| 72 | 72 | </td>"; |
| 73 | 73 | |
| 74 | 74 | echo "<td colspan='2'> |
| 75 | 75 | <select id='externals' name='externals' onchange='document.sendinvite.creation[0].checked=true; document.sendinvite.mailaddr.value=this.options[this.selectedIndex].id;'> |
| 76 | - <option value='FREETEXT'>" . _("--- select IdP here ---") . "</option>"; |
|
| 76 | + <option value='FREETEXT'>" . _("--- select IdP here ---")."</option>"; |
|
| 77 | 77 | |
| 78 | 78 | foreach ($feds as $fed_value) { |
| 79 | 79 | $thefed = new \core\Federation(strtoupper($fed_value['value'])); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $entities = $thefed->listExternalEntities(TRUE, \core\Federation::EDUROAM_DB_TYPE_IDP); |
| 83 | 83 | |
| 84 | 84 | foreach ($entities as $v) { |
| 85 | - echo "<option id='" . $v['contactlist'] . "' value='" . $v['ID'] . "'>[" . $fed_value['value'] . "] " . $v['name'] . "</option>"; |
|
| 85 | + echo "<option id='".$v['contactlist']."' value='".$v['ID']."'>[".$fed_value['value']."] ".$v['name']."</option>"; |
|
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | "eduroamCAT", |
| 378 | 378 | "<a target='_blank' href='https://play.google.com/store/apps/details?id=uk.ac.swansea.eduroamcat'>Google Play</a>", |
| 379 | 379 | "<a target='_blank' href='https://www.amazon.com/dp/B01EACCX0S/'>Amazon Appstore</a>", |
| 380 | - "<a target='_blank' href='eduroamCAT-stable.apk'>" . _("as local download") . "</a>"), |
|
| 380 | + "<a target='_blank' href='eduroamCAT-stable.apk'>"._("as local download")."</a>"), |
|
| 381 | 381 | ], |
| 382 | 382 | ], |
| 383 | 383 | 'android_pie' => [ |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | "eduroamCAT", |
| 393 | 393 | "<a target='_blank' href='https://play.google.com/store/apps/details?id=uk.ac.swansea.eduroamcat'>Google Play</a>", |
| 394 | 394 | "<a target='_blank' href='https://www.amazon.com/dp/B01EACCX0S/'>Amazon Appstore</a>", |
| 395 | - "<a target='_blank' href='eduroamCAT-stable.apk'>" . _("as local download") . "</a>"), |
|
| 395 | + "<a target='_blank' href='eduroamCAT-stable.apk'>"._("as local download")."</a>"), |
|
| 396 | 396 | ], |
| 397 | 397 | ], |
| 398 | 398 | 'android_oreo' => [ |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | "eduroamCAT", |
| 408 | 408 | "<a target='_blank' href='https://play.google.com/store/apps/details?id=uk.ac.swansea.eduroamcat'>Google Play</a>", |
| 409 | 409 | "<a target='_blank' href='https://www.amazon.com/dp/B01EACCX0S/'>Amazon Appstore</a>", |
| 410 | - "<a target='_blank' href='eduroamCAT-stable.apk'>" . _("as local download") . "</a>"), |
|
| 410 | + "<a target='_blank' href='eduroamCAT-stable.apk'>"._("as local download")."</a>"), |
|
| 411 | 411 | ], |
| 412 | 412 | ], |
| 413 | 413 | 'android_nougat' => [ |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | "eduroamCAT", |
| 423 | 423 | "<a target='_blank' href='https://play.google.com/store/apps/details?id=uk.ac.swansea.eduroamcat'>Google Play</a>", |
| 424 | 424 | "<a target='_blank' href='https://www.amazon.com/dp/B01EACCX0S/'>Amazon Appstore</a>", |
| 425 | - "<a target='_blank' href='eduroamCAT-stable.apk'>" . _("as local download") . "</a>"), |
|
| 425 | + "<a target='_blank' href='eduroamCAT-stable.apk'>"._("as local download")."</a>"), |
|
| 426 | 426 | ], |
| 427 | 427 | ], |
| 428 | 428 | 'android_marshmallow' => [ |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | "eduroamCAT", |
| 438 | 438 | "<a target='_blank' href='https://play.google.com/store/apps/details?id=uk.ac.swansea.eduroamcat'>Google Play</a>", |
| 439 | 439 | "<a target='_blank' href='https://www.amazon.com/dp/B01EACCX0S/'>Amazon Appstore</a>", |
| 440 | - "<a target='_blank' href='eduroamCAT-stable.apk'>" . _("as local download") . "</a>"), |
|
| 440 | + "<a target='_blank' href='eduroamCAT-stable.apk'>"._("as local download")."</a>"), |
|
| 441 | 441 | ], |
| 442 | 442 | ], |
| 443 | 443 | 'android_lollipop' => [ |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | "eduroamCAT", |
| 453 | 453 | "<a target='_blank' href='https://play.google.com/store/apps/details?id=uk.ac.swansea.eduroamcat'>Google Play</a>", |
| 454 | 454 | "<a target='_blank' href='https://www.amazon.com/dp/B01EACCX0S/'>Amazon Appstore</a>", |
| 455 | - "<a target='_blank' href='eduroamCAT-stable.apk'>" . _("as local download") . "</a>"), |
|
| 455 | + "<a target='_blank' href='eduroamCAT-stable.apk'>"._("as local download")."</a>"), |
|
| 456 | 456 | ], |
| 457 | 457 | ], |
| 458 | 458 | 'android_kitkat' => [ |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | "eduroamCAT", |
| 468 | 468 | "<a target='_blank' href='https://play.google.com/store/apps/details?id=uk.ac.swansea.eduroamcat'>Google Play</a>", |
| 469 | 469 | "<a target='_blank' href='https://www.amazon.com/dp/B01EACCX0S/'>Amazon Appstore</a>", |
| 470 | - "<a target='_blank' href='eduroamCAT-stable.apk'>" . _("as local download") . "</a>"), |
|
| 470 | + "<a target='_blank' href='eduroamCAT-stable.apk'>"._("as local download")."</a>"), |
|
| 471 | 471 | ], |
| 472 | 472 | ], |
| 473 | 473 | 'android_43' => [ |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | "eduroamCAT", |
| 483 | 483 | "<a target='_blank' href='https://play.google.com/store/apps/details?id=uk.ac.swansea.eduroamcat'>Google Play</a>", |
| 484 | 484 | "<a target='_blank' href='https://www.amazon.com/dp/B01EACCX0S/'>Amazon Appstore</a>", |
| 485 | - "<a target='_blank' href='eduroamCAT-stable.apk'>" . _("as local download") . "</a>"), |
|
| 485 | + "<a target='_blank' href='eduroamCAT-stable.apk'>"._("as local download")."</a>"), |
|
| 486 | 486 | ], |
| 487 | 487 | ], |
| 488 | 488 | 'android_legacy' => [ |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | * @return boolean |
| 37 | 37 | */ |
| 38 | 38 | |
| 39 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
| 39 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
| 40 | 40 | |
| 41 | 41 | // we are referring to $_SESSION later in the file |
| 42 | 42 | CAT_session_start(); |