HOR-494 "Revisar el cóo y cambiar..." SOLVED

This commit is contained in:
Luis Fernando Saisa Lopez
2016-03-17 16:25:09 -04:00
parent a4be8b94f8
commit 4a1b220cc4
15 changed files with 30 additions and 30 deletions

View File

@@ -362,7 +362,7 @@ function ftp_pasv(&$control, $pasv)
$pos2 = strrpos($cont, ')')-$pos; $pos2 = strrpos($cont, ')')-$pos;
$string = substr($cont, $pos, $pos2); $string = substr($cont, $pos, $pos2);
$array = split(',', $string); $array = explode(',', $string);
// IP we are connecting to // IP we are connecting to
$ip = $array[0]. '.' .$array[1]. '.' .$array[2]. '.' .$array[3]; $ip = $array[0]. '.' .$array[1]. '.' .$array[2]. '.' .$array[3];
// Port ( 256*lowbit + highbit // Port ( 256*lowbit + highbit

View File

@@ -106,7 +106,7 @@ class OS_Guess
if ($uname === null) { if ($uname === null) {
$uname = php_uname(); $uname = php_uname();
} }
$parts = split('[[:space:]]+', trim($uname)); $parts = explode('[[:space:]]+', trim($uname));
$n = count($parts); $n = count($parts);
$release = $machine = $cpu = ''; $release = $machine = $cpu = '';

View File

