mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fixed copyrite info
This commit is contained in:
parent
3ab20e413b
commit
d3be920701
@ -2,9 +2,9 @@
|
|||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
* phpGroupWare API - Link box generator *
|
* phpGroupWare API - Link box generator *
|
||||||
* http://www.phpgroupware.org/api *
|
* http://www.phpgroupware.org/api *
|
||||||
* This file written by Joseph Engo <jengo@phpgroupware.org> *
|
* This file written by Mark Peters <skeeter@phpgroupware.org> *
|
||||||
* Creates linkboxes using templates *
|
* Creates linkboxes using templates *
|
||||||
* Copyright (C) 2000, 2001 Joseph Engo *
|
* Copyright (C) 2000, 2001 Mark Peters *
|
||||||
* -------------------------------------------------------------------------*
|
* -------------------------------------------------------------------------*
|
||||||
* This library is part of phpGroupWare (http://www.phpgroupware.org) *
|
* This library is part of phpGroupWare (http://www.phpgroupware.org) *
|
||||||
* This library is free software; you can redistribute it and/or modify it *
|
* This library is free software; you can redistribute it and/or modify it *
|
||||||
|
@ -40,6 +40,14 @@ class network
|
|||||||
$this->addcrlf = $value;
|
$this->addcrlf = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function add_crlf($str)
|
||||||
|
{
|
||||||
|
if($this->addcrlf) {
|
||||||
|
$str .= "\r\n";
|
||||||
|
}
|
||||||
|
return $str;
|
||||||
|
}
|
||||||
|
|
||||||
function set_error($code,$msg,$desc)
|
function set_error($code,$msg,$desc)
|
||||||
{
|
{
|
||||||
$this->error = array("code","msg","desc");
|
$this->error = array("code","msg","desc");
|
||||||
@ -93,9 +101,7 @@ class network
|
|||||||
|
|
||||||
function write_port($str)
|
function write_port($str)
|
||||||
{
|
{
|
||||||
if (isset($this->addcrlf) && $this->addcrlf == True) $str .= "\r\n";
|
$ok = fputs($this->socket,$this->add_crlf($str));
|
||||||
|
|
||||||
$ok = fputs($this->socket,$str);
|
|
||||||
if (!$ok)
|
if (!$ok)
|
||||||
{
|
{
|
||||||
return $this->set_error("Error","Connection Lost","lost connection to server");
|
return $this->set_error("Error","Connection Lost","lost connection to server");
|
||||||
@ -106,12 +112,10 @@ class network
|
|||||||
|
|
||||||
function bs_write_port($str,$bytes=0)
|
function bs_write_port($str,$bytes=0)
|
||||||
{
|
{
|
||||||
if (isset($this->addcrlf) && $this->addcrlf == True) $str .= "\r\n";
|
|
||||||
|
|
||||||
if ($bytes)
|
if ($bytes)
|
||||||
$ok = fwrite($this->socket,$str,$bytes);
|
$ok = fwrite($this->socket,$this->add_crlf($str),$bytes);
|
||||||
else
|
else
|
||||||
$ok = fwrite($this->socket,$str);
|
$ok = fwrite($this->socket,$this->add_crlf($str));
|
||||||
|
|
||||||
if (!$ok)
|
if (!$ok)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user