diff --git a/feed-plus/beta-testing.php b/feed-plus/beta-testing.php new file mode 100644 index 0000000..1353b47 --- /dev/null +++ b/feed-plus/beta-testing.php @@ -0,0 +1,660 @@ + + + + + Feed+ | Misdew.com + + + + + + + "; + } + if($css_type == "raw") { + echo ""; + } + ?> + + + + + +
+ + + + + + + + + + + + +
+ + + + + + +
+ Post + + Poll + + Search +
+
+ +
+ sorted by newest
+ +
+
+ +
+ + + + + + + + + + + +
+ + +
+
+
+ +
+
+ Lock • 32m ago + + + + + + +
+
+
+ + + + +
+ Hello,
welcome to the new feed.
This post isn't real and was made by @Seledity.

G'day. +
+
+
+ + + + + + +
+ 2 likes + + 0 comments + + 2 dislikes +
+
+ +
+
+
+
+
+   +
+ +

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
+ + +
+
+
+ +
+
+ Seledity • 1h ago + + + + + + +
+
+
+ + + + +
+ What do you think about Feed+ so far? +
+ + + + + + + + + + +
+ 50% • I think that it's pretty cool. +
+ 30% • Ugly as fuck. Feed> +
+ 20% • Idgaf. Kill yourself, faggot. +
+ + + + +
+ 17 total votes - no time limit +
+
+
+ + + + + + +
+ 4 likes + + 0 comments + + 7 dislikes +
+
+ +
+
+
+
+
+   +
+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + +
+
+
+ +
+
+ xperttheef • 3h ago + + + + + + +
+
+
+ + + + +
+ plz help mi acount was haked this isnt mi
plez disable nordvpn hacks *cries*

This post isn't real and was made by @Seledity.

