First commit

This commit is contained in:
2025-06-18 10:24:27 +08:00
commit ebc39cd5dd
3873 changed files with 412712 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*/
class filesock {
public static function open($param = array()) {
$allowcurl = true;
if(isset($param['allowcurl']) && $param['allowcurl'] == false) {
$allowcurl = false;
}
if(function_exists('curl_init') && function_exists('curl_exec') && $allowcurl) {
return new filesock_curl($param);
} else {
return new filesock_stream($param);
}
}
}