if ( current_user_can('level_10') ) { ?>
} ?>
$uid=get_current_user_id();
if (empty($uid)) $uid=0;
if (!empty($_REQUEST['set_like']) && !empty($uid))
{
// set here
$sql="select * from island_like where user_id=\"".mysql_real_escape_string($uid)."\",1,0) and post_id=\"".mysql_real_escape_string(get_the_ID())."\"";
$rs = $wpdb->get_results($sql);
if (count($rs)<1) // not yet added
{
$sql="insert into island_like (user_id, post_id, date_added) values (\"".mysql_real_escape_string($uid)."\", \"".mysql_real_escape_string(get_the_ID())."\", NOW());";
$rs = $wpdb->get_results($sql);
}
}
elseif (!empty($_REQUEST['remove_like']) && !empty( $uid))
{
// unset here
$sql="delete from island_like where user_id=\"".mysql_real_escape_string($uid)."\" and post_id=\"".mysql_real_escape_string(get_the_ID())."\";";
$rs = $wpdb->get_results($sql);
}
/*
$sql="select U.display_name, U.user_nicename, U.id as uid, if(U.id=\"".mysql_real_escape_string($uid)."\",1,0) as is_current, if (U.id=19, 1,0) as is_allee ".
"from island_like as L, wp_users as U ".
"where L.post_id=\"".mysql_real_escape_string(get_the_ID())."\" ".
"and U.ID=L.user_id ".
"order by is_current DESC, is_allee DESC, date_added DESC;";
$jealous_rs = $wpdb->get_results($sql);
$user_is_jealous=0;
if (count($jealous_rs)>0)
{
if ($jealous_rs[0]->uid==$uid)
{
$user_is_jealous=1;
}
}*/
?>
aaaaaaahahahahahahahahahahahah!!!! Well said!!! I actually almost got run over by Santa in a mall parking lot a couple of weeks ago….he was driving this huge 1990s Suburban and he literally ran a stop sign, disregarded who had the right of way, almost hit a few pedestrians and cut me off while making eye contact and smiling! Super creepy!
it’s awesome. my grandparents always had all manner of crazy liquor decanters (granddad prolly drank too much but he was awesome anyway) the bawdier the better. Thanks for sharing.
Allee Willis
A new spin on an old novelty. Santa’s been down too many chimneys for me to trust that that drink is sanitary enough to ingest though.
windupkitty
aaaaaaahahahahahahahahahahahah!!!! Well said!!! I actually almost got run over by Santa in a mall parking lot a couple of weeks ago….he was driving this huge 1990s Suburban and he literally ran a stop sign, disregarded who had the right of way, almost hit a few pedestrians and cut me off while making eye contact and smiling! Super creepy!
Ted Nimmo
it’s awesome. my grandparents always had all manner of crazy liquor decanters (granddad prolly drank too much but he was awesome anyway) the bawdier the better. Thanks for sharing.