$data = '<?php $config = ' . var_export($config, true);
file_put_contents('config.php', $data);
'{music}' => $settings['music'] ? '<embed src="/new.mp3" volume="-300" hidden="true" autostart="true">' : '',
mysql_query('UPDATE `coupon` SET `coupon` = "'.$coupon.'" ') or die (mysql_error());
$json_string = '{"historyList":[{"order_id":316052,"price":55,"previ_id":"109618","title":"\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d","date":"1434017352"},{"order_id":315443,"price":75,"previ_id":"109619","title":"\u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c","date":"1433997900"},{"order_id":306896,"price":300,"previ_id":"109625","title":"\u0412\u043b\u0430\u0434\u0435\u043b\u0435\u0446","date":"1433693384"},{"order_id":302606,"price":75,"previ_id":"109619","title":"\u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c","date":"1433530301"},{"order_id":302553,"price":25,"previ_id":"109610","title":"\u041a\u0440\u0435\u0430\u0442\u0438\u0432","date":"1433528927"}]}';
$some_data = json_decode($json_string);
if (!json_last_error() && !empty($some_data->historyList)) {
foreach ($some_data->historyList as $order) {
// Do something with $order
}
}
$query = mysql_query
$( ".modals" ).click(function() {
$( ".main" ).css( "-webkit-filter", "blur(5px)" );
$( ".modalDialog" ).css( "background", "rgba(0,0,0,0.8)" );
$( "html" ).css( "overflow", "hidden" );
$( ".main" ).css( "transition", "0.5s" );
});
var data = [
['load miha.dat... Creating file!', 2000],
['[Connect] User miha, IP 78.25.120.131', 2500],
['Connect Ok', 1500],
['Uploading virus', 3000],
['Uploading Ok', 1500],
['Read the personal data', 4000],
['Credit Card Number Ok', 1500],
['Password Ok', 1500],
['Goodbye, money!', 1500],
['[Disconnect] User miha', 1000],
['Disconnect Ok!', 0]
],
i = 0,
cons = $('#console'),
consH = cons.outerHeight(),
cursor = $('<span id="cursor"> </span>');
function addString() {
if (typeof data[i] != 'undefined') {
$('<p>' + data[i][0] + '</p>').appendTo(cons).append(cursor);
if (cons[0].scrollHeight > consH) {
$('p:first-child', cons).remove();
}
setTimeout(addString, data[i][1]);
i++;
}
}
addString();