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 | |
/** | |
* Delivers the content of the requested file. | |
* | |
* @param string $sObjectType The type of the requested file. | |
* @param string $sObjectUrl The file url. | |
* | |
* @return null | |
*/ | |
public function getFile($sObjectType, $sObjectUrl) |
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
var apiUrl = ajaxurl + '?action=TsAnalyticsAdmin&page={page+1}&size={size}&{sortList:sort}&{filterList:filter}'; | |
jQuery(function ($) { | |
var UserTracking = { | |
date: { | |
today: moment(), | |
yesterday: moment().subtract(1, 'days'), | |
weekAgo: moment().subtract(6, 'days'), | |
monthAgo: moment().subtract(1, 'month'), |
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 | |
protected function prepareHTMLEmail($htmlMessage) | |
{ | |
preg_match_all('~<img.*?src=.([\/.a-z0-9:_-]+).*?>~si', $htmlMessage, $matches); | |
$i = 0; | |
$paths = []; |
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 | |
/** | |
* Runs the query and generates an Excel file from the results. | |
* | |
* @param $query string Regular SQL query. | |
* @param $fileName string Name of the file which should be passed to browser, without extension. | |
*/ | |
public static function sql2excel($query, $fileName = 'data') | |
{ | |
global $wpdb; |
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
$content = '<form name="tablebutton" method="post" action="'.$path.$site.'"> | |
<p style="display:none"> | |
'; | |
if ($filters != "none") { | |
$content .=' | |
<input type="text" name="filters" value="'.$filters.'"> | |
<input type="text" name="filterparam" value="'.$filterparam.'"> | |
'; | |
} | |
if ($grouping != "none") { |
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
--- google.de ping statistics --- | |
34075 packets transmitted, 26179 received, +5 errors, 23% packet loss, time 34115819ms | |
rtt min/avg/max/mdev = 31.202/33.288/83.821/1.106 ms | |
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
traceroute to google.de (172.217.19.35), 30 hops max, 60 byte packets | |
1 o2.box (192.168.1.1) 0.389 ms 0.465 ms 0.779 ms | |
2 62.52.201.193 (62.52.201.193) 32.537 ms 32.605 ms 32.357 ms | |
3 ae23-0.01.xd.0001-01.fra.de.net.telefonica.de (62.53.22.222) 24.053 ms 25.753 ms ae23-0.02.xd.0001-01.fra.de.net.telefonica.de (62.53.22.224) 25.859 ms | |
4 ae0-0.0002.prrx.01.fra.de.net.telefonica.de (62.53.11.229) 25.933 ms 26.027 ms 26.076 ms | |
5 de-cix20.net.google.com (80.81.193.108) 89.526 ms 89.410 ms 89.131 ms | |
6 216.239.56.182 (216.239.56.182) 89.396 ms 216.239.49.128 (216.239.49.128) 22.869 ms 216.239.56.182 (216.239.56.182) 86.950 ms | |
7 216.239.57.188 (216.239.57.188) 23.774 ms 216.239.57.127 (216.239.57.127) 23.631 ms 216.239.57.188 (216.239.57.188) 23.391 ms | |
8 66.249.95.23 (66.249.95.23) 26.553 ms 209.85.251.178 (209.85.251.178) 27.052 ms 66.249.95.23 (66.249.95.23) 27.135 ms | |
9 74.125.37.160 (74.125.37.160) 34.977 ms 34.328 ms 33.850 ms |
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
1b5c.1228: Log file opened: 5.0.16r105871 g_hStartupLog=0000000000000020 g_uNtVerCombined=0x611db110 | |
1b5c.1228: \SystemRoot\System32\ntdll.dll: | |
1b5c.1228: CreationTime: 2016-01-29T11:00:26.374196500Z | |
1b5c.1228: LastWriteTime: 2015-12-30T19:05:33.659216000Z | |
1b5c.1228: ChangeTime: 2016-02-02T16:49:16.860375200Z | |
1b5c.1228: FileAttributes: 0x20 | |
1b5c.1228: Size: 0x1a67c0 | |
1b5c.1228: NT Headers: 0xe0 | |
1b5c.1228: Timestamp: 0x568429e5 | |
1b5c.1228: Machine: 0x8664 - amd64 |
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
NameVirtualHost pornhub.com:443 | |
<VirtualHost pornhub.com:443> | |
SSLEngine on | |
SSLCertificateFile /etc/pki/tls/certs/ca.crt | |
SSLCertificateKeyFile /etc/pki/tls/private/ca.key | |
<Directory /var/www/vhosts/pornhub.com> | |
AllowOverride All | |
</Directory> | |
DocumentRoot /var/www/vhosts/pornhub.com |