// http://stackoverflow.com/a/23048315
// by Lee Kowalkowski
First run:
sudo mkdir /opt/lampp/mailtodisk
sudo mkdir /opt/lampp/mailoutput
echo "<p>Start time: $start_timestamp</p>"; | |
echo "<p>End time: $end_timestamp</p>"; |
$start_timestamp = strtotime('-1 second',strtotime($year.'-'.$month.'-'.$day.' 00:00:00')); | |
$end_timestamp = strtotime('+1 second',strtotime($year.'-'.$month.'-'.$day.' 23:59:59')); |
$start_timestamp = strtotime('-1 second',strtotime($year.'-'.$month.'-'.$day.' 00:00:01')); | |
$end_timestamp = strtotime('+1 second',strtotime($year.'-'.$month.'-'.$day.' 23:59:58')); |
<?php | |
/* | |
Plugin Name: fixme test for booked plugin | |
Using: place it in the plugins dir and activate from wp-admin | |
*/ | |
if( ! function_exists( 'mplus_fix_query' ) ) | |
{ | |
function mplus_fix_query( $args ) { | |
// echo '<pre>'.print_r($args, true).'</pre>'; |
[Desktop Entry] | |
Comment=Start and Stop XAMPP | |
Name=XAMPP Control Panel | |
Exec=gksudo python2 /opt/lampp/share/xampp-control-panel/xampp-control-panel.py | |
#Exec=gksudo /opt/lampp/manager-linux.run | |
Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg | |
Encoding=UTF-8 | |
Terminal=false | |
Name=XAMPP Control Panel | |
Comment=Start and Stop XAMPP |
<?php | |
function has_an_active_subscriber( $product_id = null ){ | |
// Empty array to store ALL existing Subscription PRODUCTS | |
$products_arr = array(); | |
$products_subscr = get_posts( array( | |
'numberposts' => -1, | |
'post_status' => 'publish', |
<?php | |
// Source: http://stackoverflow.com/a/25749714 | |
if (empty($_GET['pass'])) { die('error'); } | |
// your config | |
$filename = 'yourGigaByteDump.sql'; | |
$dbHost = 'localhost'; | |
$dbUser = 'user'; | |
$dbPass = '__pass__'; | |
$dbName = 'dbname'; |
// http://stackoverflow.com/a/23048315
// by Lee Kowalkowski
First run:
sudo mkdir /opt/lampp/mailtodisk
sudo mkdir /opt/lampp/mailoutput