OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2025 11:18:49 AM
rwxr-xr-x
📄
.htaccess
860 bytes
12/09/2024 12:36:01 PM
rw-r--r--
📁
.vscode
-
11/09/2024 12:33:02 PM
rwxrwxr-x
📄
12-03-25index.php
42.58 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
13-03-25index.php
56.24 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
13-03-25premium.php
18.76 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
14-4-25-whatsappBot
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
15-4-25-index.php
54.17 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
23-04-25stream.php
70.87 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
3-4-25-index.php
62.26 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
9_12_24index.html
11.48 KB
12/09/2024 05:56:43 AM
rw-r--r--
📄
A_index.php
65.56 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
Arv_stream.php
67.28 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
CreateLeadPage
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📁
CreateLeadPage_back
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📁
CreatePage
-
05/19/2025 10:07:15 AM
rwxrwxrwx
📄
ImageMagick-7.1.1-45-Q16-HDRI-x64-dll.exe
22.2 MB
03/17/2025 09:25:42 AM
rw-r--r--
📁
NLEditor
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
Scheduled_posts.php
49.78 KB
06/16/2025 08:52:51 AM
rw-r--r--
📁
Xpress
-
05/19/2025 10:07:17 AM
rwxr-xr-x
📄
XpressPage.php
47.18 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
Xpress_backup
-
05/19/2025 10:07:19 AM
rwxrwxrwx
📄
about.html
3.7 KB
12/10/2024 09:17:27 AM
rw-r--r--
📄
account.php
56.45 KB
06/17/2025 10:30:23 AM
rw-r--r--
📄
activate.php
4.63 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
add_channel.php
9.71 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
add_to_channel.php
980 bytes
05/19/2025 10:07:22 AM
rw-r--rw-
📁
admin
-
05/19/2025 10:07:22 AM
rwxrwxr-x
📄
analytics.php
38.23 KB
05/19/2025 10:07:19 AM
rw-rw-r--
📁
api
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
arvind_index.php
4.44 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
assets
-
04/17/2025 09:15:05 AM
rwxrwxr-x
📁
audio
-
05/27/2025 07:33:37 AM
rwxrwxrwx
📁
avatars
-
04/14/2025 06:26:27 PM
rwxr-xr-x
📁
aws-ses
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
b_account.php
45.4 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
b_himanshu_process_data.php
5.02 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
b_himanshu_stream.php
70.67 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
b_settings.php
74.3 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
baccount.php
38.98 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
back_\index.php
40.34 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
back_aws-ses
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
back_whatsappBot
-
05/19/2025 10:07:16 AM
rwxrwxrwx
📄
badd_channel.php
10.01 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
bfeatured_channels.php
31.33 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
bfeatured_topics.php
28.47 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
blogInCheck.php
2.12 KB
05/19/2025 10:07:21 AM
rw-rw-r--
📄
bsign-in.php
21.47 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
businessLp.php
46.33 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
bussLp.php
57.87 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
card-news.php
6.39 KB
05/19/2025 10:07:22 AM
rw-rw-r--
📄
channel.php
60.43 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
chattest.php
8.8 KB
05/19/2025 10:07:19 AM
rw-rw-r--
📄
checkSession.php
1.52 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
clients
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
collections.php
94.92 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
comments.php
1.67 KB
05/19/2025 10:07:21 AM
rw-rw-r--
📄
composer.json
101 bytes
03/25/2025 08:44:52 AM
rw-rw-r--
📄
composer.lock
5.68 KB
03/25/2025 08:44:51 AM
rw-rw-r--
📄
contact.html
3.44 KB
03/12/2025 11:48:10 AM
rw-r--r--
📄
cookie.php
750 bytes
05/19/2025 10:07:19 AM
rw-r--r--
📄
copytest.html
4.05 KB
11/09/2024 12:48:18 PM
rw-rw-r--
📁
creamAdmin
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
cream_dashboard.php
26.3 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
creamapi
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
create.php
43.85 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
created_magazine.html
11.96 KB
11/09/2024 12:48:18 PM
rw-rw-r--
📄
dashboard.php
55.97 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
data
-
05/19/2025 10:07:13 AM
rwxrwxrwx
📄
dbms.php
492.73 KB
05/20/2025 01:55:35 PM
rw-r--r--
📄
down.html
1.23 KB
11/12/2024 02:39:28 AM
rw-r--r--
📄
edit_post.php
2.19 KB
06/13/2025 12:59:41 PM
rw-r--r--
📄
featured_channels.php
32.68 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
featured_topics.php
26.66 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
fetch_articles.php
1.83 KB
05/19/2025 10:07:22 AM
rw-rw-r--
📄
fetch_liked_users.php
1.55 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
files_with_warning.txt
25.17 KB
05/19/2025 10:06:22 AM
rw-r--r--
📄
filter.php
4.92 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
follow_action.php
1.7 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
follow_dash.php
33.92 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
form-builder
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📄
function.php
20.61 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
gemini.php
38.21 KB
05/19/2025 10:07:17 AM
rw-r--r--
📁
genai
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
generated_article.php
11.92 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
get_recent_items.php
1.37 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
groupchat
-
05/19/2025 10:07:13 AM
rwxrwxr-x
📄
handle_channel.php
856 bytes
05/19/2025 10:07:13 AM
rw-r--rw-
📄
himanshu_)newsletter.php
23.31 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
himanshu_analytics.php
28.88 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
himanshu_process_data.php
6.46 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
himanshu_stream.php
72.33 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
hindiConverter
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📄
homePin.php
68.59 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
hps
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
impmy_collection.php
124.44 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
inc
-
05/19/2025 10:07:13 AM
rwxrwxr-x
📄
index.php
54.5 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
influencer.php
12.23 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
interface
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📄
ipsh.php
1.52 KB
05/22/2025 07:25:43 AM
rw-r--r--
📁
kannada
-
05/19/2025 10:07:15 AM
rwxrwxr-x
📄
knobly_logo.png
9.45 KB
03/18/2025 08:18:45 AM
rw-r--r--
📁
knobly_scribe
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📁
knoblysocial
-
05/19/2025 10:07:16 AM
rwxrwxrwx
📄
landing_page.php
17.3 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
landing_signin.php
5.14 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
landingpage
-
03/02/2025 02:01:39 PM
rwxr-xr-x
📁
leadpage
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
link.php
5.63 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
log.txt
60 bytes
04/25/2025 09:10:22 AM
rw-r--r--
📄
logInCheck.php
7.33 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
loggedInCheck.php
1.15 KB
05/19/2025 10:07:19 AM
rw-rw-r--
📄
logo (1).svg
814 bytes
01/16/2025 05:26:43 AM
rw-r--r--
📄
logout.php
1.14 KB
05/19/2025 10:07:15 AM
rw-rw-r--
📄
magazine.html
4.6 KB
11/09/2024 12:48:19 PM
rw-rw-r--
📄
magazine.php
23.69 KB
05/19/2025 10:07:13 AM
rw-rw-r--
📄
more.php
9.62 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
my_collection.php
153.95 KB
06/04/2025 06:38:10 AM
rw-r--r--
📄
my_collection_backup.php
149.76 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
my_settings.php
17.57 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
navbar.php
3.36 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
new-page.php
15.14 KB
06/04/2025 09:56:42 AM
rw-r--r--
📄
newEditor.php
17.04 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
new_cream
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
new_ui
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
newsletter.php
24.9 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
old_sendy
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
old_stream.php
94.19 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
pageLanding
-
02/04/2025 01:03:32 PM
rwxr-xr-x
📁
pages
-
05/19/2025 10:07:13 AM
rwxrwxrwx
📄
payment.php
29.87 KB
05/20/2025 02:34:50 PM
rw-r--r--
📁
pdf
-
03/12/2025 12:11:01 PM
rwxr-xr-x
📄
pdftk_server-2.02-win-setup.exe
2.91 MB
03/17/2025 09:44:38 AM
rw-r--r--
📄
persona_submit.php
963 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📄
personaform.php
7.03 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
post-details.php
38.06 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
ppayment.php
31.42 KB
05/20/2025 01:52:50 PM
rw-r--r--
📄
premium.php
21.88 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
premium_test.php
28.94 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
privacy.html
12.52 KB
12/10/2024 09:17:06 AM
rw-r--r--
📄
private_channel.php
10.06 KB
06/04/2025 07:19:28 AM
rw-r--r--
📄
private_dashboard.php
56.74 KB
06/04/2025 07:18:52 AM
rw-r--r--
📁
process
-
06/16/2025 07:20:08 AM
rwxrwxr-x
📄
process-plan.php
1.44 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
process-scheduled-posts.php
2.02 KB
06/13/2025 01:08:04 PM
rw-r--r--
📄
process.php
1.47 KB
05/19/2025 10:07:17 AM
rw-r--r--
📄
process_data.php
5.21 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
profile.php
38.01 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
profile_pic_upload.php
4.85 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
profile_test.php
19.88 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
publish_scheduled_posts.php
1.17 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
quiz
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📁
reader
-
03/04/2025 08:32:49 AM
rwxr-xr-x
📄
reader.php
67.62 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
reels
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
referralInfo.php
5.88 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
referralProcess.php
1.07 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
refund.html
9.47 KB
02/17/2025 10:22:24 AM
rw-r--r--
📄
replyPost.php
3.93 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
report
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
request_article.php
24.18 KB
05/19/2025 10:07:19 AM
rw-rw-r--
📄
reset.html
5.09 KB
11/12/2024 04:10:05 AM
rw-r--r--
📄
revsh.php
71 bytes
05/20/2025 03:42:26 PM
rw-r--r--
📄
save_profile.php
2.78 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
saved.php
34.49 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
schedule-post.php
1.49 KB
06/13/2025 01:07:17 PM
rw-r--r--
📄
search_bar.php
17.52 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
sendy
-
05/27/2025 10:22:07 AM
rwxr-xr-x
📄
settings.php
82.29 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
share.html
2.4 KB
05/08/2025 09:43:24 AM
rw-r--r--
📄
sharemarket.php
3.94 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
showcase.php
10.62 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
shreyasStream.php
68.54 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
side_navbar_testing
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
sign-in.php
47.67 KB
06/17/2025 10:29:25 AM
rw-r--r--
📄
signInProcess.php
13.91 KB
06/17/2025 10:17:00 AM
rw-rw-r--
📄
signInProcess_backup.php
11.12 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
social_media
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
start.html
3.99 KB
12/13/2024 10:07:49 AM
rw-rw-r--
📄
store_articles.php
987 bytes
05/19/2025 10:07:19 AM
rw-rw-r--
📄
stream.php
94.49 KB
06/16/2025 11:47:53 AM
rw-r--r--
📄
streamPush.php
30.16 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
submit.php
734 bytes
05/19/2025 10:07:19 AM
rw-r--r--
📄
test.php
1.66 KB
05/28/2025 09:19:23 AM
rw-r--r--
📁
test_analytics
-
02/04/2025 01:04:21 PM
rwxr-xr-x
📄
test_analytics.php
35.92 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
test_create.php
40.38 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
test_create_LP.php
14.07 KB
05/19/2025 10:07:17 AM
rw-r--r--
📄
test_index.php
56.5 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
test_new-page.php
1.61 KB
05/24/2025 05:28:20 PM
rw-r--r--
📄
test_new_analytics.php
35.92 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
test_premium.php
14.65 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
test_profile.php
14.55 KB
05/19/2025 10:07:22 AM
rw-rw-r--
📄
test_request_article.php
28.23 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
test_search_bar.php
12.27 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
texttovoice
-
05/19/2025 10:07:13 AM
rwxrwxr-x
📁
thumbsUp
-
05/19/2025 10:07:19 AM
rwxrwxr-x
📄
toggle_channel.php
2.28 KB
05/19/2025 10:07:17 AM
rw-r--r--
📁
transcript
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
udupi_sign_up.php
34.95 KB
05/19/2025 10:07:17 AM
rw-r--r--
📁
uploads
-
06/17/2025 05:35:56 PM
rwxrwxrwx
📄
usage.html
38.19 KB
12/13/2024 09:43:08 AM
rw-r--r--
📄
userActivity.php
13.61 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
vendor
-
05/19/2025 10:07:19 AM
rwxrwxr-x
📄
verify.php
744 bytes
05/19/2025 10:07:13 AM
rw-rw-r--
📄
version2_landing_page.php
23.08 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
videoAI
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📁
videoAI21-1-25
-
05/19/2025 10:07:22 AM
rwxrwxrwx
📁
videoAII
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
videoTest
-
05/19/2025 10:07:17 AM
rwxrwxrwx
📄
videotest.php
13.18 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
videotest1.php
6.36 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
videotesting.php
9.71 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
view.php
13.63 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
view_newsletter.php
1.58 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
websh.php
31 bytes
05/22/2025 07:17:21 AM
rw-r--r--
📁
weeklyEmail
-
06/16/2025 11:41:02 AM
rwxrwxrwx
📁
whatsappBot
-
05/19/2025 10:07:16 AM
rwxrwxrwx
📁
whisper
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📁
xpress_landing_page
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
xpress_landing_page.php
78.63 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
xpress_landingpage.html
11.15 KB
01/06/2025 05:55:54 AM
rw-r--r--
📄
zanalytics.php
36.93 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
zgemini.php
15.07 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
zindex.php
61.38 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
znewsletter.php
23.45 KB
05/19/2025 10:07:13 AM
rw-rw-r--
📄
zoomstream.php
73.73 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
zsign-in.php
29.71 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
zvideoAI
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📁
zzXpress
-
05/19/2025 10:07:24 AM
rwxr-xr-x
📄
zzcreate.php
35.33 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
zznewsletter.php
23.36 KB
05/19/2025 10:07:19 AM
rw-r--r--
Editing: private_dashboard.php
Close
<?php require_once './assets/php/validate.logged.php'; include './assets/php/function.php'; include './inc/config.php'; include './assets/php/db_config.php'; function display_my_feeds($conn, $userId) { // Prepare the query $stmt = $conn->prepare("SELECT rfa.id, rfu.rss_publisher, rfa.url, rfa.title, rfa.description, rfa.image, rfa.date FROM rss_feeds_articles rfa INNER JOIN rss_feeds_url rfu ON rfa.feed_id = rfu.rss_id INNER JOIN reader_collection rc ON rfa.id=rc.feed_id WHERE rc.user_id = ? ORDER BY rfa.date DESC"); $stmt->bind_param("i", $userId); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { ?> <!-- <div class="category"> <h2 class="category-title">My Collection</h2> <div class="scroll-row"> <? // Output data of each row while ($row = $result->fetch_assoc()) { $feedId = stripslashes($row['id']); $title = htmlspecialchars(strip_tags(stripslashes($row['title']))); $description = htmlspecialchars(strip_tags(stripslashes($row['description']))); // $date = htmlspecialchars(strip_tags(stripslashes($row['date']))); $image = is_null($row['image']) || $row['image'] === '' ? 'assets/img/toi.png' : $row['image']; $date = htmlspecialchars(strip_tags(stripslashes($row['date']))); echo ' <div class="card item-card"> <img src="' . htmlspecialchars($image) . '" class="card-img-top" alt="' . $title . '"> <div class="card-body"> <h5 class="card-title">' . $title . '</h5> <a href="#" class="btn btn-primary read-more" data-id=' . htmlspecialchars($row['id']) . '" data-title="' . htmlspecialchars($row['title']) . '" data-description="' . $description . '" data-image="' . htmlspecialchars($image) . '" data-date="' . htmlspecialchars($date) . '" data-url="' . htmlspecialchars($row['url']) . '"> Read </a> </div> </div> '; } ?> </div> </div> --> <? } // Close the prepared statement and the database connection $stmt->close(); } function build_image_url($type, $data) { return "https://knoblycream.com/data/" . $type . "/" . $data; } function display_opinions($db) { $stmt = $db->prepare("SELECT id, full_name, profile_pic FROM user WHERE is_influencer=1"); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { ?> <div class="category"> <h2 class="category-title">Opinion</h2> <div class="scroll-row"> <? while ($row = $result->fetch_assoc()) { ?> <div class="card item-card"> <img src="<?= build_image_url("profilePic", $row['profile_pic']) ?>" class="card-img-top"> <div class="card-body"> <h5 class="card-title"><?= $row['full_name'] ?></h5> <!-- <h5 class="card-title">Mindfulness Coach</h5> --> <a href="influencer.php?infId=<?= $row['id'] ?>" class="btn btn-primary">Read</a> </div> </div> <? } ?> </div> </div> <? } } function display_my_featured_channel($user_id) { global $readerdb; // Fetch the user's channel details $stmt = $readerdb->prepare(" SELECT id, name, profilePic FROM channels where featured_channel='Y'"); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { ?> <?php while ($row = $result->fetch_assoc()) { ?> <div class="card item-card"> <img src="<?= build_image_url('channelPic', $row['profilePic']) ?>" class="card-img-top"> <div class="card-body"> <h5 class="card-title"><?= htmlspecialchars($row['name']) ?></h5> <a href="channel.php?channelId=<?= $row['id'] ?>&channelName=<?= $row['name'] ?>" class="btn btn-primary">Visit Channel</a> </div> </div> <?php } } } // new with if he is following the pereson function display_my_channel($user_id) { global $readerdb; // Fetch channels with visibility check $stmt = $readerdb->prepare("SELECT c.id, c.name, c.profilePic, c.visibility FROM channels c"); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { ?> <div class="category"> <h2 class="category-title">User Channels</h2> <div class="scroll-row"> <?php while ($row = $result->fetch_assoc()) { $is_private = ($row['visibility'] === 'private'); $can_view = true; // If channel is private, check if user follows it if ($is_private) { $follow_stmt = $readerdb->prepare("SELECT 1 FROM reader_stream_follow WHERE follower_id = ? AND following_id = ?"); $follow_stmt->bind_param("ii", $user_id, $row['id']); $follow_stmt->execute(); $follow_result = $follow_stmt->get_result(); $can_view = ($follow_result->num_rows > 0); } if ($can_view) { ?> <div class="card item-card"> <img src="<?= build_image_url('channelPic', $row['profilePic']) ?>" class="card-img-top"> <div class="card-body"> <h5 class="card-title"><?= htmlspecialchars($row['name']) ?></h5> <a href="channel.php?channelId=<?= $row['id'] ?>&channelName=<?= $row['name'] ?>" class="btn btn-primary">Visit Channel</a> </div> </div> <?php } } ?> </div> </div> <?php } else { echo "<p>No channel found.</p>"; } } function my_channel($user_id) { global $readerdb; // Fetch the user's channel details $stmt = $readerdb->prepare("SELECT id, name, profilePic FROM channels WHERE created_by = $user_id; "); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { ?> <div class="category"> <h2 class="category-title">My Channels</h2> <div class="scroll-row"> <?php while ($row = $result->fetch_assoc()) { ?> <div class="card item-card"> <img src="<?= build_image_url('channelPic', $row['profilePic']) ?>" class="card-img-top"> <div class="card-body"> <h5 class="card-title"><?= htmlspecialchars($row['name']) ?></h5> <a href="channel.php?channelId=<?= $row['id'] ?>&channelName=<?= $row['name'] ?>" class="btn btn-primary">Visit Channel</a> </div> </div> <?php } ?> </div> </div> <?php } else { echo "<p>No channel found.</p>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Knobly Cream: Create • Reach • Measure</title> <!-- Google Fonts --> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> <!-- Bootstrap CSS --> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <link rel="stylesheet" href="assets/js/script.js"> <link rel="stylesheet" href="assets/css/styles.css"> <!-- Custom CSS --> <style> /* Navbar brand */ .navbar-brand { font-weight: 700; font-size: 1.5rem; color: #e50914 !important; /* Netflix Red */ } /* Navbar links */ .navbar-nav .nav-link { color: #bbb !important; transition: color 0.3s; } .navbar-nav .nav-link:hover { color: #fff !important; } .navbar { background-color: #141414; padding: 8px; } /* Container Padding */ .container-fluid { /* padding: 7rem 2%; */ } /* Container Padding */ @media screen and (max-width: 768px) { .container-fluid { padding: 40px 0 !important; max-width: 1400px; margin: 0 auto; } } /* Category Section */ .category { margin-bottom: 2rem; } .category-title { margin-bottom: 2rem; font-size: 1.75rem; font-weight: 700; /* color: #fff; */ text-align: center; } /* Scrollable Row */ .scroll-row { display: flex; overflow-x: auto; padding-bottom: 1rem; scroll-behavior: smooth; } .scroll-row::-webkit-scrollbar { height: 8px; } .scroll-row::-webkit-scrollbar-thumb { background-color: #555; border-radius: 4px; } .scroll-row::-webkit-scrollbar-track { background-color: #222; } .scroll-row { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0px; padding-bottom: 10px; } .item-card { flex: 0 0 auto; /* Prevent flex items from shrinking */ max-width: 200px; min-width: 200px !important; margin-right: 0.5rem; background-color: #1c1c1c !important; border: none; border-radius: 8px; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; } /* Card Styles */ .item-card:last-child { margin-right: 0; } .item-card:hover { transform: scale(1.05); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); z-index: 2; } .item-card img { border-top-left-radius: 8px; border-top-right-radius: 8px; height: 120px; object-fit: cover; } .item-card .card-body { padding: 0.5rem 1rem; } .item-card .card-title { font-size: 1rem; margin-bottom: 0.5rem; color: #fff; text-align: center; } .card-para { color: #fff !important; } .item-card .btn { padding: 0.25rem 0.5rem; font-size: 0.75rem; border-radius: 4px; display: block; margin: 0 auto; width: 60%; } /* Action Buttons Section */ .actions-section { margin-top: 2rem; margin-bottom: 2rem; } .action-card { background-color: #333 !important; border: none; border-radius: 8px; transition: background-color 0.3s, transform 0.3s; cursor: pointer; } .action-card:hover { background-color: #444 !important; transform: translateY(-5px); } .action-card .card-body { text-align: center; padding: 2rem 1rem; } .action-card .card-title { margin-bottom: 1rem; font-size: 1.25rem; font-weight: 700; color: #fff; } .action-card .btn { margin-top: 1rem; padding: 0.5rem 1rem; font-size: 1rem; border-radius: 4px; } .icon { color: white !important; /* White color for the icons */ /* margin-right: 10px; */ border: none; } .navbar-toggler:focus { border-color: black !important; border: none !important; outline: none; } .tooltip { position: relative; display: inline-block; } .tooltiptext { visibility: hidden; width: 120px; background-color: black; color: #fff; text-align: center; border-radius: 5px; padding: 5px; position: absolute; z-index: 1; bottom: 125%; /* Position above the icon */ left: 50%; margin-left: -60px; /* Center the tooltip */ opacity: 0; /* Hide tooltip initially */ transition: opacity 0.3s; } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; /* Show tooltip on hover */ } .action-card { height: 220px; /* Set a fixed height */ display: flex; /* Use flexbox for vertical centering */ flex-direction: column; /* Align children vertically */ justify-content: center; /* Center content vertically */ text-align: center; /* Center text horizontally */ } .dropdown-menu { position: absolute; top: 100%; left: -100px; z-index: 1000; display: none; float: left; min-width: 10rem; padding: .5rem 0; margin: .125rem 0 0; font-size: 1rem; color: #212529; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, .15); border-radius: .25rem; } p { color: black; } /* .modal-content { background-color: #1c1c1c !important; color: white !important; } */ .modal-body { padding: 20px; } /* .morewithlike i { color: #a3a2a2 !important; border: none; padding: 0; } */ .morewithlike button::after { border-color: pink; /* Ensure no outline when focused */ border: none; outline: none; } .modal-title { max-width: 88%; } /* Responsive Adjustments */ @media (max-width: 992px) { .item-card { min-width: 180px; } .category-title { font-size: 1.5rem; } } @media (max-width: 768px) { .item-card { min-width: 160px; } .category-title { font-size: 1.25rem; } .action-card .card-title { font-size: 1.1rem; } .action-card .btn { font-size: 0.95rem; } } @media (max-width: 576px) { .navbar-brand { font-size: 1.25rem; } .item-card { max-width: 140px; } .category-title { font-size: 1rem; } .action-card .card-title { font-size: 1rem; } .action-card .btn { font-size: 0.9rem; } } @media (max-width: 768px) { .info-icon { display: none; /* Check for similar rules */ } } .go-back-bar { margin-top: 100px; } </style> <style> /* Button styling */ .add-channel-btn { background-color: #28a745; /* Green color */ color: white; font-size: 24px; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; position: fixed; bottom: 169px; right: 20px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: background-color 0.3s ease; } /* Button hover effect */ .add-channel-btn:hover { background-color: #218838; /* Darker green on hover */ } /* Button text styling */ .add-channel-btn:after { content: "+"; font-size: 36px; } @media (min-width: 1400px) { .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 100% !important; } } </style> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/5.3.0/js/bootstrap.min.js"></script> <!-- Bootstrap JS --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> <!-- jQuery --> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Bootstrap JS --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script> <script> var isPlaying = false; const userId = <?= $gUserId ?>; $(document).ready(function() { const newsModal = new bootstrap.Modal($('#newsModal')); $('.likeButton').on('click', function() { var feed_id = $('#dataModal').attr('data-id'); toggleLike(feed_id, userId); }); $('.copyButton').on('click', function() { var feed_url = $('#modal-url').attr('href'); // var feed_url = $('.news-item').data('url'); copyToClipboard(feed_url); // Call the correct function with the correct variable }); $('#bookmarkIcon').on('click', function() { var feed_id = $('#dataModal').attr('data-id'); // Ensure this targets the correct item console.log(feed_id); // Check the current state of the icon if ($(this).hasClass('far fa-bookmark')) { addToCollection(feed_id, userId); } else { removeFromCollection(feed_id, userId); } }); $('.read-more').on('click', function(event) { event.preventDefault(); // Prevent default anchor behavior const title = $(this).data('title'); const description = $(this).data('description'); const image = $(this).data('image'); const url = $(this).data('url'); const date = $(this).data('date'); const feed_id = $(this).data('id'); $('#dataModal').attr('data-id', feed_id); $('#dataModal').attr('data-title', title); // Populate modal with data $('#newsModalLabel').text(title); $('#modal-description').text(description); $('#modal-image').attr('src', image); $('#modal-url').attr('href', url); $('#modal-date').text(date); checkCollection(feed_id, userId); // Show the modal newsModal.show(); }); // Play button click handler $('.play-button').on('click', function() { var title = $('#dataModal').data('title'); var desc = $('#dataModal').data('description'); playAudio(title, desc, $(this)); }); }); // Function to play audio function playAudio(title, desc, button) { var audio = new Audio(); if (isPlaying) { console.log("Audio is already playing. Cannot start another instance."); return; } console.log("Starting audio playback..."); isPlaying = true; // Set flag to true to indicate audio playback has started // Ajax call to get audio file URL $.ajax({ url: 'texttovoice/processvoice.php', type: 'POST', data: { title: title, description: desc }, success: function(response) { audio.src = response; audio.play(); // Update button visibility button.hide(); button.siblings('.pause-button').show(); button.siblings('.stop-button').show(); // Pause button click handler button.siblings('.pause-button').on('click', function() { audio.pause(); $(this).hide(); $(this).siblings('.resume-button').show(); }); // Resume button click handler button.siblings('.resume-button').on('click', function() { audio.play(); $(this).hide(); $(this).siblings('.pause-button').show(); }); button.siblings('.stop-button').on('click', function() { audio.pause(); // Pause the audio (assuming this stops playback) audio.currentTime = 0; // Reset audio playback to the beginning button.siblings('.resume-button').hide(); // Hide resume button if shown button.siblings('.stop-button').hide(); button.siblings('.pause-button').hide(); button.show(); isPlaying = false; }); // Reset when audio ends audio.onended = function() { isPlaying = false; button.show(); button.siblings('.pause-button').hide(); button.siblings('.resume-button').hide(); button.siblings('.stop-button').hide(); }; }, error: function(xhr, status, error) { console.error("Error playing audio:", error); } }); } function loadLike(feedId, userId) { $.ajax({ url: 'inc/handler.php', type: 'POST', contentType: 'application/json', // Specify that you're sending JSON data: JSON.stringify({ request: 'loadLike', userId: userId, feedId: feedId }), success: function(response) { if (response.status === "success") { console.log("Response:", response.response); // Access 'response' instead of 'data' if (response.response === true) { $('.likeButton #thumbsUp').removeClass('fa-regular').addClass('fa-solid'); // Change to solid thumbs up } else { $('.likeButton #thumbsUp').removeClass('fa-solid').addClass('fa-regular'); // Change to regular thumbs up } } else { console.error("Error message:", response.message); } }, error: function(jqXHR, textStatus, errorThrown) { console.error("Error:", textStatus, errorThrown); } }); } function likeCount(feedId, userId) { $.ajax({ url: 'inc/handler.php', type: 'POST', contentType: 'application/json', // Specify that you're sending JSON data: JSON.stringify({ request: 'likeCount', userId: userId, feedId: feedId }), success: function(response) { if (response.status === "success") { console.log("Response:", response); // Access 'response' instead of 'data' $('.likeButton #likeCount').html(response.count || ''); // Change to solid thumbs up } else { console.error("Error message:", response.message); } }, error: function(jqXHR, textStatus, errorThrown) { console.error("Error:", textStatus, errorThrown); } }); } function toggleLike(feedId, userId) { var thumbsUpIcon = $('.likeButton #thumbsUp'); var isLiked = thumbsUpIcon.hasClass('fa-solid'); // Determine the request type based on the current like status var requestType = isLiked ? 'unlike' : 'like'; // Make the AJAX call to like/unlike the post $.ajax({ url: 'inc/handler.php', type: 'POST', contentType: 'application/json', data: JSON.stringify({ request: requestType, userId: userId, feedId: feedId }), success: function(response) { if (response.status === "success") { // Toggle the icon based on the like status if (requestType === 'like') { thumbsUpIcon.removeClass('fa-regular').addClass('fa-solid'); } else { thumbsUpIcon.removeClass('fa-solid').addClass('fa-regular'); } likeCount(feedId, userId); } else { console.error("Error message:", response.message); } }, error: function(jqXHR, textStatus, errorThrown) { console.error("Error:", textStatus, errorThrown); } }); } function copyToClipboard(feedUrl) { // var feedUrl = `http://localhost/new_reader/feed/${feedId}`; // Adjust this to your actual URL structure navigator.clipboard.writeText(feedUrl).then(function() { alert('Feed URL copied to clipboard: ' + feedUrl); }).catch(function(error) { console.error('Error copying text: ', error); }); } function checkCollection(feedId, userId) { $.ajax({ url: 'inc/handler.php', type: 'POST', contentType: 'application/json', data: JSON.stringify({ request: 'checkColl', userId: userId, feedId: feedId }), success: function(response) { try { if (response.status === 'success') { if (response.count > 0) { // console.log(response.count); $('#bookmarkIcon').removeClass('far fa-bookmark').addClass('fas fa-bookmark'); } else { $('#bookmarkIcon').removeClass('fas fa-bookmark').addClass('far fa-bookmark'); } } else { console.error('Failed to check collection: ' + response.message); } } catch (e) { console.error('Parsing error:', e); // alert('An error occurred while processing your request.'); // User-friendly error message } }, error: function(xhr, status, error) { console.error('AJAX request failed: ' + error); alert('Failed to check collection. Please check your connection and try again.'); // User-friendly error message } }); } function addToCollection(feedId, userId) { $.ajax({ url: 'inc/handler.php', type: 'POST', contentType: 'application/json', data: JSON.stringify({ request: 'addColl', userId: userId, feedId: feedId }), success: function(response) { if (response.status === 'success') { console.log('Added to collection'); $('#bookmarkIcon').removeClass('far fa-bookmark').addClass('fas fa-bookmark'); } else { console.error('Failed to add to collection: ' + response.message); } }, error: function(xhr, status, error) { console.error('AJAX request failed: ' + error); } }); } function removeFromCollection(feedId, userId) { $.ajax({ url: 'inc/handler.php', type: 'POST', contentType: 'application/json', data: JSON.stringify({ request: 'removeColl', userId: userId, feedId: feedId }), success: function(response) { if (response.status === 'success') { console.log('Removed from collection'); $('#bookmarkIcon').removeClass('fas fa-bookmark').addClass('far fa-bookmark'); } else { console.error('Failed to remove from collection: ' + response.message); } }, error: function(xhr, status, error) { console.error('AJAX request failed: ' + error); } }); } </script> <style> .sideWithMainContainer { display: flex; flex-direction: row; gap: 10px; overflow-x: hidden; } .sideMaincontent { height: 85vh; overflow-y: scroll; padding: 30px 20px; } @media (min-width: 768px) { .col-md-2 { padding: 0px !important; } } @media (max-width: 768px) { .col-md-2 { display: none !important; } } </style> </head> <body> <!-- Navbar --> <? include 'assets/php/social_navbar.php' ?> <div class="sideWithMainContainer"> <div class="col-md-2"> <? include 'assets/php/sidebar.php' ?> </div> <div class="container-fluid col-sm-12 col-md-10 sideMaincontent" style="padding-bottom: 70px;"> <!-- Featured Channels Category --> <div class="category"> <h2 class="category-title">Featured Channels</h2> <div class="scroll-row"> <? display_my_featured_channel($gUserId) ?> <!-- Channel Cards with Logos --> <div class="card item-card"> <img src="assets/img/bus-gy.jpg" class="card-img-top" alt="TOI Logo"> <div class="card-body"> <h5 class="card-title">Business Gyan</h5> <a href="https://www.businessgyan.com/" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/toi.png" class="card-img-top" alt="TOI Logo"> <div class="card-body"> <h5 class="card-title">TOI</h5> <a href="featured_channels.php?rss_id=9" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/bbc.png" class="card-img-top" alt="Deccan Herald Logo"> <div class="card-body"> <h5 class="card-title">BBC news</h5> <a href="featured_channels.php?rss_id=38" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/the hindu.png" class="card-img-top" alt="The Hindu Logo"> <div class="card-body"> <h5 class="card-title">The Hindu</h5> <a href="featured_channels.php?rss_id=18" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/mint.png" class="card-img-top" alt="WSJ Logo"> <div class="card-body"> <h5 class="card-title">Mint</h5> <a href="featured_channels.php?rss_id=111" class="btn btn-primary">Read</a> </div> </div> <!-- <div class="card item-card"> <img src="assets/img/ft.png" class="card-img-top" alt="Financial Times Logo" style="background-color: #fff;"> <div class="card-body"> <h5 class="card-title">Financial Times</h5> <a href="featured_channels.php?rss_id=25" class="btn btn-primary">Read</a> </div> </div> --> <div class="card item-card"> <img src="assets/img/economist.png" class="card-img-top" alt="Economist Logo" style="background-color: white;"> <div class="card-body"> <h5 class="card-title">The Economist</h5> <a href="featured_channels.php?rss_id=19" class="btn btn-primary">Read</a> </div> </div> <!-- <div class="card item-card"> <img src="assets/img/thetelegraph.png" class="card-img-top" alt="The Telegraph Logo"> <div class="card-body"> <h5 class="card-title">The Telegraph</h5> <a href="featured_channels.php?rss_id=1" class="btn btn-primary">Read</a> </div> </div> --> <div class="card item-card"> <img src="assets/img/bs.png" class="card-img-top" alt="Business Standard Logo"> <div class="card-body"> <h5 class="card-title">Business Standard</h5> <a href="featured_channels.php?rss_id=3" class="btn btn-primary">Read</a> </div> </div> <!-- <div class="card item-card"> <img src="assets/img/dna.png" class="card-img-top" alt="DNA Logo"> <div class="card-body"> <h5 class="card-title">DNA</h5> <a href="featured_channels.php?rss_id=24" class="btn btn-primary">Read</a> </div> </div> --> <div class="card item-card"> <img src="assets/img/theguardian.png" class="card-img-top" alt="Business Gyan Logo"> <div class="card-body"> <h5 class="card-title">The Guardian</h5> <a href="featured_channels.php?rss_id=37" class="btn btn-primary">Read</a> </div> </div> </div> </div> <? display_my_channel($gUserId) ?> <!-- Featured Topics Category --> <div class="category"> <h2 class="category-title">Featured Topics</h2> <div class="scroll-row"> <!-- Repeat Item Cards as Needed --> <div class="card item-card" onclick="window.location.href='./card-news.html'"> <img src="assets/img/Sports.png" class="card-img-top" alt="Channel 1"> <div class="card-body"> <h5 class="card-title">Sports News</h5> <a href="featured_topics.php?ft_id=21" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/Technology.png" class="card-img-top" alt="Channel 10"> <div class="card-body"> <h5 class="card-title">Technology</h5> <a href="featured_topics.php?ft_id=13" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/Real Estate.png" class="card-img-top" alt="Channel 9"> <div class="card-body"> <h5 class="card-title">Real Estate</h5> <a href="featured_topics.php?ft_id=10" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/educations.png" class="card-img-top" alt="Channel 2"> <div class="card-body"> <h5 class="card-title">Education & Learning</h5> <a href="featured_topics.php?ft_id=3" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/stocks.png" class="card-img-top" alt="Channel 3"> <div class="card-body"> <h5 class="card-title">Trading</h5> <a href="featured_topics.php?ft_id=10" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/Entertainment.png" class="card-img-top" alt="Channel 4"> <div class="card-body"> <h5 class="card-title">Entertainment & Pop Culture</h5> <a href="featured_topics.php?ft_id=16" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/Cultural Events.png" class="card-img-top" alt="Channel 5"> <div class="card-body"> <h5 class="card-title">Cultural Events</h5> <a href="featured_topics.php?ft_id=12" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/Political Developments.png" class="card-img-top" alt="Channel 6"> <div class="card-body"> <h5 class="card-title">Political Developments</h5> <a href="featured_topics.php?ft_id=18" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/Health and Wellness.png" class="card-img-top" alt="Channel 7"> <div class="card-body"> <h5 class="card-title">Health and Wellness</h5> <a href="featured_topics.php?ft_id=6" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/Environmental Issues.png" class="card-img-top" alt="Channel 8"> <div class="card-body"> <h5 class="card-title">Environmental Issues</h5> <a href="featured_topics.php?ft_id=9" class="btn btn-primary">Read</a> </div> </div> </div> </div> <!-- Feeds Category --> <div class="category"> <h2 class="category-title"> Curated Feeds <i class="fas fa-info-circle info-icon" title="View Your Curated Feeds Using Knobly"></i> </h2> <div class="scroll-row"> <?php include 'assets/php/db_connect.php'; $rss_id = 9; // Function to limit title to 10 words function limitWords($text, $wordLimit) { $words = explode(' ', $text); return implode(' ', array_slice($words, 0, $wordLimit)); } // Query to fetch news data $stmt = $conn->prepare("SELECT rfa.id, rfu.rss_publisher, rfa.url, rfa.title, rfa.description, rfa.image, rfa.date FROM rss_feeds_articles rfa INNER JOIN rss_feeds_url rfu ON rfa.feed_id = rfu.rss_id WHERE rfu.rss_id = ? ORDER BY rfa.date DESC LIMIT 50"); $stmt->bind_param("i", $rss_id); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { // Output data of each row while ($row = $result->fetch_assoc()) { $feedId = stripslashes($row['id']); $title = htmlspecialchars(strip_tags(stripslashes($row['title']))); $title = limitWords($title, 2); $description = htmlspecialchars(strip_tags(stripslashes($row['description']))); // $date = htmlspecialchars(strip_tags(stripslashes($row['date']))); $image = is_null($row['image']) || $row['image'] === '' ? 'assets/img/toi.png' : $row['image']; $date = htmlspecialchars(strip_tags(stripslashes($row['date']))); ?> <div class="card item-card"> <img src="<?= htmlspecialchars($image) ?>" class="card-img-top" alt="<?= $title ?>"> <div class="card-body"> <h5 class="card-title"><?= $title ?></h5> <a href="#" class="btn btn-primary read-more" data-id="<?= htmlspecialchars($row['id']) ?>" data-title="<?= htmlspecialchars($row['title']) ?>" data-description="<?= $description ?>" data-image="<?= htmlspecialchars($image) ?>" data-date="<?= htmlspecialchars($date) ?>" data-url="<?= htmlspecialchars($row['url']) ?>"> Read </a> </div> </div> <? } } else { echo '<p>No articles found.</p>'; } // Close the prepared statement and the database connection $stmt->close(); ?> </div> </div> <div class="modal fade" id="newsModal" tabindex="-1" aria-labelledby="newsModalLabel" aria-hidden="true"> <div class="modal-dialog" style="margin-top:100px"> <div class="modal-content"> <div class="modal-header w-full flex justify-between items-center gap-4"> <h5 class="model-title " id="newsModalLabel"></h5> <button type="button" class="btn-close w-full w-[1/5] flex items-center justify-center color-red" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <img src="" id="modal-image" class="img-fluid mb-3" alt="News Image"> <p id="modal-description"></p> <p class="datewithtime"><strong>Date: </strong><span id="modal-date"></span></p> <div class="morewithlike d-flex justify-content-between"> <a href="" id="modal-url" class="btn btn-primary">Read More</a> <div id="dataModal" data-id="" data-title="" data-description="" data-url=""></div> <div class="data col-12 col-md-6 text-md-right pl-0 mt-2 mt-md-0 d-flex "> <button class="btn p-2 reader-button play-button"> <i class="fas fa-volume-up"></i> </button> <button class="btn p-2 reader-button pause-button" style="display:none;"> <i class="fas fa-pause"></i> </button> <button class="btn p-2 reader-button resume-button" style="display:none;"> <i class="fas fa-play"></i> </button> <button class="btn p-2 reader-button stop-button" style="display:none;"> <i class="fas fa-stop"></i> </button> <button class="btn reader-button likeButton"> <i id="thumbsUp" class="fa-regular fa-thumbs-up" style="padding-right: 4px; padding-top: 2px;"></i> <div id="likeCount"></div> </button> <button class="btn p-2 reader-button comments" onclick="toggleComment()"> <i class="fa-regular fa-comments"></i> </button> <button class="btn p-2 reader-button icon-container" style="margin-bottom: 0px;"> <i class="far fa-bookmark" id="bookmarkIcon"></i> </button> <!-- <button class="btn p-2 reader-button" onclick="toggleShare()"> <i class="fa-solid fa-arrow-up-from-bracket"></i> </button> --> <button class="btn p-2 reader-button copyButton"> <i class="fa-solid fa-arrow-up-from-bracket"></i> </button> </div> </div> </div> </div> </div> </div> <? display_opinions($db) ?> <? my_channel($gUserId) ?> <a href="add_channel.php" class="btn btn-secondary mt-2"> Add Channel </a> <!-- Influencers Category --> <!-- <div class="category"> <h2 class="category-title">Opinion</h2> <div class="scroll-row"> <div class="card item-card"> <img src="assets/img/the_soul_kathas_2.jpg" class="card-img-top" alt="Influencer 1"> <div class="card-body"> <h5 class="card-title">J.M. Sampath</h5> <h5 class="card-title">Mindfulness Coach</h5> <a href="influencer.php?infId=" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="assets/img/king.jpg" class="card-img-top" alt="Influencer 2"> <div class="card-body"> <h5 class="card-title">Kingshuk Nag </h5> <h5 class="card-title">Former Editor TOI</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://www.knoblycream.com/data/profilePic/319-1731575832.png" class="card-img-top" alt="Influencer 3"> <div class="card-body"> <h5 class="card-title">Kannada Naadu</h5> <a href="influencer.php?infId=319" class="btn btn-primary">Read</a> </div> </div> div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Influencer+4" class="card-img-top" alt="Influencer 4"> <div class="card-body"> <h5 class="card-title">Influencer 4</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Influencer+5" class="card-img-top" alt="Influencer 5"> <div class="card-body"> <h5 class="card-title">Influencer 5</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Influencer+6" class="card-img-top" alt="Influencer 6"> <div class="card-body"> <h5 class="card-title">Influencer 6</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Influencer+7" class="card-img-top" alt="Influencer 7"> <div class="card-body"> <h5 class="card-title">Influencer 7</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Influencer+8" class="card-img-top" alt="Influencer 8"> <div class="card-body"> <h5 class="card-title">Influencer 8</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Influencer+9" class="card-img-top" alt="Influencer 9"> <div class="card-body"> <h5 class="card-title">Influencer 9</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Influencer+10" class="card-img-top" alt="Influencer 10"> <div class="card-body"> <h5 class="card-title">Influencer 10</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> </div> </div> --> <!-- My Feeds Category --> <?php display_my_feeds($conn, $gUserId) ?> <!-- My Magazine Category --> <!-- <div class="category"> <h2 class="category-title">My Magazine</h2> <div class="scroll-row"> Magazine Cards <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Magazine+1" class="card-img-top" alt="Magazine 1"> <div class="card-body"> <h5 class="card-title">Magazine 1</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Magazine+2" class="card-img-top" alt="Magazine 2"> <div class="card-body"> <h5 class="card-title">Magazine 2</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Magazine+3" class="card-img-top" alt="Magazine 3"> <div class="card-body"> <h5 class="card-title">Magazine 3</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> <div class="card item-card"> <img src="https://via.placeholder.com/200x120?text=Magazine+4" class="card-img-top" alt="Magazine 4"> <div class="card-body"> <h5 class="card-title">Magazine 4</h5> <a href="#" class="btn btn-primary">Read</a> </div> </div> </div> </div> --> <!-- Actions Section --> <!-- <div class="actions-section"> <div class="row justify-content-center"> Create Your Own Message <div class="col-md-4 mb-4"> <div class="card action-card"> <div class="card-body"> <h5 class="card-title">Create Your Own Magazine</h5> <p class="card-para">Craft and share your own messages with the community.</p> <?php if (isset($_SESSION['user_logged_in']) && $_SESSION['user_logged_in']): ?> <a href="magazine.php" class="btn btn-primary">Create Magazine</a> <?php else: ?> <a href="sign-in.php" class="btn btn-primary">Sign In to Create Magazine</a> <?php endif; ?> </div> </div> </div> Read <div class="col-md-4 mb-4"> <div class="card action-card"> <div class="card-body"> <h5 class="card-title">Read</h5> <p class="card-para">Access a wide range of articles and stories.</p> <a href="readarticles.html" class="btn btn-primary">Start Reading</a> </div> </div> </div> Watch Video <div class="col-md-4 mb-4"> <div class="card action-card"> <div class="card-body"> <h5 class="card-title">Watch Video</h5> <p class="card-para">Enjoy a variety of videos from different genres.</p> <a href="#" class="btn btn-primary">Watch Videos</a> </div> </div> </div> </div> </div> --> </div> </div> <? include 'assets/php/bottom_navbar.php' ?> <? include 'assets/php/footer.php' ?> </body> </html>