<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -233,9 +233,9 @@ class pdf_invoice_overview extends pdf_invoice_base
 		
 		# Draw attributes if they are present
 		if (strlen($line['attr'])) {
-			$atrs = split(&quot;\r\n&quot;, str_replace('\r\n',&quot;\r\n&quot;,$line['attr']));
+			$atrs = preg_split(&quot;/\r\n/&quot;, str_replace('\r\n',&quot;\r\n&quot;,$line['attr']));
 			foreach ($atrs as $a) {
-				$parts = split(&quot;==&quot;, $a);
+				$parts = preg_split(&quot;/==/&quot;, $a);
 				switch ($parts[0]) {
 					default:
 						if(strlen($parts[0]))</diff>
      <filename>includes/pdf/pdf_invoice_overview.inc.php</filename>
    </modified>
    <modified>
      <diff>@@ -276,9 +276,9 @@ class pdf_invoice_overview extends pdf_invoice_base
 		$val = $line['name'];
 		if (strlen($line['attr'])) {
 			$val = &quot;&quot;;
-			$atrs = split(&quot;\r\n&quot;, str_replace('\r\n',&quot;\r\n&quot;,$line['attr']));
+			$atrs = preg_split(&quot;/\r\n/&quot;, str_replace('\r\n',&quot;\r\n&quot;,$line['attr']));
 			foreach ($atrs as $a) {
-				$parts = split(&quot;==&quot;, $a);
+				$parts = preg_split(&quot;/==/&quot;, $a);
 				switch ($parts[0]) {
 					case &quot;Destination&quot;:
 						$this-&gt;SetX(69);</diff>
      <filename>includes/pdf/pdf_invoice_voip-detailed.inc.php</filename>
    </modified>
    <modified>
      <diff>@@ -204,9 +204,9 @@ class pdf_invoice_overview extends pdf_invoice_base
 		$val = $line['name'];
 		if (strlen($line['attr'])) {
 			$val = &quot;&quot;;
-			$atrs = split(&quot;\r\n&quot;, str_replace('\r\n',&quot;\r\n&quot;,$line['attr']));
+			$atrs = preg_split(&quot;/\r\n/&quot;, str_replace('\r\n',&quot;\r\n&quot;,$line['attr']));
 			foreach ($atrs as $a) {
-				$parts = split(&quot;==&quot;, $a);
+				$parts = preg_split(&quot;/==/&quot;, $a);
 				switch ($parts[0]) {
 					case &quot;Destination&quot;:
 						$this-&gt;SetX(75);
@@ -229,9 +229,9 @@ class pdf_invoice_overview extends pdf_invoice_base
 					case &quot;parent_service_id&quot;:
 						$sql = sqlSelect($db,&quot;service&quot;,&quot;prod_attr&quot;,&quot;id=::&quot;.$parts[1].&quot;::&quot;);
 						$rstmp = $db-&gt;Execute($sql);
-						$atrs2 = split(&quot;\r\n&quot;, $rstmp-&gt;fields['prod_attr']);
+						$atrs2 = preg_split(&quot;/\r\n/&quot;, $rstmp-&gt;fields['prod_attr']);
 						foreach ($atrs2 as $a2) {
-							$parts2 = split(&quot;==&quot;, $a2);
+							$parts2 = preg_split(&quot;/==/&quot;, $a2);
 							switch ($parts2[0]) {
 								case &quot;station&quot;:
 								case &quot;ported&quot;:</diff>
      <filename>includes/pdf/pdf_invoice_voip.inc.php</filename>
    </modified>
    <modified>
      <diff>@@ -158,7 +158,7 @@ class install_db
 
 				if(ereg('[(]',$t_s))
 				{
-					$ts = split('[(]',$t_s);
+					$ts = preg_split('/[(]/',$t_s);
 					$type = $ts[0];
 					$size = ereg_replace('[)]', '', $ts[1]);
 					$flds[] = Array($field, $type, $size); 
@@ -423,7 +423,7 @@ class install_db
 
 				if(ereg('[(]',$t_s))
 				{
-					$ts = split('[(]',$t_s);
+					$ts = preg_split('/[(]/',$t_s);
 					$type = $ts[0];
 					$size = ereg_replace('[)]', '', $ts[1]);
 					$flds[] = Array($field, $type, $size); </diff>
      <filename>install/install_db_core.inc</filename>
    </modified>
    <modified>
      <diff>@@ -212,7 +212,7 @@ class account
 		####################################################################
 
 		$type = 'add';
-		$this-&gt;method[&quot;$type&quot;] = split(&quot;,&quot;, $this-&gt;method[&quot;$type&quot;]);
+		$this-&gt;method[&quot;$type&quot;] = preg_split(&quot;/,/&quot;, $this-&gt;method[&quot;$type&quot;]);
 		$arr = $this-&gt;method[&quot;$type&quot;];
 		include_once(PATH_CORE . 'validate.inc.php');
 		$validate = new CORE_validate;		
@@ -644,7 +644,7 @@ class account
 
 		### Retrieve the record:
 		$type = &quot;view&quot;;
-		$this-&gt;method[&quot;$type&quot;] = split(&quot;,&quot;, $this-&gt;method[&quot;$type&quot;]);
+		$this-&gt;method[&quot;$type&quot;] = explode(&quot;,&quot;, $this-&gt;method[&quot;$type&quot;]);
 		$db = new CORE_database;
 		$db-&gt;view($VAR, $this, $type);
 
@@ -843,7 +843,7 @@ class account
 		### Update the record
 		$this-&gt;account_construct();
 		$type = &quot;update&quot;;
-		$this-&gt;method[&quot;$type&quot;] = split(&quot;,&quot;, $this-&gt;method[&quot;$type&quot;]);
+		$this-&gt;method[&quot;$type&quot;] = explode(&quot;,&quot;, $this-&gt;method[&quot;$type&quot;]);
 		$db = new CORE_database;
 		$db-&gt;update($VAR, $this, $type);
 </diff>
      <filename>modules/account/account.inc.php</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,7 @@ function CORE_database_view($VAR, &amp;$construct, $type)
 
 	if(isset($VAR[&quot;id&quot;]))
 	{
-		$id = split(',',$VAR[&quot;id&quot;]);
+		$id = explode(',',$VAR[&quot;id&quot;]);
 		for($i=0; $i&lt;count($id); $i++)
 		{
 			if($id[$i] != '')</diff>
      <filename>modules/core/database_view.inc.php</filename>
    </modified>
    <modified>
      <diff>@@ -187,14 +187,14 @@ class CORE_session
 				$server = getallheaders();
 				$domain = $server['Host']; 
 			} 
-			$domain = '.'.eregi_replace('^www.', '', $domain);
+			$domain = '.'.preg_replace('/^www./', '', $domain);
 		}			    
 
 		if(COOKIE_EXPIRE == 0 )
 		$cookie_expire = (time() + 86400*365);
 		else
 		$cookie_expire = (time() + (COOKIE_EXPIRE*60));
-		if(empty($domain) || eregi('localhost', $domain))
+		if(empty($domain) || preg_match('/localhost/', $domain))
 		setcookie(COOKIE_NAME,$this-&gt;id,$cookie_expire,'/');  
 		else
 		setcookie(COOKIE_NAME,$this-&gt;id,$cookie_expire,'/', $domain);      </diff>
      <filename>modules/core/session.inc.php</filename>
    </modified>
    <modified>
      <diff>@@ -40,12 +40,12 @@ class CORE_trigger
    function run_triggers($trigger)
    {
 	   global $C_method;
-	   $triggers = split(',', $trigger);
+	   $triggers = explode(',', $trigger);
 	   for($i=0; $i&lt;count($triggers); $i++)
 	   {
 		   if(isset($triggers[$i]))
 		   {
-			   $triggerss = split(':',$triggers[$i]);
+			   $triggerss = explode(':',$triggers[$i]);
 			   # added to remove php error: Undefined offset
 			   if(isset($triggerss) &amp;&amp; count($triggerss) &gt; 1)
 			   {</diff>
      <filename>modules/core/trigger.inc.php</filename>
    </modified>
    <modified>
      <diff>@@ -65,7 +65,7 @@ class CORE_xml
 
 // new XML to Array for PHP5 and SimpleXML
 function SimpleXML2Array($xml) {
-   if (get_class($xml) == 'SimpleXMLElement') {
+   if (is_object($xml) &amp;&amp; get_class($xml) == 'SimpleXMLElement') {
 	   $attributes = $xml-&gt;attributes();
 	   foreach($attributes as $k=&gt;$v) {
 		   if ($v) $a[$k] = (string) $v;</diff>
      <filename>modules/core/xml.inc.php</filename>
    </modified>
    <modified>
      <diff>@@ -75,7 +75,7 @@ class setup
 	function view($VAR)
 	{	
 		$type = &quot;view&quot;;
-		$this-&gt;method[&quot;$type&quot;] = split(&quot;,&quot;, $this-&gt;method[&quot;$type&quot;]);
+		$this-&gt;method[&quot;$type&quot;] = explode(&quot;,&quot;, $this-&gt;method[&quot;$type&quot;]);
 		$db = new CORE_database;
 		$db-&gt;view($VAR, $this, $type);
 	}		</diff>
      <filename>modules/setup/setup.inc.php</filename>
    </modified>
    <modified>
      <diff>@@ -95,7 +95,7 @@
         &lt;/session_ip_match&gt;
         &lt;error_reporting&gt;
             &lt;type&gt;C(16)&lt;/type&gt;
-            &lt;default&gt;0&lt;/default&gt;
+            &lt;default&gt;1&lt;/default&gt;
         &lt;/error_reporting&gt;
         &lt;site_name&gt;
             &lt;type&gt;X&lt;/type&gt;</diff>
      <filename>modules/setup/setup_construct.xml</filename>
    </modified>
    <modified>
      <diff>@@ -27,7 +27,7 @@
        &lt;date_format&gt;&lt;![CDATA[a:4:{i:0;s:1:&quot;m&quot;;i:1;s:1:&quot;d&quot;;i:2;s:1:&quot;Y&quot;;i:3;s:1:&quot;-&quot;;}]]&gt;&lt;/date_format&gt;
        &lt;date_time_format&gt;&lt;![CDATA[a:1:{i:0;s:0:&quot;&quot;;}]]&gt;&lt;/date_time_format&gt;
        &lt;decimal_place&gt;2&lt;/decimal_place&gt;
-       &lt;debug&gt;0&lt;/debug&gt;
+       &lt;debug&gt;1&lt;/debug&gt;
        &lt;login_attempt_try&gt;10&lt;/login_attempt_try&gt;
        &lt;login_attempt_time&gt;60&lt;/login_attempt_time&gt;
        &lt;login_attempt_lock&gt;60&lt;/login_attempt_lock&gt;</diff>
      <filename>modules/setup/setup_install_data.xml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d1547673dcbba236371fa83a10ec81c4ee843d5a</id>
    </parent>
  </parents>
  <author>
    <name>Tony Landis</name>
    <email>tony.landis@gmail.com</email>
  </author>
  <url>http://github.com/tony-landis/agilebill/commit/1225cb10c09a87d07ad5dbe2f6bacd2f324f2450</url>
  <id>1225cb10c09a87d07ad5dbe2f6bacd2f324f2450</id>
  <committed-date>2009-03-25T21:10:40-07:00</committed-date>
  <authored-date>2009-03-25T21:10:40-07:00</authored-date>
  <message>deprecated php methods</message>
  <tree>1836abe103a9e538d4c150f390563f558ce3b403</tree>
  <committer>
    <name>Tony Landis</name>
    <email>tony.landis@gmail.com</email>
  </committer>
</commit>
