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: zgemini.php
Close
<?php $servername = "139.59.38.164"; $username = "root"; $password = "newstart"; $dbname = "creamnow"; $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 users WHERE email='$email'") or die("Database Error: " . $conn->error); $user = $result->fetch_assoc(); $conn->close(); if (!$user) { die("β No user data found in the database."); } // Generate persona from user data // Generate persona from user data $personaInput = "Product: " . $user['product'] . "\nChallenges: " . $user['challenges'] . "\nConversation: " . $user['conversation'] . "\nAssets: " . $user['assets'] . "\nSocial Media: " . $user['social_media'] . "\nGenerate a persona with Indian names and cultural context. Format the output for easy reading. Use bold tags for headings."; $industryReportInput = "Product: " . $user['product'] . "\nIndustry: " . $user['industry'] . "\nAssets: " . $user['assets'] . "\nSocial Media: " . $user['social_media'] . "\nBased on the industry, create a report on where the business stands today."; $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']; $persona_text = str_replace(["<br />\r\n", "<br />\n", "<br />"], "", $persona_text); } } // 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']; $industry_report_text = str_replace(["<br />\r\n", "<br />\n", "<br />"], "", $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"); } $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: Sales of goods to consumers, online and offline."; break; case 'technology': $data['growth'] = [5.0, 5.8, 6.7]; $data['description'] = "Technology: Software, hardware, and IT services."; break; case 'finance': $data['growth'] = [2.2, 2.8, 3.3]; $data['description'] = "Finance: Banking, investment, and financial services."; break; case 'healthcare': $data['growth'] = [3.5, 4.1, 4.8]; $data['description'] = "Healthcare: Medical services, pharmaceuticals, and equipment."; break; case 'manufacturing': $data['growth'] = [1.8, 2.1, 2.4]; $data['description'] = "Manufacturing: Production of goods, industrial processes."; break; case 'education': $data['growth'] = [2.0, 2.3, 2.6]; $data['description'] = "Education: Schools, universities, and online learning."; break; case 'construction': $data['growth'] = [1.5, 1.7, 1.9]; $data['description'] = "Construction: Building and infrastructure projects."; break; case 'transportation': $data['growth'] = [1.9, 2.2, 2.5]; $data['description'] = "Transportation: Logistics, shipping, and travel."; break; case 'energy': $data['growth'] = [2.3, 2.6, 2.9]; $data['description'] = "Energy: Oil, gas, renewable energy sources."; break; case 'agriculture': $data['growth'] = [1.0, 1.2, 1.4]; $data['description'] = "Agriculture: Farming, livestock, and food production."; break; case 'media': $data['growth'] = [2.8, 3.1, 3.4]; $data['description'] = "Media: Entertainment, publishing, and broadcasting."; break; case 'telecommunications': $data['growth'] = [3.2, 3.5, 3.8]; $data['description'] = "Telecommunications: Mobile, internet, and communication services."; break; case 'real estate': $data['growth'] = [1.7, 2.0, 2.3]; $data['description'] = "Real Estate: Property sales, rentals, and development."; break; case 'hospitality': $data['growth'] = [2.1, 2.4, 2.7]; $data['description'] = "Hospitality: Hotels, restaurants, and tourism."; break; case 'pharmaceuticals': $data['growth'] = [3.8, 4.2, 4.6]; $data['description'] = "Pharmaceuticals: Drug manufacturing and research."; break; case 'automotive': $data['growth'] = [1.6, 1.9, 2.2]; $data['description'] = "Automotive: Vehicle manufacturing and sales."; break; case 'aerospace': $data['growth'] = [2.5, 2.8, 3.1]; $data['description'] = "Aerospace: Aviation and space exploration."; break; case 'chemical': $data['growth'] = [1.4, 1.7, 2.0]; $data['description'] = "Chemical: Production of chemical products."; break; case 'mining': $data['growth'] = [1.1, 1.3, 1.5]; $data['description'] = "Mining: Extraction of minerals and resources."; break; case 'insurance': $data['growth'] = [2.9, 3.2, 3.5]; $data['description'] = "Insurance: Risk management and financial protection."; break; case 'consulting': $data['growth'] = [3.3, 3.6, 3.9]; $data['description'] = "Consulting: Business advisory and strategic planning."; break; case 'logistics': $data['growth'] = [2.7, 3.0, 3.3]; $data['description'] = "Logistics: Supply chain management and distribution."; break; case 'utilities': $data['growth'] = [1.3, 1.6, 1.9]; $data['description'] = "Utilities: Water, electricity, and gas services."; break; case 'textiles': $data['growth'] = [1.2, 1.4, 1.6]; $data['description'] = "Textiles: Production of fabrics and clothing."; break; default: $data['growth'] = [3.0, 3.3, 3.7]; $data['description'] = "General industry trends show steady 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> .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; } </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><?= nl2br(htmlspecialchars($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>