Песочница: различия между версиями
Перейти к навигации
Перейти к поиску
KOleg (обсуждение | вклад) (Создана пустая страница) |
KOleg (обсуждение | вклад) |
||
(не показаны 3 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
+ | <syntaxhighlight lang="python" line='line'> | ||
+ | def quickSort(arr): | ||
+ | less = [] | ||
+ | pivotList = [] | ||
+ | more = [] | ||
+ | if len(arr) <= 1: | ||
+ | return arr | ||
+ | else: | ||
+ | pass | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | <syntaxhighlight lang="xml" line='line'> | ||
+ | <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> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | <syntaxhighlight lang="php" line='line'> | ||
+ | <?php | ||
+ | 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 lang="php"> | ||
+ | Тест <?php if phpinfo ?> | ||
+ | </syntaxhighlight> |
Текущая версия на 21:51, 4 августа 2018
1def quickSort(arr):
2 less = []
3 pivotList = []
4 more = []
5 if len(arr) <= 1:
6 return arr
7 else:
8 pass
1 <VirtualHost *>
2 DocumentRoot "c:/каталогВики"
3 ServerName имяВики.ru
4
5 Alias /w "c:/каталогВики/index.php"
6 </VirtualHost>
7 <Directory "c:/каталогВики">
8 Options FollowSymLinks
9 AllowOverride All
10 DirectoryIndex index.php
11
12 Order allow,deny
13 Allow from all
14 <LimitExcept GET POST>
15 Deny from all
16 </LimitExcept>
17 </Directory>
1<?php
2phpinfo();
3?>
#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; }
1/* Change the main page url used in things like the logo to an absolute url */
2$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL';
3function lfChangeMainPageURL( $sk, &$tpl ) {
4 $tpl->data['nav_urls']['mainpage']['href'] = "http://www.your-desired-url.com/"; // Point the main page url to an absolute url
5 return true;
6}
7
8/* Change the main page url used in things like the logo to a url of another page on the wiki */
9$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL';
10function lfChangeMainPageURL( $sk, &$tpl ) {
11 $tpl->data['nav_urls']['mainpage']['href'] = Title::newFromText('ThePage')->getLocalURL(); // Point the main page url to a wiki page's url
12 return true;
13}
Тест <?php if phpinfo ?>