Purple exclamation mark.svg Planning the future of Botwiki! - Help us bring Botwiki up to date, contribute to our strategy discussion, add bot scripts, and contribute manuals, guides, and tutorials! Almost anything related to bots, particularly those used to edit mediawiki, is welcome.

Red exclamation mark.svg UNABLE TO EDIT? - We've experienced attacks by spambots lately and now require you to confirm your e-mail before you can edit (go to your preferences, enter an e-mail address, and request a confirmation e-mail, then go to your e-mail and click on the confirmation link). We also require new accounts to make a few edits and wait a few minutes before before you can create a page; however, if this is a problem contact us in #botwiki and we can manually confirm your account. Sorry for the inconvenience.

Php:Headers lib.php

From Botwiki
Jump to: navigation, search
<?
function init_html($title){
	?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title><?echo $title;?></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<!-- <meta name="robots" content="noindex,nofollow"> -->
 
	<style type="text/css" media="screen,projection">/*<![CDATA[*/
		@import "http://en.wikipedia.org/skins-1.5/common/shared.css?80";
		@import "http://en.wikipedia.org/skins-1.5/monobook/main.css?80";
		@import "../misza.css";
	/*]]>*/</style>
	</head>
		<body class="mediawiki">
 
		<div id="globalWrapper">
		<div id="column-content">
		<div id="content">
		<h1><?echo $title;?></h1><br/>		
<?
}
 
function end_html(){
?>
</div><!--content-->
</div><!--column-content-->
<div id="column-one">
<div id="p-logo" class="portlet">
<a title="Hosted by the Wikimedia Toolserver" href="/" style="background-image: url(pallone.png);"></a>
</div><!--p-logo-->
 
<div id="p-navigation" class="portlet">
<h5>Navigation</h5>
<div class="pBody">
<ul>
<?
//Devo aprire il file.
$filename = "links.txt";
 
// copia il contenuto di un file in una stringa
//$filename = "/usr/local/something.txt";
$handle = fopen($filename, "r");
 
if($handle)
{
	$contents = fread($handle, filesize($filename));
	fclose($handle);
	echo $contents;
}
?>
</ul>
</div>
</div><!--p-navigation-->
 
</div><!--column-one-->
<div class="visualClear" />
<div id="footer">
 
<a href="http://validator.w3.org/check?uri=referer"><img
    src="http://www.w3.org/Icons/valid-xhtml10-blue"
    alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
 
</div><!--footer-->
</div><!--globalWrapper-->	
</body>
 
</html>
<?
}
?>
Personal tools
Share