Skip to content

Instantly share code, notes, and snippets.

/* Clear Fixes - two methods, clear-fix is attached to the element you want to clear, .clear-all you can attach to a hr or br tag to clear the item before it as a last resort when you're in a hurry */
.clear-fix { display: inline-block; } /* This needs to be first because FF3 is now supporting this */
.clear-fix:after { content: " "; display: block; height: 0; clear: both; font-size: 0; visibility: hidden; }
.clear-all { visibility: hidden; clear: both; margin: 0 !important; padding: 0 !important; font-size: 0; height: 1px; }
@pa-gerrit
pa-gerrit / gist:3759362
Created September 21, 2012 01:56
shortening text, max characters hard coded
function ShortenText($text) {
// Change to the number of characters you want to display
$chars = 25;
$text = $text." ";
$text = substr($text,0,$chars);
//$text = substr($text,0,strrpos($text,' '));
$text = $text."...";
return $text;
}
function ShortenText($text, $chars) {
// Change to the number of characters you want to display
$text = $text." ";
$text = substr($text,0,$chars);
//$text = substr($text,0,strrpos($text,' '));
$text = $text."...";
return $text;
}
function ShortenText($text, $numb) {
// Change to the number of characters you want to display
$chars = $numb;
$text = $text." ";
$text = substr($text,0,$chars);
//$text = substr($text,0,strrpos($text,' '));
$text = $text."...";
return $text;
}
$sql = "SELECT ID FROM ".$wp_prefix."users WHERE user_login = '".$member_info['username']."'";
$result = mysql_query($sql,$con);
$num_rows = mysql_num_rows($result);
mysql_close($con);
if($num_rows > 0) {
echo "OK";
exit;
} else {
echo "NOTOK";
exit;
$sql = "SELECT ID FROM ".$wp_prefix."users WHERE user_login = '".$member_info['username']."'";
$result = mysql_query($sql,$con);
$num_rows = mysql_num_rows($result);
mysql_close($con);
if($num_rows > 0) {
echo "NOTOK";
exit;
} else {
echo "OK";
exit;
$IPaddress = $_SERVER['REMOTE_ADDR'];
if($IPaddress != 'x.x.x.x') {
die("Error| BAD IP");
}
include '/path/to/wp-blog-header.php';
include '/path/to/user.php';
$username = $_REQUEST['username']; if($_REQUEST['old_username'] && isset($_REQUEST['old_username'])) $username = $_REQUEST['old_username'];
$new_username = $_REQUEST['new_username']; if(!$new_username && !isset($new_username)) $new_username = $username;
aacDecoder_AncDataGet
aacDecoder_AncDataInit
aacDecoder_Close
aacDecoder_ConfigRaw
aacDecoder_DecodeFrame
aacDecoder_Fill
aacDecoder_GetFreeBytes
aacDecoder_GetLibInfo
aacDecoder_GetStreamInfo
aacDecoder_Open
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o libfdk-aac.la -version-info 0:1:0 -no-undefined -export-symbols ./fdk-aac.sym -rpath /usr/local/lib -version-info 0:1:0 -no-undefined -export-symbols ./fdk-aac.sym aacdec_drc.lo aacdec_hcr.lo aacdecoder.lo aacdec_pns.lo aac_ram.lo block.lo channelinfo.lo ldfiltbank.lo rvlcbit.lo rvlc.lo aacdec_hcr_bit.lo aacdec_hcrs.lo aacdecoder_lib.lo aacdec_tns.lo aac_rom.lo channel.lo conceal.lo pulsedata.lo rvlcconceal.lo stereo.lo aacenc.lo aacEnc_ram.lo band_nrg.lo block_switch.lo grp_data.lo metadata_main.lo pre_echo_control.lo quantize.lo tonality.lo aacenc_hcr.lo aacEnc_rom.lo bandwidth.lo channel_map.lo intensity.lo ms_stereo.lo psy_configuration.lo sf_estim.lo transform.lo aacenc_lib.lo aacenc_tns.lo bit_cnt.lo chaosmeasure.lo line_pe.lo noisedet.lo psy_main.lo spreading.lo aacenc_pns.lo adj_thr.lo bitenc.lo dyn_bits.lo metadata_compressor.lo pnsparam.lo qc_main.lo tns_param.lo tpdec_adif.lo tpdec_adts.lo tpdec_asc.lo tpdec_latm.lo tpdec_lib.lo tpenc_adif.lo
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o libfdk-aac.la -version-info 0:1:0 -no-undefined -export-symbols ./fdk-aac.sym -rpath /usr/local/lib -version-info 0:1:0 -no-undefined -export-symbols ./fdk-aac.sym aacdec_drc.lo aacdec_hcr.lo aacdecoder.lo aacdec_pns.lo aac_ram.lo block.lo channelinfo.lo ldfiltbank.lo rvlcbit.lo rvlc.lo aacdec_hcr_bit.lo aacdec_hcrs.lo aacdecoder_lib.lo aacdec_tns.lo aac_rom.lo channel.lo conceal.lo pulsedata.lo rvlcconceal.lo stereo.lo aacenc.lo aacEnc_ram.lo band_nrg.lo block_switch.lo grp_data.lo metadata_main.lo pre_echo_control.lo quantize.lo tonality.lo aacenc_hcr.lo aacEnc_rom.lo bandwidth.lo channel_map.lo intensity.lo ms_stereo.lo psy_configuration.lo sf_estim.lo transform.lo aacenc_lib.lo aacenc_tns.lo bit_cnt.lo chaosmeasure.lo line_pe.lo noisedet.lo psy_main.lo spreading.lo aacenc_pns.lo adj_thr.lo bitenc.lo dyn_bits.lo metadata_compressor.lo pnsparam.lo qc_main.lo tns_param.lo tpdec_adif.lo tpdec_adts.lo tpdec_asc.lo tpdec_latm.lo tpdec_lib.lo tpenc_adif.lo