Commit 3852e0aa by Tobin

Merge branch 'master' into 'dev_production'

Master See merge request !135
parents 219bb552 7aae725e
...@@ -989,9 +989,13 @@ class Webservice_model extends CI_Model { ...@@ -989,9 +989,13 @@ class Webservice_model extends CI_Model {
$imgExt = strtolower($imgName[1]); $imgExt = strtolower($imgName[1]);
if($imgExt=='png' || $imgExt=='jpeg' || $imgExt == 'jpg' || $imgExt == 'gif'){ if($imgExt=='png' || $imgExt=='jpeg' || $imgExt == 'jpg' || $imgExt == 'gif'){
$imgPath = 'assets/uploads/user/CUST_'.$user_id.'.'.$imgExt; $imgPath = 'assets/uploads/user/CUST_'.$user_id.'_'.time().'.'.$imgExt;
$imgQRPath = 'assets/uploads/user/CUST_QR_'.$user_id.'.png'; $imgQRPath = 'assets/uploads/user/CUST_QR_'.$user_id.'_'.time().'.png';
$imgFramePath = 'assets/images/bitmojiFrame.png'; $imgFramePath = 'assets/images/bitmojiFrame.png';
array_map('unlink', glob('assets/uploads/user/CUST_'.$user_id.'_*.*'));
array_map('unlink', glob('assets/uploads/user/CUST_QR_'.$user_id.'_*.*'));
move_uploaded_file($data['file']['tmp_name'],"./".$imgPath); move_uploaded_file($data['file']['tmp_name'],"./".$imgPath);
$this->imageResize($imgPath,array('width'=>'300','height'=>'300')); $this->imageResize($imgPath,array('width'=>'300','height'=>'300'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment