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: gemini.php
Close
<?php require __DIR__ . '/vendor/autoload.php'; // database $servername = "139.59.38.164"; $username = "root"; $password = "newstart"; $dbname = "cream"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) die("Connection failed: " . $conn->connect_error); // =========== // $email = $_GET['email']; $api_key = "AIzaSyDqRl0hcem4FxXW5d-90bK7BW-nF7CFOIc"; // $result = $conn->query("SELECT * FROM creamNow ") or die("Database Error: " . $conn->error); // $user = $result->fetch_assoc(); $result = $conn->query("SELECT * FROM creamNow ORDER BY submissionDate DESC LIMIT 1") or die("Database Error: " . $conn->error); $user = $result->fetch_assoc(); // Function to detect gender from user's name function detectGenderFromName($name) { // Common Indian male names $maleNames = [ 'raj', 'amit', 'rahul', 'vijay', 'suresh', 'arun', 'deepak', 'rajesh', 'sanjay', 'kumar', 'aditya', 'rohit', 'vikram', 'arjun', 'ravi', 'ajay', 'vivek', 'prakash', 'akash', 'nikhil', 'varun', 'anand', 'dhruv', 'gaurav', 'manish', 'mohit', 'naveen', 'pranav', 'sachin' ]; // Common Indian female names $femaleNames = [ 'priya', 'neha', 'pooja', 'anjali', 'shreya', 'divya', 'kavita', 'ritu', 'swati', 'aishwarya', 'sneha', 'nisha', 'manisha', 'anita', 'meera', 'rekha', 'jyoti', 'sunita', 'radha', 'deepika', 'aarti', 'geeta', 'komal', 'preeti', 'shweta', 'tanvi', 'usha', 'vandana' ]; // Get the first name (in case full name is provided) $firstName = strtolower(explode(' ', $name)[0]); // Check if the name is in the male list if (in_array($firstName, $maleNames)) { return 'male'; } // Check if the name is in the female list if (in_array($firstName, $femaleNames)) { return 'female'; } // If not found in either list, do a broader check foreach ($maleNames as $maleName) { if (strpos($firstName, $maleName) === 0) { return 'male'; } } foreach ($femaleNames as $femaleName) { if (strpos($firstName, $femaleName) === 0) { return 'female'; } } // Default case return 'unknown'; } // Function to get random Indian name based on gender function getRandomIndianName($gender) { $maleNames = [ 'Raj Kumar', 'Amit Sharma', 'Rahul Patel', 'Vijay Singh', 'Suresh Verma', 'Arun Gupta', 'Deepak Joshi', 'Rajesh Khanna', 'Sanjay Mehta', 'Vikram Malhotra', 'Arjun Nair', 'Ravi Krishnan', 'Ajay Reddy', 'Vivek Iyer', 'Prakash Thakur', 'Akash Kapoor', 'Nikhil Choudhury', 'Varun Agarwal', 'Anand Desai', 'Dhruv Banerjee' ]; $femaleNames = [ 'Priya Sharma', 'Neha Patel', 'Pooja Singh', 'Anjali Verma', 'Shreya Gupta', 'Divya Joshi', 'Kavita Khanna', 'Ritu Mehta', 'Swati Malhotra', 'Aishwarya Nair', 'Sneha Krishnan', 'Nisha Reddy', 'Manisha Iyer', 'Anita Thakur', 'Meera Kapoor', 'Rekha Choudhury', 'Jyoti Agarwal', 'Sunita Desai', 'Radha Banerjee', 'Deepika Sinha' ]; if ($gender === 'male') { return $maleNames[array_rand($maleNames)]; } else { return $femaleNames[array_rand($femaleNames)]; } } // Function to get random avatar based on gender function getRandomAvatar($gender) { if ($gender === 'male') { return "avatars/" . rand(1, 4) . ".png"; } else { return "avatars/" . rand(5, 7) . ".png"; } } // Determine gender from user's name in database $userGender = 'unknown'; if (isset($user['name']) && !empty($user['name'])) { $userGender = detectGenderFromName($user['name']); } // If gender couldn't be determined, use a default if ($userGender === 'unknown') { $userGender = 'male'; // Default gender } // Generate persona name based on detected gender $personaName = getRandomIndianName($userGender); $personaInput = "Product: " . $user['productName'] . // "\nChallenges: " . $user['challenges'] . // "\nconversation: " . $user['conversation'] . // "\nAssets: " . $user['assets'] . // "\nSocial Media: " . $user['social_media'] . "\nPersona Name: " . $personaName . "\nGenerate a persona with this Indian name and cultural context. Format the output for easy reading. Use bold tags for headings and complete persona."; $industryReportInput = "Product: " . $user['productName'] . "\nBased on the industry, create a report on where the business stands today and also the heading of the report should be in bold letters and should come in new line and give the complete report."; $list_models_url = "https://generativelanguage.googleapis.com/v1beta/models?key=$api_key"; $ch_list = curl_init(); curl_setopt($ch_list, CURLOPT_URL, $list_models_url); curl_setopt($ch_list, CURLOPT_RETURNTRANSFER, true); $list_models_response = curl_exec($ch_list); $list_models_http_code = curl_getinfo($ch_list, CURLINFO_HTTP_CODE); curl_close($ch_list); $persona_text = "β οΈ No valid persona response from Gemini."; $industry_report_text = "β οΈ No valid industry report response from Gemini."; if ($list_models_http_code == 200) { $list_models_data = json_decode($list_models_response, true); $gemini_flash_model = null; foreach ($list_models_data['models'] as $model) { if (strpos($model['name'], 'gemini-') !== false && strpos($model['name'], '-flash') !== false && in_array('generateContent', $model['supportedGenerationMethods'])) { $gemini_flash_model = $model['name']; break; } } if ($gemini_flash_model) { // Persona Generation $persona_data = [ "model" => $gemini_flash_model, "contents" => [ [ "parts" => [ [ "text" => "Generate a persona based on the following information:\n" . $personaInput ] ] ] ], "generationConfig" => [ "temperature" => 0.7, "maxOutputTokens" => 500 ] ]; $persona_url = "https://generativelanguage.googleapis.com/v1beta/" . $gemini_flash_model . ":generateContent?key=$api_key"; $ch_persona = curl_init(); curl_setopt($ch_persona, CURLOPT_URL, $persona_url); curl_setopt($ch_persona, CURLOPT_POST, true); curl_setopt($ch_persona, CURLOPT_HTTPHEADER, ['Content-Type: application/json']); curl_setopt($ch_persona, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch_persona, CURLOPT_POSTFIELDS, json_encode($persona_data)); $persona_response = curl_exec($ch_persona); $persona_http_code = curl_getinfo($ch_persona, CURLINFO_HTTP_CODE); curl_close($ch_persona); if ($persona_response === false) { $persona_text = "β cURL Error: " . curl_error($ch_persona); } else if ($persona_http_code != 200) { $persona_text = "β API Error: HTTP Status Code $persona_http_code - Response: " . $persona_response; } else { $gemini_persona_data = json_decode($persona_response, true); if (isset($gemini_persona_data['candidates'][0]['content']['parts'][0]['text'])) { $persona_text = $gemini_persona_data['candidates'][0]['content']['parts'][0]['text']; // Get avatar based on detected gender from user's name $avatarImage = getRandomAvatar($userGender); // Clean up the text as before $persona_text = str_replace(["<br />\r\n", "<br />\n", "<br />"], "", $persona_text); $Parsedown = new Parsedown(); $persona_text = $Parsedown->text($persona_text); $persona_text = preg_replace('/<strong>\s*<\/strong>/', '', $persona_text); $persona_text = preg_replace('/<em>\s*<\/em>/', '', $persona_text); // Add the avatar to the output $persona_text = '<div class="persona-container"> <img src="' . htmlspecialchars($avatarImage) . '" alt="Persona Avatar" class="avatar-image"> <div class="persona-content">' . $persona_text . '</div> </div>'; } } // Industry Report Generation $industry_report_data = [ "model" => $gemini_flash_model, "contents" => [ [ "parts" => [ [ "text" => "Generate an industry report based on the following information:\n" . $industryReportInput ] ] ] ], "generationConfig" => [ "temperature" => 0.7, "maxOutputTokens" => 500 ] ]; $industry_report_url = "https://generativelanguage.googleapis.com/v1beta/" . $gemini_flash_model . ":generateContent?key=$api_key"; $ch_industry_report = curl_init(); curl_setopt($ch_industry_report, CURLOPT_URL, $industry_report_url); curl_setopt($ch_industry_report, CURLOPT_POST, true); curl_setopt($ch_industry_report, CURLOPT_HTTPHEADER, ['Content-Type: application/json']); curl_setopt($ch_industry_report, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch_industry_report, CURLOPT_POSTFIELDS, json_encode($industry_report_data)); $industry_report_response = curl_exec($ch_industry_report); $industry_report_http_code = curl_getinfo($ch_industry_report, CURLINFO_HTTP_CODE); curl_close($ch_industry_report); if ($industry_report_response === false) { $industry_report_text = "β cURL Error: " . curl_error($ch_industry_report); } else if ($industry_report_http_code != 200) { $industry_report_text = "β API Error: HTTP Status Code $industry_report_http_code - Response: " . $industry_report_response; } else { $gemini_industry_report_data = json_decode($industry_report_response, true); if (isset($gemini_industry_report_data['candidates'][0]['content']['parts'][0]['text'])) { $industry_report_text = $gemini_industry_report_data['candidates'][0]['content']['parts'][0]['text']; // Remove line break <br> tags $industry_report_text = str_replace(["<br />\r\n", "<br />\n", "<br />"], "", $industry_report_text); // Use Parsedown for Markdown to HTML conversion $Parsedown = new Parsedown(); $industry_report_text = $Parsedown->text($industry_report_text); // Remove empty strong/em tags $industry_report_text = preg_replace('/<strong>\s*<\/strong>/', '', $industry_report_text); $industry_report_text = preg_replace('/<em>\s*<\/em>/', '', $industry_report_text); } } } else { die("β No Gemini Flash model with generateContent support found."); } } else { die("Error listing models: HTTP Status Code $list_models_http_code - Response: $list_models_response"); } $conn->close(); $industry = strtolower($user['industry']); function getIndustryData($industry) { $data = []; switch ($industry) { case 'saas': $data['growth'] = [2.6, 3.5, 4.5]; $data['description'] = "SaaS: Software as a Service (SaaS) allows users to connect to and use cloud-based apps over the Internet. Common examples include email, calendaring, and office tools like Microsoft Office 365. SaaS provides a complete software solution that you purchase on a pay-as-you-go basis from a cloud service provider. The underlying infrastructure, middleware, app software, and app data are located in the service provider's data center. The service provider manages the hardware and software, ensuring the availability and security of the app and your data. SaaS enables organizations to get quickly up and running with an app at minimal upfront cost. Users can access SaaS apps and data from any Internet-connected computer or mobile device, making it easy to mobilize the workforce. SaaS also allows access to sophisticated applications without the need to purchase, install, update, or maintain any hardware, middleware, or software."; break; case 'retail': $data['growth'] = [1.2, 1.5, 1.8]; $data['description'] = "Retail: Retail is the process of selling goods or services directly to consumers for personal use. It encompasses a wide range of businesses, from small local shops to large multinational corporations and online marketplaces. Retailers act as intermediaries between manufacturers and customers, making products easily accessible through physical stores, e-commerce platforms, or a combination of both. The industry is highly dynamic and customer-centric, relying on marketing strategies, competitive pricing, and technological advancements to enhance the shopping experience. With the rise of digital transformation, online shopping, personalized recommendations, and automation have become integral to modern retail. Businesses are also focusing on sustainability and ethical practices to meet changing consumer demands. The retail landscape continues to evolve, adapting to trends such as omnichannel retailing, direct-to-consumer brands, and AI-driven customer engagement."; break; case 'technology': $data['growth'] = [5.0, 5.8, 6.7]; $data['description'] = "Technology:Technology refers to the application of scientific knowledge to create practical tools and systems, fundamentally shaping how we live, work, and communicate today. From smartphones in our pockets to advanced medical devices, technology has revolutionized various sectors like healthcare, transportation, and education, making information readily accessible and tasks more efficient. While offering immense benefits, ethical considerations regarding data privacy and potential job displacement due to automation remain important aspects to manage in the evolving technological landscape."; break; case 'finance': $data['growth'] = [2.2, 2.8, 3.3]; $data['description'] = "Finance: Finance is a term that addresses matters regarding the management, creation, and study of money and investments. It involves the use of credit and debt, securities, and investment to finance current projects using future income flows. Finance is closely linked to the time value of money, interest rates, and other related topics because of this temporal aspect."; break; case 'healthcare': $data['growth'] = [3.5, 4.1, 4.8]; $data['description'] = "Healthcare: Healthcare encompasses services aimed at maintaining and improving health, including prevention, diagnosis, treatment, and rehabilitation of illnesses and injuries, delivered by healthcare professionals. It's a fundamental need, crucial for a healthy and productive society, and can significantly impact a country's economy and development."; break; case 'manufacturing': $data['growth'] = [1.8, 2.1, 2.4]; $data['description'] = "Manufacturing: Manufacturing is the process of producing goods by transforming raw materials into finished products using labor, tools, machinery, and chemical or biological processes. It plays a critical role in various industries, including automotive, electronics, textiles, and food production. Manufacturers create products on a large scale, often using standardized procedures, in order to meet market demands."; break; case 'education': $data['growth'] = [2.0, 2.3, 2.6]; $data['description'] = "Education:Education is the process of acquiring knowledge, skills, values, and attitudes through various methods, such as formal schooling, training, or self-learning. It aims to equip individuals with the ability to think critically, solve problems, and contribute effectively to society. Education can take place in various settings, including schools, colleges, universities, online platforms, and through informal means like mentorship or community learning. It is fundamental for personal development, social mobility, and economic progress."; break; case 'construction': $data['growth'] = [1.5, 1.7, 1.9]; $data['description'] = "Construction: Construction is the process of building infrastructure, buildings, and other structures. It involves planning, design, and execution using various materials and techniques."; break; case 'transportation': $data['growth'] = [1.9, 2.2, 2.5]; $data['description'] = "Transportation: Transportation is the movement of people, goods, and services from one location to another. It plays a crucial role in economic development, trade, and daily life. The main modes of transportation include road, rail, air, water, and pipeline. Road transportation includes cars, buses, and trucks, making it the most widely used mode. Rail transportation is efficient for moving heavy goods and passengers over long distances. Air transportation is the fastest but also the most expensive mode. Water transportation is mainly used for shipping large goods internationally. Pipelines are used for transporting liquids and gases like oil and natural gas. Advancements in technology have improved transportation efficiency and sustainability. Future developments focus on electric vehicles, high-speed trains, and smart transportation systems."; break; case 'energy': $data['growth'] = [2.3, 2.6, 2.9]; $data['description'] = "Energy: Energy is the ability to do work and is essential for all activities in daily life. It exists in various forms, including kinetic, potential, thermal, chemical, electrical, and nuclear energy. The two main types of energy sources are renewable and non-renewable. Renewable energy sources include solar, wind, hydro, and geothermal, which are sustainable and environmentally friendly. Non-renewable sources, such as coal, oil, and natural gas, are limited and contribute to pollution. Energy is crucial for industries, transportation, and households. Efficient energy use helps reduce waste and environmental impact. Advances in technology are promoting cleaner and more efficient energy solutions. The future of energy lies in sustainability and innovation to meet growing global demands."; break; case 'agriculture': $data['growth'] = [1.0, 1.2, 1.4]; $data['description'] = "Agriculture: Agriculture is the practice of cultivating crops and raising livestock for food, fiber, and other products. It is one of the oldest human activities and remains essential for survival and economic development. There are different types of agriculture, including subsistence farming, commercial farming, organic farming, and agroforestry. Modern agriculture relies on technology, irrigation, fertilizers, and machinery to increase productivity. Sustainable farming practices help protect soil, water, and biodiversity. Livestock farming provides meat, dairy, and wool, while crop farming produces grains, vegetables, and fruits. Climate change and resource depletion pose challenges to agriculture. Innovations like vertical farming and precision agriculture improve efficiency. The future of agriculture focuses on sustainability, automation, and food security."; break; case 'media': $data['growth'] = [2.8, 3.1, 3.4]; $data['description'] = "Media: Media is the means of communication used to disseminate information, entertainment, and messages to a wide audience. It plays a significant role in shaping public perception, influencing opinions, and connecting people across the world. Traditionally, media included newspapers, magazines, radio, and television, which were the primary sources of news and entertainment. With the rise of the internet, digital media has transformed the way content is created and consumed, making information more accessible and interactive. Social media platforms have further revolutionized communication by allowing individuals to share their thoughts, opinions, and experiences instantly. The media industry also serves as a powerful tool for businesses, governments, and organizations to market their products, convey messages, and engage with their audiences. As technology continues to evolve, media is becoming more personalized, data-driven, and immersive, shaping the way people interact with content in their daily lives."; break; case 'telecommunications': $data['growth'] = [3.2, 3.5, 3.8]; $data['description'] = "Telecommunications: Telecommunications refers to the transmission of information over long distances through electronic means, enabling communication between individuals, businesses, and systems. It includes technologies such as telephone networks, mobile communications, radio, television, and the internet. Over time, telecommunications has evolved from traditional wired systems like telegraphs and landline phones to advanced wireless technologies, including fiber optics, satellite communication, and 5G networks. The industry plays a crucial role in modern society by facilitating instant communication, supporting global business operations, and enabling access to information and digital services. With the rise of smartphones and high-speed internet, telecommunications has become an essential part of daily life, driving innovations in cloud computing, artificial intelligence, and the Internet of Things (IoT). As technology continues to advance, the sector is focused on improving connectivity, increasing data speeds, and enhancing security to meet the growing demands of an interconnected world."; break; case 'real estate': $data['growth'] = [1.7, 2.0, 2.3]; $data['description'] = "Real Estate: As per the definition of Real Estate Investment Advisory Services, real estate refers to physical property encompassing land and any permanent structures or constructions built above or below it. This includes everything from residential homes and commercial buildings to infrastructure and developments that enhance the value of the land. In essence, real estate is any tangible asset tied to the land."; break; case 'hospitality': $data['growth'] = [2.1, 2.4, 2.7]; $data['description'] = "Hospitality: Hospitality is the relationship of a host towards a guest, wherein the host receives the guest with some amount of goodwill and welcome. This includes the reception and entertainment of guests, visitors, or strangers. Louis, chevalier de Jaucourt describes hospitality in the EncyclopΓ©die as the virtue of a great soul that cares for the whole universe through the ties of humanity.[4] Hospitality is also the way people treat others, for example in the service of welcoming and receiving guests in hotels. Hospitality plays a role in augmenting or decreasing the volume of sales of an organization."; break; case 'pharmaceuticals': $data['growth'] = [3.8, 4.2, 4.6]; $data['description'] = "Pharmaceuticals refer to medicines and drugs used for the diagnosis, treatment, and prevention of diseases. The pharmaceutical industry researches, develops, manufactures, and distributes medications to improve health and well-being. There are two main types of drugs: prescription medications, which require a doctor's approval, and over-the-counter (OTC) drugs, which can be purchased without a prescription. Pharmaceutical research involves drug discovery, clinical trials, and regulatory approvals to ensure safety and effectiveness. Biotechnology and genetic research have led to advancements in personalized medicine. The industry is regulated by organizations like the FDA (USA) and WHO globally. Generic drugs provide affordable alternatives to brand-name medications. The pharmaceutical sector plays a vital role in global healthcare. Ongoing innovations focus on vaccines, gene therapy, and drug delivery systems."; break; case 'automotive': $data['growth'] = [1.6, 1.9, 2.2]; $data['description'] = "Automotive: The automotive industry focuses on designing, manufacturing, and selling vehicles such as cars, trucks, motorcycles, and buses. It is one of the largest industries in the world, driving economic growth and technological advancements. Automobiles are powered by various energy sources, including gasoline, diesel, electricity, and hydrogen. Modern vehicles incorporate advanced safety features, automation, and smart technology. Electric and hybrid cars are gaining popularity due to environmental concerns and fuel efficiency. The industry is shifting towards autonomous vehicles and sustainable transportation solutions. Major automotive companies include Toyota, Ford, BMW, and Tesla. Regular vehicle maintenance ensures performance, safety, and longevity. Innovations in materials and aerodynamics improve fuel efficiency and reduce emissions. The future of the automotive industry focuses on automation, connectivity, and sustainability."; break; case 'aerospace': $data['growth'] = [2.5, 2.8, 3.1]; $data['description'] = "Aerospace:Aerospace is a term used to collectively refer to the atmosphere and outer space. Aerospace activity is very diverse, with a multitude of commercial, industrial, and military applications. Aerospace engineering consists of aeronautics and astronautics. Aerospace organizations research, design, manufacture, operate, maintain, and repair both aircraft and spacecraft.The beginning of space and the ending of the air are proposed as 100km (62mi) above the ground according to the physical explanation that the air density is too low for a lifting body to generate meaningful lift force without exceeding orbital velocity"; break; case 'chemical': $data['growth'] = [1.4, 1.7, 2.0]; $data['description'] = "Chemical: A chemical is any substance with a defined composition, meaning it's made up of specific elements in a set ratio, giving it unique properties. Chemicals can be naturally occurring like water (H2O) or man-made like plastics. They can exist as single elements (like oxygen) or compounds (like sodium chloride, common salt). Chemical reactions occur when chemicals interact, rearranging their atoms to form new substances, often accompanied by changes in temperature, color, or state. Understanding chemistry, the study of chemicals, is crucial for fields like medicine, materials science, and environmental protection, allowing us to develop new technologies and solve complex problems."; break; case 'mining': $data['growth'] = [1.1, 1.3, 1.5]; $data['description'] = "Mining: Mining is the extraction of valuable geological materials and minerals from the surface of the Earth. Mining is required to obtain most materials that cannot be grown through agricultural processes, or feasibly created artificially in a laboratory or factory. Ores recovered by mining include metals, coal, oil shale, gemstones, limestone, chalk, dimension stone, rock salt, potash, gravel, and clay. The ore must be a rock or mineral that contains valuable constituent, can be extracted or mined and sold for profit.[1] Mining in a wider sense includes extraction of any non-renewable resource such as petroleum, natural gas, or even water."; break; case 'insurance': $data['growth'] = [2.9, 3.2, 3.5]; $data['description'] = "Insurance: Insurance is a means of protection from financial loss in which, in exchange for a fee, a party agrees to compensate another party in the event of a certain loss, damage, or injury. It is a form of risk management, primarily used to protect against the risk of a contingent or uncertain loss."; break; case 'consulting': $data['growth'] = [3.3, 3.6, 3.9]; $data['description'] = "Consulting:Consulting is a professional service that provides expert advice, guidance, and solutions to businesses, organizations, and individuals to help them improve performance, solve problems, and achieve their goals. Consultants are specialists in their fields, offering insights based on industry experience, research, and analysis. Consulting can cover various areas, including management, finance, technology, marketing, human resources, and strategy. Firms and independent consultants work closely with clients to assess challenges, develop strategies, and implement changes that drive growth and efficiency. The industry plays a vital role in helping businesses navigate market changes, optimize operations, and adopt new technologies. With the rise of digital transformation, consulting has evolved to include data-driven decision-making, automation, and AI-driven insights, making it an essential service for organizations seeking to stay competitive in a rapidly changing world."; break; case 'logistics': $data['growth'] = [2.7, 3.0, 3.3]; $data['description'] = "Logistics: Logistics is the part of supply chain management that deals with the efficient forward and reverse flow of goods, services, and related information from the point of origin to the point of consumption according to the needs of customers.[2][3] Logistics management is a component that holds the supply chain together.[3] The resources managed in logistics may include tangible goods such as materials, equipment, and supplies, as well as food and other consumable items."; break; case 'utilities': $data['growth'] = [1.3, 1.6, 1.9]; $data['description'] = "Utilities: Utilities refer to essential services that provide basic infrastructure necessary for daily life, including electricity, water, natural gas, and telecommunications. These services are typically managed by government entities, private companies, or a combination of both, ensuring that homes, businesses, and industries have access to reliable resources. The utility sector plays a crucial role in economic development and public welfare by maintaining and upgrading infrastructure, managing supply and demand, and adopting sustainable practices. With the growing focus on renewable energy, smart grids, and water conservation, the industry is evolving to integrate advanced technologies and environmentally friendly solutions. As consumer needs change and regulatory requirements increase, utility providers continue to innovate to enhance efficiency, reduce costs, and improve service reliability."; break; case 'textiles': $data['growth'] = [1.2, 1.4, 1.6]; $data['description'] = "Textiles: Textiles refer to materials made from natural or synthetic fibers that are woven, knitted, or processed to create fabrics used in clothing, home furnishings, industrial applications, and more. The textile industry encompasses the production of raw fibers like cotton, wool, silk, and polyester, as well as processes such as spinning, dyeing, printing, and finishing. Over time, the industry has evolved with technological advancements, leading to the development of high-performance fabrics, sustainable textiles, and smart materials with enhanced properties like water resistance and breathability. Fashion, interior design, and manufacturing heavily rely on textiles, making the industry a significant contributor to global trade and employment. With increasing concerns about sustainability, there is a growing emphasis on eco-friendly materials, ethical production methods, and recycling initiatives to reduce environmental impact while maintaining innovation and quality in textile manufacturing."; break; default: $data['growth'] = [3.0, 3.3, 3.7]; $data['description'] = "General industry trends indicate steady growth across various sectors, driven by technological advancements, evolving consumer preferences, and global economic expansion. Industries such as technology, healthcare, renewable energy, and e-commerce are experiencing rapid innovation, while traditional sectors like manufacturing and retail are adapting to digital transformation and automation. The increasing focus on sustainability, artificial intelligence, and data-driven decision-making is reshaping business models, leading to greater efficiency and competitiveness. Additionally, globalization and supply chain advancements have enabled businesses to expand their reach, while shifting workforce dynamics, such as remote work and gig economies, are influencing employment patterns. Despite occasional economic uncertainties and regulatory challenges, industries continue to evolve, leveraging new opportunities to maintain consistent and sustainable growth."; break; } return $data; } $industryData = getIndustryData($industry); $chartData = [ 'labels' => ['2021', '2022', '2023'], 'datasets' => [ [ 'label' => $user['industry'] . ' Industry Growth (USD Billion)', 'data' => $industryData['growth'], 'backgroundColor' => ['rgba(75, 192, 192, 0.2)', 'rgba(54, 162, 235, 0.2)', 'rgba(255, 206, 86, 0.2)'], 'borderColor' => ['rgba(75, 192, 192, 1)', 'rgba(54, 162, 235, 1)', 'rgba(255, 206, 86, 1)'], 'borderWidth' => 1, ] ], ]; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Industry Insights</title> <link rel="stylesheet" href="style.css"> <style> .persona-container { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; background: #f8f9fa; padding: 15px; border-radius: 8px; } .avatar-image { width: 75px; /* Passport photo size */ height: 75px; /* Passport photo size */ border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .persona-content { flex: 1; font-size: 14px; line-height: 1.5; } .container { width: 50%; margin: auto; padding: 20px; background: #f4f4f4; border-radius: 10px; box-shadow: 0px 0px 10px gray; } input, textarea { width: 100%; padding: 10px; margin: 5px 0; border-radius: 5px; border: 1px solid #ccc; } button { background: #28a745; color: white; padding: 10px; border: none; width: 100%; border-radius: 5px; cursor: pointer; } button:hover { background: #218838; } .persona-container { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; background: #f8f9fa; padding: 15px; border-radius: 8px; } .avatar-image { width: 35px; /* Passport photo size */ height: 35px; /* Passport photo size */ border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .persona-content { flex: 1; font-size: 14px; line-height: 1.5; } @media screen and (max-width:540px) { .container { width: 100% !important; margin: auto; padding: 20px; background: #f4f4f4; border-radius: 10px; box-shadow: 0px 0px 10px gray; } } </style> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> </head> <body> <div class="container"> <canvas id="myChart" width="400" height="200"></canvas> <h2>Industry Analysis: <?= htmlspecialchars($user['industry']) ?></h2> <p><strong>Industry Description:</strong></p> <p><?= htmlspecialchars($industryData['description']) ?></p> <h2>Generated Persona</h2> <p><?= $persona_text ?></p> <h2>Industry Report</h2> <p><?= $industry_report_text ?></p> <!-- <a href="index.html">Go Back</a> --> </div> <script> const chartData = <?php echo json_encode($chartData); ?>; const ctx = document.getElementById('myChart').getContext('2d'); const myChart = new Chart(ctx, { type: 'bar', data: chartData, options: { scales: { y: { beginAtZero: true } }, plugins: { title: { display: true, text: chartData.datasets[0].label, }, legend: { display: true, }, } } }); </script> </body> </html>