Extension:Painting/Code/Painting.php

';	}

$filename = str_replace('?','P',str_replace(' ','_',$title)); $filename = str_replace(':','D',str_replace('@','A',$filename)); $filename = str_replace('/','S',str_replace('\\','s',$filename)); $filename = str_replace('*','E',str_replace('"','G',$filename));	$filename = str_replace('>','g',str_replace('<','p',$filename));	$filename = str_replace('|','P',$filename);	$str = ''.$title.' ';

$urlbase = $wgSitename == "WikiPoll" ? "http://localhost" : "http://wikipainting.free.fr";

if (!empty($_POST['painttitle']) && empty($locked)) if ($_POST['painttitle'] == $filename) // applet ? return ' '.$str. '     '. (empty($imgmx)?'':'		  '). ' ';

$fn = "/mnt/128/free.fr/d/a/wikipainting/paintings/".$filename.".txt"; $i = -1; if (file_exists($fn)) {	$txt = fopen($fn,"r"); // check the revision number if ($txt) {		while (!feof($txt)) {		$a = fgets($txt); if ($a != FALSE) $i++; }	fclose($txt); }	}

if (empty($locked)) return $str.' '; else return ''; }