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
# Services # | |
############ | |
*.sassc | |
.sass-cache | |
# Generic # | |
########### | |
/log/* | |
/tmp/* | |
/pids/* |
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
# GET /entries/:hashtag/receiver | |
# POST /entries/:hashtag/receiver.json | |
def receiver | |
if request.method == 'GET' and !params['hub.challenge'].blank? and params['hub.mode'] == 'subscribe' | |
if !params['hub.verify_token'].blank? | |
game = Game.find_by_token(params['hub.verify_token']) | |
if !game.nil? and game.hashtag == params[:hashtag] | |
render :status => 200, :text => params['hub.challenge'] | |
else | |
InstagaMe::Log.rails "bad token match for #{params['hub.verify_token']}; returning status 406" |
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 | |
$_LW->REGISTERED_APPS['public_notifier']=array( | |
'title'=>'PublicNotifier', | |
'handlers' => array('onAfterPublicSubmission') | |
); | |
class LiveWhaleApplicationPublicNotifier { | |
// These two arrays are for including the users and/or groups that |
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 convertCharset($contents) { | |
iconv_set_encoding("internal_encoding", "ISO-8859-15"); | |
iconv_set_encoding("output_encoding", "ISO-8859-1"); | |
ob_start("ob_iconv_handler"); | |
echo $contents; | |
$contents = ob_get_clean(); | |
$contents = strtr($contents, array( | |
"\x80" => "e", | |
"\x81" => " ", | |
"\x82" => "'", |
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
\livewhale (backend) | |
\client | |
\modules | |
\login_updates | |
\private.application.login_updates.php (contents below) | |
\styles | |
\login_updates.css (contents below) | |
\core | |
... |
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
/** | |
* Basic Login Updates Styles | |
* by White Whale Web Services | |
* http://whitewhale.net | |
* When using this file, place it in a /styles sub-folder of the module folder | |
* containing the above PHP file so that it can be found by the module code. | |
**/ | |
/* Card Styles */ |
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 | |
/* Hide Comments | |
This application hides the Comments checkbox on all editors in | |
the LiveWhale backend management interface, except for admins. */ | |
$_LW->REGISTERED_APPS['hide_comments']=array( // register this application | |
'title'=>'Hide Comments', // the module name | |
'handlers'=>array('onOutput') |
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 | |
$_LW->REGISTERED_APPS['private_things_stay_private']=array( // register this application | |
'title' => 'Private Things Stay Private', | |
'handlers' => array('onLoad', 'onWidgetLoad'), | |
); | |
class LiveWhaleApplicationPrivateThingsStayPrivate { | |
protected $private_allowed = array( |
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 | |
// ref: http://www.phpied.com/image-fun-with-php-part-2/ | |
// ref: http://www.php.net/manual/en/function.imagefilter.php | |
require('./image.php'); | |
$value = (int) $_GET['value']; | |
$image = imagecreatefromjpeg($imagefile); | |
header("Content-type: image/jpeg"); |
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
# Fail2Ban configuration file | |
# | |
# Intended to assist in protecting LiveWhale from malicious use | |
# of injection and vulnerabilty scanners such as: | |
# | |
# Acunetix Web Vulnerabilty Scanner | |
# Unknown Scanner (dubbed KIDC below) | |
# Unknown Scanner (dubbed RIPE below) | |
# | |
# Note: if you use penetration software for testing, add the server ip |
OlderNewer