Песочница: различия между версиями

Материал из Home wiki
Перейти к навигации Перейти к поиску
Строка 11: Строка 11:
  
  
<syntaxhighlight lang="bash" line='line'>
+
<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>

Версия 13:40, 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}