1. Overview
R-Scope is a browser-based file manager for your web server. It runs as a single PHP application β no Apache .htpasswd required for folder protection.
This guide covers the standalone deployment (e.g. https://lab.rnote.jp/root-proxy.php), where R-Scope manages files from your site's document root.
| Feature | Description |
|---|---|
| Browse & organize | Tree view, list/thumbnail mode, search |
| Upload | Files, folders, drag-and-drop from Explorer / Outlook |
| Edit | Text files with undo/redo; images with annotations or pixel tools |
| Protect folders | Session login + .protected marker (no Apache Basic Auth) |
| Field photos | Non-destructive overlays saved as .rnote sidecar files |
2. Standalone deployment (root-proxy)
On lab.rnote.jp and similar setups, open:
https://lab.rnote.jp/root-proxy.php
How it works
| File | Root scope |
|---|---|
root-proxy.php | Entire document root (domain root) |
scope-proxy.php | Only the folder where the proxy file lives |
R-Scope.php | Same folder as R-Scope.php (direct access) |
First-time setup
- Open
scope-proxy.php(demo) orroot-proxy.php(site root). - Click π Password and set the shared viewing password.
- Select a folder β π Protect to require login for that folder and its contents.
3. Interface
Three panes: left folder tree Β· center file list Β· right preview.
Toolbar
| Button | Action |
|---|---|
| β¬ Back / β‘ Forward | Session history (left tree + center folder + right preview) |
| π ShotMemo | Save and restore named scenes (tree + folder + preview) |
| π Reload | Refresh listing |
| β¬ Upload | Pick one or more files |
| π Folder | Upload an entire folder |
| ποΈ List / πΌοΈ Thumb | List vs thumbnail view |
| π New Folder / π New File | Create items |
| π·οΈ Rename / ποΈ Delete | Rename or remove |
| π Protect / π Unprotect | Add/remove .protected marker (viewing restriction, not delete prevention) |
| π Password | Shared viewing password stored in config/rscope.json |
| ROOT | Jump to root-proxy (if configured) |
Context menu (right-click)
ZIP compress/extract, rename, permissions, delete, protect/unprotect, and more.
ShotMemo (named scenes)
Save the current left tree + center folder + right preview under a name, then click Go later to restore that checkpoint. Stored in config/scopes.json (scenes array).
Text editing
Open .txt .md .php .html etc. in the built-in editor.
- πΎ Save β writes file (creates
.bakbackup first) - β© Undo / βͺ Redo β or Ctrl+Z / Ctrl+Y
4. Copying files (drag & drop)
Drag from Windows Explorer or Outlook onto the center pane or preview area.
- Select the destination folder in the left tree.
- Drop files or folders onto the highlighted blue area.
- Folder structure is preserved when dropping a whole folder.
5. Folder protection & viewing password
The standalone edition uses two separate mechanisms. The toolbar buttons look similar but do different jobs.
| Button | Role | Stored in |
|---|---|---|
| π Password | App entry password (shared viewing password). Once set, visitors must log in before using R-Scope at all. | config/rscope.json |
| π Protect / π Unprotect | Marks a folder as βpassword requiredβ. Does not prevent deletion. Blocks listing, preview, and download when not logged in. | folder/.protected |
How the two pieces fit together
config/rscope.json?No login screen; anyone can use the app fully.
β»
.protected markers have no effect until you set π Password first.Login screen is shown
.protected?List, preview, edit OK
βPassword Requiredβ
(with a password configured, login usually clears this)
List, preview, download OK
β» Delete and upload are still allowed after login (not read-only)
Recommended setup order
- π Password β set the shared viewing password (required; without it,
.protecteddoes nothing) - Select a folder β π Protect (creates an empty
.protectedmarker file) - Visitors without a session are prompted when they try to open protected paths
- π Unprotect removes the marker when no longer needed
What protection blocks (and what it does not)
| Blocked when not logged in | Not blocked |
|---|---|
| Folder listing, file preview, download | Not delete prevention β after login, ποΈ Delete still works |
Your original files are never modified by protection β only visibility through R-Scope is restricted. Folders in the list show a leading π when protected.
6. Photos & field annotations (.rnote)
Select jpg / png / gif / webp / bmp to open the image workspace.
π Field annotations (recommended)
Does not change the original photo. Overlays are saved to photo.jpg.rnote (sidecar, like Lightroom XMP).
| Tool | Usage |
|---|---|
| β‘ Arrow | Drag to draw |
| π Text | Click, then type |
| β Circle | Drag to draw ellipse |
| π Dimension | Two clicks, then label (e.g. 3500mm) |
| π· Stamp | Click to place (OK, NG, Pending, etc.) |
| πΎ Save annotations (.rnote) | Save overlays only |
π¨ Pixel editing
Modifies the actual image file.
- Resize, brightness, contrast, saturation, sharpen, blur, grayscale, sepia
- Crop, rotate
- πΎ Save (overwrite +
.bak) or π Save as
7. Typical file layout (standalone)
/public_html/ β document root (root-proxy scope)
βββ root-proxy.php β open R-Scope at domain root
βββ R-Scope.php β file manager core
βββ R-Scope-manual-en.php β this guide
βββ config/
β βββ rscope.json β viewing password (hash)
β βββ scopes.json β ShotMemo scenes, etc.
βββ lib/
βββ projects/
β βββ .protected β protection marker (empty file OK)
βββ photo.jpg
photo.jpg.rnote β annotations (original unchanged)
8. FAQ
Q. Where are edited photos saved?
Annotation mode β only filename.rnote; image unchanged.
Pixel edit + Save β overwrites the image on the server.
Q. Forgot the viewing password?
Clear password_hash in config/rscope.json on the server, or β if you can still log in β set a new password with π Password.
Q. Does π Protect prevent deletion?
No. It hides / blocks access to content when not logged in. After login, delete and upload still work.
Q. root-proxy vs R-Scope.php?
Both load the same app. root-proxy.php sets the root to the entire document root. R-Scope.php uses its own directory as root.
Q. Recommended browser?
Chrome or Edge (folder drag-and-drop and canvas image tools).