This file contains hidden or 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
%s/\n/\\n/ |
This file contains hidden or 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 hidePage(){ | |
$('#mainContainer').hide(); | |
$('#seo').hide(); | |
$('#footer').hide(); | |
$("#overlay-item").show(); | |
$("#overlay-bg").show(); | |
} | |
function showPage(){ | |
$('#mainContainer').show(); |
This file contains hidden or 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 | |
$fp = fopen('file.csv', 'w'); | |
foreach ($_lang as $key => $field) { | |
fputcsv($fp, array( | |
'key' => $key, | |
'field' => $field | |
)); | |
} | |
fclose($fp); |
This file contains hidden or 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 | |
/** | |
* MODX Configuration file | |
*/ | |
$database_type = 'mysql'; | |
$database_server = '#DBHOST#'; | |
$database_user = '#DBUSER#'; | |
$database_password = '#DBPASS#'; | |
$database_connection_charset = 'utf8'; | |
$dbase = '#DBNAME#'; |
This file contains hidden or 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
var crypto = require('crypto'), | |
fs = require('fs'), | |
http = require('http'); | |
var port = 8080; | |
var privateKey = fs.readFileSync('privatekey.pem').toString(), | |
certificate = fs.readFileSync('certificate.pem').toString(); | |
var credentials = crypto.createCredentials({key: privateKey, cert: certificate}); |