Песочница: различия между версиями
Перейти к навигации
Перейти к поиску
KOleg (обсуждение | вклад) Нет описания правки |
KOleg (обсуждение | вклад) Нет описания правки |
||
Строка 11: | Строка 11: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="xml" line='line'> | ||
<VirtualHost *> | <VirtualHost *> | ||
DocumentRoot "c:/каталогВики" | DocumentRoot "c:/каталогВики" | ||
Строка 35: | Строка 35: | ||
phpinfo(); | phpinfo(); | ||
?> | ?> | ||
</syntaxhighlight> | |||
<syntaxhighlight lang="css"> | |||
#column-content { margin: 0 0 .6em 0; } | |||
#content { margin: 2.8em 0 0 0; } | |||
#p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search { display:none; } | |||
#p-cactions { left: .1em; } | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="php" line='line'> | |||
/* Change the main page url used in things like the logo to an absolute url */ | |||
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL'; | |||
function lfChangeMainPageURL( $sk, &$tpl ) { | |||
$tpl->data['nav_urls']['mainpage']['href'] = "http://www.your-desired-url.com/"; // Point the main page url to an absolute url | |||
return true; | |||
} | |||
/* Change the main page url used in things like the logo to a url of another page on the wiki */ | |||
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL'; | |||
function lfChangeMainPageURL( $sk, &$tpl ) { | |||
$tpl->data['nav_urls']['mainpage']['href'] = Title::newFromText('ThePage')->getLocalURL(); // Point the main page url to a wiki page's url | |||
return true; | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> |
Версия от 14:40, 4 августа 2018
def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pass
<VirtualHost *>
DocumentRoot "c:/каталогВики"
ServerName имяВики.ru
Alias /w "c:/каталогВики/index.php"
</VirtualHost>
<Directory "c:/каталогВики">
Options FollowSymLinks
AllowOverride All
DirectoryIndex index.php
Order allow,deny
Allow from all
<LimitExcept GET POST>
Deny from all
</LimitExcept>
</Directory>
<?php
phpinfo();
?>
#column-content { margin: 0 0 .6em 0; }
#content { margin: 2.8em 0 0 0; }
#p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search { display:none; }
#p-cactions { left: .1em; }
/* Change the main page url used in things like the logo to an absolute url */
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL';
function lfChangeMainPageURL( $sk, &$tpl ) {
$tpl->data['nav_urls']['mainpage']['href'] = "http://www.your-desired-url.com/"; // Point the main page url to an absolute url
return true;
}
/* Change the main page url used in things like the logo to a url of another page on the wiki */
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL';
function lfChangeMainPageURL( $sk, &$tpl ) {
$tpl->data['nav_urls']['mainpage']['href'] = Title::newFromText('ThePage')->getLocalURL(); // Point the main page url to a wiki page's url
return true;
}