SM0 She11
Path:
/
/
home
/
saienerg
/
public_html
/
intra
Full Path (server): /home/saienerg/public_html/intra
Create Fil3
Upl04d Fil3
📄 ajax1.php
[E]
[D]
[R]
📄 article_list.php
[E]
[D]
[R]
📁 assets
Open
[D]
[R]
📁 career
Open
[D]
[R]
📄 career_enquiries.php
[E]
[D]
[R]
📄 cat_load.php
[E]
[D]
[R]
📁 change
Open
[D]
[R]
📄 cmn_lib.php
[E]
[D]
[R]
📄 common.php
[E]
[D]
[R]
📄 compressImage.php
[E]
[D]
[R]
📄 config.php
[E]
[D]
[R]
📁 css
Open
[D]
[R]
📁 dashboard
Open
[D]
[R]
📁 data
Open
[D]
[R]
📁 fonts
Open
[D]
[R]
📄 foo_scripts.php
[E]
[D]
[R]
📄 foo_scripts1.php
[E]
[D]
[R]
📄 footer.php
[E]
[D]
[R]
📄 footer1.php
[E]
[D]
[R]
📄 form.php
[E]
[D]
[R]
📁 gallery
Open
[D]
[R]
📄 getExtension.php
[E]
[D]
[R]
📄 header.php
[E]
[D]
[R]
📄 header1.php
[E]
[D]
[R]
📁 hrrepo
Open
[D]
[R]
📁 images
Open
[D]
[R]
📁 includes
Open
[D]
[R]
📄 index.php
[E]
[D]
[R]
📄 index1.php
[E]
[D]
[R]
📄 kis_config.php
[E]
[D]
[R]
📄 login.php
[E]
[D]
[R]
📄 logout.php
[E]
[D]
[R]
📁 masters
Open
[D]
[R]
📁 others
Open
[D]
[R]
📁 perfomances
Open
[D]
[R]
📁 products
Open
[D]
[R]
📄 products.js
[E]
[D]
[R]
📁 services
Open
[D]
[R]
📄 sidebar.php
[E]
[D]
[R]
📄 sidebar1.php
[E]
[D]
[R]
📄 spel_config.php
[E]
[D]
[R]
📄 top_nav.php
[E]
[D]
[R]
📄 top_nav1.php
[E]
[D]
[R]
📁 users
Open
[D]
[R]
Editing: compressImage.php
<?php function compressImage($ext,$uploadedfile,$path,$actual_image_name,$newwidth) { if($ext=="jpg" || $ext=="jpeg" ) { $src = imagecreatefromjpeg($uploadedfile); } else if($ext=="png") { $src = imagecreatefrompng($uploadedfile); } else if($ext=="gif") { $src = imagecreatefromgif($uploadedfile); } else { $src = imagecreatefrombmp($uploadedfile); } list($width,$height)=getimagesize($uploadedfile); $newheight=($height/$width)*$newwidth; $tmp=imagecreatetruecolor($newwidth,$newheight); imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height); //$filename = $path.$newwidth.'_'.$actual_image_name; //PixelSize_TimeStamp.jpg //$filename = $path.'_'.$actual_image_name; //PixelSize_TimeStamp.jpg //$filename = $actual_image_name; //PixelSize_TimeStamp.jpg $filename = $path.$newwidth.'_'.$actual_image_name; //PixelSize_TimeStamp.jpg imagejpeg($tmp,$filename,800); imagedestroy($tmp); return $filename; } ?>
Save