PHP-AceEditor

本编辑器是一个PHP在线代码编辑器,由国外Ace Editor编辑器优化改造而来,如果有不妥之处,请各位朋友指点。

Stars
4

https://github.com/yynan555/php_online_coding

PHP-Ace-Editor

PHP

 : Alt-E
 : Alt-Shift-E
 : Ctrl-A
 : Ctrl-L
 : Alt-L|Ctrl-F1
 : Alt-Shift-L|Ctrl-Shift-F1
 : F2
 : Alt-F2
 : Alt-0
 : Alt-Shift-0
 : Ctrl-K
 : Ctrl-Shift-K
 : Alt-K
 : Alt-Shift-K
 : Ctrl-F
 : Insert
 : Ctrl-Shift-Home
 : Ctrl-Home
 : Shift-Up
 : Up
 : Ctrl-Shift-End
 : Ctrl-End
 : Shift-Down
 : Down
 : Ctrl-Shift-Left
 : Ctrl-Left
 : Alt-Shift-Left
 : Alt-Left|Home
 : Shift-Left
 : Left
 : Ctrl-Shift-Right
 : Ctrl-Right
 : Alt-Shift-Right
 : Alt-Right|End
 : Shift-Right
 : Right
 : Shift-Pagedown
 : Pagedown
 : Shift-Pageup
 : Pageup
 : Ctrl-Up
 : Ctrl-Down
 : Shift-Home
 : Shift-End
 : Ctrl-Alt-E
 : Ctrl-Shift-E
 : Ctrl-\|Ctrl-P
 : Ctrl-Shift-\|Ctrl-Shift-P
 : Ctrl-Shift-M
 : Ctrl-D
 : Ctrl-Shift-D
 : Ctrl-Alt-S
 : Ctrl-/
 : Ctrl-Shift-/
 : Ctrl-Shift-Up
 : Ctrl-Shift-Down
 : Ctrl-H
 : Ctrl-Z
 : Ctrl-Shift-Z|Ctrl-Y
 : Alt-Shift-Up
 : Alt-Up
 : Alt-Shift-Down
 : Alt-Down
 : Delete
 : Shift-Backspace|Backspace
 : Shift-Delete
 : Alt-Backspace
 : Alt-Delete
 : Ctrl-Shift-Backspace
 : Ctrl-Shift-Delete
 : Ctrl-Backspace
 : Ctrl-Delete
 : Shift-Tab
 : Tab
 : Ctrl-[
 : Ctrl-]
 : Alt-Shift-X
 : Ctrl-U
 : Ctrl-Shift-U
 : Ctrl-Shift-L
 : F1
 : Ctrl-Alt-Up
 : Ctrl-Alt-Down
 : Ctrl-Alt-Shift-Up
 : Ctrl-Alt-Shift-Down
 : Ctrl-Alt-Left
 : Ctrl-Alt-Right
 : Ctrl-Alt-Shift-Left
 : Ctrl-Alt-Shift-Right
 : Ctrl-Alt-L
 : Ctrl-Alt-A
 : Ctrl-Alt-K
 : Ctrl-S
 : Ctrl-W
 : Esc
 : Shift-Return
 : Alt-J
 : Ctrl-Q
 : Ctrl-Alt-H

: Config/autoCompleter.php

  • Jstree
  • IP
  • (adminer)

php_online_coding/
	 App       // 
		 Controller // 
		 Core       // 
		 Lib        // 
		 View       // 
	 Cache     // 
	 Config    // 
	 Log       // 
	 plugins   // 
	 public    // 
	 index.php // 

  • 1/xiaohang
  • 2Config/app.php linux 777
<?php
return [
    // :  (*access_dirs) , .

    // , , 
    'default_password' => '123456',
    //  Cache/User ,  md5(''), ,    

    // 
    'public_access_dirs' => [
        // 'D:\WWW\test'
    ],

    //IP(IP) IP: '127.0.0.1'  IP'127.0.0.1/24'
    'public_access_ips' => [
    ],

    //  
    'password_attempts_num' => '5',

    //  , ip
    'users' => [
        [
            'name' => 'admin',
            'access_dirs' => [$_SERVER['DOCUMENT_ROOT']], // 
            'access_ips' => [], // IP
            'super_user' => false, // ,()
            'email' => ''
        ],
/*         [
            'name' => 'user1',
            'access_dirs' => ['D:/WWW/test'], // 
            'access_database_able' => true, // (super_user )
            'access_ips' => [], // IP
            'email' => ''
        ], */
    ],

    // mailable email , usersemail
    // , :
    // 1,  (  super_user ,,IP)
    // 2,  ( ,)
    'email_host' => '',
    'email_username' => '',
    'email_password' => '',

    // 
    //  
    'unable_suffix' => 'pdf xls xlsx crt pem cer ppt pptx doc docx zip gz tar rar fla jar apk mp3 mp4 rmvb',
    //  
    'img_suffix' => 'jpg png jpeg gif bmp ico',
];
  • 3

  1. Config/app.php

jQuery ace jstree layer H-ui adminer