G'day. +
+
+
+ + + + + + +
+ 1 like + + 0 comments + + 1 dislike +
+
+ +
+
+
+
+
+  +
+ + +
+ + + + +
+ +
+
+ + + + +
+ + + + diff --git a/feed-plus/button_bar.php b/feed-plus/button_bar.php new file mode 100644 index 0000000..270ff2d --- /dev/null +++ b/feed-plus/button_bar.php @@ -0,0 +1,56 @@ += '1') { + $post_like_color = "$username_color"; + $post_like_bgcolor = "$feed_tcolor"; +} +else { + $post_like_color = "$feed_tcolor"; + $post_like_bgcolor = "$username_color"; +} +$did_user_dislike = mysqli_num_rows(mysqli_query($conx, "SELECT id FROM feed_dislikes WHERE post_id='$feed_id' && uid='$u_uid'")); +if($did_user_dislike >= '1') { + $post_dislike_color = "$username_color"; + $post_dislike_bgcolor = "$feed_tcolor"; +} +else { + $post_dislike_color = "$feed_tcolor"; + $post_dislike_bgcolor = "$username_color"; +} +echo " + +
+
+
+ +"; + + ?> diff --git a/feed-plus/contamnt.php b/feed-plus/contamnt.php new file mode 100644 index 0000000..71fe53d --- /dev/null +++ b/feed-plus/contamnt.php @@ -0,0 +1,5 @@ + diff --git a/feed-plus/count.php b/feed-plus/count.php new file mode 100644 index 0000000..323c60d --- /dev/null +++ b/feed-plus/count.php @@ -0,0 +1,14 @@ +$likcnt_r like$dlsz"; + +?> diff --git a/feed-plus/dcount.php b/feed-plus/dcount.php new file mode 100644 index 0000000..9645b10 --- /dev/null +++ b/feed-plus/dcount.php @@ -0,0 +1,14 @@ +$dislikcnt_r dislike$dlsz"; + +?> diff --git a/feed-plus/delete.php b/feed-plus/delete.php new file mode 100644 index 0000000..e33f8ab --- /dev/null +++ b/feed-plus/delete.php @@ -0,0 +1,39 @@ + diff --git a/feed-plus/dislike.php b/feed-plus/dislike.php new file mode 100644 index 0000000..c77a202 --- /dev/null +++ b/feed-plus/dislike.php @@ -0,0 +1,27 @@ + diff --git a/feed-plus/feed_comments.php b/feed-plus/feed_comments.php new file mode 100644 index 0000000..8954f81 --- /dev/null +++ b/feed-plus/feed_comments.php @@ -0,0 +1,93 @@ +no comments "; + exit(); +} +while($cmt_r = mysqli_fetch_assoc($cmt_q)) { + $cmt_id = $cmt_r['id']; + $cmt_uid = $cmt_r['uid']; + $string = $cmt_r['post']; + $cmt_tstamp = $cmt_r['tstamp']; + $cmt_randomstr = $cmt_r['random_str']; + $cmt_edited = $cmt_r['edited']; + // ************************ // + // *** BLOCKING SYSTEM *** // + // ************************ // + $blks = mysqli_query($conx, "SELECT blocked_uid FROM blocking WHERE uid='$u_uid' && blocked_uid='$cmt_uid'"); + $blkc = mysqli_num_rows($blks); + if($blkc > 0) { + $cmt_uid = "286"; + } + $blks = mysqli_query($conx, "SELECT blocked_uid FROM blocking WHERE blocked_uid='$u_uid' && uid='$cmt_uid'"); + $blkc = mysqli_num_rows($blks); + if($blkc > 0) { + $cmt_uid = "286"; + } + // ************************ // + // *** BLOCKING SYSTEM *** // + // ************************ // + include("../inc/replace.php"); + $usr_q = mysqli_query($conx, "SELECT username,picture,online_time,md_verf FROM accounts WHERE uid='$cmt_uid'"); + while($usr_r = mysqli_fetch_assoc($usr_q)) { + $cmt_username = $usr_r['username']; + $cmt_pic = $usr_r['picture']; + $cmt_onltime = $usr_r['online_time']; + $feed_vrf = $usr_r['md_verf']; + if($feed_vrf == 'yes') { + $verif_check = " "; + } + else { + $verif_check = ""; + } + // + // DATA SAVER + if($u_datasaver == 'on') { + $cmt_pic = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAABtklEQVR4AW1TNXgUYRC9HqdvoYW+PT/c3Z0KWvqWLp7drCvuDg3uVNEGh3hyro8ZLGuz31v7n/waW33i9H/oq7SlxmrjCOGBudocI5T5yd/8n9u9fI9QX0GEG0SuEPAbq/j5F/yf2pnnE9OPldT4gQAvzu88D3ON/x/zmP9brP3p6nUvwcgZuHLsCj49/4RrJ67xt8+A+ayL0cvRYFftjRZG7o+Aa+TBCMwNofQK61h83+e6ysCLzhdo1Brg4uejs4+gZJRg+v0YvYx6u3vz1E0Uxgrw1sTnCej7dch+g1EWlzxuGLg5gKh67bxGZ6ITSlb9Jy7PJfNYt9oYGx5DVH0f+I7edQJ6UwLUnMpBo3NjJrG11cLo8Gi0ePA7hPUihJQIKSuzwV3fbNP045X5Ci26gvXMeIbuZA+kjAwlpxTVVco+3zrzTGtbNby79g6lfAnNZhPF2SJeX3mN3o29ENN9LIS6SnWVVfLC0A5jA2mNBOOkAeeMC+mIjPZ0B3cXclYGJT4hLPfvbTbw7G0tq0FIiuhO9HAij7NIqSYJl3n3ttcgdKpoYsb6MtIdKSvtknPSfC//FxxTQV29mEp6AAAAAElFTkSuQmCC"; + } + // DATA SAVER + // + $HUAHHH = time() - $cmt_onltime; + $mens = round($HUAHHH / 60); + if($mens <= 1) { + $cv_activeness = "#00FF00"; + } + elseif($mens <= 2) { + $cv_activeness = "#FFA500"; + } + elseif($mens < 5) { + $cv_activeness = "#FF0000"; + } + else { + $cv_activeness = "#FF0000"; + } + $usri_q = mysqli_query($conx, "SELECT username_color,text_color FROM user_theme_colors WHERE uid='$cmt_uid' && theme_id='$g_themeid'"); + while($usri_r = mysqli_fetch_assoc($usri_q)) { + $username_color = $usri_r['username_color']; + $cmt_tcolor = $usri_r['text_color']; + } + } + if($cmt_uid != '286') { + echo ""; + echo "
+
+
$cmt_username $verif_check"; + echo " • "; + echo timeago($cmt_tstamp); + echo " ago  "; + if($cmt_uid == $u_uid) { + echo "   "; + echo ""; + } + echo "
"; echo bbc(atname(nl2br($string))); echo ""; + echo "
"; + } +} +?> diff --git a/feed-plus/img_upload.php b/feed-plus/img_upload.php new file mode 100644 index 0000000..7edc7ee --- /dev/null +++ b/feed-plus/img_upload.php @@ -0,0 +1,30 @@ + base64_encode($data), + 'key' => urlencode($required_key), + 'user' => urlencode($u_uid), + 'imagetype' => urlencode($u_uid), + 'imaeg' => urlencode($u_cloudterms), + 'fieltyp' => urlencode($u_cloudterms), + 'usernaem' => urlencode($u_username), + 'filextension' => urlencode($u_username), + 'uvia' => urlencode($uploc) + ); + $curl = curl_init(); + curl_setopt($curl, CURLOPT_URL, 'https://upl.justa.us/image.php'); + curl_setopt($curl, CURLOPT_TIMEOUT, 30); + curl_setopt($curl, CURLOPT_POST, 1); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($curl, CURLOPT_POSTFIELDS, $POST_DATA); + $response = curl_exec($curl); + echo trim($response); + curl_close ($curl); +} +?> diff --git a/feed-plus/index.php b/feed-plus/index.php index 8b13789..3cd3bf2 100644 --- a/feed-plus/index.php +++ b/feed-plus/index.php @@ -1 +1,626 @@ + + + + + Feed+ | Misdew.com + + + + + + + + "; + } + if($css_type == "raw") { + echo ""; + } + ?> + + + + + +
+ + + + + + + + + + + +
+ + + + + + +
+ Post + + Poll + + Search +
+
+ +
+ + sorted by newest
+
+ +
+
+ +"; +$asc_or_dsc = "ASC"; +require_once("posts.php"); +echo ""; +?> + + +
+ + + + +
+ +
+
+ + +
+ + + + diff --git a/feed-plus/like.php b/feed-plus/like.php new file mode 100644 index 0000000..9eda79e --- /dev/null +++ b/feed-plus/like.php @@ -0,0 +1,27 @@ + diff --git a/feed-plus/more_posts.php b/feed-plus/more_posts.php new file mode 100644 index 0000000..d542191 --- /dev/null +++ b/feed-plus/more_posts.php @@ -0,0 +1,302 @@ + 0) { + $feed_uid = "286"; + } + $blks = mysqli_query($conx, "SELECT blocked_uid FROM blocking WHERE blocked_uid='$u_uid' && uid='$feed_uid'"); + $blkc = mysqli_num_rows($blks); + if($blkc > 0) { + $feed_uid = "286"; + } + // ************************ // + // *** BLOCKING SYSTEM *** // + // ************************ // + // Emoji+ replacement + include("../inc/replace.php"); + # SELECT ACCOUNT DATA FOR FEED POSTS + $usr_q = mysqli_query($conx, "SELECT username,picture,online_time,md_verf FROM accounts WHERE uid='$feed_uid'"); + while($usr_r = mysqli_fetch_assoc($usr_q)) { + // Account data + $feed_username = $usr_r['username']; + $feed_picture = $usr_r['picture']; + $feed_onltime = $usr_r['online_time']; + $feed_vrf = $usr_r['md_verf']; + if($feed_vrf == 'yes') { + $verif_check = ""; + } + else { + $verif_check = ""; + } + // + // DATA SAVER + if($u_datasaver == 'on') { + $feed_picture = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAABtklEQVR4AW1TNXgUYRC9HqdvoYW+PT/c3Z0KWvqWLp7drCvuDg3uVNEGh3hyro8ZLGuz31v7n/waW33i9H/oq7SlxmrjCOGBudocI5T5yd/8n9u9fI9QX0GEG0SuEPAbq/j5F/yf2pnnE9OPldT4gQAvzu88D3ON/x/zmP9brP3p6nUvwcgZuHLsCj49/4RrJ67xt8+A+ayL0cvRYFftjRZG7o+Aa+TBCMwNofQK61h83+e6ysCLzhdo1Brg4uejs4+gZJRg+v0YvYx6u3vz1E0Uxgrw1sTnCej7dch+g1EWlzxuGLg5gKh67bxGZ6ITSlb9Jy7PJfNYt9oYGx5DVH0f+I7edQJ6UwLUnMpBo3NjJrG11cLo8Gi0ePA7hPUihJQIKSuzwV3fbNP045X5Ci26gvXMeIbuZA+kjAwlpxTVVco+3zrzTGtbNby79g6lfAnNZhPF2SJeX3mN3o29ENN9LIS6SnWVVfLC0A5jA2mNBOOkAeeMC+mIjPZ0B3cXclYGJT4hLPfvbTbw7G0tq0FIiuhO9HAij7NIqSYJl3n3ttcgdKpoYsb6MtIdKSvtknPSfC//FxxTQV29mEp6AAAAAElFTkSuQmCC"; + } + // DATA SAVER + // + // Activity Dot + $new_time = time() - $feed_onltime; + $mens = round($new_time / 60); + if($mens <= 1) { $cv_activeness = "#00FF00"; } // Active within one minute + elseif($mens <= 2) { $cv_activeness = "#FFA500"; } // Active within two minutes + elseif($mens < 5) { $cv_activeness = "#FF0000"; } // Active within five minutes + else { $cv_activeness = "#FF0000"; } // Active over five minutes + # SELECT THEME COLORS FOR ACCOUNTS + $usri_q = mysqli_query($conx, "SELECT username_color,text_color FROM user_theme_colors WHERE uid='$feed_uid' && theme_id='$g_themeid'"); + while($usri_r = mysqli_fetch_assoc($usri_q)) { + // Theme data + $username_color = $usri_r['username_color']; + $feed_tcolor = $usri_r['text_color']; + } + // Styling for the comment placeholders of each account attached to a post. + echo ""; + } + // 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 = ""; } else { $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 = ""; } else { $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 = ""; } else { $dls = "s"; } // dislike(s) + # SEE IF A USER HAS LIKED OR DISLIKED POSTS + # SET THE COLOR OF THE BUBBLES ACCORDINGLY + $did_user_like = mysqli_num_rows(mysqli_query($conx, "SELECT id FROM feed_likes WHERE post_id='$feed_id' && uid='$u_uid'")); + if($did_user_like >= '1') { + $post_like_color = "$username_color"; + $post_like_bgcolor = "$feed_tcolor"; + } + else { + $post_like_color = "$feed_tcolor"; + $post_like_bgcolor = "$username_color"; + } + $did_user_dislike = mysqli_num_rows(mysqli_query($conx, "SELECT id FROM feed_dislikes WHERE post_id='$feed_id' && uid='$u_uid'")); + if($did_user_dislike >= '1') { + $post_dislike_color = "$username_color"; + $post_dislike_bgcolor = "$feed_tcolor"; + } + else { + $post_dislike_color = "$feed_tcolor"; + $post_dislike_bgcolor = "$username_color"; + } + # BEGIN ECHOING THE FEED POSTS + if($feed_uid != '286') { + if($feed_is_poll == 'yes') { + echo "poll post faggot

