@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $admins = $this_fed->listFederationAdmins(); |
45 | 45 | $mailtext = "Hello, |
46 | 46 | |
47 | -invitation tokens for the following new ". CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] ." have recently expired: |
|
47 | +invitation tokens for the following new ". CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] . " have recently expired: |
|
48 | 48 | |
49 | 49 | "; |
50 | 50 | foreach ($listofinstnames as $instname) { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | if ($numberofexistingidps > 0) { |
55 | 55 | $mailtext .= " |
56 | 56 | |
57 | -Additionally, $numberofexistingidps invitations for an existing ". CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']." have expired. |
|
57 | +Additionally, $numberofexistingidps invitations for an existing " . CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] . " have expired. |
|
58 | 58 | "; |
59 | 59 | } |
60 | 60 | $mailtext .= " |
@@ -169,8 +169,7 @@ |
||
169 | 169 | _("and enter the invitation token") . " |
170 | 170 | $newtoken |
171 | 171 | " . ( /* $new_idp_authorized_fedadmin */ FALSE ? |
172 | - wordwrap(sprintf(_("manually. If you reply to this mail, you will reach your %s administrators."), $uiElements->nomenclature_fed), 72) : |
|
173 | - wordwrap(_("manually. Please do not reply to this mail; this is a send-only address.")) ) . " |
|
172 | + wordwrap(sprintf(_("manually. If you reply to this mail, you will reach your %s administrators."), $uiElements->nomenclature_fed), 72) : wordwrap(_("manually. Please do not reply to this mail; this is a send-only address.")) ) . " |
|
174 | 173 | |
175 | 174 | " . wordwrap(_("Do NOT forward the mail before the token has expired - or the recipients may be able to consume the token on your behalf!"), 72) . " |
176 | 175 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @author Zilvinas Vaira |
27 | 27 | * |
28 | 28 | */ |
29 | -class UserCredentialsForm implements PageElementInterface{ |
|
29 | +class UserCredentialsForm implements PageElementInterface { |
|
30 | 30 | |
31 | 31 | const EDITABLEBLOCK_CLASS = 'sb-editable-block'; |
32 | 32 | const TITLEROW_CLASS = 'sb-title-row'; |
@@ -118,10 +118,10 @@ discard block |
||
118 | 118 | |
119 | 119 | $this->acknowledgeDays = CONFIG_CONFASSISTANT['SILVERBULLET']['gracetime'] ?? SilverbulletUser::MAX_ACKNOWLEDGE; |
120 | 120 | $this->acknowledgeText = $acknowledgeText; |
121 | - if($isAcknowledgeEnabled){ |
|
121 | + if ($isAcknowledgeEnabled) { |
|
122 | 122 | $div = new CompositeTag('div'); |
123 | 123 | $div->addAttribute('style', 'padding-bottom: 20px;'); |
124 | - $this->acknowledgeNotice = new Tag ('p'); |
|
124 | + $this->acknowledgeNotice = new Tag('p'); |
|
125 | 125 | $div->addTag($this->acknowledgeNotice); |
126 | 126 | $checkbox = new UnaryTag('input'); |
127 | 127 | $checkbox->addAttribute('type', 'checkbox'); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $label->addText('I have verified that all configured users are still eligible for eduroam'); |
133 | 133 | $div->addTag($label); |
134 | 134 | $this->decorator->addHtmlElement($div); |
135 | - $this->decorator->addHtmlElement(new Button(_('Save'),'submit', SaveUsersCommand::COMMAND, SaveUsersCommand::COMMAND)); |
|
135 | + $this->decorator->addHtmlElement(new Button(_('Save'), 'submit', SaveUsersCommand::COMMAND, SaveUsersCommand::COMMAND)); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | $this->addTitleRow(); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | /** |
142 | 142 | * |
143 | 143 | */ |
144 | - private function addTitleRow(){ |
|
144 | + private function addTitleRow() { |
|
145 | 145 | $row = new Row(array(self::USER_COLUMN => _('User'), self::TOKEN_COLUMN => _('Token/Certificate details'), self::EXPIRY_COLUMN => _('User/Token Expiry'), self::ACTION_COLUMN => _('Actions'))); |
146 | 146 | $row->addAttribute('class', self::TITLEROW_CLASS); |
147 | 147 | $this->table->addRow($row); |
@@ -151,19 +151,19 @@ discard block |
||
151 | 151 | * |
152 | 152 | * @param SilverbulletUser $user |
153 | 153 | */ |
154 | - public function addUserRow($user){ |
|
154 | + public function addUserRow($user) { |
|
155 | 155 | $row = new Row(array(self::USER_COLUMN => $user->getUsername(), self::EXPIRY_COLUMN => new DatePicker(SaveUsersCommand::PARAM_EXPIRY_MULTIPLE, $user->getExpiry()))); |
156 | 156 | $row->addAttribute('class', self::USERROW_CLASS); |
157 | 157 | |
158 | 158 | $acknowledgeLevel = $user->getAcknowledgeLevel(); |
159 | - if($acknowledgeLevel == SilverbulletUser::LEVEL_YELLOW){ |
|
159 | + if ($acknowledgeLevel == SilverbulletUser::LEVEL_YELLOW) { |
|
160 | 160 | $row->addAttribute('style', 'background-color:#F0EAC0;'); |
161 | - }elseif ($acknowledgeLevel == SilverbulletUser::LEVEL_RED){ |
|
161 | + }elseif ($acknowledgeLevel == SilverbulletUser::LEVEL_RED) { |
|
162 | 162 | $row->addAttribute('style', 'background-color:#F0C0C0;'); |
163 | 163 | } |
164 | 164 | |
165 | 165 | $acknowledgeDays = $user->getAcknowledgeDays(); |
166 | - if($acknowledgeDays < $this->acknowledgeDays){ |
|
166 | + if ($acknowledgeDays < $this->acknowledgeDays) { |
|
167 | 167 | $this->acknowledgeDays = $acknowledgeDays; |
168 | 168 | } |
169 | 169 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | $action = new CompositeTag('div'); |
184 | 184 | $action->addAttribute('class', 'sb-user-buttons'); |
185 | 185 | $deactivationButton = new Button(_('Deactivate User'), 'submit', DeleteUserCommand::COMMAND, $user->getIdentifier(), 'delete'); |
186 | - if($user->isDeactivated()){ |
|
186 | + if ($user->isDeactivated()) { |
|
187 | 187 | $deactivationButton->addAttribute('disabled', 'disabled'); |
188 | 188 | } |
189 | 189 | $action->addTag($deactivationButton); |
@@ -206,8 +206,8 @@ discard block |
||
206 | 206 | * |
207 | 207 | * @param SilverbulletCertificate $certificate |
208 | 208 | */ |
209 | - public function addCertificateRow($certificate){ |
|
210 | - if($certificate->isGenerated()){ |
|
209 | + public function addCertificateRow($certificate) { |
|
210 | + if ($certificate->isGenerated()) { |
|
211 | 211 | |
212 | 212 | //Create certificate box |
213 | 213 | $certificateBox = new CompositeTag('div'); |
@@ -221,15 +221,15 @@ discard block |
||
221 | 221 | |
222 | 222 | //Create button container div |
223 | 223 | $buttonContainer = new Tag('div'); |
224 | - if($certificate->isRevoked()){ |
|
224 | + if ($certificate->isRevoked()) { |
|
225 | 225 | $certificateBox->addAttribute('style', 'background-color:#F0C0C0;'); |
226 | 226 | $buttonContainer->addAttribute('style', 'height:22px; margin-top:7px; text-align:center;'); |
227 | 227 | $buttonContainer->addText(_("REVOKED")); |
228 | - }elseif ($certificate->isExpired()){ |
|
228 | + }elseif ($certificate->isExpired()) { |
|
229 | 229 | $certificateBox->addAttribute('style', 'background-color:lightgrey;'); |
230 | 230 | $buttonContainer->addAttribute('style', 'height:22px; margin-top:7px; text-align:center;'); |
231 | 231 | $buttonContainer->addText(_("EXPIRED")); |
232 | - }else{ |
|
232 | + } else { |
|
233 | 233 | $buttonContainer->addAttribute('style', 'text-align:right;padding-top: 5px;'); |
234 | 234 | $buttonContainer->addText(new Button(_('Revoke'), 'submit', RevokeCertificateCommand::COMMAND, $certificate->getIdentifier(), 'delete')); |
235 | 235 | } |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | * |
244 | 244 | * @param SilverbulletInvitation $invitation |
245 | 245 | */ |
246 | - public function addInvitationRow($invitation){ |
|
246 | + public function addInvitationRow($invitation) { |
|
247 | 247 | $expiryColumn = _("Expiry Date: ") . $invitation->getExpiry(); |
248 | 248 | $expiryColumn .= "<br>"; |
249 | 249 | $expiryColumn .= _("Activations: ") . $invitation->getRemainingActivations(); |
@@ -251,13 +251,13 @@ discard block |
||
251 | 251 | $row->addAttribute('class', self::CERTIFICATEROW_CLASS); |
252 | 252 | $index = $this->table->size(); |
253 | 253 | $this->table->addRow($row); |
254 | - if(!$invitation->isExpired() && !$invitation->isRevoked() && !$invitation->isAbsent()){ |
|
254 | + if (!$invitation->isExpired() && !$invitation->isRevoked() && !$invitation->isAbsent()) { |
|
255 | 255 | $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Copy to Clipboard'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-copy')); |
256 | - $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Compose mail...'), 'button', '', '', self::INVITATION_TOKEN_CLASS. '-compose')); |
|
257 | - $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Send in SMS...'), 'button', '', '', self::INVITATION_TOKEN_CLASS. '-sms')); |
|
258 | - $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Generate QR code...'), 'button', '', '', self::INVITATION_TOKEN_CLASS. '-qrcode')); |
|
256 | + $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Compose mail...'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-compose')); |
|
257 | + $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Send in SMS...'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-sms')); |
|
258 | + $this->table->addToCell($index, self::TOKEN_COLUMN, new Button(_('Generate QR code...'), 'button', '', '', self::INVITATION_TOKEN_CLASS . '-qrcode')); |
|
259 | 259 | } |
260 | - if(!$invitation->isRevoked()){ |
|
260 | + if (!$invitation->isRevoked()) { |
|
261 | 261 | $this->table->addToCell($index, self::ACTION_COLUMN, new Button(_('Revoke'), 'submit', RevokeInvitationCommand::COMMAND, $invitation->getIdentifier(), 'delete')); |
262 | 262 | } |
263 | 263 | } |
@@ -268,11 +268,11 @@ discard block |
||
268 | 268 | * @see \web\lib\admin\view\PageElementInterface::render() |
269 | 269 | */ |
270 | 270 | public function render() { |
271 | - if($this->acknowledgeNotice!=null){ |
|
271 | + if ($this->acknowledgeNotice != null) { |
|
272 | 272 | $this->acknowledgeNotice->addText(sprintf($this->acknowledgeText, $this->acknowledgeDays)); |
273 | 273 | } |
274 | 274 | ?> |
275 | - <div class="<?php echo self::EDITABLEBLOCK_CLASS;?>"> |
|
275 | + <div class="<?php echo self::EDITABLEBLOCK_CLASS; ?>"> |
|
276 | 276 | <?php $this->decorator->render(); ?> |
277 | 277 | </div> |
278 | 278 | <?php |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | * @var array |
132 | 132 | */ |
133 | - 'MAILSETTINGS' => [ // we always use Submission |
|
133 | + 'MAILSETTINGS' => [// we always use Submission |
|
134 | 134 | 'host' => 'submission.capable.mta', |
135 | 135 | 'user'=> 'mailuser', |
136 | 136 | 'pass' => 'mailpass', |
@@ -146,25 +146,25 @@ discard block |
||
146 | 146 | * @var array |
147 | 147 | */ |
148 | 148 | 'LANGUAGES' => [ |
149 | - 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
150 | - 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
151 | - 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
152 | - 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
153 | - 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
154 | - 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
155 | - 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
156 | - 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
157 | - 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
158 | - 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
159 | - 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
160 | - 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
161 | - 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
162 | - 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
163 | - 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
164 | - 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
165 | - 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
166 | - 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
167 | - 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
149 | + 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
150 | + 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
151 | + 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
152 | + 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
153 | + 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
154 | + 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
155 | + 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
156 | + 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
157 | + 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
158 | + 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
159 | + 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
160 | + 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
161 | + 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
162 | + 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
163 | + 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
164 | + 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
165 | + 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
166 | + 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
167 | + 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
168 | 168 | |
169 | 169 | // For the following languages, partial translations exist in Transifex, but |
170 | 170 | // they are not complete enough for display. Their Transifex content is not |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function __construct() { |
63 | 63 | $this->loggerInstance = new Logging(); |
64 | - $this->loggerInstance->debug(3, "--- BEGIN constructing class ". get_class($this)." .\n"); |
|
64 | + $this->loggerInstance->debug(3, "--- BEGIN constructing class " . get_class($this) . " .\n"); |
|
65 | 65 | $this->languageInstance = new Language(); |
66 | 66 | } |
67 | 67 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * Logs the end of lifetime of the entity to the debug log on level 5. |
72 | 72 | */ |
73 | 73 | public function __destruct() { |
74 | - (new Logging())->debug(5,"--- KILL Destructing class ". get_class($this)." .\n"); |
|
74 | + (new Logging())->debug(5, "--- KILL Destructing class " . get_class($this) . " .\n"); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -56,8 +56,8 @@ |
||
56 | 56 | |
57 | 57 | $i = 0; |
58 | 58 | foreach ($salvageFedPrivs as $oneFed) { |
59 | - $_POST['option']["S123456789".$i] = "user:fedadmin#string##"; |
|
60 | - $_POST['value']["S123456789".$i."-0"] = $oneFed; |
|
59 | + $_POST['option']["S123456789" . $i] = "user:fedadmin#string##"; |
|
60 | + $_POST['value']["S123456789" . $i . "-0"] = $oneFed; |
|
61 | 61 | $i++; |
62 | 62 | } |
63 | 63 | ?> |
@@ -26,4 +26,4 @@ |
||
26 | 26 | $Gui->defaultPagePrelude(); |
27 | 27 | |
28 | 28 | // and now, serve actual data |
29 | -include("skins/".$Gui->skinObject->skin."/index.php"); |
|
29 | +include("skins/" . $Gui->skinObject->skin . "/index.php"); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | namespace core\common; |
12 | 12 | use \Exception; |
13 | 13 | |
14 | -require_once(dirname(dirname(__DIR__))."/config/_config.php"); |
|
14 | +require_once(dirname(dirname(__DIR__)) . "/config/_config.php"); |
|
15 | 15 | |
16 | 16 | class Logging { |
17 | 17 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | echo " ($category) "; |
87 | 87 | echo " " . $user . ": "; |
88 | 88 | if (is_string($message)) { |
89 | - echo $message ."\n"; |
|
89 | + echo $message . "\n"; |
|
90 | 90 | } else { |
91 | 91 | echo var_export($message); |
92 | 92 | } |
@@ -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> |