1<?php 2/******************************** 3OSBib: 4A collection of PHP classes to create and manage bibliographic formatting for OS bibliography software 5using the OSBib standard. 6 7Released through http://bibliophile.sourceforge.net under the GPL licence. 8Do whatever you like with this -- some credit to the author(s) would be appreciated. 9 10If you make improvements, please consider contacting the administrators at bibliophile.sourceforge.net 11so that your improvements can be added to the release package. 12 13Adapted from WIKINDX: http://wikindx.sourceforge.net 14 15Mark Grimshaw 2005 16http://bibliophile.sourceforge.net 17********************************/ 18/** 19* Success messages 20* 21* @author Mark Grimshaw 22* 23* $Header: /cvsroot/bibliophile/OSBib/create/SUCCESS.php,v 1.1 2005/06/20 22:26:51 sirfragalot Exp $ 24*/ 25class SUCCESS 26{ 27// Constructor 28 function SUCCESS() 29 { 30 } 31/** 32* Print the message 33*/ 34 function text($indexName, $extra = FALSE) 35 { 36 include_once("MISC.php"); 37 include_once("../UTF8.php"); 38 $utf8 = new UTF8(); 39 $arrays = $this->loadArrays(); 40 $string = $arrays[$indexName]; 41 $string = $extra ? preg_replace("/###/", $utf8->smartUtf8_decode($extra), $string) : 42 preg_replace("/###/", "", $string); 43 return MISC::p($utf8->encodeUtf8($string), "success", "center"); 44 } 45// English success messages 46 function loadArrays() 47 { 48 return array( 49 "style" => "Successfully###bibliographic style", 50 ); 51 } 52} 53?> 54