Subversion Repositories cheapmusic

Rev

Rev 108 | Rev 110 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 108 Rev 109
Line 1442... Line 1442...
1442
}
1442
}
1443
 
1443
 
1444
// get user image name
1444
// get user image name
1445
function getUserImage($userData) {
1445
function getUserImage($userData) {
1446
    if (empty($userData) || empty($userData['picture'])) {
1446
    if (empty($userData) || empty($userData['picture'])) {
1447
        return timeStampUrl('login/assets/images/default.png');
1447
        return 'login/assets/images/default.png';
1448
    }
1448
    }
1449
 
1449
 
1450
    $httpPos = strpos($userData['picture'], 'http');
1450
    $httpPos = strpos($userData['picture'], 'http');
1451
    if ($httpPos === false) {
1451
    if ($httpPos === false) {
1452
        return 'login/' . UPLOAD_PATH . 'profile_picture/' . $userData['picture'];
1452
        return 'login/' . UPLOAD_PATH . 'profile_picture/' . $userData['picture'];
Line 1671... Line 1671...
1671
        error_log("MySQL Write geoLocation Error: " . mysqli_error($conn) . " (" . mysqli_errno($conn) . ")");
1671
        error_log("MySQL Write geoLocation Error: " . mysqli_error($conn) . " (" . mysqli_errno($conn) . ")");
1672
    }
1672
    }
1673
}
1673
}
1674
 
1674
 
1675
function timeStampUrl($file) {
1675
function timeStampUrl($file) {
-
 
1676
    if (file_exists($file)) {
1676
    return $file . "?" . filemtime($file);
1677
        return $file . "?" . filemtime($file);
-
 
1678
    }
-
 
1679
    
-
 
1680
    return $file;
1677
}
1681
}