HTML Code:
<?php
define('WCS',true);
include('./core/main.inc');
//include('./core/functions.inc');
header_type();
cleardata();
if(ipbanned(ip(),browser())){
if(!shield(getuid_sid($sid))){
echo head_tag("Ip Blocked!!!",0,0);
echo ipbanned_msg();
echo foot_tag();
exit();
}
}
if(!islogged($sid)){
echo head_tag("Error!!!",0,0);
echo session_expired();
echo foot_tag();
exit();
}
if(banned(getuid_sid($sid))){
echo head_tag("Error!!!",1,getnick_sid($sid));
echo banned_msg($sid);
echo foot_tag();
exit();
}
if($pass!=""){$pw="&pass=$pass";}
if($rid!=""){
$rooms=mysql_fetch_array(mysql_query("SELECT id, name FROM chatrooms WHERE id='".$rid."'"));
$rname=$rooms[1];
$chatlink="&rid=$rid$pw";
}
mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");
/////////////////////////DISLIKE/////////////////////////
if($action=="dislikeprof")
{
$main.="<p align=\"center\">";
$main.="<div class=\"box_cen\" align=\"center\">";
$main.="<b>I dislike this profile</b>";
$main.="<div class=\"box_sub\" align=\"left\">";
$dislikeswho = getuid_sid($sid);
setaction($uid, "$dislikeswho being disliked");
$stampiti = mysql_fetch_array(mysql_query("SELECT dislike FROM users WHERE id='$likeswho'"));
mysql_query("UPDATE users SET dislike='$stampit' WHERE id='$dislikeswho'");
$dislikeswho = $_REQUEST["who"];
mysql_query("UPDATE users SET dislikes=dislikes+1 WHERE id='$dislikeswho'");
$dislikenick = getnick_sid($sid);
$msg = "ahw $dislikenick dont like your profile!!! U better go and improve it....[br/][small]p.s: this is an automated pm[/small]";
autopm($msg, $givewho);
print "You have now given your dislikes for this profile!</br>";
/////////////////////////LIKE/////////////////////////
if($action=="likeprof")
{
$main.="<p align=\"center\">";
$main.="<div class=\"box_cen\" align=\"center\">";
$main.="<b>I like this profile</b>";
$main.="<div class=\"box_sub\" align=\"left\">";
$likeswho = getuid_sid($sid);
setaction($uid, "$likeswho being liked");
$stampiti = mysql_fetch_array(mysql_query("SELECT likes FROM users WHERE id='$likeswho'"));
mysql_query("UPDATE users SET likes='$stampit' WHERE id='$likeswho'");
$likeswho = $_REQUEST["who"];
mysql_query("UPDATE users SET likes=likes+1 WHERE id='$likeswho'");
$likenick = getnick_sid($sid);
$msg = "congratulations $likenick has sent you his/her like for your profile today[br/][small]p.s: this is an automated pm[/small]";
autopm($msg, $givewho);
print "You have now given your likes for this profile!";
$L1="$sixkey<a $key6 href=\"../profile.php?who=$who&sid=$sid\">Back</a>";
$L2="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
$L3="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
$L4="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
$L5="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
$L6="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
?>
Comment