Unauthorized access to a PHP page prompts the user for a password. Once the password is entered the original page will show.
- The access is recorded in the session so it only needs to be
<!-- Don't forget to include flowplayer js and fancybox js and css --> | |
<div style="width:665px;height:480px;display:none;" id="player"> | |
</div> | |
<a id="play-flv-video" href="#player">Play video</a> | |
<script language="JavaScript"> | |
$(document).ready(function() { | |
$("a#play-flv-video").fancybox({ |
# Setting up a local solr instance on a mac | |
# install solr with homebrew | |
brew install solr | |
# create the base solr index directory | |
mkdir -p /data/solr | |
# make sure you can write to the solr logs | |
sudo chown -R `whoami` /usr/local/Cellar/solr/ |
IMPORTANT: this is outdated, go to https://github.com/netroy/Lockets | |
"npm install socket-io" & you are ready to go |
<script src="/socket.io/socket.io.js"></script> | |
<script type="text/javascript"> | |
var socket = new io.Socket(); | |
socket.connect(); | |
socket.on('connect', | |
function(){ | |
console.log('connected'); | |
socket.send('/var/log/system.log'); | |
}); |
/* Plays all audio elements inside a slide when the slide becomes active | |
and pauses them when the user navigates away. Replace pause with | |
whatever functionality desired (maybe pause and set currentTime to 0?) */ | |
$(document).bind('deck.change', function(e, from, to) { | |
$.deck('getSlide', from).find('audio').each(function() { | |
this.pause && this.pause(); | |
}); | |
$.deck('getSlide', to).find('audio').each(function() { | |
this.play && this.play(); | |
}); |
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
# Copyright 2008-2009 WebDriver committers | |
# Copyright 2008-2009 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
<?php | |
/** | |
* PHP script to convert Image Assist Tag into HTML tags. | |
* | |
* Drupal 6-to-7 conversion | |
* | |
* This script must be run on D7 database (after the update from D6 to D7). | |
* http://drupal.org/node/841568 | |
*/ |
<?php | |
/** | |
* @file | |
* Default theme implementation to display the basic html structure of a single | |
* Drupal page. | |
* | |
* Variables: | |
* - $css: An array of CSS files for the current page. | |
* - $language: (object) The language the site is being displayed in. |