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 switchFrame() { | |
var currentFrame = $("#iframetograb").attr('src'); | |
var newFrame, buttnTxt, newHeightWrapper, newHeightContent; | |
if (currentFrame.indexOf("fb") > 0){ | |
newFrame = ''; | |
buttnTxt = 'Click to signup with Facebook'; | |
newHeightWrapper=470; | |
newHeightContent=430; | |
} | |
else{ |
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 getSearchString(){ | |
var ref = top.document.referrer; | |
if (ref.indexOf('?') == -1) return; | |
var querys = ref.substr(ref.indexOf('?')+1); | |
var qsa = querys.split('&'); | |
for (var i=0;i<qsa.length;i++) { | |
var qsip = qsa[i].split('='); | |
if (qsip.length == 1) continue; | |
if (qsip[0] == 'q' || qsip[0] == 'p') { // q= for Google + Bing, p= for Yahoo | |
var wordstring = unescape(qsip[1].replace(/\+/g,' ')); |
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 scale($isAtScale) | |
{ | |
if ($isAtScale == false) | |
{ | |
$task = $this->buy_bigger_server(); | |
} | |
return $task; | |
} |
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
* @property CI_DB_active_record $db | |
* @property CI_DB_forge $dbforge | |
* @property CI_Benchmark $benchmark | |
* @property CI_Calendar $calendar | |
* @property CI_Cart $cart | |
* @property CI_Config $config | |
* @property CI_Controller $controller | |
* @property CI_Email $email | |
* @property CI_Encrypt $encrypt | |
* @property CI_Exceptions $exceptions |
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
# SnipMate is required to use snippets | |
# Download SnipMate: http://www.vim.org/scripts/script.php?script_id=2540 | |
# Put this file in ~/.vim/snippets/ then restart vim | |
# This snippet file includes many useful snippets for CodeIgniter. Please feel free to fork and contribute! | |
snippet php | |
<?php | |
${1} | |
?> | |
snippet ec | |
echo "${1:string}"${2}; |
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
/* First, let's get rid of the Help menu, update nag, Personal Options section */ | |
echo "\n" . '<style type="text/css" media="screen">#your-profile { display: none; } .update-nag, #screen-meta, .color-option, .show-admin-bar { display: none !important; }</style>'; | |
echo "\n" . '<script type="text/javascript">jQuery(document).ready(function($) { $(\'form#your-profile > h3:first\').hide(); $(\'form#your-profile > table:first\').hide(); $(\'form#your-profile\').show(); });</script>' . "\n"; | |
add_action('admin_head', |