2016-08-07 00:05:36 -05:00

841 lines
19 KiB
PHP
Executable File
Raw Blame History

<?php
/**
* MonoBook nouveau
*
* Translated from gwicke's previous TAL template version to remove
* dependency on PHPTAL.
*
* @todo document
* @file
* @ingroup Skins
*/
if( !defined( 'MEDIAWIKI' ) )
die( -1 );
/**
* Inherit main code from SkinTemplate, set the CSS and template filter.
* @todo document
* @ingroup Skins
*/
class SkinGCL extends SkinTemplate {
/** Using monobook. */
function initPage( &$out ) {
SkinTemplate::initPage( $out );
$this->skinname = 'GCL';
$this->stylename = 'GCL';
$this->template = 'GCLTemplate';
# Bug 14520: skins that just include this file shouldn't load nonexis-
# tent CSS fix files.
$this->cssfiles = array( 'IE', 'IE50', 'IE55', 'IE60', 'IE70', 'rtl' );
}
}
/**
* @todo document
* @ingroup Skins
*/
class GCLTemplate extends QuickTemplate {
var $skin;
/**
* Template filter callback for MonoBook skin.
* Takes an associative array of data set from a SkinTemplate-based
* class, and a wrapper for MediaWiki's localization database, and
* outputs a formatted page.
*
* @access private
*/
function execute() {
global $wgRequest;
$this->skin = $skin = $this->data['skin'];
$action = $wgRequest->getText( 'action' );
// Suppress warnings to prevent notices about missing indexes in $this->data
wfSuppressWarnings();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="<?php $this->text('xhtmldefaultnamespace') ?>" <?php
foreach($this->data['xhtmlnamespaces'] as $tag => $ns) {
?>xmlns:<?php echo "{$tag}=\"{$ns}\" ";
} ?>xml:lang="<?php $this->text('lang') ?>" lang="<?php $this->text('lang') ?>" dir="<?php $this->text('dir') ?>">
<head>
<META name="verify-v1" content="DR13J1Yib1ArUACPhrFUurBkmu2AbcosQtbqjXcJMMg=" />
<meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" />
<?php $this->html('headlinks') ?>
<title><?php $this->text('pagetitle') ?></title>
<!-- link to stylesheet -->
<link rel="stylesheet" href="http://glitchcity.info/gcltheme.css" type="text/css" media="all" />
<!-- load the Anylink menu engine -->
<script src="http://glitchcity.info/scripts/menu_engine.js" type="text/javascript" language="javascript"></script>
<!-- load the actual menus -->
<script src="http://glitchcity.info/scripts/menus.js" type="text/javascript" language="javascript"></script>
<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"><!-- wikibits js --></script>
<?php print Skin::makeGlobalVariablesScript( $this->data ); ?>
<!-- Head Scripts -->
<?php $this->html('headscripts') ?>
<?php if($this->data['jsvarurl']) { ?>
<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('jsvarurl') ?>"><!-- site js --></script>
<?php } ?>
<?php if($this->data['pagecss']) { ?>
<style type="text/css"><?php $this->html('pagecss') ?></style>
<?php }
if($this->data['usercss']) { ?>
<style type="text/css"><?php $this->html('usercss') ?></style>
<?php }
if($this->data['userjs']) { ?>
<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('userjs' ) ?>"></script>
<?php }
if($this->data['userjsprev']) { ?>
<script type="<?php $this->text('jsmimetype') ?>"><?php $this->html('userjsprev') ?></script>
<?php }
if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>
</head>
<body<?php if($this->data['body_ondblclick']) { ?> ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
<?php if($this->data['body_onload']) { ?> onload="<?php $this->text('body_onload') ?>"<?php } ?>
class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>">
<!--<div id="header">-->
<table width="100%" height="100%" border="0">
<tr align="center">
<td height="107" colspan="3">
<p><table><tr><td>
<a href="index.php"><img src="http://img.photobucket.com/albums/v628/Ace91/GCLBanner.gif" border="0" height="125" width="390" alt="Banner"></a></td><td align="right"><h1>2003 - 2009</h1><b>Bringing the most up-to-date glitch information to the Pok&eacute;mon fan community</b>
</td></tr></table><br /></p>
<!--</div>--->
</td>
</tr>
</tr>
<tr valign="top">
<td height="10" colspan="3" id="topmenu" align="center">
Logged in as:
<?php foreach($this->data['personal_urls'] as $key => $item) { ?>
<?php if($key == "userpage") echo "<b>"; ?>
<span id="pt-<?php echo Sanitizer::escapeId($key) ?>"<?php
if ($item['active']) { ?> class="active"<?php } ?>><a href="<?php
echo htmlspecialchars($item['href']) ?>"<?php echo $skin->tooltipAndAccesskey('pt-'.$key) ?><?php
if(!empty($item['class'])) { ?> class="<?php
echo htmlspecialchars($item['class']) ?>"<?php } ?>><?php
echo htmlspecialchars($item['text']) ?></a></span>
<?php if($key == "userpage") echo "</b> (";
} ?>)
</td>
</tr>
<tr valign="top">
<td height="10" colspan="3" id="topmenu" align="center">
[<a href="http://glitchcity.info/wiki/">Home</a>] - [<a href="http://forums.glitchcity.info/index.php">Forums</a>]<!--</div>-->
</td>
</tr>
<!--<div id="leftmenu">-->
<tr>
<td valign="top" id="leftmenu">
<?php foreach ($this->data['sidebar'] as $bar => $cont) { ?>
<?php if($bar == "TOOLBOX") {
$this->toolbox();
} else if($bar == "SEARCH") {
$this->searchBox();
} else if($bar == "LANGUAGES") {
$this->languageBox();
} else {
?>
<?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo "<TABLE cellpadding=4 cellspacing=1 width='100%' id=menubox>
<TR><TD colspan=2 align=left id=menuheader>
<B>{$bar}</B>
</TD></TR>"; else echo "<TABLE cellpadding=4 cellspacing=1 width='100%' id=menubox>
<TR><TD colspan=2 align=left id=menuheader>
<B>{$out}</B>
</TD></TR>"; ?>
<?php
foreach($cont as $key => $val) {
if(strpos($val['text'],"|") === false) { ?>
<tr><td class="menuitem"><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></td></tr>
<?php } else {
$bits = explode("|",$val['text']);
?>
<tr><td class="menuitem"><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $skin->tooltipAndAccesskey($val['id']) ?>><img src="<?php echo Image::imageUrl($bits[1]); ?>" alt="<?php echo $bits[0]; ?>" title="<?php echo $bits[0]; ?>"></a><br /></td></tr>
<?php } } ?>
</TABLE>
<br />
<?php }
} ?>
</td>
<td width="85%" valign="top">
<a name="top" id="top"></a>
<?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?>
<?php
$linx = array();
$tbits = explode("/",$this->data['title']);
$linkzor2 = array();
$aURL = "http://wiki.epic.abwayax.com/wiki";
foreach($tbits As $b) {
$aURL .= str_replace(" ","_","/$b");
$linkzor2[] = "<a href=\"$aURL\">$b</a>";
}
$new_title = implode("/",$linkzor2);
foreach($this->data['content_actions'] as $key => $tab) {
$linx[] = '<a href="'.htmlspecialchars($tab['href']).'"'.$skin->tooltipAndAccesskey('ca-'.$key).'>'.htmlspecialchars($tab['text']).'</a>';
}
?>
<?php
ob_start();
$this->html('bodytext');
ob_end_clean(); ?>
<?php echo "<TABLE cellpadding=4 cellspacing=1 width='100%' id=menubox>
<TR><TD colspan=2 align=left id=menuheader>
<B>{$this->data['title']}</B>
</TD></TR>
<TR><TD class='menuheader'>".implode($linx," | ")."</TD></TR>
<TR><TD class='menuitem2'>"; ?>
<a name="top" id="top"></a>
<?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?>
<div id="bodyContent">
<div id="contentSub"><?php $this->html('subtitle') ?></div>
<?php if($this->data['undelete']) { ?><div id="contentSub2"><?php $this->html('undelete') ?></div><?php } ?>
<?php if($this->data['newtalk'] ) { ?><div class="usermessage"><?php $this->html('newtalk') ?></div><?php } ?>
<?php if($this->data['showjumplinks']) { ?><div id="jump-to-nav"><?php $this->msg('jumpto') ?> <a href="#column-one"><?php $this->msg('jumptonavigation') ?></a>, <a href="#searchInput"><?php $this->msg('jumptosearch') ?></a></div><?php } ?>
<!-- start content -->
<?php $this->html('bodytext') ?>
<?php if($this->data['catlinks']) { $this->html('catlinks'); } ?>
<!-- end content -->
<div class="visualClear"></div>
</div>
<?php echo "</td></tr></table>"; ?>
</td><td valign="top"><!--/* Profuse Host Javascript Tag v2.4.4 */-->
<!--/*SSL Delivery CommentSSL Backup CommentComment
*/-->
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://ads2.psychz.net/www/delivery/proajs.php':'http://ads2.psychz.net/www/delivery/proajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=9");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://ads2.psychz.net/www/delivery/prock.php?n=a754aedd&amp;cb=INSERT_RANDOM_NUMBER_H ERE' target='_blank'><img src='http://ads2.psychz.net/www/delivery/proavw.php?zoneid=9&amp;n=a754aedd' border='0' alt='' /></a></noscript>
</td></tr></table>
<!--/* Profuse Host Javascript Tag v2.4.4 */-->
<!--/*SSL Delivery CommentSSL Backup CommentComment
*/-->
<center>
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://ads2.psychz.net/www/delivery/proajs.php':'http://ads2.psychz.net/www/delivery/proajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=24");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://ads2.psychz.net/www/delivery/prock.php?n=a690fb5b&amp;cb=INSERT_RANDOM_NUMBER_H ERE' target='_blank'><img src='http://ads2.psychz.net/www/delivery/proavw.php?zoneid=24&amp;cb=INSERT_RANDOM_NUMBER_H ERE&amp;n=a690fb5b' border='0' alt='' /></a></noscript></center>
<div align="center">
<a href="http://www.pokenightmare.com/topsites/in.php?id=139">
<img src="http://www.pokenightmare.com/topsites/button.php?id=139" border="0" alt="PN Topsites"/>
</a>
<a href="http://www.pokemon706.com/top25/in.php?id=218">
<img src="http://www.pokemon706.com/top25/button.php?id=218" border="0">
</a>
<a href="http://si.itopsites.com/">
<img src="http://si.itopsites.com/button.php?id=32146" alt="Seafoam Island Topsites" border="0" />
</a>
<a href="http://ppntop50.com/">
<img src="http://ppntop50.com/button.php?u=Abwayax" alt="PPN Top 50" border="0" />
</a>
<a href="http://silvermoon.itopsites.com/">
<img src="http://silvermoon.itopsites.com/button.php?id=32147" alt="Silver Moon Topsites" border="0" />
</a>
<a href="http://toplist.pokeden.com/">
<img src="http://toplist.pokeden.com/button.php?u=Abwayax" alt="Pok<6F>Den Toplist" border="0" />
</a>
<a href="http://pokechow.planets.gamespy.com/list/index.php?act=in&site=89" target="_blank"><img src="http://pokechow.planets.gamespy.com/list/index.php?act=image&site=89" border="0" alt="Current Position" /></a>
<a href="http://zapchu.ppntop50.com/in.php?id=534">
<img src="http://zapchu.ppntop50.com/button.php?id=534" border="0" />
</a>
<a href="http://pokedream.itopsites.com/">
<img src="http://pokedream.itopsites.com/button.php?id=32148" alt="PokeDream Topsites" border="0" />
</a>
<a href="http://topsites.wcconnection.net/">
<img src="http://topsites.wcconnection.net/button.php?u=Abwayax" alt="WC Topsites" border="0" />
</a>
<a href="http://hctopsites.itopsites.com/">
<img src="http://hctopsites.itopsites.com/button.php?id=32149" alt="Rickys Haunted Cave - Topsites" border="0" />
</a>
<a href="http://pokemonheaven.itopsites.com/">
<img src="http://pokemonheaven.itopsites.com/button.php?id=32150" alt="Pokemon Heaven Topsite" border="0" />
</a>
<?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?>
<?php $this->html('reporttime') ?>
<?php if ( $this->data['debug'] ): ?>
<!-- Debug output:
<?php $this->text( 'debug' ); ?>
-->
<?php endif; ?>
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://kayllera.no-ip.org/piwik/" : "http://kayllera.no-ip.org/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://kayllera.no-ip.org/piwik/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript>
<!-- End Piwik Tag -->
</body></html>
<?php
wfRestoreWarnings();
} // end of execute() method
/*************************************************************************************************/
function searchBox() {
?>
<TABLE cellpadding=4 cellspacing=1 width='100%' id=menubox>
<TR><TD colspan=2 align=left id=menuheader>
<B>Search</B>
</TD></TR>
<tr><td class="menuitem"> <form action="<?php $this->text('searchaction') ?>" id="searchform"><div>
<input id="searchInput" name="search" type="text"<?php echo $this->skin->tooltipAndAccesskey('search');
if( isset( $this->data['search'] ) ) {
?> value="<?php $this->text('search') ?>"<?php } ?> />
<input type='submit' name="go" class="searchButton" id="searchGoButton" value="<?php $this->msg('searcharticle') ?>"<?php echo $this->skin->tooltipAndAccesskey( 'search-go' ); ?> />&nbsp;
<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="<?php $this->msg('searchbutton') ?>"<?php echo $this->skin->tooltipAndAccesskey( 'search-fulltext' ); ?> />
</div></form>
</td></tr></table>
<br />
<?php
}
/*************************************************************************************************/
function toolbox() {
?>
<TABLE cellpadding=4 cellspacing=1 width='100%' id=menubox>
<TR><TD colspan=2 align=left id=menuheader>
<B>Toolbox</B>
</TD></TR>
<?php
if($this->data['notspecialpage']) { ?>
<tr><td class="menuitem"><a href="<?php
echo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-whatlinkshere') ?>><?php $this->msg('whatlinkshere') ?></a></td></tr>
<?php
if( $this->data['nav_urls']['recentchangeslinked'] ) { ?>
<tr><td class="menuitem"><a href="<?php
echo htmlspecialchars($this->data['nav_urls']['recentchangeslinked']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-recentchangeslinked') ?>><?php $this->msg('recentchangeslinked') ?></a></td></tr>
<?php }
}
if(isset($this->data['nav_urls']['trackbacklink'])) { ?>
<tr><td class="menuitem"><a href="<?php
echo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-trackbacklink') ?>><?php $this->msg('trackbacklink') ?></a></td></tr>
<?php }
if($this->data['feeds']) { ?>
<tr><td class="menuitem"><?php foreach($this->data['feeds'] as $key => $feed) {
?><span id="feed-<?php echo Sanitizer::escapeId($key) ?>"><a href="<?php
echo htmlspecialchars($feed['href']) ?>"<?php echo $this->skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a>&nbsp;</span>
<?php } ?></td></tr><?php
}
foreach( array('contributions', 'log', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) {
if($this->data['nav_urls'][$special]) {
?><tr><td class="menuitem"><a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-'.$special) ?>><?php $this->msg($special) ?></a></td></tr>
<?php }
}
if(!empty($this->data['nav_urls']['print']['href'])) { ?>
<tr><td class="menuitem"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['print']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-print') ?>><?php $this->msg('printableversion') ?></a></td></tr><?php
}
if(!empty($this->data['nav_urls']['permalink']['href'])) { ?>
<tr><td class="menuitem"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['permalink']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-permalink') ?>><?php $this->msg('permalink') ?></a></td></tr><?php
} elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?>
<tr><td class="menuitem"><?php $this->msg('permalink') ?></td></tr><?php
}
wfRunHooks( 'MonoBookTemplateToolboxEnd', array( &$this ) );
wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this ) );
?>
</table>
<br />
<?php
}
/*************************************************************************************************/
function languageBox() {
if( $this->data['language_urls'] ) {
?>
<div id="p-lang" class="portlet">
<h5><?php $this->msg('otherlanguages') ?></h5>
<div class="pBody">
<ul>
<?php foreach($this->data['language_urls'] as $langlink) { ?>
<li class="<?php echo htmlspecialchars($langlink['class'])?>"><?php
?><a href="<?php echo htmlspecialchars($langlink['href']) ?>"><?php echo $langlink['text'] ?></a></li>
<?php } ?>
</ul>
</div>
</div>
<?php
}
}
/*************************************************************************************************/
function customBox( $bar, $cont ) {
?>
<div class='generated-sidebar portlet' id='p-<?php echo Sanitizer::escapeId($bar) ?>'<?php echo $this->skin->tooltip('p-'.$bar) ?>>
<h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h5>
<div class='pBody'>
<?php if ( is_array( $cont ) ) { ?>
<ul>
<?php foreach($cont as $key => $val) { ?>
<li id="<?php echo Sanitizer::escapeId($val['id']) ?>"<?php
if ( $val['active'] ) { ?> class="active" <?php }
?>><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $this->skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li>
<?php } ?>
</ul>
<?php } else {
# allow raw HTML block to be defined by extensions
print $cont;
}
?>
</div>
</div>
<?php
}
} // end of class