"; + } + else { + echo " + +
+ + + + + "; + if($feed_uid == $u_uid) { + // Option to edit the post. + echo " + "; + // Option to remove the post. + echo " + "; + } + // If the feed UID does not match the current UID, but the current account is a content manager. + ########## YOU WILL NEED TO MODIFY THIS CODE TO MATCH CANVAS STANDARDS FOR ROLES ########## + if($feed_uid != $u_uid && $u_cont_mang == 'yes') { + echo " + "; + } + echo " + +
+ + +
+
+
+ +
+
+ $feed_username $verif_check • "; if($feed_edited == 'yes') { echo "edited "; } echo timeago($feed_tstamp); echo " ago + + + + + + + + +
+
+
+ + + + +
"; + echo bbc(atname(nl2br($string))); + echo "
+
+
+ + + + + + +
+ $likcnt_r like$ls + + $comcnt_r comment$cs + + $dlikcnt_r dislike$dls +
+
+
+
+
+
+
+
+
+   +
+
+
+ + + + +
+ liked by ...
+ disliked by ... +
+
+
+ + + + + + + + +
+ + + + +
+
+ +
+
+
+
loading comments...
+
+
+

+ + + "; + } +} +} +?> + diff --git a/feed-plus/post.php b/feed-plus/post.php new file mode 100644 index 0000000..e235dc5 --- /dev/null +++ b/feed-plus/post.php @@ -0,0 +1 @@ +soon diff --git a/feed-plus/posts.php b/feed-plus/posts.php new file mode 100644 index 0000000..a16a0e2 --- /dev/null +++ b/feed-plus/posts.php @@ -0,0 +1,298 @@ + 0) { + $feed_uid = "286"; + } + $blks = mysqli_query($conx, "SELECT blocked_uid FROM blocking WHERE blocked_uid='$u_uid' && uid='$feed_uid'"); + $blkc = mysqli_num_rows($blks); + if($blkc > 0) { + $feed_uid = "286"; + } + // ************************ // + // *** BLOCKING SYSTEM *** // + // ************************ // + // Emoji+ replacement + include("../inc/replace.php"); + # SELECT ACCOUNT DATA FOR FEED POSTS + $usr_q = mysqli_query($conx, "SELECT username,picture,online_time,md_verf FROM accounts WHERE uid='$feed_uid'"); + while($usr_r = mysqli_fetch_assoc($usr_q)) { + // Account data + $feed_username = $usr_r['username']; + $feed_picture = $usr_r['picture']; + $feed_onltime = $usr_r['online_time']; + $feed_vrf = $usr_r['md_verf']; + if($feed_vrf == 'yes') { + $verif_check = ""; + } + else { + $verif_check = ""; + } + // + // DATA SAVER + if($u_datasaver == 'on') { + $feed_picture = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAABtklEQVR4AW1TNXgUYRC9HqdvoYW+PT/c3Z0KWvqWLp7drCvuDg3uVNEGh3hyro8ZLGuz31v7n/waW33i9H/oq7SlxmrjCOGBudocI5T5yd/8n9u9fI9QX0GEG0SuEPAbq/j5F/yf2pnnE9OPldT4gQAvzu88D3ON/x/zmP9brP3p6nUvwcgZuHLsCj49/4RrJ67xt8+A+ayL0cvRYFftjRZG7o+Aa+TBCMwNofQK61h83+e6ysCLzhdo1Brg4uejs4+gZJRg+v0YvYx6u3vz1E0Uxgrw1sTnCej7dch+g1EWlzxuGLg5gKh67bxGZ6ITSlb9Jy7PJfNYt9oYGx5DVH0f+I7edQJ6UwLUnMpBo3NjJrG11cLo8Gi0ePA7hPUihJQIKSuzwV3fbNP045X5Ci26gvXMeIbuZA+kjAwlpxTVVco+3zrzTGtbNby79g6lfAnNZhPF2SJeX3mN3o29ENN9LIS6SnWVVfLC0A5jA2mNBOOkAeeMC+mIjPZ0B3cXclYGJT4hLPfvbTbw7G0tq0FIiuhO9HAij7NIqSYJl3n3ttcgdKpoYsb6MtIdKSvtknPSfC//FxxTQV29mEp6AAAAAElFTkSuQmCC"; + } + // DATA SAVER + // + // Activity Dot + $new_time = time() - $feed_onltime; + $mens = round($new_time / 60); + if($mens <= 1) { $cv_activeness = "#00FF00"; } // Active within one minute + elseif($mens <= 2) { $cv_activeness = "#FFA500"; } // Active within two minutes + elseif($mens < 5) { $cv_activeness = "#FF0000"; } // Active within five minutes + else { $cv_activeness = "#FF0000"; } // Active over five minutes + # SELECT THEME COLORS FOR ACCOUNTS + $usri_q = mysqli_query($conx, "SELECT username_color,text_color FROM user_theme_colors WHERE uid='$feed_uid' && theme_id='$g_themeid'"); + while($usri_r = mysqli_fetch_assoc($usri_q)) { + // Theme data + $username_color = $usri_r['username_color']; + $feed_tcolor = $usri_r['text_color']; + } + // Styling for the comment placeholders of each account attached to a post. + echo ""; + } + // 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 = ""; } else { $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 = ""; } else { $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 = ""; } else { $dls = "s"; } // dislike(s) + # SEE IF A USER HAS LIKED OR DISLIKED POSTS + # SET THE COLOR OF THE BUBBLES ACCORDINGLY + $did_user_like = mysqli_num_rows(mysqli_query($conx, "SELECT id FROM feed_likes WHERE post_id='$feed_id' && uid='$u_uid'")); + if($did_user_like >= '1') { + $post_like_color = "$username_color"; + $post_like_bgcolor = "$feed_tcolor"; + } + else { + $post_like_color = "$feed_tcolor"; + $post_like_bgcolor = "$username_color"; + } + $did_user_dislike = mysqli_num_rows(mysqli_query($conx, "SELECT id FROM feed_dislikes WHERE post_id='$feed_id' && uid='$u_uid'")); + if($did_user_dislike >= '1') { + $post_dislike_color = "$username_color"; + $post_dislike_bgcolor = "$feed_tcolor"; + } + else { + $post_dislike_color = "$feed_tcolor"; + $post_dislike_bgcolor = "$username_color"; + } + # BEGIN ECHOING THE FEED POSTS + if($feed_uid != '286') { + if($feed_is_poll == 'yes') { + echo "poll post faggot

