MediaWiki REL1_39
WebInstallerOptions.php
Go to the documentation of this file.
1<?php
22use Wikimedia\IPUtils;
23
25
29 public function execute() {
30 if ( $this->getVar( '_SkipOptional' ) == 'skip' ) {
31 $this->submitSkins();
32 return 'skip';
33 }
34 if ( $this->parent->request->wasPosted() && $this->submit() ) {
35 return 'continue';
36 }
37
38 $this->startForm();
39 $this->addModeOptions();
40 $this->addEmailOptions();
41 $this->addSkinOptions();
42 $this->addExtensionOptions();
43 $this->addFileOptions();
44 $this->addPersonalizationOptions();
45 $this->addAdvancedOptions();
46 $this->endForm();
47
48 return null;
49 }
50
51 private function addPersonalizationOptions() {
53 $this->addHTML(
54 $this->getFieldsetStart( 'config-personalization-settings' ) .
55 Html::rawElement( 'div', [
56 'class' => 'config-drag-drop'
57 ], wfMessage( 'config-logo-summary' )->parse() ) .
58 Html::openElement( 'div', [
59 'class' => 'config-personalization-options'
60 ] ) .
61 Html::hidden( 'config_LogoSiteName', $this->getVar( 'wgSitename' ) ) .
63 'var' => '_LogoIcon',
64 // Single quotes are intentional, LocalSettingsGenerator must output this unescaped.
65 'value' => '$wgResourceBasePath/resources/assets/change-your-logo.svg',
66 'label' => 'config-logo-icon',
67 'attribs' => [ 'dir' => 'ltr' ],
68 'help' => $parent->getHelpBox( 'config-logo-icon-help' )
69 ] ) .
71 'var' => '_LogoWordmark',
72 'label' => 'config-logo-wordmark',
73 'attribs' => [ 'dir' => 'ltr' ],
74 'help' => $parent->getHelpBox( 'config-logo-wordmark-help' )
75 ] ) .
77 'var' => '_LogoTagline',
78 'label' => 'config-logo-tagline',
79 'attribs' => [ 'dir' => 'ltr' ],
80 'help' => $parent->getHelpBox( 'config-logo-tagline-help' )
81 ] ) .
83 'var' => '_Logo1x',
84 'label' => 'config-logo-sidebar',
85 'attribs' => [ 'dir' => 'ltr' ],
86 'help' => $parent->getHelpBox( 'config-logo-sidebar-help' )
87 ] ) .
88 Html::openElement( 'div', [
89 'class' => 'logo-preview-area',
90 'data-main-page' => wfMessage( 'config-logo-preview-main' ),
91 'data-filedrop' => wfMessage( 'config-logo-filedrop' )
92 ] ) .
93 Html::closeElement( 'div' ) .
94 Html::closeElement( 'div' ) .
95 $this->getFieldsetEnd()
96 );
97 }
98
103 private function addModeOptions(): void {
104 $this->addHTML(
105 # User Rights
106 // getRadioSet() builds a set of labeled radio buttons.
107 // For grep: The following messages are used as the item labels:
108 // config-profile-wiki, config-profile-no-anon, config-profile-fishbowl, config-profile-private
109 $this->parent->getRadioSet( [
110 'var' => '_RightsProfile',
111 'label' => 'config-profile',
112 'itemLabelPrefix' => 'config-profile-',
113 'values' => array_keys( $this->parent->rightsProfiles ),
114 ] ) .
115 $this->parent->getInfoBox( wfMessage( 'config-profile-help' )->plain() ) .
116
117 # Licensing
118 // getRadioSet() builds a set of labeled radio buttons.
119 // For grep: The following messages are used as the item labels:
120 // config-license-cc-by, config-license-cc-by-sa, config-license-cc-by-nc-sa,
121 // config-license-cc-0, config-license-pd, config-license-gfdl,
122 // config-license-none, config-license-cc-choose
123 $this->parent->getRadioSet( [
124 'var' => '_LicenseCode',
125 'label' => 'config-license',
126 'itemLabelPrefix' => 'config-license-',
127 'values' => array_keys( $this->parent->licenses ),
128 'commonAttribs' => [ 'class' => 'licenseRadio' ],
129 ] ) .
130 $this->getCCChooser() .
131 $this->parent->getHelpBox( 'config-license-help' )
132 );
133 }
134
139 private function addEmailOptions(): void {
140 $emailwrapperStyle = $this->getVar( 'wgEnableEmail' ) ? '' : 'display: none';
141 $this->addHTML(
142 $this->getFieldsetStart( 'config-email-settings' ) .
143 $this->parent->getCheckBox( [
144 'var' => 'wgEnableEmail',
145 'label' => 'config-enable-email',
146 'attribs' => [ 'class' => 'showHideRadio', 'rel' => 'emailwrapper' ],
147 ] ) .
148 $this->parent->getHelpBox( 'config-enable-email-help' ) .
149 "<div id=\"emailwrapper\" style=\"$emailwrapperStyle\">" .
150 $this->parent->getTextBox( [
151 'var' => 'wgPasswordSender',
152 'label' => 'config-email-sender'
153 ] ) .
154 $this->parent->getHelpBox( 'config-email-sender-help' ) .
155 $this->parent->getCheckBox( [
156 'var' => 'wgEnableUserEmail',
157 'label' => 'config-email-user',
158 ] ) .
159 $this->parent->getHelpBox( 'config-email-user-help' ) .
160 $this->parent->getCheckBox( [
161 'var' => 'wgEnotifUserTalk',
162 'label' => 'config-email-usertalk',
163 ] ) .
164 $this->parent->getHelpBox( 'config-email-usertalk-help' ) .
165 $this->parent->getCheckBox( [
166 'var' => 'wgEnotifWatchlist',
167 'label' => 'config-email-watchlist',
168 ] ) .
169 $this->parent->getHelpBox( 'config-email-watchlist-help' ) .
170 $this->parent->getCheckBox( [
171 'var' => 'wgEmailAuthentication',
172 'label' => 'config-email-auth',
173 ] ) .
174 $this->parent->getHelpBox( 'config-email-auth-help' ) .
175 "</div>" .
176 $this->getFieldsetEnd()
177 );
178 }
179
184 private function addSkinOptions(): void {
185 $skins = $this->parent->findExtensions( 'skins' )->value;
186 '@phan-var array[] $skins';
187 $skinHtml = $this->getFieldsetStart( 'config-skins' );
188
189 $skinNames = array_map( 'strtolower', array_keys( $skins ) );
190 $chosenSkinName = $this->getVar( 'wgDefaultSkin', $this->parent->getDefaultSkin( $skinNames ) );
191
192 if ( $skins ) {
193 $radioButtons = $this->parent->getRadioElements( [
194 'var' => 'wgDefaultSkin',
195 'itemLabels' => array_fill_keys( $skinNames, 'config-skins-use-as-default' ),
196 'values' => $skinNames,
197 'value' => $chosenSkinName,
198 ] );
199
200 foreach ( $skins as $skin => $info ) {
201 if ( isset( $info['screenshots'] ) ) {
202 $screenshotText = $this->makeScreenshotsLink( $skin, $info['screenshots'] );
203 } else {
204 $screenshotText = htmlspecialchars( $skin );
205 }
206 $skinHtml .=
207 '<div class="config-skins-item">' .
208 $this->parent->getCheckBox( [
209 'var' => "skin-$skin",
210 'rawtext' => $screenshotText,
211 'value' => $this->getVar( "skin-$skin", true ), // all found skins enabled by default
212 ] ) .
213 '<div class="config-skins-use-as-default">' . $radioButtons[strtolower( $skin )] . '</div>' .
214 '</div>';
215 }
216 } else {
217 $skinHtml .=
218 Html::warningBox( wfMessage( 'config-skins-missing' )->plain(), 'config-warning-box' ) .
219 Html::hidden( 'config_wgDefaultSkin', $chosenSkinName );
220 }
221
222 $skinHtml .= $this->parent->getHelpBox( 'config-skins-help' ) .
223 $this->getFieldsetEnd();
224 $this->addHTML( $skinHtml );
225 }
226
231 private function addExtensionOptions(): void {
232 global $wgLang;
233
234 $extensions = $this->parent->findExtensions()->value;
235 '@phan-var array[] $extensions';
236 $dependencyMap = [];
237
238 if ( $extensions ) {
239 $extHtml = $this->getFieldsetStart( 'config-extensions' );
240
241 $extByType = [];
243 // Sort by type first
244 foreach ( $extensions as $ext => $info ) {
245 if ( !isset( $info['type'] ) || !isset( $types[$info['type']] ) ) {
246 // We let extensions normally define custom types, but
247 // since we aren't loading extensions, we'll have to
248 // categorize them under other
249 $info['type'] = 'other';
250 }
251 $extByType[$info['type']][$ext] = $info;
252 }
253
254 foreach ( $types as $type => $message ) {
255 if ( !isset( $extByType[$type] ) ) {
256 continue;
257 }
258 $extHtml .= Html::element( 'h2', [], $message );
259 foreach ( $extByType[$type] as $ext => $info ) {
260 $urlText = '';
261 if ( isset( $info['url'] ) ) {
262 $urlText = ' ' . Html::element( 'a', [ 'href' => $info['url'] ], '(more information)' );
263 }
264 $attribs = [
265 'data-name' => $ext,
266 'class' => 'config-ext-input'
267 ];
268 $labelAttribs = [];
269 $fullDepList = [];
270 if ( isset( $info['requires']['extensions'] ) ) {
271 $dependencyMap[$ext]['extensions'] = $info['requires']['extensions'];
272 $labelAttribs['class'] = 'mw-ext-with-dependencies';
273 }
274 if ( isset( $info['requires']['skins'] ) ) {
275 $dependencyMap[$ext]['skins'] = $info['requires']['skins'];
276 $labelAttribs['class'] = 'mw-ext-with-dependencies';
277 }
278 if ( isset( $dependencyMap[$ext] ) ) {
279 $links = [];
280 // For each dependency, link to the checkbox for each
281 // extension/skin that is required
282 if ( isset( $dependencyMap[$ext]['extensions'] ) ) {
283 foreach ( $dependencyMap[$ext]['extensions'] as $name ) {
284 $links[] = Html::element(
285 'a',
286 [ 'href' => "#config_ext-$name" ],
287 $name
288 );
289 }
290 }
291 if ( isset( $dependencyMap[$ext]['skins'] ) ) {
292 // @phan-suppress-next-line PhanTypeMismatchForeach Phan internal bug
293 foreach ( $dependencyMap[$ext]['skins'] as $name ) {
294 $links[] = Html::element(
295 'a',
296 [ 'href' => "#config_skin-$name" ],
297 $name
298 );
299 }
300 }
301
302 $text = wfMessage( 'config-extensions-requires' )
303 ->rawParams( $ext, $wgLang->commaList( $links ) )
304 ->escaped();
305 } else {
306 $text = $ext;
307 }
308 $extHtml .= $this->parent->getCheckBox( [
309 'var' => "ext-$ext",
310 'rawtext' => $text,
311 'attribs' => $attribs,
312 'labelAttribs' => $labelAttribs,
313 ] );
314 }
315 }
316
317 $extHtml .= $this->parent->getHelpBox( 'config-extensions-help' ) .
318 $this->getFieldsetEnd();
319 $this->addHTML( $extHtml );
320 // Push the dependency map to the client side
321 $this->addHTML( Html::inlineScript(
322 'var extDependencyMap = ' . Xml::encodeJsVar( $dependencyMap )
323 ) );
324 }
325 }
326
331 private function addFileOptions(): void {
332 // Having / in paths in Windows looks funny :)
333 $this->setVar( 'wgDeletedDirectory',
334 str_replace(
335 '/', DIRECTORY_SEPARATOR,
336 $this->getVar( 'wgDeletedDirectory' )
337 )
338 );
339
340 $uploadwrapperStyle = $this->getVar( 'wgEnableUploads' ) ? '' : 'display: none';
341 $this->addHTML(
342 # Uploading
343 $this->getFieldsetStart( 'config-upload-settings' ) .
344 $this->parent->getCheckBox( [
345 'var' => 'wgEnableUploads',
346 'label' => 'config-upload-enable',
347 'attribs' => [ 'class' => 'showHideRadio', 'rel' => 'uploadwrapper' ],
348 'help' => $this->parent->getHelpBox( 'config-upload-help' )
349 ] ) .
350 '<div id="uploadwrapper" style="' . $uploadwrapperStyle . '">' .
351 $this->parent->getTextBox( [
352 'var' => 'wgDeletedDirectory',
353 'label' => 'config-upload-deleted',
354 'attribs' => [ 'dir' => 'ltr' ],
355 'help' => $this->parent->getHelpBox( 'config-upload-deleted-help' )
356 ] ) .
357 '</div>'
358 );
359 $this->addHTML(
360 $this->parent->getCheckBox( [
361 'var' => 'wgUseInstantCommons',
362 'label' => 'config-instantcommons',
363 'help' => $this->parent->getHelpBox( 'config-instantcommons-help' )
364 ] ) .
365 $this->getFieldsetEnd()
366 );
367 }
368
373 private function addAdvancedOptions(): void {
374 $caches = [ 'none' ];
375 $cachevalDefault = 'none';
376
377 if ( count( $this->getVar( '_Caches' ) ) ) {
378 // A CACHE_ACCEL implementation is available
379 $caches[] = 'accel';
380 $cachevalDefault = 'accel';
381 }
382 $caches[] = 'memcached';
383
384 // We'll hide/show this on demand when the value changes, see config.js.
385 $cacheval = $this->getVar( '_MainCacheType' );
386 if ( !$cacheval ) {
387 // We need to set a default here; but don't hardcode it
388 // or we lose it every time we reload the page for validation
389 // or going back!
390 $cacheval = $cachevalDefault;
391 }
392 $hidden = ( $cacheval == 'memcached' ) ? '' : 'display: none';
393 $this->addHTML(
394 # Advanced settings
395 $this->getFieldsetStart( 'config-advanced-settings' ) .
396 # Object cache settings
397 // getRadioSet() builds a set of labeled radio buttons.
398 // For grep: The following messages are used as the item labels:
399 // config-cache-none, config-cache-accel, config-cache-memcached
400 $this->parent->getRadioSet( [
401 'var' => '_MainCacheType',
402 'label' => 'config-cache-options',
403 'itemLabelPrefix' => 'config-cache-',
404 'values' => $caches,
405 'value' => $cacheval,
406 ] ) .
407 $this->parent->getHelpBox( 'config-cache-help' ) .
408 "<div id=\"config-memcachewrapper\" style=\"$hidden\">" .
409 $this->parent->getTextArea( [
410 'var' => '_MemCachedServers',
411 'label' => 'config-memcached-servers',
412 'help' => $this->parent->getHelpBox( 'config-memcached-help' )
413 ] ) .
414 '</div>' .
415 $this->getFieldsetEnd()
416 );
417 }
418
424 private function makeScreenshotsLink( $name, $screenshots ) {
425 global $wgLang;
426 if ( count( $screenshots ) > 1 ) {
427 $links = [];
428 $counter = 1;
429
430 foreach ( $screenshots as $shot ) {
431 $links[] = Html::element(
432 'a',
433 [ 'href' => $shot, 'target' => '_blank' ],
434 $wgLang->formatNum( $counter++ )
435 );
436 }
437 return wfMessage( 'config-skins-screenshots' )
438 ->rawParams( $name, $wgLang->commaList( $links ) )
439 ->escaped();
440 } else {
441 $link = Html::element(
442 'a',
443 [ 'href' => $screenshots[0], 'target' => '_blank' ],
444 wfMessage( 'config-screenshot' )->text()
445 );
446 return wfMessage( 'config-skins-screenshot', $name )->rawParams( $link )->escaped();
447 }
448 }
449
453 public function getCCPartnerUrl() {
454 $server = $this->getVar( 'wgServer' );
455 $exitUrl = $server . $this->parent->getUrl( [
456 'page' => 'Options',
457 'SubmitCC' => 'indeed',
458 'config__LicenseCode' => 'cc',
459 'config_wgRightsUrl' => '[license_url]',
460 'config_wgRightsText' => '[license_name]',
461 'config_wgRightsIcon' => '[license_button]',
462 ] );
463 $styleUrl = $server . dirname( dirname( $this->parent->getUrl() ) ) .
464 '/mw-config/config-cc.css';
465 $iframeUrl = 'https://creativecommons.org/license/?' .
466 wfArrayToCgi( [
467 'partner' => 'MediaWiki',
468 'exit_url' => $exitUrl,
469 'lang' => $this->getVar( '_UserLang' ),
470 'stylesheet' => $styleUrl,
471 ] );
472
473 return $iframeUrl;
474 }
475
479 public function getCCChooser() {
480 $iframeAttribs = [
481 'class' => 'config-cc-iframe',
482 'name' => 'config-cc-iframe',
483 'id' => 'config-cc-iframe',
484 'frameborder' => 0,
485 'width' => '100%',
486 'height' => '100%',
487 ];
488 if ( $this->getVar( '_CCDone' ) ) {
489 $iframeAttribs['src'] = $this->parent->getUrl( [ 'ShowCC' => 'yes' ] );
490 } else {
491 $iframeAttribs['src'] = $this->getCCPartnerUrl();
492 }
493 $wrapperStyle = ( $this->getVar( '_LicenseCode' ) == 'cc-choose' ) ? '' : 'display: none';
494
495 return "<div class=\"config-cc-wrapper\" id=\"config-cc-wrapper\" style=\"$wrapperStyle\">\n" .
496 Html::element( 'iframe', $iframeAttribs ) .
497 "</div>\n";
498 }
499
503 public function getCCDoneBox() {
504 $js = "parent.document.getElementById('config-cc-wrapper').style.height = '$1';";
505 // If you change this height, also change it in config.css
506 $expandJs = str_replace( '$1', '54em', $js );
507 $reduceJs = str_replace( '$1', '70px', $js );
508
509 return '<p>' .
510 Html::element( 'img', [ 'src' => $this->getVar( 'wgRightsIcon' ) ] ) .
511 "\u{00A0}\u{00A0}" .
512 htmlspecialchars( $this->getVar( 'wgRightsText' ) ) .
513 "</p>\n" .
514 "<p style=\"text-align: center;\">" .
515 Html::element( 'a',
516 [
517 'href' => $this->getCCPartnerUrl(),
518 'onclick' => $expandJs,
519 ],
520 wfMessage( 'config-cc-again' )->text()
521 ) .
522 "</p>\n" .
523 "<script>\n" .
524 # Reduce the wrapper div height
525 htmlspecialchars( $reduceJs ) .
526 "\n" .
527 "</script>\n";
528 }
529
530 public function submitCC() {
531 $newValues = $this->parent->setVarsFromRequest(
532 [ 'wgRightsUrl', 'wgRightsText', 'wgRightsIcon' ] );
533 if ( count( $newValues ) != 3 ) {
534 $this->parent->showError( 'config-cc-error' );
535
536 return;
537 }
538 $this->setVar( '_CCDone', true );
539 $this->addHTML( $this->getCCDoneBox() );
540 }
541
548 public function submitSkins() {
549 $skins = array_keys( $this->parent->findExtensions( 'skins' )->value );
550 $this->parent->setVar( '_Skins', $skins );
551
552 if ( $skins ) {
553 $skinNames = array_map( 'strtolower', $skins );
554 $this->parent->setVar( 'wgDefaultSkin', $this->parent->getDefaultSkin( $skinNames ) );
555 }
556
557 return true;
558 }
559
563 public function submit() {
564 $this->parent->setVarsFromRequest( [ '_RightsProfile', '_LicenseCode',
565 'wgEnableEmail', 'wgPasswordSender', 'wgEnableUploads',
566 '_Logo1x', '_LogoWordmark', '_LogoTagline', '_LogoIcon',
567 'wgEnableUserEmail', 'wgEnotifUserTalk', 'wgEnotifWatchlist',
568 'wgEmailAuthentication', '_MainCacheType', '_MemCachedServers',
569 'wgUseInstantCommons', 'wgDefaultSkin' ] );
570
571 $retVal = true;
572
573 if ( !array_key_exists( $this->getVar( '_RightsProfile' ), $this->parent->rightsProfiles ) ) {
574 reset( $this->parent->rightsProfiles );
575 $this->setVar( '_RightsProfile', key( $this->parent->rightsProfiles ) );
576 }
577
578 $code = $this->getVar( '_LicenseCode' );
579 if ( $code == 'cc-choose' ) {
580 if ( !$this->getVar( '_CCDone' ) ) {
581 $this->parent->showError( 'config-cc-not-chosen' );
582 $retVal = false;
583 }
584 } elseif ( array_key_exists( $code, $this->parent->licenses ) ) {
585 // Messages:
586 // config-license-cc-by, config-license-cc-by-sa, config-license-cc-by-nc-sa,
587 // config-license-cc-0, config-license-pd, config-license-gfdl, config-license-none,
588 // config-license-cc-choose
589 $entry = $this->parent->licenses[$code];
590 $this->setVar( 'wgRightsText',
591 $entry['text'] ?? wfMessage( 'config-license-' . $code )->text() );
592 $this->setVar( 'wgRightsUrl', $entry['url'] );
593 $this->setVar( 'wgRightsIcon', $entry['icon'] );
594 } else {
595 $this->setVar( 'wgRightsText', '' );
596 $this->setVar( 'wgRightsUrl', '' );
597 $this->setVar( 'wgRightsIcon', '' );
598 }
599
600 $skinsAvailable = array_keys( $this->parent->findExtensions( 'skins' )->value );
601 $skinsToInstall = [];
602 foreach ( $skinsAvailable as $skin ) {
603 $this->parent->setVarsFromRequest( [ "skin-$skin" ] );
604 if ( $this->getVar( "skin-$skin" ) ) {
605 $skinsToInstall[] = $skin;
606 }
607 }
608 $this->parent->setVar( '_Skins', $skinsToInstall );
609
610 if ( !$skinsToInstall && $skinsAvailable ) {
611 $this->parent->showError( 'config-skins-must-enable-some' );
612 $retVal = false;
613 }
614 $defaultSkin = $this->getVar( 'wgDefaultSkin' );
615 $skinsToInstallLowercase = array_map( 'strtolower', $skinsToInstall );
616 if ( $skinsToInstall && !in_array( $defaultSkin, $skinsToInstallLowercase ) ) {
617 $this->parent->showError( 'config-skins-must-enable-default' );
618 $retVal = false;
619 }
620
621 $extsAvailable = array_keys( $this->parent->findExtensions()->value );
622 $extsToInstall = [];
623 foreach ( $extsAvailable as $ext ) {
624 $this->parent->setVarsFromRequest( [ "ext-$ext" ] );
625 if ( $this->getVar( "ext-$ext" ) ) {
626 $extsToInstall[] = $ext;
627 }
628 }
629 $this->parent->setVar( '_Extensions', $extsToInstall );
630
631 if ( $this->getVar( '_MainCacheType' ) == 'memcached' ) {
632 $memcServers = explode( "\n", $this->getVar( '_MemCachedServers' ) );
633 // FIXME: explode() will always result in an array of at least one string, even on null (when
634 // the string will be empty and you'll get a PHP warning), so this has never worked?
635 // @phan-suppress-next-line PhanImpossibleCondition
636 if ( !$memcServers ) {
637 $this->parent->showError( 'config-memcache-needservers' );
638 $retVal = false;
639 }
640
641 foreach ( $memcServers as $server ) {
642 $memcParts = explode( ":", $server, 2 );
643 if ( !isset( $memcParts[0] )
644 || ( !IPUtils::isValid( $memcParts[0] )
645 && ( gethostbyname( $memcParts[0] ) == $memcParts[0] ) )
646 ) {
647 $this->parent->showError( 'config-memcache-badip', $memcParts[0] );
648 $retVal = false;
649 } elseif ( !isset( $memcParts[1] ) ) {
650 $this->parent->showError( 'config-memcache-noport', $memcParts[0] );
651 $retVal = false;
652 } elseif ( $memcParts[1] < 1 || $memcParts[1] > 65535 ) {
653 $this->parent->showError( 'config-memcache-badport', 1, 65535 );
654 $retVal = false;
655 }
656 }
657 }
658
659 return $retVal;
660 }
661
662}
wfArrayToCgi( $array1, $array2=null, $prefix='')
This function takes one or two arrays as input, and returns a CGI-style string, e....
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
if(!defined( 'MW_NO_SESSION') &&! $wgCommandLineMode $wgLang
Definition Setup.php:497
static element( $element, $attribs=[], $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
Definition Html.php:236
static warningBox( $html, $className='')
Return a warning box.
Definition Html.php:775
static hidden( $name, $value, array $attribs=[])
Convenience function to produce an input element with type=hidden.
Definition Html.php:851
static getExtensionTypes()
Returns an array with the base extension types.
internal since 1.36
Definition User.php:70
submitSkins()
If the user skips this installer page, we still need to set up the default skins, but ignore everythi...
Abstract class to define pages for the web installer.
WebInstaller $parent
The WebInstaller object this WebInstallerPage belongs to.
getFieldsetEnd()
Get the end tag of a fieldset.
endForm( $continue='continue', $back='back')
getVar( $var, $default=null)
getFieldsetStart( $legend)
Get the starting tags of a fieldset.
getTextBox( $params)
Get a labelled text box to configure a variable.
getHelpBox( $msg,... $args)
Get small text indented help for a preceding form field.
if(!is_readable( $file)) $ext
Definition router.php:48