本文整理汇总了PHP中sapp_Global::imageUploadAfterResize方法的典型用法代码示例。如果您正苦于以下问题:PHP sapp_Global::imageUploadAfterResize方法的具体用法?PHP sapp_Global::imageUploadAfterResize怎么用?PHP sapp_Global::imageUploadAfterResize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sapp_Global
的用法示例。
在下文中一共展示了sapp_Global::imageUploadAfterResize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: settings
public function settings($postarray)
{
if (isset($postarray['userid']) && $postarray['userid'] != '') {
if (isset($postarray['password']) && $postarray['password'] != '' || isset($_FILES['profile_photo']['name']) && $_FILES['profile_photo']['name'] != '') {
$uploadresult = array();
$data = array();
if (isset($_FILES['profile_photo']['name']) && $_FILES['profile_photo']['name'] != '') {
$uploadresult = sapp_Global::imageUploadAfterResize();
}
if (isset($postarray['password']) && $postarray['password'] != '') {
$password = md5($postarray['password']);
$data['user_password'] = $password;
}
if (isset($uploadresult['img']) && $uploadresult['img'] != '') {
$data['profile_photo'] = $uploadresult['img'];
}
$where = 'id = "' . $postarray['userid'] . '"';
$usersModel = new User_Model_Users();
$changepwd = $usersModel->edituserPassword($data, $where);
$userDetJson = array('status' => '1', 'message' => 'Success', 'result' => 'Updated successfully.');
} else {
$userDetJson = array('status' => '0', 'message' => 'Either Password or Profile Photo should change.', 'result' => '');
}
} else {
$userDetJson = array('status' => '0', 'message' => 'User Id should not be empty.', 'result' => '');
}
return $userDetJson;
}