All fields are required.
";
unset($_SESSION['m']);
}
elseif (isset($_SESSION['m4']) == 'user_leng') {
echo "Your username must not be greater than 13 characters.
";
unset($_SESSION['m4']);
}
elseif (isset($_SESSION['m5']) == 'user_exi') {
echo "That username already exists.
";
unset($_SESSION['m5']);
}
elseif (isset($_SESSION['m3']) == 'pdnm_aumna') {
echo "Your username must be alphanumeric and the passwords you entered did not match.
";
unset($_SESSION['m3']);
}
elseif (isset($_SESSION['m2']) == 'user_alnum') {
echo "Your username must be alphanumeric.
";
unset($_SESSION['m2']);
}
elseif (isset($_SESSION['m1']) == 'chec_yapass') {
echo "The passwords you entered did not match.
";
unset($_SESSION['m1']);
}
elseif (isset($_SESSION['m6']) == 'gen_error') {
echo "There was an error.
";
unset($_SESSION['m6']);
}
session_destroy();
?>
By joining, you are agreeing to our privacy policy.
You will be asked to verify your email address to use Misdew.
Please note that passwords and emails are case sensitive.
If you experience any issues or need help, email: me@justa.us
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') {
echo "
";
}
// if message is normal
else {
echo "
" . $string . "
";
}
echo "
";
}
echo "";
require_once("../inc/footer.php");
?>