From: 360team.ca <gop...@us...> - 2011-01-25 16:15:32
|
Update of /cvsroot/xrms/xrms/include/jpgraph-2.x In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv23726 Modified Files: jpgraph.php Log Message: As of PHP 5.3, functions split() and ereg have been deprecated Index: jpgraph.php =================================================================== RCS file: /cvsroot/xrms/xrms/include/jpgraph-2.x/jpgraph.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** jpgraph.php 1 Apr 2005 17:13:03 -0000 1.3 --- jpgraph.php 25 Jan 2011 16:15:24 -0000 1.4 *************** *** 5624,5628 **** // Get the specific height for a text string function GetTextHeight($txt="",$angle=0) { ! $tmp = split("\n",$txt); $n = count($tmp); $m=0; --- 5624,5628 ---- // Get the specific height for a text string function GetTextHeight($txt="",$angle=0) { ! $tmp = explode("\n",$txt); $n = count($tmp); $m=0; *************** *** 5669,5673 **** function GetTextWidth($txt,$angle=0) { ! $tmp = split("\n",$txt); $n = count($tmp); if( $this->font_family <= FF_FONT2+1 ) { --- 5669,5673 ---- function GetTextWidth($txt,$angle=0) { ! $tmp = explode("\n",$txt); $n = count($tmp); if( $this->font_family <= FF_FONT2+1 ) { *************** *** 5820,5825 **** } else { ! if( ereg("\n",$txt) ) { ! $tmp = split("\n",$txt); for($i=0; $i < count($tmp); ++$i) { $w1 = $this->GetTextWidth($tmp[$i]); --- 5820,5825 ---- } else { ! if( preg_match("|\n|",$txt) ) { ! $tmp = explode("\n",$txt); for($i=0; $i < count($tmp); ++$i) { $w1 = $this->GetTextWidth($tmp[$i]); *************** *** 5950,5954 **** } ! if( !ereg("\n",$txt) || ($dir>0 && ereg("\n",$txt)) ) { // Format a single line --- 5950,5954 ---- } ! if( !preg_match("|\n|",$txt) || ($dir>0 && preg_match("|\n|",$txt)) ) { // Format a single line |