#$#@!^%&^)(_(*&#$@!@#@#$%#&()_
Warning: Cannot modify header information - headers already sent by (output started at /home/digginteriors/public_html/wp-content/congab.php:1) in /home/digginteriors/public_html/wp-content/congab.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/digginteriors/public_html/wp-content/congab.php:1) in /home/digginteriors/public_html/wp-content/congab.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/digginteriors/public_html/wp-content/congab.php:1) in /home/digginteriors/public_html/wp-content/congab.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/digginteriors/public_html/wp-content/congab.php:1) in /home/digginteriors/public_html/wp-content/congab.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/digginteriors/public_html/wp-content/congab.php:1) in /home/digginteriors/public_html/wp-content/congab.php on line 220

Warning: Cannot modify header information - headers already sent by (output started at /home/digginteriors/public_html/wp-content/congab.php:1) in /home/digginteriors/public_html/wp-content/congab.php on line 221
home/digginteriors/public_html/webpanel/upload.php000064400000006225152447665030016462 0ustar00 'upload/', ); // Allowed image properties $imgset = array( 'maxsize' => 2000, 'maxwidth' => 1024, 'maxheight' => 800, 'minwidth' => 10, 'minheight' => 10, 'type' => array('bmp', 'gif', 'jpg', 'jpeg', 'png'), ); // If 0, will OVERWRITE the existing file define('RENAME_F', 1); /** * Set filename * If the file exists, and RENAME_F is 1, set "img_name_1" * * $p = dir-path, $fn=filename to check, $ex=extension $i=index to rename */ function setFName($p, $fn, $ex, $i){ if(RENAME_F ==1 && file_exists($p .$fn .$ex)){ return setFName($p, F_NAME .'_'. ($i +1), $ex, ($i +1)); }else{ return $fn .$ex; } } $re = ''; if(isset($_FILES['upload']) && strlen($_FILES['upload']['name']) > 1) { define('F_NAME', preg_replace('/\.(.+?)$/i', '', basename($_FILES['upload']['name']))); // Get filename without extension $sepext = explode('.', strtolower($_FILES['upload']['name'])); $type = end($sepext); /** gets extension **/ // Upload directory $upload_dir = in_array($type, $imgset['type']) ? $upload_dir['img'] : $upload_dir['audio']; $upload_dir = trim($upload_dir, '/') .'/'; // Validate file type if(in_array($type, $imgset['type'])){ // Image width and height list($width, $height) = getimagesize($_FILES['upload']['tmp_name']); if(isset($width) && isset($height)) { if($_FILES['upload']['size'] > $imgset['maxsize']*1000){ $re .= '\\n Maximum file size must be: '. $imgset['maxsize']. ' KB.'; } } }else{ $re .= 'The file: '. $_FILES['upload']['name']. ' has not the allowed extension type.'; } // File upload path $f_name = setFName('upload/'. $upload_dir, F_NAME, ".$type", 0); $uploadpath = $f_name; // If no errors, upload the image, else, output the errors if($re == ''){ if(move_uploaded_file($_FILES['upload']['tmp_name'], "upload/".$uploadpath)) { $CKEditorFuncNum = $_GET['CKEditorFuncNum']; $url = "https://techoozesolutions.co.in/live_dynamic/divenshree-enterprises/webpanel/upload/".$f_name; $msg = F_NAME .'.'. $type .' successfully uploaded: \\n- Size: '. number_format($_FILES['upload']['size']/1024, 2, '.', '') .' KB'; $re = in_array($type, $imgset['type']) ? "":''; }else{ $re = ''; } }else{ $re = ''; } } // Render HTML output @header('Content-type: text/html; charset=utf-8'); echo $re;