Move /wiki/ to /w/. See #5

This commit is contained in:
Adrian Malacoda
2016-08-07 00:05:36 -05:00
parent d0b62ad406
commit 38c3f57c9f
17750 changed files with 16 additions and 16 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
define("WIKI_PATH", (getenv('GCL_WIKI_URL') ?: "http://glitchcity.info/wiki") . "/index.php?title="); define("WIKI_PATH", (getenv('GCL_WIKI_URL') ?: "http://glitchcity.info/wiki") . "/");
define("LOCAL_WIKI_PATH", "http://localhost/wiki/index.php?title="); define("LOCAL_WIKI_PATH", "http://localhost/wiki/");
define("WIKI_NAME","Glitch City Laboratories"); define("WIKI_NAME","Glitch City Laboratories");
//include("../wiki/include.inc.php"); //include("../wiki/include.inc.php");
//define("MEDIAWIKI",1); //define("MEDIAWIKI",1);
@ -66,11 +66,11 @@ global $wgScriptPath, $wgUploadPath, $wgUploadDirectory, $wgHashedUploadDirector
//include("c:/wamp/www/epic/w/w/includes/Image.php"); //include("c:/wamp/www/epic/w/w/includes/Image.php");
//include("c:/wamp/www/epic/w/w/includes/ImageFunctions.php"); //include("c:/wamp/www/epic/w/w/includes/ImageFunctions.php");
function rmBOM($string) { function rmBOM($string) {
if(substr($string, 0,3) == pack("CCC",0xef,0xbb,0xbf)) { if(substr($string, 0,3) == pack("CCC",0xef,0xbb,0xbf)) {
$string=substr($string, 3); $string=substr($string, 3);
} }
return $string; return $string;
} }
function wik2($str) { function wik2($str) {
@ -115,12 +115,12 @@ $inBlock = false;
$blocks = array(); $blocks = array();
$currentBlock = ""; $currentBlock = "";
foreach($wdata As $line) foreach($wdata As $line)
{ {
//$line = preg_replace('/[^(\x20-\x7F)]*/','', $line); //$line = preg_replace('/[^(\x20-\x7F)]*/','', $line);
$line = trim($line); $line = trim($line);
if(substr($line,0,2) == "* ") if(substr($line,0,2) == "* ")
{ {
if($inBlock) if($inBlock)
{ {
@ -129,8 +129,8 @@ foreach($wdata As $line)
} }
$inBlock = true; $inBlock = true;
$title = wik2(trim(substr($line,2))); $title = wik2(trim(substr($line,2)));
} }
elseif(substr($line,0,2) == "**") elseif(substr($line,0,2) == "**")
{ {
$link = trim(substr($line,2)); $link = trim(substr($line,2));
$bits = explode("|",$link); $bits = explode("|",$link);
@ -139,16 +139,16 @@ foreach($wdata As $line)
if(substr($url,0,7) != "http://") if(substr($url,0,7) != "http://")
{ {
$url = WIKI_PATH."$url"; $url = WIKI_PATH."$url";
} }
if(!empty($bits[2])) if(!empty($bits[2]))
{ {
$currentBlock .= "<a href='$url'><img src='http://elsanctum.co.cc/" . Image::imageUrl($bits[2]) . "' alt='$pageTitle' title='$pageTitle'></a><br />\n"; $currentBlock .= "<a href='$url'><img src='http://elsanctum.co.cc/" . Image::imageUrl($bits[2]) . "' alt='$pageTitle' title='$pageTitle'></a><br />\n";
} }
else else
{ {
$currentBlock .= "<a href='$url'>$pageTitle</a><br />\n"; $currentBlock .= "<a href='$url'>$pageTitle</a><br />\n";
} }
} }
} }
@ -164,7 +164,7 @@ foreach($blocks as $title => $block)
<td class="catbg"><strong>'.$title.'</strong></td> <td class="catbg"><strong>'.$title.'</strong></td>
</tr> </tr>
<tr> <tr>
<td class="windowbg2">'.$block.'</td></tr></table><br />'; <td class="windowbg2">'.$block.'</td></tr></table><br />';
} }
} }

View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 586 B

View File

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

View File

Before

Width:  |  Height:  |  Size: 469 B

After

Width:  |  Height:  |  Size: 469 B

View File

Before

Width:  |  Height:  |  Size: 256 B

After

Width:  |  Height:  |  Size: 256 B

View File

Before

Width:  |  Height:  |  Size: 361 B

After

Width:  |  Height:  |  Size: 361 B

View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

Before

Width:  |  Height:  |  Size: 530 B

After

Width:  |  Height:  |  Size: 530 B

View File

Before

Width:  |  Height:  |  Size: 322 B

After

Width:  |  Height:  |  Size: 322 B

View File

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 545 B

View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

Before

Width:  |  Height:  |  Size: 606 B

After

Width:  |  Height:  |  Size: 606 B

View File

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

View File

Before

Width:  |  Height:  |  Size: 550 B

After

Width:  |  Height:  |  Size: 550 B

View File

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

View File

Before

Width:  |  Height:  |  Size: 580 B

After

Width:  |  Height:  |  Size: 580 B

View File

Before

Width:  |  Height:  |  Size: 373 B

After

Width:  |  Height:  |  Size: 373 B

View File

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 188 B

View File

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

View File

Before

Width:  |  Height:  |  Size: 378 B

After

Width:  |  Height:  |  Size: 378 B

View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

Before

Width:  |  Height:  |  Size: 160 B

After

Width:  |  Height:  |  Size: 160 B

View File

Before

Width:  |  Height:  |  Size: 256 B

After

Width:  |  Height:  |  Size: 256 B

View File

Before

Width:  |  Height:  |  Size: 530 B

After

Width:  |  Height:  |  Size: 530 B

View File

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

View File

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 545 B

View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

Before

Width:  |  Height:  |  Size: 269 B

After

Width:  |  Height:  |  Size: 269 B

View File

Before

Width:  |  Height:  |  Size: 278 B

After

Width:  |  Height:  |  Size: 278 B

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

View File

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 623 B

View File

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

View File

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 589 B

View File

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

View File

Before

Width:  |  Height:  |  Size: 631 B

After

Width:  |  Height:  |  Size: 631 B

View File

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 356 B

View File

Before

Width:  |  Height:  |  Size: 599 B

After

Width:  |  Height:  |  Size: 599 B

View File

Before

Width:  |  Height:  |  Size: 278 B

After

Width:  |  Height:  |  Size: 278 B

View File

Before

Width:  |  Height:  |  Size: 615 B

After

Width:  |  Height:  |  Size: 615 B

View File

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

View File

Before

Width:  |  Height:  |  Size: 332 B

After

Width:  |  Height:  |  Size: 332 B

Some files were not shown because too many files have changed in this diff Show More