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: account.php
Close
<!doctype html> <? include './assets/php/db_connect.php'; include './assets/php/db_config.php'; include './assets/php/config.php'; include './assets/php/validate.logged.php'; include './assets/php/function.php'; function getPlanEndInDays($endDate) { $currentDate = new DateTime(); $endDateObj = new DateTime($endDate); $diff = $currentDate->diff($endDateObj); $daysLeft = $diff->days; if ($currentDate > $endDateObj) { return "The plan has already ended."; } return $daysLeft; } function getIdByUserId($userId, $conn) { // Prepare the SQL statement with parameter binding to prevent SQL injection $stmt = $conn->prepare("SELECT referrer_id FROM referral_info WHERE referred_id = ?"); // Bind the user_id parameter $stmt->bind_param("s", $userId); // Execute the statement $stmt->execute(); // Get the result $result = $stmt->get_result(); // If a row was found, return the id if ($row = $result->fetch_assoc()) { return $row['referrer_id']; } // Return null if no matching user_id was found return null; } function show_pro_details() { global $creamdb, $gUserId; $end_time_left = ''; // Prepare the SQL query $sql = "SELECT * FROM cream_subscription WHERE userId = ? ORDER BY end_date DESC"; if ($stmt = $creamdb->prepare($sql)) { $stmt->bind_param("i", $gUserId); if ($stmt->execute()) { $result = $stmt->get_result(); if ($result->num_rows > 0) { ?> <table> <thead> <tr> <th>Plan</th> <!-- <th>Plan Type</th> --> <th>Started On</th> <th>Ends On</th> </tr> </thead> <tbody> <?php while ($row = $result->fetch_assoc()) { $end_time_left = ($end_time_left == '') ? $row['end_date'] : $end_time_left; ?> <tr> <td><?= $row['plan'] ?></td> <!-- <td><?= $row['plan_type'] ?></td> --> <td><?= date('d M, Y h:i a', strtotime($row['start_date'])) ?></td> <td><?= date('d M, Y h:i a', strtotime($row['end_date'])) ?></td> </tr> <?php } ?> </tbody> </table> <p><strong>Your Plan Ends in :</strong> <?= getPlanEndInDays($end_time_left) ?> Days!!</p> <?php } } } } $specialIds = [370, 415]; $act = ''; if (!empty($_POST)) $act = isset($_POST["act"]) ? $_POST["act"] : ''; // Check if already exists on update if ($act == 'chkExist') { $chkEmail = isset($_POST['email']) ? $_POST['email'] : ''; $sql = "SELECT id FROM user WHERE email='$chkEmail' AND id<>$gUserId"; $result = mysqli_query($db, $sql); $numRows = mysqli_num_rows($result); if ($numRows == 0) { echo 'OK'; } } // Update Profile if ($act == 'updateProfile') { $userName = isset($_POST['userName']) ? $_POST['userName'] : ''; $userEmail = isset($_POST['userEmail']) ? $_POST['userEmail'] : ''; $userCompany = isset($_POST['userCompany']) ? $_POST['userCompany'] : ''; $userCategoryId = isset($_POST['userCategoryId']) ? $_POST['userCategoryId'] : 0; $userWebsite = isset($_POST['userWebsite']) ? $_POST['userWebsite'] : ''; $userBio = isset($_POST['userBio']) ? $_POST['userBio'] : ''; // Basic phone number validation (digits only, 10-15 characters) $countryCode = isset($_POST['countryCode']) ? trim($_POST['countryCode']) : ''; $localPhone = isset($_POST['userPhone']) ? trim($_POST['userPhone']) : ''; $localPhone = ltrim(str_replace([' ', '-'], '', $localPhone), '0'); // Validation if (!preg_match('/^\d{7,15}$/', $localPhone)) { echo "Invalid local phone number."; exit; } if (!preg_match('/^\+\d{1,4}$/', $countryCode)) { echo "Invalid country code."; exit; } // Store both separately // Save $countryCode to `country_code` column // Save $localPhone to `user_phone` column if ($userName != '' && $userEmail != '') { $sql = "UPDATE user SET full_name = '$userName', email = '$userEmail', phone_no = '$localPhone', country_code = '$countryCode', company = '$userCompany', category_id = $userCategoryId, website = '$userWebsite', bio = '$userBio', date_modified = NOW() WHERE id = $gUserId"; mysqli_query($db, $sql); echo "OK"; } } // Update Password if ($act == 'updatePass') { $userPassCurrent = isset($_POST['userPassCurrent']) ? $_POST['userPassCurrent'] : ''; $userPassNew = isset($_POST['userPassNew']) ? $_POST['userPassNew'] : ''; if ($userPassCurrent != '' && $userPassNew != '') { $sql = "SELECT id FROM user WHERE id=$gUserId AND password='$userPassCurrent'"; $result = mysqli_query($db, $sql); $numRows = mysqli_num_rows($result); if ($numRows == 0) { echo "IncorrectPassword"; die(); } $sql = "UPDATE user SET password='$userPassNew',date_modified=Now() WHERE id=$gUserId"; mysqli_query($db, $sql); echo "OK"; } } $referralCode = getIdByUserId($gUserId, $creamdb); // Default if ($act == '') { ?> <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> <!-- jQuery --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <!-- Animate.css (Latest Version) --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" /> <!-- Custom Styles --> <link rel="stylesheet" href="/assets/old/style.css" /> <link rel="stylesheet" href="/assets/css/styles.css" /> <!-- Favicon --> <link rel="icon" type="image/x-icon" href="/img/logo.ico"> <!-- Bootstrap 4.5.2 (Update to 5 if needed) --> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"> <!-- Optional: Latest Bootstrap 5.3.0 (if upgrading to Bootstrap 5) --> <!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"> --> <!-- Cropper.js CSS --> <link href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.13/cropper.min.css" rel="stylesheet"> <!-- Cropper.js JS --> <script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.13/cropper.min.js"></script> <style> body { color: #fff; font-family: Arial, sans-serif; } .profile-pic { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; } .btn-custom { background-color: #db5919; color: #fff; border: 1px solid #6c757d; padding: 5px 10px; border-radius: 5px; cursor: pointer; transition: background-color 0.3sease; margin-left: 15px; } .btn-custom:hover { background-color: #db5919; /* Darker shade for hover effect */ padding: 10px 20px; border-radius: 5px; color: white; } .btn-primary { padding: 10px 20px; border-radius: 5px; } #imageContainer { width: 100% !important; } #uploadForm { color: #fff; } .modal-title { color: #fff; } #uploadForm { color: #000; } .modal-title { color: #000; } .modal-content { background-color: #dfe3ee !important; } .form-control { background-color: #fff !important; color: #000 !important; } .btn-close { color: #000 !important; } /* Set fixed size for the cropper container */ .cropper-container { margin: 0 auto; /* Center the container if necessary */ position: relative; /* Ensure proper positioning of the image */ } /* Optional: Style the cropper's background (use for debugging if needed) */ .cropper-bg { background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */ } </style> <style> #zf-widget-root-id { padding: 20px; } .btn-spacing { margin-right: 10px; /* Adjust as needed */ } .newsroll-dropdown { border: none; outline: none; position: relative; display: inline-block; /* display: flex; */ align-items: center; padding-left: 8px; /* border: none; */ padding-bottom: 8px; } .newsroll-dropbtn { border: none; color: rgba(255, 255, 255, 0.5); background-color: #212529; } .newsroll-dropbtn:focus { border: none; outline: none; } .newsroll-dropdown-content { display: none; outline: none; position: relative; background-color: #212529; min-width: 160px; /* box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); */ /* z-index: 1; */ } .newsroll-dropdown-content a { color: white; padding: 12px 16px; text-decoration: none; display: block; } .show { display: block; } .tab-container { overflow-x: auto; white-space: nowrap; padding: 10px 0; /* Add some padding for spacing */ border-radius: 5px; /* Optional: rounded corners for the container */ } .nav-tabs { display: inline-flex; flex-wrap: nowrap; } .nav-btn { display: flex; align-items: center; justify-content: center; padding: 10px 20px; /* Padding for tabs */ font-size: 14px; font-weight: 500; color: #333; /* Default text color */ background-color: #e0e0e0; /* Background color for inactive tabs */ border: 1px solid #ccc; /* Button border */ border-radius: 5px; /* Rounded corners for inactive tabs */ margin-right: 5px; /* Space between tabs */ transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */ } /* Active Tab Styling */ .nav-btn.active { border-bottom: 3px solid #db5919; /* Active tab underline color */ background-color: #007bff; /* Active tab background color */ color: white; /* Active tab text color */ } /* Hover Effect for Inactive Tabs */ .nav-btn:hover { background-color: #007bff; /* Background color on hover */ color: white; /* Text color on hover */ transform: scale(1.05); /* Slightly enlarge on hover */ } .nav-btn { color: #ebedf2; /* Light text color in dark mode */ background-color: #444; /* Dark background for inactive tabs */ border-color: #666; /* Darker border color */ } .nav-btn.active { background-color: #db5919; /* Dark mode active tab background color */ color: white; /* White text on active tab in dark mode */ border-bottom: 3px solid #db5919; /* Active tab border color in dark mode */ } /* Apply scrollable tabs for smaller screens */ @media (max-width: 768px) { /* Adjust the max-width as needed for your breakpoint */ .tab-container { overflow-x: auto; display: block; } .nav-tabs { flex-wrap: nowrap; -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */ scroll-behavior: smooth; /* Smooth scrolling for other browsers */ } .nav-item { display: inline-block; } } /* General adjustments for responsiveness */ .main-content { margin-left: 10px; margin-right: 10px; margin-bottom: 50px; } /* Tab container adjustments for smaller screens */ @media (max-width: 768px) { .tab-container { overflow-x: auto; white-space: nowrap; display: flex; flex-wrap: nowrap; padding: 5px 0; /* Reduced padding for smaller screens */ } .nav-tabs { flex-wrap: nowrap; -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */ scroll-behavior: smooth; /* Smooth scrolling for other browsers */ } .nav-btn { padding: 8px 10px; /* Smaller padding for mobile */ font-size: 12px; /* Adjust font size for readability */ margin-right: 3px; /* Reduce spacing between tabs */ } .nav-btn.active { border-bottom: 2px solid #db5919; /* Thinner underline for active tabs */ } } /* Responsive dropdown adjustments */ @media (max-width: 768px) { .newsroll-dropdown { width: 100%; /* Make dropdown full width for smaller screens */ text-align: center; } .main-content { /* padding-top: 30px; */ } .newsroll-dropdown-content { min-width: 100%; /* Ensure dropdown items fit the screen width */ border-radius: 0; /* Remove rounded corners for a cleaner look */ } .newsroll-dropbtn { width: 100%; padding: 10px 0; /* Adjust padding for better tap targets */ } } /* Responsive table adjustments */ @media (max-width: 768px) { .table-bordered, .table-striped { font-size: 12px; /* Smaller text for tables */ overflow-x: auto; /* Enable horizontal scrolling for wide tables */ } } /* Button adjustments for smaller screens */ @media (max-width: 768px) { .btn-spacing { margin-right: 5px; /* Reduce spacing between buttons */ font-size: 12px; /* Smaller font for buttons */ } .btn-primary { padding: 8px 12px; /* Smaller padding for mobile */ } } @media (min-width: 1440px) { .main-content { margin-left: 220px; /* Increased margin for large laptop/desktop screens */ margin-right: 220px; } } </style> <style> .zf-widget-root-id { display: flex; justify-content: space-between; /* Add space between the cards */ gap: 20px; } .card-container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; width: 100%; } .card { width: 48%; /* Ensures both cards fit side by side */ background-color: #fff; border: 1px solid #e3e3e3; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); padding: 20px; box-sizing: border-box; margin-bottom: 20px; /* Adds space at the bottom */ } .plan-dropdown { width: 100px; margin-bottom: 20px; padding: 5px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; } .card-content { text-align: center; } .plan-title { font-size: 20px; color: #007bff; margin-bottom: 10px; } .plan-price { font-size: 36px; font-weight: bold; color: #333; margin: 0; } .plan-subtext { font-size: 14px; color: #777; margin-top: 5px; margin-bottom: 20px; } .plan-description { font-size: 14px; color: #333; text-align: left; margin-bottom: 20px; } .checkmark { color: #ff9900; font-weight: bold; } .upgrade-button { width: 100%; padding: 10px 0; background-color: #007bff; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } .upgrade-button:hover { background-color: #0056b3; } /* Responsive Styles */ @media (max-width: 768px) { .card { width: 100%; /* On smaller screens, make each card take full width */ } .zf-widget-root-id { flex-direction: column; /* Stack cards vertically on smaller screens */ } } #userBio { height: 80px; } @media screen and (min-width:768px) { .main-content { /* padding-top: 90px; */ } } </style> <style> /* General Table Styles */ table { width: 100%; border-collapse: collapse; margin: 20px 0; font-family: Arial, sans-serif; } th, td { padding: 12px 15px; text-align: left; border: 1px solid #ddd; } th { background-color: #db5919; color: white; font-weight: bold; } tr:nth-child(even) { background-color: #f2f2f2; } tr:hover { background-color: #ddd; } td { font-size: 14px; } tr { color: #000; } .col-md-6 { max-width: 100% !important; } </style> <!-- jQuery (v3.6.0) --> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <!-- Chart.js (Latest Version) --> <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js" crossorigin="anonymous"></script> <!-- TinyMCE (Latest Version) --> <script src="https://cdn.tiny.cloud/1/u5oz235qw5jiqww4udm90ocp9zg2rncblqo2ch0ym3twjgyt/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script> <!-- ZOHO Widget Script --> <script src="https://js.zohostatic.com/books/zfwidgets/assets/js/zf-widget.js"></script> <!-- Custom Scripts --> <script src="/assets/js/common.js"></script> <!-- Bootstrap Bundle with Popper.js (for Bootstrap JS functionality) --> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <!-- Include Cropper.js JS --> <script> $(document).ready(function() { let cropper; // Handle file input change $("#fileInput").on("change", function(event) { const file = event.target.files[0]; if (file) { // Show image container and crop button (we no longer need the crop button) $("#imageContainer").show(); const reader = new FileReader(); reader.onload = function(e) { // Set the image source for preview $("#imagePreview").attr("src", e.target.result); // Use jQuery to get the image element const $image = $("#imagePreview")[0]; // jQuery selector with [0] to get the DOM element // Set the width and height for the image dynamically const desiredWidth = 600; // Set your desired width here const desiredHeight = 400; // Set your desired height here // Set the image's width and height $image.width = desiredWidth; $image.height = desiredHeight; // Initialize the Cropper instance once the image is loaded if (cropper) { cropper.destroy(); // Destroy the previous instance if any } // Initialize the Cropper with the desired settings (allow zooming out) cropper = new Cropper($image, { aspectRatio: 1, // Aspect ratio (1:1 for square crop) viewMode: 2, // Ensures image is contained within the canvas (image scaling to fit) autoCropArea: 0.8, // Area to crop initially movable: true, // Allow image move zoomable: true, // Allow zooming (both in and out) rotatable: true, // Allow rotation scalable: true, // Allow scaling cropBoxResizable: true, // Allow resizing the crop box (this will resize the image area) minContainerWidth: 300, // Minimum width of the container minContainerHeight: 300, // Minimum height of the container minZoom: 0.5, // Allow zooming out (min zoom set to 0.5, allowing zoom-out) maxZoom: 3, // Optional: Limit zoom-in to 3x the image size (default is 1) ready: function() { // Set initial size of crop box, but the crop box will resize const cropBoxData = cropper.getCropBoxData(); cropper.setCropBoxData({ left: cropBoxData.left, top: cropBoxData.top, width: 300, // Set max crop box size height: 300 // Set max crop box size }); }, // Allow the crop box resizing to a max of 300x300px cropBoxMinWidth: 50, // Min size of the crop box cropBoxMinHeight: 50, // Min size of the crop box cropBoxMaxWidth: 300, // Max size of the crop box cropBoxMaxHeight: 300, // Max size of the crop box crop: function(event) { // This function will no longer be used for cropping, but it can be left empty. } }); }; reader.readAsDataURL(file); } }); // Handle saving profile changes directly when the "Save Profile" button is clicked $("#saveProfileBtn").on("click", function() { if (cropper) { const $button = $(this); const originalText = $button.text(); // Disable the button and show "Processing..." $button.prop("disabled", true).text("Processing..."); const canvas = cropper.getCroppedCanvas(); const imageData = canvas.toDataURL("image/png"); $("#uploadForm").append(`<input type="hidden" name="image_state" value="${imageData}" />`); const formData = new FormData($("#uploadForm")[0]); $.ajax({ url: "save_profile.php", type: "POST", data: formData, processData: false, contentType: false, success: function(response) { if (response.status === 'success') { alert(response.message); $("#profileImagePreview").attr("src", response.image_path); $('#editProfileModal').modal('hide'); window.location.reload(); } else { alert(response.message); } }, error: function() { alert("An error occurred while saving your profile."); }, complete: function() { // Re-enable button and reset text $button.prop("disabled", false).text(originalText); } }); } }); }); </script> <!-- <script type="text/javascript"> $(function() { var pricingTableComponentOptions = { id: 'zf-widget-root-id', product_id: '2-a22c0be31501979fdf6d95705ea43113bde88338aa57ecb5f61153ce5d3090c3f48d7e9af6c8ae9e58bcad6fd428a6fde667b7eb5ddc5b2a318fde6c950d2d25', template: 'combo_pro', most_popular_plan: '', is_group_by_frequency: true, group_options: [{ frequency: 'Monthly', frequency_recurrence_value: '1_months', most_popular_plan: '', plans: [{ plan_code: 'M' }, ] }, { frequency: 'Yearly', frequency_recurrence_value: '1_years', most_popular_plan: '', plans: [{ plan_code: 'A' }, ] }, ], plans: [], theme: { color: '#f58020', theme_color_light: '' }, button_text: 'Upgrade to Pro Plan', product_url: 'https://subscriptions.zoho.com', price_caption: '', language_code: 'en', open_inSameTab: false }; ZFWidget.init('zf-pricing-table', pricingTableComponentOptions); }); </script> --> <style> main { display: flex; justify-content: center; } .go-back-bar { left: 80px !important; margin-top: 100px; } label { color: #000 } #panelStatus { margin-bottom: 140px; } </style> <style> .sideWithMainContainer { display: flex; flex-direction: row; gap: 10px; overflow-x: hidden; } .sideMaincontent { overflow-y: scroll; } @media (min-width: 768px) { .col-md-2 { padding: 0px !important; } } @media (max-width: 768px) { .col-md-2 { display: none !important; } } </style> </head> <body> <!-- Edit Profile Modal --> <div class="modal fade" id="editProfileModal" tabindex="-1" role="dialog" aria-labelledby="editProfileModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content bg-dark text-white"> <div class="modal-header"> <h5 class="modal-title" id="editProfileModalLabel">Edit Profile</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form id="uploadForm" enctype="multipart/form-data"> <!-- Profile Picture Upload --> <div class="form-group"> <label for="fileInput" class="form-label">Upload Profile Picture</label> <input type="file" name="profile_pic" accept="image/*" id="fileInput" class="form-control" required /> </div> <!-- Image Preview and Cropper --> <div id="imageContainer" style="display:none;"> <img id="imagePreview" src="" alt="Image Preview" style="max-width: 100%;" /> </div> <!-- Crop Button --> <button type="button" id="cropBtn" class="btn btn-primary" style="display:none;">Crop and Save</button> </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button> <button type="button" class="btn btn-primary" id="saveProfileBtn">Save Changes</button> </div> </div> </div> </div> <? include 'assets/php/social_navbar.php'; ?> <div class="sideWithMainContainer"> <div class="col-md-2"> <? include 'assets/php/sidebar.php' ?> </div> <main class="col-sm-12 col-md-10 sideMaincontent"> <div class="main-content col-md-9"> <?php $sql = "SELECT * FROM user WHERE id = $gUserId"; $result = mysqli_query($db, $sql); $numRows = mysqli_num_rows($result); if ($numRows > 0) { $row = mysqli_fetch_assoc($result); $userName = $row['full_name']; $userCompany = $row['company']; $userEmail = $row['email']; $userPhone = $row['phone_no']; $userWebsite = $row['website']; $userCategoryId = $row['category_id']; $userBio = $row['bio']; $countryCode = $row['country_code']; // ✅ Added this line ?> <ol class="breadcrumb my-3"> <li class="breadcrumb-item"> <h4 class="m-0">My Account</h4> </li> </ol> <div class="row mb-4"> <div class="col"> <ul class="nav nav-tabs mb-4"> <li class="nav-item"><a class="nav-btn active" data-toggle="tab" href="#profile" role="tab" onclick="$('#panelStatus').html('')">Profile</a></li> <li class="nav-item"><a class="nav-btn" data-toggle="tab" href="#password" role="tab" onclick="$('#panelStatus').html('')">Password</a></li> <li class="nav-item"><a class="nav-btn" data-toggle="tab" href="#plan" role="tab" onclick="$('#panelStatus').html('')">Plan</a></li> <li class="nav-item"><a class="nav-btn" href="Scheduled_posts.php" target="_blank">My Scheduled Posts</a></li> <? if ($referralCode != NULL) { ?> <li class="nav-item"><a class="nav-btn" data-toggle="tab" href="#invite" role="tab" onclick="$('#panelStatus').html('')">Invite Code</a></li> <? } ?> <? if ($gUserId == 23) { ?> <li class="nav-item"><a class="nav-btn" href="creamAdmin/verification.php" target="_blank">Admin</a></li> <? } ?> </ul> <div class="tab-content m-3"> <div class="tab-pane fade show active" id="profile" role="tabpanel"> <div class="form-group row"> <div class="col-sm-12 col-md-6"> <img id="profilePic" src="<?= viewProfilePic($db, $gUserId) ?>" alt="Profile Picture" class="profile-pic"> <button class="btn btn-custom flex-fill" data-toggle="modal" data-target="#editProfileModal">Edit</button> </div> </div> <? if ($gUserSubdomain <> '') { $landingPageURL = "https://$gUserSubdomain.knoblycream.com/"; } else { $landingPageURL = "https://www.knoblycream.com/$gUserId/showcase"; } ?> <div class="form-group row"> <label class="col-sm-2 col-form-label">Showcase Page</label> <div class="col-sm-12 col-md-6 mt-2"><a href="<?= $landingPageURL ?>" target="_blank"><?= $landingPageURL ?></a></div> </div> <div class="form-group row"> <label for="inputPassword" class="col-sm-2 col-form-label">Full Name</label> <div class="col-sm-12 col-md-6"> <input type="text" class="form-control" id="userName" name="userName" value="<?= $userName ?>" maxlength="100" /> </div> </div> <div class="form-group row"> <label for="userEmail" class="col-sm-2 col-form-label">Email</label> <div class="col-sm-12 col-md-6"> <input type="email" class="form-control" id="userEmail" name="userEmail" value="<?= $userEmail ?>" maxlength="100" readonly /> </div> </div> <div class="form-group row"> <label for="userPhone" class="col-sm-2 col-form-label">Phone Number</label> <!-- Country Code Dropdown --> <div class="col-sm-2"> <select class="form-control" id="countryCode" name="countryCode" required> <option value="+91" <?= ($countryCode == '+91') ? 'selected' : '' ?>>🇮🇳 +91 (India)</option> <option value="+1" <?= ($countryCode == '+1') ? 'selected' : '' ?>>🇺🇸 +1 (USA)</option> <option value="+44" <?= ($countryCode == '+44') ? 'selected' : '' ?>>🇬🇧 +44 (UK)</option> <option value="+61" <?= ($countryCode == '+61') ? 'selected' : '' ?>>🇦🇺 +61 (Australia)</option> <option value="+81" <?= ($countryCode == '+81') ? 'selected' : '' ?>>🇯🇵 +81 (Japan)</option> <option value="+49" <?= ($countryCode == '+49') ? 'selected' : '' ?>>🇩🇪 +49 (Germany)</option> <option value="+33" <?= ($countryCode == '+33') ? 'selected' : '' ?>>🇫🇷 +33 (France)</option> <option value="+971" <?= ($countryCode == '+971') ? 'selected' : '' ?>>🇦🇪 +971 (UAE)</option> <option value="+63" <?= ($countryCode == '+63') ? 'selected' : '' ?>>🇵🇭 +63 (Philippines)</option> <option value="+234" <?= ($countryCode == '+234') ? 'selected' : '' ?>>🇳🇬 +234 (Nigeria)</option> <!-- Add more as needed --> </select> </div> <!-- Phone Number Input --> <div class="col-sm-10 col-md-4"> <input type="tel" class="form-control" id="userPhone" name="userPhone" value="<?= $userPhone ?>" maxlength="15" required> </div> </div> <div class="form-group row"> <label for="userCompany" class="col-sm-2 col-form-label">Company</label> <div class="col-sm-12 col-md-6"> <input type="text" class="form-control" id="userCompany" name="userCompany" value="<?= $userCompany ?>" maxlength="100" /> </div> </div> <div class="form-group row"> <label for="userCategoryId" class="col-sm-2 col-form-label">Business Type</label> <div class="col-sm-12 col-md-6"> <select id="userCategoryId" name="userCategoryId" class="form-control"> <option value="0">--[select]-- <? $sql = "SELECT id,category FROM category ORDER BY category"; $result = mysqli_query($db, $sql); $numRows = mysqli_num_rows($result); if ($numRows > 0) { for ($i = 0; $i < $numRows; $i++) { $row = mysqli_fetch_array($result); $tmpCategoryId = $row['id']; $tmpCategoryName = $row['category']; if ($userCategoryId == $tmpCategoryId) { echo ' <option value="' . $tmpCategoryId . '" SELECTED>' . $tmpCategoryName; } else { echo ' <option value="' . $tmpCategoryId . '">' . $tmpCategoryName; } } } ?> <option value="0">Others </select> </div> </div> <div class="form-group row"> <label for="userWebsite" class="col-sm-2 col-form-label">Website</label> <div class="col-sm-12 col-md-6"> <input type="text" class="form-control" id="userWebsite" name="userWebsite" value="<?= $userWebsite ?>" maxlength="100" /> <small class="form-text text-muted">Please enter the URL with http:// or https://</small> </div> </div> <div class="form-group row"> <label for="userBio" class="col-sm-2 col-form-label">Bio</label> <div class="col-sm-12 col-md-6"> <textarea type="text" class="form-control" id="userBio" name="userBio" value="<?= $userBio ?>" maxlength="100"><?= $userBio ?></textarea> </div> </div> <div class="form-group row mt-4"> <label class="col-sm-2 col-form-label"></label> <div class="col-sm-8 d-flex"> <button class="btn btn-primary btn-spacing" onclick="return chkUpdateProfile()">Update Profile</button> <!-- <button class="btn btn-primary" onclick="window.location.href='my_settings.php';">Edit Profile Image</button> --> </div> </div> </div> <div class="tab-pane fade" id="password" role="tabpanel"> <div class="form-group row"> <label for="userPassCurrent" class="col-sm-2 col-form-label">Current password</label> <div class="col-sm-12 col-md-3"> <input type="password" class="form-control" id="userPassCurrent" name="userPassCurrent" maxlength="20" /> </div> </div> <div class="form-group row"> <label for="userPassNew1" class="col-sm-2 col-form-label">New password</label> <div class="col-sm-12 col-md-3"> <input type="password" class="form-control" id="userPassNew1" name="userPassNew1" maxlength="20" /> </div> </div> <div class="form-group row"> <label for="userPassNew2" class="col-sm-2 col-form-label">Retype Password</label> <div class="col-sm-12 col-md-3"> <input type="password" class="form-control" id="userPassNew2" name="userPassNew2" maxlength="20" /> </div> </div> <div class="form-group row mt-4"> <label class="col-sm-2 col-form-label"></label> <div class="col-sm-12 col-md-3"> <button class="btn btn-primary" onclick="return chkUpdatePassword()">Update Password</button> </div> </div> </div> <div class="tab-pane fade" id="plan" role="tabpanel"> <div class="col-sm-12 col-md-6 mt-2"> <? if ($gUserPlan == 1) { ?> Pro <? show_pro_details() ?> <? } else { ?> You are on a <b>Free</b> plan upgrade to access more features. <div class="zf-widget-root-id"> <!-- Monthly Plan Card --> <div class="card"> <div class="card-content"> <h2 class="plan-title">Monthly</h2> <p class="plan-price">₹2400</p> <p class="plan-subtext">Billed Monthly</p> <p class="plan-description"> <span class="checkmark">✔</span> This is a Pay as Go option and you will get access to complete Pro features </p> <!-- Monthly Plan Form --> <!-- <form action="payment.php" method="POST" target="_blank"> <input type="hidden" name="plan" value="Monthly Subscription"> <input type="hidden" name="amount" value="2000"> --> <button onclick="window.location.href='premium.php'" class="upgrade-button">Upgrade to Pro Plan</button> <!-- </form> --> </div> </div> <!-- Annual Plan Card --> <div class="card"> <div class="card-content"> <h2 class="plan-title">Annual</h2> <p class="plan-price">₹24000</p> <p class="plan-subtext">Billed Annually</p> <p class="plan-description"> <span class="checkmark">✔</span> Peace of Mind plan with dollops of savings </p> <!-- Annual Plan Form --> <!-- <form action="payment.php" method="POST" target="_blank"> <input type="hidden" name="plan" value="Annual Subscription"> <input type="hidden" name="amount" value="18000"> --> <button onclick="window.location.href='premium.php'" class="upgrade-button">Upgrade to Pro Plan</button> <!-- </form> --> </div> </div> </div> <? } ?> </div> </div> <div class="tab-pane fade" id="invite" role="tabpanel"> <?php if ($referralCode == 1) { ?> <p>Your invite code : <b>KCPH1000</b></p> <?php } elseif ($referralCode == 2) { ?> <p>Your invite code : <b>KCPB1000</b></p> <?php } elseif ($referralCode == 3) { ?> <p>Your invite code : <b>KCAK1000</b></p> <?php } elseif ($referralCode == 4) { ?> <p>Your invite code : <b>KCAD1000</b></p> <?php } elseif ($referralCode == 5) { ?> <p>Your invite code : <b>KCRD1000</b></p> <?php } elseif ($referralCode == 6) { ?> <p>Your invite code : <b>KCSJ1000</b></p> <?php } elseif ($referralCode == 7) { ?> <p>Your invite code : <b>KCSG1000</b></p> <?php } elseif ($referralCode == 8) { ?> <p>Your invite code : <b>KCMA1000</b></p> <?php } elseif ($referralCode == 9) { ?> <p>Your invite code : <b>KCHP1000</b></p> <?php } elseif ($referralCode == 10) { ?> <p>Your invite code : <b>KCSR1000</b></p> <?php } ?> </div> <div id="panelStatus" class="mt-4"></div> </div> </div> </div> </div> </main> </div> <? include 'assets/php/footer.php' ?> <? include 'assets/php/bottom_navbar.php' ?> </body> </html> <? } } ?>