<html>
<body>
<script type="text/javascript" src="/aes.js" ></script>
<script>
function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("13f777ffb6ec58060eb97b767cef885c");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://mediabazartest.byethost7.com/index.html?i=1";
</script>
<noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript>
</body>
</html>
function dataSort(arrayLabels, arrayData, ...params) {
console.log(`number of arguments: ${params.length}`);
const arrayOfObj = [];
arrayLabels.forEach((label, i) => {
const el = { labels: label, data: arrayData[i] || 0 };
params.forEach(function(param, a) {
el[`arr${a}`] = param[i] || 0;
});
arrayOfObj.push(el);
});
arrayOfObj = arrayOfObj.sort((a, b) => parseInt(b.data) > parseInt(a.data));
}
$array = [
0 => ['a' => 1, 'b' => 2, 'c' => 3],
1 => ['a' => 1, 'b' => 3, 'c' => 3],
2 => ['a' => 1, 'b' => 2, 'c' => 4],
3 => ['a' => 1, 'b' => 2, 'c' => 3],
];
$keys = array_keys($array[0]);
$keys = array_filter(
$keys,
function($key) use($array) {
count(array_unique(array_column($array, $key);)) > 1;
}
);
$array = array_map(
function($el) use($keys) {
return array_filter(
$el,
function($key) use($keys) {
return in_array($key, $keys);
},
ARRAY_FILTER_USE_KEY
);
},
$array
);
print_r($array);
/*
Array (
[0] => Array (
[b] => 2
[c] => 3
)
[1] => Array (
[b] => 3
[c] => 3
)
[2] => Array (
[b] => 2
[c] => 4
)
[3] => Array (
[b] => 2
[c] => 3
)
)
/*