GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - renat2985/pocket-code-studio: A single-file PHP file manager and web code editor with tabs, themes, a minimap, verified saves, and read-only Git diff. Self-hosted, no database required.

BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
dist
dist
 
 
docs
docs
 
 
modules
modules
 
 
screenshots
screenshots
 
 
.DS_Store
.DS_Store
 
 
CREDITS.md
CREDITS.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.ru.md
README.ru.md
 
 
THIRD_PARTY_NOTICES.md
THIRD_PARTY_NOTICES.md
 
 
filemanager.php
filemanager.php
 
 

Repository files navigation

Pocket Code Studio

A single-file PHP file manager and code editor with a Visual Studio Code-inspired interface.

Русский · Issues

Pocket Code Studio — workspace tabs

Features

  • File tree, resizable sidebar, tabs, and restoration of cursor/scroll positions.

  • Syntax highlighting, find/replace, formatting, word wrap, and multi-cursor editing.

  • Minimap, occurrence markers, file icons, and themes for the entire interface.

  • Create, rename, copy, move, upload/download, trash/restore, permissions, and archives where supported.

  • Git status, comparison with HEAD, and selected-file commits and push to GitHub.

  • Mobile layout with compact menus and code shortcut buttons.

  • Password authentication, CSRF protection, login attempt limits, and verified saves with backups.

  • The changed-file list has no 500-file limit. Each commit can select up to 2000 files, 32 MB per file and 128 MB total; content hashes are calculated only for selected files. Push existing commits does not scan working files.

Watch editing and Git previews

Editing and verified saves

Git HEAD comparison

Requirements

  • PHP 7.4+, sessions, and writable workspace and temporary storage. A maintained PHP version is recommended.
  • HTTPS; loopback development is exempt. On Apache/Nginx, PHP must receive HTTPS=on for TLS requests.
  • Browser internet access: JavaScript/CSS libraries load from CDNs.
  • Optional: Git and PHP proc_open; appropriate extensions/tools for archives.

No database, Composer, or Node.js build is required.

Installation

Optional Codex module

  1. Upload filemanager.php — no other application files are needed.
  2. The initial workspace is the web server document root; change it with File → Settings → Workspace root → Browse….
  3. Open the file over HTTPS. The initial password is admin123, with no username.
  4. Immediately change it in File → Settings before allowing public access to the manager.

For a unique password before deployment, generate a hash locally and paste it into $authPasswordHash:

php -r 'echo password_hash(readline("New password (input is visible): "), PASSWORD_DEFAULT), PHP_EOL;'

Keep your personal password hash and settings when replacing the PHP file. Do not publish your configured deployment copy.

Controls and settings

Edit → Copy / Move / Rename / Delete applies to the active editor file, or to selected items in Files. Save unsaved editor changes before using these operations.

  • Ctrl/⌘ S: save. Ctrl/⌘ + click: add cursors. Escape: return to one cursor.
  • View → Emmet (HTML): enabled by default for HTML/HTM. Expand .test, ul>li*3, or ! with Tab; the opt-out is remembered.
  • View → Show Changes Since Save: highlight unsaved additions and deletions; reset the comparison after a verified save.
  • View → Color theme: 43 Ace themes; the interface follows the selected theme. Language and editor font size are in the bottom status bar.
  • File → Settings: timezone, date format, interface font size, and optional password change. Browser timezone detection is available. Default date format: d M Y, H:i:s.
  • Browse… in Copy/Move selects an existing destination folder inside the workspace. The workspace picker can explore other folders permitted by PHP and hosting restrictions. Save open edits before switching roots.
  • Save Settings saves all changes together; Cancel discards them. Leave password fields empty to keep the current password.

Settings are stored in filemanager.php; PHP needs permission to replace it. Legacy .fm-config values migrate on the next Settings save.

Authentication

  • Password-only login; the initial password is admin123. Replace it in File → Settings. The PHP file stores a password hash, not the plain password.
  • Default login throttling: 8 failed attempts per IP or 64 failures across all IPs block further logins until the respective 15-minute window expires. Windows start with the first recorded failure. The shared limit can temporarily block everyone, including the owner.
  • Tools → Login activity: IP addresses, results, browser details, active blocks and per-IP/global limit resets. Limits are configurable here. After login, a one-time notification appears only if IPs are currently blocked.
  • Private server storage: sys_get_temp_dir()/fm-auth-<installation-id>/. attempts.json holds counters keyed by SHA-256 with the recorded IP; login-activity.json keeps up to 7 days / 2,000 entries / 1 MB, and login-policy.json stores custom limits. No passwords are logged. Repeated blocked requests are grouped; statistics use retained entries. Old hash-only counters cannot reveal their original IP.
  • Cookies do not reset server counters; hosting cleanup of temporary files may clear counters, history and custom limits. PHP uses REMOTE_ADDR; configure trusted proxies at the server layer to preserve the correct client address.
  • Sessions expire after 30 minutes of inactivity or 12 hours total. Cookies are HttpOnly and SameSite=Strict, with Secure on HTTPS. Changing the password invalidates other sessions. State-changing requests require a CSRF token.
  • This limits password guessing; it is not DDoS protection. Traffic limits at the hosting/web-server layer are separate.

Important limits

  • Only requests through this manager are password-protected; public website URLs remain public.
  • The editor accepts UTF-8 text up to 8 MB. Binary files and hard links are refused. UTF-8 BOM and uniform LF/CRLF/CR endings are preserved. Mixed line endings show a warning and are converted to LF when edits are saved.
  • Saves check disk revisions and create verified private backups. Temporary backups may be cleared by the host and do not replace permanent backups. External writes can still race with saves; filesystem ACLs/extended attributes may not survive replacement.
  • Saving does not validate code syntax. Unsaved document text is not restored after reload.
  • Git requires the workspace root to match an existing repository with at least one commit. Tools → GitHub: Commit & Push configures the HTTPS GitHub URL, current branch, author and a fine-grained token (Contents: Read and write; workflow changes may also require Workflows permission). Private repositories are supported.
  • The token is stored with owner-only permissions in the private temporary authentication directory, separately for each workspace. It is never returned to the browser; clearing temporary storage removes it. Blank keeps the token; changing repositories clears it unless a new token is supplied.
  • Select saved files and enter a message, then Commit & Push. After a failed or uncertain push, refresh and use Push existing commits. Staged changes, conflicts, symlinks and Git clean filters require a separate Git client. No automatic pull, force push, branch switching or inline Git change bars.

Credits and support

Based on Joseph Chuks’ PHP File Manager and CWP Code Editor. Powered by Ace. Independent of Microsoft; VS Code extensions are not supported.

Credits · License · Third-party notices and upstream license details

Bugs and requests: GitHub Issues. Installation and custom development: Renat2985.

Manual updates: Tools → Update editor… → upload a trusted PHP release → check → update. The installed filename, password and settings are preserved; a private backup is created.

  • File history: open from Tools or a file context menu to compare private save backups inline or restore a copy into the editor before saving. Copies use temporary server storage.

About

A single-file PHP file manager and web code editor with tabs, themes, a minimap, verified saves, and read-only Git diff. Self-hosted, no database required.

www.onclick.lv

Topics

ace-editorcode-editorfile-managephpsingle-fileweb-editor

Resources

Readme
License
Activity

Stars

4 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.