Skip to content

Instantly share code, notes, and snippets.

View KarlBaumann's full-sized avatar

Karlis Baumanis KarlBaumann

View GitHub Profile
<php
protected function prepareHTMLEmail($htmlMessage)
{
preg_match_all('~<img.*?src=.([\/.a-z0-9:_-]+).*?>~si', $htmlMessage, $matches);
$i = 0;
$paths = [];
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'),
<?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)
server {
listen 80;
server_name kalpones.lv www.kalpones.lv;
root /srv/http/kalpones.lv;
....
<------>client_max_body_size 10M;
........
#charset koi8-r;
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
/**
* Backend configuration for MediaAccessManagement tool.
* @version 0.0.1
*
* todo click on the row and read selected values
*/
var apiUrl = ajaxurl + '?action=MediaAccessManager&process=loadMatrix&page={page+1}&size={size}&{sortList:sort}&{filterList:filter}';
var apiUrl = ajaxurl + '?action=MediaAccessManager&process=loadMatrix&page={page+1}&size={size}&{sortList:sort}&{filterList:filter}';
jQuery(function ($) {
var UserTracking = {
commonSetup: function () {
$('#confirm-delete').on('click', '.btn-ok', function (e) {
var $modalDiv = $(e.delegateTarget);
<table id="media-access" class="bootstrap-popup focus-highlight">
<thead>
<tr class="tablesorter-ignoreRow">
<td class="pager" colspan="<?=$colCount?>">
<img src="<?=$url?>/first.png" class="first"/>
<img src="<?=$url?>/prev.png" class="prev"/>
<span class="pagedisplay"></span>
<!-- this can be any element, including an input -->
<img src="<?=$url?>/next.png" class="next"/>
<img src="<?=$url?>/last.png" class="last"/>
/**
* Backend configuration for MediaAccessManagement tool.
* @version 0.0.3
*/
var apiUrl = ajaxurl + '?action=MediaAccessManager&process=loadMatrix&page={page+1}&size={size}&{sortList:sort}&{filterList:filter}';
jQuery(function ($) {
<?php
/**
* Created by PhpStorm.
* User: baumanisk
* Date: 12/08/2016
* Time: 14:16
*
* @version 1.1.0
*
* @var int $colCount