);
// Run the query
- $response = sendGetRequest('http://www.yoomedia.de/interface_2.0/' . $script, $requestData, TRUE);
+ $response = sendHttpGetRequest('http://www.yoomedia.de/interface_2.0/' . $script, $requestData, TRUE);
// Convert from ISO to UTF-8 only if count is > 3 because <= 3 means timeout
if (count($response) > 3) {
} // END - if
// The result is now still raw, so we must split it up and trim spaces away
- $responseLine = trim(implode(chr(10), $dummy));
+ $responseLine = trim(implode(PHP_EOL, $dummy));
// Last line should never be a pipe!
if (substr($responseLine, -1, 1) == '|') {
$reloaded = FALSE;
// Query database
- $result = SQL_QUERY_ESC("SELECT `id`, UNIX_TIMESTAMP(`inserted`) AS inserted FROM `{?_MYSQL_PREFIX?}_yoomedia_reload` WHERE `type`='%s' AND `y_id`=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `id`, UNIX_TIMESTAMP(`inserted`) AS `inserted` FROM `{?_MYSQL_PREFIX?}_yoomedia_reload` WHERE `type`='%s' AND `y_id`=%s LIMIT 1",
array($type, bigintval($id)), __FUNCTION__, __LINE__);
// Entry found?
$code = $codeArray[0];
// Remove all new-line characters
- $codeArray = explode(chr(10), $code);
+ $codeArray = explode(PHP_EOL, $code);
$code = $codeArray[0];
// Remove carrige-return
- $code = trim(str_replace(chr(10), '', $code));
+ $code = trim(str_replace(PHP_EOL, '', $code));
// Is it still empty?
if (empty($code)) {