[geeklog-cvs] geeklog-1.3/plugins/spamx/magpierss/extlib Snoopy.class.inc,NONE,1.1
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Mon Sep 13 15:07:15 EDT 2004
Update of /var/cvs/geeklog-1.3/plugins/spamx/magpierss/extlib
In directory www:/tmp/cvs-serv19815/plugins/spamx/magpierss/extlib
Added Files:
Snoopy.class.inc
Log Message:
Missing files and some minor corrections to the integrated SpamX plugin.
--- NEW FILE: Snoopy.class.inc ---
<?php
/*************************************************
Snoopy - the PHP net client
Author: Monte Ohrt <monte at ispi.net>
Copyright (c): 1999-2000 ispi, all rights reserved
Version: 1.01
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
[...1161 lines suppressed...]
$fp = fopen($file_name, "r");
$file_content = fread($fp, filesize($file_name));
fclose($fp);
$base_name = basename($file_name);
$postdata .= "--".$this->_mime_boundary."\r\n";
$postdata .= "Content-Disposition: form-data; name=\"$field_name\"; filename=\"$base_name\"\r\n\r\n";
$postdata .= "$file_content\r\n";
}
}
$postdata .= "--".$this->_mime_boundary."--\r\n";
break;
}
return $postdata;
}
}
?>
More information about the geeklog-cvs
mailing list