20 lines
809 B
PHP
20 lines
809 B
PHP
<?
|
|
|
|
if(isset($_FILES['upload'])){
|
|
------ Process your file upload code -------
|
|
$filen = $_FILES['upload']['tmp_name'];
|
|
$con_images = "uploaded/".$_FILES['upload']['name'];
|
|
move_uploaded_file($filen, $con_images );
|
|
$url = "http://www.yourdomain.com/".$con_images;
|
|
|
|
$funcNum = $_GET['CKEditorFuncNum'] ;
|
|
// Optional: instance name (might be used to load a specific configuration file or anything else).
|
|
$CKEditor = $_GET['CKEditor'] ;
|
|
// Optional: might be used to provide localized messages.
|
|
$langCode = $_GET['langCode'] ;
|
|
|
|
// Usually you will only assign something here if the file could not be uploaded.
|
|
$message = '';
|
|
echo "<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction($funcNum, '$url', '$message');</script>";
|
|
}
|
|
?>
|