"; + } + else { + echo " + +
+ + + + + "; + if($feed_uid == $u_uid) { + // Option to edit the post. + echo " + "; + // Option to remove the post. + echo " + "; + } + // If the feed UID does not match the current UID, but the current account is a content manager. + ########## YOU WILL NEED TO MODIFY THIS CODE TO MATCH CANVAS STANDARDS FOR ROLES ########## + if($feed_uid != $u_uid && $u_cont_mang == 'yes') { + echo " + "; + } + echo " + +
+ + +
+
+
+ +
+
+ $feed_username $verif_check • "; if($feed_edited == 'yes') { echo "edited "; } echo timeago($feed_tstamp); echo " ago + + + + + + + + +
+
+
+ + + + +
"; + echo bbc(atname(nl2br($string))); + echo "
+
+
+ + + + + + +
+ $likcnt_r like$ls + + $comcnt_r comment$cs + + $dlikcnt_r dislike$dls +
+
+
+
+
+
+
+
+
+   +
+
+
+ + + + +
+ liked by ...
+ disliked by ... +
+
+
+ + + + + + + + +
+ + + + +
+
+ +
+
+
+
loading comments...
+
+
+

+ + + "; + } +} +} +?> + diff --git a/feed-plus/submit_post.php b/feed-plus/submit_post.php new file mode 100644 index 0000000..50d4a4a --- /dev/null +++ b/feed-plus/submit_post.php @@ -0,0 +1,67 @@ + diff --git a/feed-plus/vid_upload.php b/feed-plus/vid_upload.php new file mode 100644 index 0000000..5d80cd3 --- /dev/null +++ b/feed-plus/vid_upload.php @@ -0,0 +1,30 @@ + base64_encode($data), + 'key' => urlencode($required_key), + 'user' => urlencode($u_uid), + 'imagetype' => urlencode($u_uid), + 'imaeg' => urlencode($u_cloudterms), + 'fieltyp' => urlencode($u_cloudterms), + 'usernaem' => urlencode($u_username), + 'filextension' => urlencode($u_username), + 'uvia' => urlencode($uploc) + ); + $curl = curl_init(); + curl_setopt($curl, CURLOPT_URL, 'https://upl.justa.us/video.php'); + curl_setopt($curl, CURLOPT_TIMEOUT, 30); + curl_setopt($curl, CURLOPT_POST, 1); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($curl, CURLOPT_POSTFIELDS, $POST_DATA); + $response = curl_exec($curl); + echo trim($response); + curl_close ($curl); +} +?> diff --git a/feed-plus/who_disliked.php b/feed-plus/who_disliked.php new file mode 100644 index 0000000..23101a1 --- /dev/null +++ b/feed-plus/who_disliked.php @@ -0,0 +1,26 @@ +"; +} +$sseparator = ''; +while($slcr = mysqli_fetch_assoc($slcq)) { + $uuid = $slcr['uid']; + $sslcq = mysqli_query($conx, "SELECT username FROM accounts WHERE uid='$uuid'"); + while($sslcr = mysqli_fetch_assoc($sslcq)) { + $uusername = $sslcr['username']; + } + echo $sseparator; + echo "$uusername"; + if (!$sseparator) $sseparator = ', '; +} +?> diff --git a/feed-plus/who_liked.php b/feed-plus/who_liked.php new file mode 100644 index 0000000..7415d69 --- /dev/null +++ b/feed-plus/who_liked.php @@ -0,0 +1,26 @@ +"; +} +$sseparator = ''; +while($slcr = mysqli_fetch_assoc($slcq)) { + $uuid = $slcr['uid']; + $sslcq = mysqli_query($conx, "SELECT username FROM accounts WHERE uid='$uuid'"); + while($sslcr = mysqli_fetch_assoc($sslcq)) { + $uusername = $sslcr['username']; + } + echo $sseparator; + echo "$uusername"; + if (!$sseparator) $sseparator = ', '; +} +?>