Changeset 11599
- Timestamp:
- 02/25/11 19:33:15 (2 years ago)
- Files:
-
- freepbx/branches/2.9/amp_conf/htdocs/admin/cdr/call-log.php (modified) (1 diff)
- freepbx/branches/2.9/amp_conf/htdocs_panel/dhtml/index.php (modified) (1 diff)
- freepbx/branches/2.9/amp_conf/htdocs_panel/dhtml/variables.php (modified) (1 diff)
- modules/branches/2.9/core/functions.inc.php (modified) (2 diffs)
- modules/branches/2.9/dashboard/phpsysinfo/class.Darwin.inc.php (modified) (6 diffs)
- modules/branches/2.9/dashboard/phpsysinfo/class.HP-UX.inc.php (deleted)
- modules/branches/2.9/dashboard/phpsysinfo/class.NetBSD.inc.php (modified) (1 diff)
- modules/branches/2.9/dashboard/phpsysinfo/class.OpenBSD.inc.php (modified) (1 diff)
- modules/branches/2.9/dashboard/phpsysinfo/class.SunOS.inc.php (deleted)
- modules/branches/2.9/dashboard/phpsysinfo/class.WINNT.inc.php (deleted)
- modules/branches/2.9/dashboard/phpsysinfo/class.parseProgs.inc.php (modified) (1 diff)
- modules/branches/2.9/phpagiconf/functions.inc.php (modified) (2 diffs)
- modules/branches/2.9/restart/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/voicemail/functions.inc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.9/amp_conf/htdocs/admin/cdr/call-log.php
r11047 r11599 659 659 660 660 661 $field_list_sun = split(',',$FG_TABLE_COL[$i][8]);661 $field_list_sun = preg_split('/,/',$FG_TABLE_COL[$i][8]); 662 662 $record_display = $FG_TABLE_COL[$i][10]; 663 663 //echo $record_display; freepbx/branches/2.9/amp_conf/htdocs_panel/dhtml/index.php
r8166 r11599 11 11 12 12 $pepe = file_get_contents($archivo); 13 $partes = split("&",$pepe);13 $partes = preg_split("/&/",$pepe); 14 14 foreach ($partes as $elemento) { 15 $otri = split("=",$elemento);15 $otri = preg_split("/=/",$elemento); 16 16 if(substr($otri[0],0,5)=="texto") { 17 17 $numero = substr($otri[0],5); freepbx/branches/2.9/amp_conf/htdocs_panel/dhtml/variables.php
r8165 r11599 11 11 12 12 $pepe = file_get_contents($archivo); 13 $partes = split("&",$pepe);13 $partes = preg_split("/&/",$pepe); 14 14 foreach ($partes as $elemento) { 15 $otri = split("=",$elemento);15 $otri = preg_split("/=/",$elemento); 16 16 if(substr($otri[0],0,5)=="texto") { 17 17 $numero = substr($otri[0],5); modules/branches/2.9/core/functions.inc.php
r11495 r11599 5143 5143 $confitem['account'] = $channelid; 5144 5144 $gimmieabreak = nl2br($config); 5145 $lines = split('<br />',$gimmieabreak);5145 $lines = preg_split('/<br />/',$gimmieabreak); 5146 5146 foreach ($lines as $line) { 5147 5147 $line = trim($line); 5148 if (count( split('=',$line)) > 1) {5149 $tmp = split('=',$line,2);5148 if (count(preg_split('/=/',$line)) > 1) { 5149 $tmp = preg_split('/=/',$line,2); 5150 5150 $key=trim($tmp[0]); 5151 5151 $value=trim($tmp[1]); … … 6226 6226 $did_count = 0; 6227 6227 foreach ($dids as $did) { 6228 $did_dest = split(',',$did['destination']);6228 $did_dest = preg_split('/,/',$did['destination']); 6229 6229 if (isset($did_dest[1]) && $did_dest[1] == $extdisplay) { 6230 6230 modules/branches/2.9/dashboard/phpsysinfo/class.Darwin.inc.php
r7633 r11599 86 86 $s = $this->grab_ioreg('IOPCIDevice'); 87 87 88 $lines = split("\n", $s);88 $lines = preg_split("/\n/", $s); 89 89 for ($i = 0, $max = sizeof($lines); $i < $max; $i++) { 90 90 $ar_buf = preg_split("/\s+/", $lines[$i], 19); … … 100 100 $s = $this->grab_ioreg('IOATABlockStorageDevice'); 101 101 102 $lines = split("\n", $s);102 $lines = preg_split("/\n/", $s); 103 103 $j = 0; 104 104 for ($i = 0, $max = sizeof($lines); $i < $max; $i++) { … … 119 119 120 120 $pstat = execute_program('vm_stat'); // use darwin's vm_stat 121 $lines = split("\n", $pstat);121 $lines = preg_split("/\n/", $pstat); 122 122 for ($i = 0, $max = sizeof($lines); $i < $max; $i++) { 123 123 $ar_buf = preg_split("/\s+/", $lines[$i], 19); … … 139 139 // need to fix the swap info... 140 140 $pstat = execute_program('swapinfo', '-k'); 141 $lines = split("\n", $pstat);141 $lines = preg_split("/\n/", $pstat); 142 142 143 143 for ($i = 0, $max = sizeof($lines); $i < $max; $i++) { … … 161 161 function network () { 162 162 $netstat = execute_program('netstat', '-nbdi | cut -c1-24,42- | grep Link'); 163 $lines = split("\n", $netstat);163 $lines = preg_split("/\n/", $netstat); 164 164 $results = array(); 165 165 for ($i = 0, $max = sizeof($lines); $i < $max; $i++) { … … 187 187 function filesystems () { 188 188 $df = execute_program('df', '-k'); 189 $mounts = split("\n", $df);189 $mounts = preg_split("/\n/", $df); 190 190 $fstype = array(); 191 191 modules/branches/2.9/dashboard/phpsysinfo/class.NetBSD.inc.php
r7633 r11599 53 53 $netstat_b = execute_program('netstat', '-nbdi | cut -c1-25,44- | grep "^[a-z]*[0-9][ \t].*Link"'); 54 54 $netstat_n = execute_program('netstat', '-ndi | cut -c1-25,44- | grep "^[a-z]*[0-9][ \t].*Link"'); 55 $lines_b = split("\n", $netstat_b);56 $lines_n = split("\n", $netstat_n);55 $lines_b = preg_split("/\n/", $netstat_b); 56 $lines_n = preg_split("/\n/", $netstat_n); 57 57 $results = array(); 58 58 for ($i = 0, $max = sizeof($lines_b); $i < $max; $i++) { modules/branches/2.9/dashboard/phpsysinfo/class.OpenBSD.inc.php
r7633 r11599 55 55 $netstat_b = execute_program('netstat', '-nbdi | cut -c1-25,44- | grep Link | grep -v \'* \''); 56 56 $netstat_n = execute_program('netstat', '-ndi | cut -c1-25,44- | grep Link | grep -v \'* \''); 57 $lines_b = split("\n", $netstat_b);58 $lines_n = split("\n", $netstat_n);57 $lines_b = preg_split("/\n/", $netstat_b); 58 $lines_n = preg_split("/\n/", $netstat_n); 59 59 $results = array(); 60 60 for ($i = 0, $max = sizeof($lines_b); $i < $max; $i++) { modules/branches/2.9/dashboard/phpsysinfo/class.parseProgs.inc.php
r4360 r11599 11 11 12 12 if ($_results = execute_program('lspci', '', $this->debug)) { 13 $lines = split("\n", $_results);13 $lines = preg_split("/\n/", $_results); 14 14 for ($i = 0, $max = sizeof($lines); $i < $max; $i++) { 15 15 list($addr, $name) = explode(' ', trim($lines[$i]), 2); modules/branches/2.9/phpagiconf/functions.inc.php
r6709 r11599 46 46 47 47 function phpagiconf_update($p_id, $p_debug, $p_error_handler, $p_err_email, $p_hostname, $p_tempdir, $p_festival_text2wave, $p_asman_server, $p_asman_port, $p_asmanager, $p_cepstral_swift, $p_cepstral_voice, $p_setuid, $p_basedir) { 48 $asmanager = split('/', $p_asmanager);48 $asmanager = preg_split('#/#', $p_asmanager); 49 49 $results = sql("UPDATE phpagiconf SET `debug`=$p_debug, error_handler=$p_error_handler, err_email='$p_err_email', hostname='$p_hostname', tempdir='$p_tempdir', festival_text2wave='$p_festival_text2wave', asman_server='$p_asman_server', asman_port=$p_asman_port, asman_user='".$asmanager[0]."', asman_secret='".$asmanager[1]."', cepstral_swift='$p_cepstral_swift', cepstral_voice='$p_cepstral_voice', setuid=$p_setuid, basedir='$p_basedir' where phpagiid=$p_id"); 50 50 } … … 53 53 global $amp_conf; 54 54 if (!empty($p_asmanager)) { 55 $asmanager = split('/', $p_asmanager);55 $asmanager = preg_split('#/#', $p_asmanager); 56 56 } else { 57 57 $asmanager = array ($amp_conf['AMPDBUSER'], $amp_conf['AMPDBPASS']); modules/branches/2.9/restart/functions.inc.php
r10534 r11599 54 54 foreach($astout as $entry) { 55 55 if(eregi("useragent",$entry)) { 56 list(,$value) = split(":",$entry);56 list(,$value) = preg_split("/:/",$entry); 57 57 $ua = trim($value); 58 58 } modules/branches/2.9/voicemail/functions.inc.php
r10874 r11599 1125 1125 if (preg_match('/Value: [^\s]*/', $results_elem, $matches) > 0) 1126 1126 { 1127 $parts = split('', trim($matches[0]));1127 $parts = preg_split('/ /', trim($matches[0])); 1128 1128 $callmenum = $parts[1]; 1129 1129 break;
