/simple_upload

it's a php file ,you can use it upload file or download file from your web-server/uploads.it's very simple.

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

simple_upload

It's a php file ,you can use it upload file or download file from your web-server/uploads.it's very simple.

Usage

There is including DB file, file list, file manager, shell scripts

Support big file need to change your nginx/apache, and php upload file part configuration.

nginx
    keepalive_timeout 600;
    client_max_body_size 2000m;
    fastcgi_connect_timeout 3000;
    fastcgi_send_timeout 3000;
apache
    Timeout 3000
php
    post_max_size = 2048M
    file_uploads = On
    upload_max_filesize = 2048M

uploads.php or uploads_new.php


It will help you to support simple file manager(ftp) in your web server with only one php file.

http://ip or domain/uploads.php  (old version)
http://ip or domain/uploads_new.php  // (new version, recommend this one)

uploads.php

http://ip or domain/uploads.php?user=superadmin

uploads.php can delete

Add the font mark when upload an image.
http://ip or domain/uploads.php?user=superadmin&mark_type=1&mark=@helloworld&size=18&position=1&color=255,255,255&show=0&date=1

uploads.php with image fontmark

Support image mark when upload an image.
http://ip or domain/uploads.php?user=superadmin&mark_type=2&zoom=4

adminer.php


Simple DB manager file with one php file.

http://ip or domain/adminer.php

adminer.php

file.php


Simple file manager with one php file.

http://ip or domain/file.php

file.php

punctuation_cn_to_en.sh


It will translate all chinese punctuation to english punctuation, run

./punctuation_cn_to_en.sh path[absolute path or relative path or filename]

Chinese punctuation in Wikipedia
punc

sync_git.sh


This script can sync all the folder git project.

./sync_git.sh path[absolute path or relative path or filename]

sync_git

php_laravel_shell.php


This php script can run laravel command via http

put it into you web-server and run it/php_laravel_shell.php

Remove merged branch


This script will delete upstream or origin remote repository branch Need to set keep_keywords, default_branch, protect_branches_arr

./xxx/git_branch_clean.sh /xxx/project_folder/ remote_name
./xxx/git_branch_clean.sh /xxx/project_folder/ upstream

git_branch_clean

Count DB's table's column is out-of-design or not.


This script will query schema table to calculate the column defined and do mathematics, can set the tolerance in line 412. 0.8 means reach/over the design capacity 80%. Need to set $DBsetting and $checkDBName

http://ip or domain/countDBColumn.php

countDBColumn

Backup debian system configuration


This script will backup system coonfiguration Need to set host_dir, path_user

/bin/bash ./xxx/bak_debian.sh

bak_debian.sh

Re-new XMind Zen for debian


This script will help to change XMind Zen register timestamp Need to set user_who

/bin/bash ./xxx/xmind_re_lease.sh

xmind_re_lease.sh

Sync git projects


This script will help to sync all projects under the folder

/bin/bash ./xxx/sync_git_projects.sh projects_foler origin

sync_git_projects.sh

Update debian go/bin execute script


This script will help to update golang version also the thirdparty package with their command Need to set the golang_package, golang_path,thid_packages_path, and the packages you want to build and install

/bin/bash ./go_update.sh

go_update.sh

Contact

rainysia@gmail.com

Requirements

php > 5.3, nginx or apache

Update

2015-05-12 14:59:04 add basic READ.md
2015-06-01 10:50:58 add file.php
2016-03-03 10:47:38 modify uploads.php
2018-03-02 15:28:54 add uploads_new.php
2018-11-12 14:00:36 add laravel web-shell.php
2019-03-07 15:51:22 add git_branch_clean.sh
2019-05-21 14:44:24 add countDBcolumn.php
2019-07-12 09:56:17 add bak_debian.sh
2019-12-16 18:49:25 add sync_git_projects.sh
2020-03-06 01:07:49 add go_update.sh
2020-09-14 18:48:22 support font mark
2021-09-22 15:30:58 support image mark