All fields are required.
";
unset($_SESSION['m']);
}
elseif (isset($_SESSION['m2']) == 'un_dne') {
echo "The username you entered does not exist.
";
unset($_SESSION['m2']);
}
elseif (isset($_SESSION['m3']) == 'pswd_inc') {
echo "
";
unset($_SESSION['m2']);
}
elseif ($verify_cookie == 'nvdjrj6jfnxalpowqnzaiywliz') {
echo "Click the link in the email we sent to verify your account.
Experiencing issues or need help? Please email us at: me@justa.us
";
}
session_destroy();
if($logged_in == false) {
echo 'By logging in, you are agreeing to our privacy policy.
';
}
else {
if($u_hubmain == 'on') {
header("location: /hub");
}
echo "| ";
echo " Hub - your own little home";
echo " |
";
}
?>
What is Misdew?
We are a small social network with a relaxed community. We appreciate each and every one of our members. If you haven't already signed up for an account, why not give us a try?
Members have access to a variety of apps: Canvas [user profiles], Feed [public status], Chat [public chatroom], Mail [private messaging], Draw [create and share drawings], Cloud [uploading files], Alerts [site notifications], and Settings [alter site experience and security options].
Feed
This is an area where our members can post about anything that they desire. We enable others with the options to like, dislike, or comment on a post. Two of our most recent posts are below.
";
echo ".comment_$feed_username";
echo "[placeholder]:empty:before {";
echo "content: attr(placeholder);";
echo "color: $feed_tcolor; }";
}
// If a post has more than one comment, set an 's' variable
$comcnt_q = mysqli_query($conx, "SELECT id FROM feed_comments WHERE post_id='$feed_id'");
$comcnt_r = number_format(mysqli_num_rows($comcnt_q));
if($comcnt_r != '1') { $cs = "s"; } // comment(s)
// If a post has more than one like, set an 's' variable
$likcnt_q = mysqli_query($conx, "SELECT id FROM feed_likes WHERE post_id='$feed_id'");
$likcnt_r = number_format(mysqli_num_rows($likcnt_q));
if($likcnt_r != '1') { $ls = "s"; } // like(s)
// If a post has more than one dislike, set an 's' variable
$dlikcnt_q = mysqli_query($conx, "SELECT id FROM feed_dislikes WHERE post_id='$feed_id'");
$dlikcnt_r = number_format(mysqli_num_rows($dlikcnt_q));
if($dlikcnt_r != '1') { $dls = "s"; } // dislike(s)
# BEGIN ECHOING THE FEED POSTS
echo "";
echo "
";
echo "";
echo "";
echo " ";
echo "  | ";
echo "";
echo "$feed_username | ";
echo "";
echo " |
";
echo "";
echo "
";
// Echo the post content.
echo bbc(atname(nl2br($string)));
echo "
";
echo "| ";
// Like count within the post.
echo "";
echo "$likcnt_r like$ls";
echo " ";
// Dislike count within the post.
echo "";
echo "$dlikcnt_r dislike$dls";
echo " | ";
// Comment count within the post.
echo " |
";
echo "
";
echo "| ";
echo " like";
echo " | ";
echo " ";
echo "comment | ";
echo "";
echo " dislike";
echo " |
";
echo " ";
echo "
";
}
?>
Chat
A location within us that members can speak to each other in. It is like a giant group conversation that anyone can be a part of. We also offer a secret messaging feature which can be used by tapping a username. Below is a snippet of the four most recent messages.
";
$chat_q = mysqli_query($conx, "SELECT id,uid,tstamp,message,pmuid,msgtype,display_name,mtype,imgurl FROM chat WHERE msgtype!='pm' ORDER BY id DESC LIMIT 4");
while($chat_r = mysqli_fetch_assoc($chat_q)) {
$chat_id = $chat_r['id'];
$chat_uid = $chat_r['uid'];
$chat_tstamp = $chat_r['tstamp'];
$string = $chat_r['message'];
$pmuid = $chat_r['pmuid'];
$msg_type = $chat_r['msgtype'];
$displayname = $chat_r['display_name'];
$mtype = $chat_r['mtype'];
$c_imgurl = $chat_r['imgurl'];
include("inc/replace.php");
$usr_q = mysqli_query($conx, "SELECT username FROM accounts WHERE uid='$chat_uid'");
while($usr_r = mysqli_fetch_assoc($usr_q)) {
$chat_username = $usr_r['username'];
$usri_q = mysqli_query($conx, "SELECT username_color,text_color FROM user_theme_colors WHERE uid='$chat_uid' && theme_id='1'");
while($usri_r = mysqli_fetch_assoc($usri_q)) {
$username_color = $usri_r['username_color'];
$chat_tcolor = $usri_r['text_color'];
}
}
if($displayname == 'no') {
$chat_username = "";
}
echo "";
// if message is an image
if($mtype == 'img') {
//
// Data Saver
if($u_datasaver == 'on') {
echo "
[view image]
";
}
else {
echo "
";
}
// Data Saver
//
}
// if message is normal
else {
echo "
" . $string . "
";
}
echo "
";
}
echo "";
require_once("inc/footer.php");
?>