├── config
└── sys.cfg.php
├── favicon.ico
├── porl_views.tar.gz
├── Dockerfile
├── index.php
├── .htaccess
├── nginx
├── app
├── route.php
├── view
│ ├── index
│ │ ├── _preview.html
│ │ ├── index.html
│ │ └── pan.html
│ ├── common
│ │ ├── foot.html
│ │ └── head.html
│ ├── password.html
│ └── cfginit.html
├── controller
│ ├── teambition
│ │ ├── pan.php
│ │ └── project.php
│ ├── cfginit.php
│ └── index.php
└── function.php
├── LICENSE
├── main.tf
├── framework
├── view
│ ├── app_error.php
│ └── sys_error.php
├── route.php
├── function.php
└── flx.php
├── readme.md
├── extend
└── teambition.php
└── assets
└── index.css
/config/sys.cfg.php:
--------------------------------------------------------------------------------
1 | false, //调试模式
4 | ];
--------------------------------------------------------------------------------
/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tmmtoo/TeambitionNET/HEAD/favicon.ico
--------------------------------------------------------------------------------
/porl_views.tar.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tmmtoo/TeambitionNET/HEAD/porl_views.tar.gz
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM php:7.0-apache
2 |
3 | RUN apt-get update && \
4 | apt-get clean
5 |
6 | RUN a2enmod rewrite
7 |
8 | COPY ./ /var/www/html/
9 |
10 | RUN chown -R www-data:www-data /var/www/html/
11 |
12 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |
5 | * [入口文件]
6 | */
7 |
8 | //引入框架
9 | include_once 'framework/flx.php';
10 |
11 | $Flx = new FlxPHP\Flx();
12 |
13 | $Flx->run();
--------------------------------------------------------------------------------
/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | Options +FollowSymlinks -Multiviews
3 | RewriteEngine On
4 | RewriteCond %{REQUEST_FILENAME} !-d
5 | RewriteCond %{REQUEST_FILENAME} !-f
6 | RewriteRule ^(.*)$ index.php/?s=$1 [QSA,PT,L]
7 |
8 |
--------------------------------------------------------------------------------
/nginx:
--------------------------------------------------------------------------------
1 | #根目录伪静态
2 | location / {
3 | if (!-e $request_filename){
4 | rewrite ^(.*)$ /index.php/?s=$1;
5 | }
6 | }
7 |
8 | #二级目录伪静态(如果程序放在二级目录运行使用这个规则),自行修改pan为你的二级目录名字
9 | location /pan {
10 | if (!-e $request_filename){
11 | rewrite ^/pan/(.*)$ /pan/index.php/?s=$1;
12 | }
13 | }
--------------------------------------------------------------------------------
/app/route.php:
--------------------------------------------------------------------------------
1 | where([
9 | 'dirid' => '[A-Za-z0-9]+'
10 | ]);
11 |
12 | Route::get('download/{fileid}','index@getDownload')->where([
13 | 'fileid' => '[A-Za-z0-9]+'
14 | ]);
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 FlxSNX
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/main.tf:
--------------------------------------------------------------------------------
1 | provider "oci" {}
2 |
3 | resource "oci_core_instance" "generated_oci_core_instance" {
4 | agent_config {
5 | is_management_disabled = "false"
6 | is_monitoring_disabled = "false"
7 | plugins_config {
8 | desired_state = "DISABLED"
9 | name = "Vulnerability Scanning"
10 | }
11 | plugins_config {
12 | desired_state = "ENABLED"
13 | name = "Custom Logs Monitoring"
14 | }
15 | plugins_config {
16 | desired_state = "ENABLED"
17 | name = "Compute Instance Monitoring"
18 | }
19 | plugins_config {
20 | desired_state = "DISABLED"
21 | name = "Bastion"
22 | }
23 | }
24 | availability_config {
25 | recovery_action = "RESTORE_INSTANCE"
26 | }
27 | availability_domain = "修改为自己的"
28 | compartment_id = "修改为自己的"
29 | create_vnic_details {
30 | assign_private_dns_record = "true"
31 | assign_public_ip = "true"
32 | subnet_id = "修改为自己的"
33 | }
34 | display_name = "instance"
35 | instance_options {
36 | are_legacy_imds_endpoints_disabled = "false"
37 | }
38 | metadata = {
39 | "ssh_authorized_keys" = "修改为自己的"
40 | }
41 | shape = "VM.Standard.A1.Flex"
42 | shape_config {
43 | memory_in_gbs = "24"
44 | ocpus = "4"
45 | }
46 | source_details {
47 | boot_volume_size_in_gbs = "100"
48 | source_id = "修改为自己的"
49 | source_type = "image"
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/app/view/index/_preview.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
=getFileicon($filetype)?>=$filename?>
4 |
5 |
9 |
10 |
11 |
19 |
22 |

23 |
26 |
27 |
30 |
get_app下载
31 |
32 |
--------------------------------------------------------------------------------
/app/controller/teambition/pan.php:
--------------------------------------------------------------------------------
1 | cookie = $_CFG['pan']['cookie'];
15 | $this->_CFG = $_CFG;
16 | }else{
17 | app_error([
18 | 'code' => 500,
19 | 'title' => '应用配置错误',
20 | 'error' => 'cookie配置错误',
21 | 'info' => '请检查cookie是否已失效后重新配置'
22 | ]);
23 | }
24 | }
25 |
26 | public function get_list($id,$order='updateTime'){
27 | $result = teambition::get_pan_list($this->_CFG['pan']['cookie'],$this->_CFG['pan']['orgId'],$this->_CFG['pan']['spaceId'],$this->_CFG['pan']['driveId'],$id,$this->_CFG['pan']['maxCount']);
28 | if($result['data']['message']){
29 | return app_error(404);
30 | }else{
31 | return $result;
32 | }
33 | }
34 |
35 | public function get_dir($id){
36 | $result = teambition::get_pan_file($this->_CFG['pan']['cookie'],$this->_CFG['pan']['orgId'],$this->_CFG['pan']['spaceId'],$this->_CFG['pan']['driveId'],$id);
37 | if($result['status'] != '400'){
38 | return $result;
39 | }else{
40 | return app_error(404);
41 | }
42 | }
43 | }
--------------------------------------------------------------------------------
/app/view/common/foot.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
40 |