From: <tim...@us...> - 2010-03-13 16:22:48
|
Revision: 3384 http://web-erp.svn.sourceforge.net/web-erp/?rev=3384&view=rev Author: tim_schofield Date: 2010-03-13 16:22:42 +0000 (Sat, 13 Mar 2010) Log Message: ----------- Tim: report_runner.php - Remove deprecated split() function Modified Paths: -------------- trunk/doc/Change.log.html trunk/report_runner.php Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-03-13 16:18:18 UTC (rev 3383) +++ trunk/doc/Change.log.html 2010-03-13 16:22:42 UTC (rev 3384) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>13/03/10 Tim: report_runner.php - Remove deprecated split() function</p> <p>13/03/10 Tim: geocode.php - Remove deprecated split() function</p> <p>13/03/10 Tim: CustomerBranches.php - Remove deprecated split() function</p> <p>13/03/10 Tim: Suppliers.php - Remove deprecated split() function</p> Modified: trunk/report_runner.php =================================================================== --- trunk/report_runner.php 2010-03-13 16:18:18 UTC (rev 3383) +++ trunk/report_runner.php 2010-03-13 16:22:42 UTC (rev 3384) @@ -2,17 +2,17 @@ <?php //-------------------------------------------------------------------- // report_runner.php -// This program is designed to run reports in batch command mode for +// This program is designed to run reports in batch command mode for // weberp. Much thanks to Phil Daintree as the major author of WEBERP. -// +// // -------------------------------------------------------------------- // Written by Alan B Jones (mo...@ya...) // based on code orgiginally from weberp -// (c) alan jones 2006. +// (c) alan jones 2006. // (c) 2006 logic works Ltd and others // licenced under the terms of the GPL V(2) // if you want to know the details of the use of this software -// and how you are licenced to use it under the terms of the +// and how you are licenced to use it under the terms of the // see here http://www.gnu.org/licenses/gpl.txt //-------------------------------------------------------------------- //you must tell the script where you main installation is located @@ -27,7 +27,7 @@ " -d database name (the mysql db to use for the data for the report)\n". " [-t reporttext ] (some words you want to send with the report-optional)\n". " [ -H weberpHOME] (the home directory for weberp - or edit the php file)\n"; - + if ($argc < 7 ) { echo $usage; exit; @@ -78,7 +78,7 @@ } if ($weberp_home=="") { - echo "weberp home is not set in this file or -H isn't set"; + echo "weberp home is not set in this file or -H isn't set"; } // change directory to the weberp home to get all the includes to work nicely chdir($weberp_home); @@ -86,7 +86,7 @@ // get me the report name from the command line $_GET['ReportID'] = $reportnumber; -$Recipients = split(";",$emailaddresses); +$Recipients = explode(";",$emailaddresses); //wrap in angles so that mail can accept it for ($i=0;$i<count($Recipients); $i++) { $Recipient[$i]="<".$Recipient[$i].">"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |