@@ -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"> |
@@ -297,8 +297,8 @@ |
||
297 | 297 | "OPT" => [API::AUXATTRIB_TARGETMAIL], |
298 | 298 | "RETVAL" => [ |
299 | 299 | ["TOKEN URL", |
300 | - "EMAIL SENT", // Dependent on TARGETMAIL input. |
|
301 | - "EMAIL TRANSPORT SECURE"], // Dependent on TARGETMAIL input. |
|
300 | + "EMAIL SENT", // Dependent on TARGETMAIL input. |
|
301 | + "EMAIL TRANSPORT SECURE"], // Dependent on TARGETMAIL input. |
|
302 | 302 | ] |
303 | 303 | ], |
304 | 304 | API::ACTION_ADMIN_DEL => [ |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | use Exception; |
30 | 30 | |
31 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
31 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * This class defines the various actions doable with the admin API, the |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | const ACTIONS = [ |
239 | 239 | // Inst-level actions. |
240 | 240 | API::ACTION_NEWINST_BY_REF => [ |
241 | - "REQ" => [API::AUXATTRIB_EXTERNALID,], |
|
241 | + "REQ" => [API::AUXATTRIB_EXTERNALID, ], |
|
242 | 242 | "OPT" => [ |
243 | 243 | 'general:geo_coordinates', |
244 | 244 | 'general:logo_file', |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | "OPT" => [API::AUXATTRIB_TARGETMAIL], |
299 | 299 | "RETVAL" => [ |
300 | 300 | ["TOKEN URL", |
301 | - "EMAIL SENT", // Dependent on TARGETMAIL input. |
|
301 | + "EMAIL SENT", // Dependent on TARGETMAIL input. |
|
302 | 302 | "EMAIL TRANSPORT SECURE"], // Dependent on TARGETMAIL input. |
303 | 303 | ] |
304 | 304 | ], |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | API::ACTION_ENDUSER_NEW => [ |
361 | 361 | "REQ" => [API::AUXATTRIB_CAT_PROFILE_ID, API::AUXATTRIB_SB_USERNAME, API::AUXATTRIB_SB_EXPIRY], |
362 | 362 | "OPT" => [], |
363 | - "RETVAL" => [ API::AUXATTRIB_SB_USERNAME, API::AUXATTRIB_SB_USERID ], |
|
363 | + "RETVAL" => [API::AUXATTRIB_SB_USERNAME, API::AUXATTRIB_SB_USERID], |
|
364 | 364 | ], |
365 | 365 | API::ACTION_ENDUSER_DEACTIVATE => [ |
366 | 366 | "REQ" => [API::AUXATTRIB_CAT_PROFILE_ID, API::AUXATTRIB_SB_USERID], |
@@ -371,14 +371,14 @@ discard block |
||
371 | 371 | "REQ" => [API::AUXATTRIB_CAT_PROFILE_ID], |
372 | 372 | "OPT" => [], |
373 | 373 | "RETVAL" => [ |
374 | - [ API::AUXATTRIB_SB_USERID => API::AUXATTRIB_SB_USERNAME], |
|
374 | + [API::AUXATTRIB_SB_USERID => API::AUXATTRIB_SB_USERNAME], |
|
375 | 375 | ], |
376 | 376 | ], |
377 | 377 | API::ACTION_ENDUSER_IDENTIFY => [ |
378 | 378 | "REQ" => [API::AUXATTRIB_CAT_PROFILE_ID], |
379 | 379 | "OPT" => [API::AUXATTRIB_SB_USERID, API::AUXATTRIB_SB_USERNAME, API::AUXATTRIB_SB_CERTSERIAL], |
380 | 380 | "RETVAL" => [ |
381 | - [ API::AUXATTRIB_SB_USERID => API::AUXATTRIB_SB_USERNAME], |
|
381 | + [API::AUXATTRIB_SB_USERID => API::AUXATTRIB_SB_USERNAME], |
|
382 | 382 | ], |
383 | 383 | ], |
384 | 384 | |
@@ -388,9 +388,9 @@ discard block |
||
388 | 388 | "RETVAL" => [ |
389 | 389 | API::AUXATTRIB_TOKENURL, |
390 | 390 | API::AUXATTRIB_TOKEN, |
391 | - "EMAIL SENT", // Dependent on TARGETMAIL input. |
|
391 | + "EMAIL SENT", // Dependent on TARGETMAIL input. |
|
392 | 392 | "EMAIL TRANSPORT SECURE", // Dependent on TARGETMAIL input. |
393 | - "SMS SENT", // Dependent on TARGETSMS input. |
|
393 | + "SMS SENT", // Dependent on TARGETSMS input. |
|
394 | 394 | ] |
395 | 395 | ], |
396 | 396 | API::ACTION_TOKEN_REVOKE => [ |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | "REQ" => [API::AUXATTRIB_CAT_PROFILE_ID, API::AUXATTRIB_SB_USERID], |
410 | 410 | "OPT" => [], |
411 | 411 | "RETVAL" => [ |
412 | - [ API::AUXATTRIB_SB_CERTSERIAL => ["ISSUED", "EXPIRY", "STATUS", "DEVICE", "CN" ]] |
|
412 | + [API::AUXATTRIB_SB_CERTSERIAL => ["ISSUED", "EXPIRY", "STATUS", "DEVICE", "CN"]] |
|
413 | 413 | ] |
414 | 414 | ], |
415 | 415 | API::ACTION_CERT_REVOKE => [ |
@@ -546,8 +546,8 @@ discard block |
||
546 | 546 | |
547 | 547 | case \core\Options::TYPECODE_COORDINATES: |
548 | 548 | $extension = \core\Options::TYPECODE_TEXT; |
549 | - $coercedInline["option"][$basename] = $oneAttrib['NAME'] . "#"; |
|
550 | - $coercedInline["value"][$basename . "-" . $extension] = $oneAttrib['VALUE']; |
|
549 | + $coercedInline["option"][$basename] = $oneAttrib['NAME']."#"; |
|
550 | + $coercedInline["value"][$basename."-".$extension] = $oneAttrib['VALUE']; |
|
551 | 551 | break; |
552 | 552 | case \core\Options::TYPECODE_TEXT: |
553 | 553 | // Fall-through: they all get the same treatment. |
@@ -557,18 +557,18 @@ discard block |
||
557 | 557 | // Fall-through: they all get the same treatment. |
558 | 558 | case \core\Options::TYPECODE_INTEGER: |
559 | 559 | $extension = $optionInfo['type']; |
560 | - $coercedInline["option"][$basename] = $oneAttrib['NAME'] . "#"; |
|
561 | - $coercedInline["value"][$basename . "-" . $extension] = $oneAttrib['VALUE']; |
|
560 | + $coercedInline["option"][$basename] = $oneAttrib['NAME']."#"; |
|
561 | + $coercedInline["value"][$basename."-".$extension] = $oneAttrib['VALUE']; |
|
562 | 562 | if ($optionInfo['flag'] == "ML") { |
563 | - $coercedInline["value"][$basename . "-lang"] = $oneAttrib['LANG']; |
|
563 | + $coercedInline["value"][$basename."-lang"] = $oneAttrib['LANG']; |
|
564 | 564 | } |
565 | 565 | break; |
566 | 566 | case \core\Options::TYPECODE_FILE: |
567 | 567 | // Binary data is expected in base64 encoding. This is true also for PEM files! |
568 | 568 | $extension = $optionInfo['type']; |
569 | - $coercedInline["option"][$basename] = $oneAttrib['NAME'] . "#"; |
|
570 | - file_put_contents($dir['dir'] . "/" . $basename . "-" . $extension, base64_decode($oneAttrib['VALUE'])); |
|
571 | - $coercedFile["value"]['tmp_name'][$basename . "-" . $extension] = $dir['dir'] . "/" . $basename . "-" . $extension; |
|
569 | + $coercedInline["option"][$basename] = $oneAttrib['NAME']."#"; |
|
570 | + file_put_contents($dir['dir']."/".$basename."-".$extension, base64_decode($oneAttrib['VALUE'])); |
|
571 | + $coercedFile["value"]['tmp_name'][$basename."-".$extension] = $dir['dir']."/".$basename."-".$extension; |
|
572 | 572 | break; |
573 | 573 | default: |
574 | 574 | throw new Exception("We don't seem to know this type code!"); |