Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<script> $(function () { @if(auth()->check()) getBCs(); ..
Decoded Output download
<? <script>
$(function () {
@if(auth()->check())
getBCs();
@endif
});
function getBCs()
{
funBroadcast(getCookie("MsgID"));
}
function funBroadcast(val)
{
//Perform Ajax request.
$.ajax({
url: "{!!url("broadcast/")!!}" + "/" + val,
type: 'get',
success: function(data){
if(data['recordsFiltered']==1){
val = data['data'][0]['id'];
swal({
title:"<span style='font-size:25px'>" + data['data'][0]['MsgTitle'] + "</span>",
html:"<p style='font-size:20px;margin-top:10px'>" + data['data'][0]['MsgText'] + "</p>",
type:data['data'][0]['Icon'],
confirmButtonText:'<span style="font-size:25px"><i class="fa fa-thumbs-up"></i> Ok! </span>',
width: '650px'
}).then((result) => {
if(val != 0){
setCookie('MsgID',val,30);
funBroadcast(val);
}else{
funBroadcast(getCookie("MsgID"));
}
});
if(val == 0){
$(".swal2-modal").css('background-color', '#fff');
}
else{
$(".swal2-modal").css('background-color', '#fff');
}
}
},
error: function (xhr, ajaxOptions, thrownError) {
var errorMsg = 'Ajax request failed: ' + xhr.responseText;
{{-- swal(errorMsg); --}}
}
});
}
function setCookie(cname,cvalue,exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires=" + d.toGMTString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function getCookie(name) {
function escape(s) { return s.replace(/([.*+?\^${}()|\[\]\/\])/g, '\$1'); };
var match = document.cookie.match(RegExp('(?:^|;\s*)' + escape(name) + '=([^;]*)'));
return match ? match[1] : 0;
}
</script> ?>
Did this file decode correctly?
Original Code
<script>
$(function () {
@if(auth()->check())
getBCs();
@endif
});
function getBCs()
{
funBroadcast(getCookie("MsgID"));
}
function funBroadcast(val)
{
//Perform Ajax request.
$.ajax({
url: "{!!url("broadcast/")!!}" + "/" + val,
type: 'get',
success: function(data){
if(data['recordsFiltered']==1){
val = data['data'][0]['id'];
swal({
title:"<span style='font-size:25px'>" + data['data'][0]['MsgTitle'] + "</span>",
html:"<p style='font-size:20px;margin-top:10px'>" + data['data'][0]['MsgText'] + "</p>",
type:data['data'][0]['Icon'],
confirmButtonText:'<span style="font-size:25px"><i class="fa fa-thumbs-up"></i> Ok! </span>',
width: '650px'
}).then((result) => {
if(val != 0){
setCookie('MsgID',val,30);
funBroadcast(val);
}else{
funBroadcast(getCookie("MsgID"));
}
});
if(val == 0){
$(".swal2-modal").css('background-color', '#fff');
}
else{
$(".swal2-modal").css('background-color', '#fff');
}
}
},
error: function (xhr, ajaxOptions, thrownError) {
var errorMsg = 'Ajax request failed: ' + xhr.responseText;
{{-- swal(errorMsg); --}}
}
});
}
function setCookie(cname,cvalue,exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires=" + d.toGMTString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function getCookie(name) {
function escape(s) { return s.replace(/([.*+?\^${}()|\[\]\/\\])/g, '\\$1'); };
var match = document.cookie.match(RegExp('(?:^|;\\s*)' + escape(name) + '=([^;]*)'));
return match ? match[1] : 0;
}
</script>
Function Calls
None |
Stats
MD5 | 1831f14beeaf204d8c6be0b23195b145 |
Eval Count | 0 |
Decode Time | 88 ms |