@@ -720,10 +720,10 @@ class Interop_Client
. "<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">\n" . "<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">\n"
. "<tr><td class=\"BLANK\">Endpoint</td>\n"; . "<tr><td class=\"BLANK\">Endpoint</td>\n";
foreach ($methods as $method) { foreach ($methods as $method) {
$info = split(':', $method); $info = explode(':', $method);
echo "<td class='BLANK' valign='top'>"; echo "<td class='BLANK' valign='top'>";
foreach ($info as $m) { foreach ($info as $m) {
$hi = split(',', $m); $hi = explode(',', $m);
echo '<b>'. $hi[0] . "</b><br>\n"; echo '<b>'. $hi[0] . "</b><br>\n";
if (count($hi) > 1) { if (count($hi) > 1) {
echo "&nbsp;&nbsp;Actor=" echo "&nbsp;&nbsp;Actor="

View File

@@ -121,7 +121,7 @@ foreach ($args[0] as $arg) {
help(); help();
exit(0); exit(0);
case 'l': case 'l':
$iop->skipEndpointList = split(',', $arg[1]); $iop->skipEndpointList = explode(',', $arg[1]);
break; break;
case 'm': case 'm':
$iop->testMethod = $arg[1]; $iop->testMethod = $arg[1];

View File

@@ -383,7 +383,7 @@ class SOAP_Parser extends SOAP_Base
$this->message[$pos]['arrayType'] = $vqn->name; $this->message[$pos]['arrayType'] = $vqn->name;
} elseif ($kqn->name == 'offset') { } elseif ($kqn->name == 'offset') {
$this->message[$pos]['arrayOffset'] = split(',', substr($value, 1, strlen($value) - 2)); $this->message[$pos]['arrayOffset'] = explode(',', substr($value, 1, strlen($value) - 2));
} elseif ($kqn->name == 'id') { } elseif ($kqn->name == 'id') {
// Save id to reference array. // Save id to reference array.

View File

@@ -269,13 +269,13 @@ class SOAP_Transport_HTTP extends SOAP_Transport
{ {
/* Largely borrowed from HTTP_Request. */ /* Largely borrowed from HTTP_Request. */
$this->result_headers = array(); $this->result_headers = array();
$headers = split("\r?\n", $headers); $headers = explode("\r?\n", $headers);
foreach ($headers as $value) { foreach ($headers as $value) {
if (strpos($value,':') === false) { if (strpos($value,':') === false) {
$this->result_headers[0] = $value; $this->result_headers[0] = $value;
continue; continue;
} }
list($name, $value) = split(':', $value); list($name, $value) = explode(':', $value);
$headername = strtolower($name); $headername = strtolower($name);
$headervalue = trim($value); $headervalue = trim($value);
$this->result_headers[$headername] = $headervalue; $this->result_headers[$headername] = $headervalue;

View File

@@ -680,10 +680,10 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR
// Split the range into 2 cell refs // Split the range into 2 cell refs
if (preg_match("/^([A-Ia-i]?[A-Za-z])(\d+)\:([A-Ia-i]?[A-Za-z])(\d+)$/",$range)) { if (preg_match("/^([A-Ia-i]?[A-Za-z])(\d+)\:([A-Ia-i]?[A-Za-z])(\d+)$/",$range)) {
list($cell1, $cell2) = split(':', $range); list($cell1, $cell2) = explode(':', $range);
} }
elseif (preg_match("/^([A-Ia-i]?[A-Za-z])(\d+)\.\.([A-Ia-i]?[A-Za-z])(\d+)$/",$range)) { elseif (preg_match("/^([A-Ia-i]?[A-Za-z])(\d+)\.\.([A-Ia-i]?[A-Za-z])(\d+)$/",$range)) {
list($cell1, $cell2) = split('\.\.', $range); list($cell1, $cell2) = explode('\.\.', $range);
} }
else { else {
@@ -733,7 +733,7 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR
$class = 2; // as far as I know, this is magick. $class = 2; // as far as I know, this is magick.
// Split the ref at the ! symbol // Split the ref at the ! symbol
list($ext_ref, $range) = split('!', $token); list($ext_ref, $range) = explode('!', $token);
// Convert the external reference part (different for BIFF8) // Convert the external reference part (different for BIFF8)
if ($this->_BIFF_version == 0x0500) { if ($this->_BIFF_version == 0x0500) {
@@ -750,7 +750,7 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR
} }
// Split the range into 2 cell refs // Split the range into 2 cell refs
list($cell1, $cell2) = split(':', $range); list($cell1, $cell2) = explode(':', $range);
// Convert the cell references // Convert the cell references
if (preg_match("/^(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)$/", $cell1)) if (preg_match("/^(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)$/", $cell1))
@@ -839,7 +839,7 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR
$class = 2; // as far as I know, this is magick. $class = 2; // as far as I know, this is magick.
// Split the ref at the ! symbol // Split the ref at the ! symbol
list($ext_ref, $cell) = split('!', $cell); list($ext_ref, $cell) = explode('!', $cell);
// Convert the external reference part (different for BIFF8) // Convert the external reference part (different for BIFF8)
if ($this->_BIFF_version == 0x0500) { if ($this->_BIFF_version == 0x0500) {
@@ -891,7 +891,7 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR
// Check if there is a sheet range eg., Sheet1:Sheet2. // Check if there is a sheet range eg., Sheet1:Sheet2.
if (preg_match("/:/", $ext_ref)) if (preg_match("/:/", $ext_ref))
{ {
list($sheet_name1, $sheet_name2) = split(':', $ext_ref); list($sheet_name1, $sheet_name2) = explode(':', $ext_ref);
$sheet1 = $this->_getSheetIndex($sheet_name1); $sheet1 = $this->_getSheetIndex($sheet_name1);
if ($sheet1 == -1) { if ($sheet1 == -1) {
@@ -940,7 +940,7 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR
// Check if there is a sheet range eg., Sheet1:Sheet2. // Check if there is a sheet range eg., Sheet1:Sheet2.
if (preg_match("/:/", $ext_ref)) if (preg_match("/:/", $ext_ref))
{ {
list($sheet_name1, $sheet_name2) = split(':', $ext_ref); list($sheet_name1, $sheet_name2) = explode(':', $ext_ref);
$sheet1 = $this->_getSheetIndex($sheet_name1); $sheet1 = $this->_getSheetIndex($sheet_name1);
if ($sheet1 == -1) { if ($sheet1 == -1) {

View File

@@ -1318,7 +1318,7 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
$row = $match[2]; $row = $match[2];
// Convert base26 column string to number // Convert base26 column string to number
$chars = split('', $col); $chars = explode('', $col);
$expn = 0; $expn = 0;
$col = 0; $col = 0;
@@ -2032,13 +2032,13 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
// Determine if the link contains a sheet reference and change some of the // Determine if the link contains a sheet reference and change some of the
// parameters accordingly. // parameters accordingly.
// Split the dir name and sheet name (if it exists) // Split the dir name and sheet name (if it exists)
list($dir_long , $sheet) = split('/\#/', $url); list($dir_long , $sheet) = explode('/\#/', $url);
$link_type = 0x01 | $absolute; $link_type = 0x01 | $absolute;
if (isset($sheet)) { if (isset($sheet)) {
$link_type |= 0x08; $link_type |= 0x08;
$sheet_len = pack("V", strlen($sheet) + 0x01); $sheet_len = pack("V", strlen($sheet) + 0x01);
$sheet = join("\0", split('', $sheet)); $sheet = join("\0", explode('', $sheet));
$sheet .= "\0\0\0"; $sheet .= "\0\0\0";
} }
else { else {
@@ -2057,7 +2057,7 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
$dir_short = preg_replace('/\.\.\\/', '', $dir_long) . "\0"; $dir_short = preg_replace('/\.\.\\/', '', $dir_long) . "\0";
// Store the long dir name as a wchar string (non-null terminated) // Store the long dir name as a wchar string (non-null terminated)
$dir_long = join("\0", split('', $dir_long)); $dir_long = join("\0", explode('', $dir_long));
$dir_long = $dir_long . "\0"; $dir_long = $dir_long . "\0";
// Pack the lengths of the dir strings // Pack the lengths of the dir strings

View File

@@ -932,7 +932,7 @@ class soap_transport_http extends nusoap_base {
*/ */
function parseCookie($cookie_str) { function parseCookie($cookie_str) {
$cookie_str = str_replace('; ', ';', $cookie_str) . ';'; $cookie_str = str_replace('; ', ';', $cookie_str) . ';';
$data = split(';', $cookie_str); $data = explode(';', $cookie_str);
$value_str = $data[0]; $value_str = $data[0];
$cookie_param = 'domain='; $cookie_param = 'domain=';
@@ -1035,4 +1035,4 @@ class soap_transport_http extends nusoap_base {
} }
?> ?>

View File

@@ -2940,7 +2940,7 @@ class soap_transport_http extends nusoap_base_colosa {
*/ */
function parseCookie($cookie_str) { function parseCookie($cookie_str) {
$cookie_str = str_replace('; ', ';', $cookie_str) . ';'; $cookie_str = str_replace('; ', ';', $cookie_str) . ';';
$data = split(';', $cookie_str); $data = explode(';', $cookie_str);
$value_str = $data[0]; $value_str = $data[0];
$cookie_param = 'domain='; $cookie_param = 'domain=';

View File

@@ -2943,7 +2943,7 @@ class soap_transport_http extends nusoap_base {
*/ */
function parseCookie($cookie_str) { function parseCookie($cookie_str) {
$cookie_str = str_replace('; ', ';', $cookie_str) . ';'; $cookie_str = str_replace('; ', ';', $cookie_str) . ';';
$data = split(';', $cookie_str); $data = explode(';', $cookie_str);
$value_str = $data[0]; $value_str = $data[0];
$cookie_param = 'domain='; $cookie_param = 'domain=';
@@ -7299,4 +7299,4 @@ class soapclient extends nusoap_base {
return true; return true;
} }
} }
?> ?>

View File

@@ -165,7 +165,7 @@ class CoverageReportTask extends TaskPhing
$html = $geshi->parse_code(); $html = $geshi->parse_code();
$lines = split("<li>|</li>", $html); $lines = explode("<li>|</li>", $html);
// skip first and last line // skip first and last line
array_pop($lines); array_pop($lines);
@@ -404,4 +404,4 @@ class CoverageReportTask extends TaskPhing
} }
} }
} }
?> ?>

View File

@@ -181,12 +181,12 @@ function smarty_function_fetch($params, &$smarty)
$content .= fgets($fp,4096); $content .= fgets($fp,4096);
} }
fclose($fp); fclose($fp);
$csplit = split("\r\n\r\n",$content,2); $csplit = explode("\r\n\r\n",$content,2);
$content = $csplit[1]; $content = $csplit[1];
if(!empty($params['assign_headers'])) { if(!empty($params['assign_headers'])) {
$smarty->assign($params['assign_headers'],split("\r\n",$csplit[0])); $smarty->assign($params['assign_headers'],explode("\r\n",$csplit[0]));
} }
} }
} else { } else {

View File

@@ -67,7 +67,7 @@ class Language extends BaseLanguage
public function findById ($LAN_ID) public function findById ($LAN_ID)
{ {
if (strpos($LAN_ID, '_') !== false) { if (strpos($LAN_ID, '_') !== false) {
$aux = split('_', $LAN_ID); $aux = explode('_', $LAN_ID);
$LAN_ID = $aux[0]; $LAN_ID = $aux[0];
} }
$oCriteria = new Criteria( 'workflow' ); $oCriteria = new Criteria( 'workflow' );

View File

@@ -296,7 +296,7 @@ switch ($request) {
$passwd = $_POST['password']; $passwd = $_POST['password'];
$server = $_POST['host']; $server = $_POST['host'];
$code = $_POST['codeCaptcha']; $code = $_POST['codeCaptcha'];
$aServer = split(":", $server); $aServer = explode(':', $server);
$serverName = $aServer[0]; $serverName = $aServer[0];
$port = (count($aServer) > 1) ? $aServer[1] : "none"; $port = (count($aServer) > 1) ? $aServer[1] : "none";