This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class IpnListnerController extends \BaseController { | |
private $sandbox = true; | |
private $notify_email = true; | |
private $receiver_email = '[email protected]'; | |
protected function listener(){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function randPass($leng = 20, $uppercase = true, $number = true, $simbol = true) | |
{ | |
$lower = 'abcdefghijklmnopqrstuvwxyz'; | |
$upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
$numbers = '1234567890'; | |
$simbols = '?@[#_>(!&]{$*=<%}+)-^~'; | |
$password = ''; | |
$characters = ''; | |
$character .= $lower; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$('#summernote').summernote({ | |
focus: true, | |
height: 250, | |
callbacks: { | |
onImageUpload: function(files) { | |
sendFile(files[0]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('body').on('submit', '#updateUser', function (e){ | |
e.preventDefault(); e.stopPropagation(); | |
var formData = new FormData(this), progressbar = $('.total-progress'); | |
$.ajax({ | |
url: $(this).attr('action'), | |
type: 'POST', | |
data: formData, | |
cache: false, | |
contentType: false, | |
processData: false, |