diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b5bca10 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,7 @@ +[*.{js,jsx,ts,tsx,vue}] +indent_style = space +indent_size = 4 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true +max_line_length = 300 diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..0f956ea --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "eslintIntegration": true, + "tabWidth": 4, + "singleQuote": true, + "trailingComma": "none", + "printWidth": 300, + "semi": false +} diff --git a/README.md b/README.md index f1554d9..f3ebc6b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # UIISC -An Open Source Management System for MyOwnFreeHost +An Open Source Web Hosting Account and Support Management System for MyOwnFreeHost * Official Site : [uiisc.com](http://uiisc.com "UIISC") * Author : [Jackson Dou](https://github.com/jksdou "Jackson Dou") diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..368e756 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,18 @@ +# Security Policy + +## Supported Versions + +There is the list of supported versions of php to run UIISC + +| Version | Supported | +| ------- | ------------------ | +| 8.0.x | :white_check_mark: | +| > 7.4 | :white_check_mark: | +| 7.1.x | :white_check_mark: | +| > 5.6.x | :white_check_mark: | +| < 5.6 | :x: | + +## Reporting a Vulnerability + +In case of any error the user can report it by sending email to `admin@uiisc.org` or by contacting phone at `+86-021-51351888`. + diff --git a/src/security_code.php b/src/security_code.php index 3ce7978..c547a31 100644 --- a/src/security_code.php +++ b/src/security_code.php @@ -4,13 +4,13 @@ require __DIR__ . '/core/application.php'; $security_id = $_GET["id"]; header('Content-Type:image/png'); -$url = "http://order.uiisc.com/image.php?id=".$security_id."";//图片链接 +$url = "http://order.uiisc.com/image.php?id=" . $security_id; //图片链接 $ch = curl_init(); // Cookie:PHPSESSID=121b1127dcded8702c6a1e702c40eca4 curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch,CURLOPT_COOKIE,'PHPSESSID=121b1127dcded8702c6a1e702c40eca4'); // 如果不需要cookies就删除这条语句 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); -curl_setopt($ch, CURLOPT_TIMEOUT,0); // 忽略超时 +curl_setopt($ch, CURLOPT_TIMEOUT, 0); // 忽略超时 curl_setopt($ch, CURLOPT_NOBODY, false); $str = curl_exec($ch); -curl_close($ch); \ No newline at end of file +curl_close($ch);