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
<!-- pulled from the heart of Github --> | |
<div id="unsupported-browser"> | |
<div class="container clearfix"> | |
<a href="https://help.github.com/articles/supported-browsers" class="button classy">Learn More</a> | |
<h5>Please note that GitHub no longer supports Internet Explorer versions 7 or 8.</h5> | |
<p>We recommend upgrading to <a href="http://ie.microsoft.com/">Internet Explorer 9</a>, <a href="http://chrome.google.com">Google Chrome</a>, or <a href="http://mozilla.org/firefox/">Firefox</a>.</p> | |
</div> | |
</div> |
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
-- ----------------------------------------------------- | |
-- Table `skillsquares`.`providers` | |
-- ----------------------------------------------------- | |
CREATE TABLE IF NOT EXISTS `skillsquares`.`providers` ( | |
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT , | |
`name` VARCHAR(150) NULL DEFAULT NULL , | |
`url` VARCHAR(255) NULL DEFAULT NULL , | |
`description` TEXT NULL DEFAULT NULL , | |
`is_active` TINYINT(1) NULL DEFAULT '1' , | |
`created` DATETIME NULL DEFAULT NULL , |
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
################################################################################ | |
// DEBUGGING | |
################################################################################ | |
#ppr($_SESSION); | |
#echo "".__FILE__.":".__FUNCTION__.":".__LINE__." - <strong>I am here.</strong> <br />"; | |
#die('<strong>The action was halted early, halt!</strong>'); | |
################################################################################ |
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 | |
/** | |
* Request SSO token from Pan Am Education. | |
* | |
* https://panameducation.com/app/sso/token?api_login=__API-LOGIN__&api_password=__API-PASSWORD__&email=__STUDENT-EMAIL__ | |
*/ | |
## Set the query string values | |
$values = array( | |
'api_login' => $pae['api_login'], |
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
CakePlugin::loadAll(array( | |
'Users' => array('routes' => true), | |
'AclManager' => array('bootstrap' => true), | |
'Recaptcha' => array('bootstrap' => true) | |
)); |
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 // app/controllers/really_awesome_controller.php | |
/** | |
* Awesome Controller Name | |
* | |
* This does something really awesome, and nifty too! | |
* | |
* @package CakePHP | |
* @subpackage Super-Cool-Application | |
* @author Chris Vogt (chris@example.com) | |
* @since 1.1.4 |
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
function autoSizeIframeHeight(iframe, header, minHeight) { | |
minHeight = minHeight || 300; | |
function getViewportHeight() { | |
var h = document.documentElement.clientHeight; | |
return document.compatMode === "CSS1Compat" && h || document.body.clientHeight || h; | |
} | |
function getHeaderHeight() { | |
return parseFloat(getComputedStyle(header,'height')); | |
} | |
function getComputedStyle(el, cssprop){ |
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 | |
//==================================================================================// | |
// Configuration | |
//==================================================================================// | |
//path to your Sendy installation (without the trailing slash) | |
define('APP_PATH', 'http://sendy.yourdomain.com'); | |
## --- APPFOG --- ## |
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 | |
/** | |
* Language Handler. | |
* | |
* Sets the app's configured language based on passed parameter or language | |
* configuration stored in session variable. | |
* | |
* @author C1V0 | |
*/ | |
protected function _langHandler() { |
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 | |
// Clean up the wordpress header by filtering out the following items from WP_HEAD(): | |
function NAMESPACE_header_cleanup() { | |
// Really Simple Discovery | |
remove_action('wp_head', 'rsd_link'); | |
// Windows Live Writer | |
remove_action('wp_head', 'wlwmanifest_link'); |
OlderNewer