Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
LiteSpeed
Server IP : 198.54.121.189 & Your IP : 216.73.216.47
Domains :
Cant Read [ /etc/named.conf ]
User : waldicsm
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
waldicsm /
.trash /
Delete
Unzip
Name
Size
Permission
Date
Action
administrator
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
administrator.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
api
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
api.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
cache
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
cache.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
cli
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
cli.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
components
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
components.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
docs
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
files
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
files.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
images
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
images.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
includes
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
includes.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
language
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
language.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
layouts
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
layouts.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
libraries
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
libraries.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
media
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
media.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
modules
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
modules.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
plugins
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
plugins.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
templates
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
templates.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
tmp
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
tmp.1
[ DIR ]
drwxr-xr-x
2026-05-03 17:02
tools
[ DIR ]
drwxr-xr-x
2026-05-03 18:20
.trash_restore
7.88
KB
-rw-r--r--
2026-05-17 08:37
LICENSE.txt
17.67
KB
-rw-r--r--
2026-05-01 04:20
LICENSE.txt.1
17.67
KB
-rw-r--r--
2026-04-26 19:48
README.txt
5.53
KB
-rw-r--r--
2026-05-01 04:20
README.txt.1
5.53
KB
-rw-r--r--
2026-04-26 19:48
add_menu.php
664
B
-rw-r--r--
2026-04-28 04:05
append_css.php
171
B
-rw-r--r--
2026-05-02 01:52
append_js.php
1.84
KB
-rw-r--r--
2026-04-28 05:22
append_js_fixed.php
2.13
KB
-rw-r--r--
2026-04-28 05:38
build_site.php
36.49
KB
-rw-r--r--
2026-05-03 11:04
bump_media.php
912
B
-rw-r--r--
2026-05-02 02:24
bump_media_version.php
1.21
KB
-rw-r--r--
2026-05-02 01:52
check_about.php
1.42
KB
-rw-r--r--
2026-05-02 01:52
check_article_content.php
520
B
-rw-r--r--
2026-05-02 01:52
check_full_html.php
974
B
-rw-r--r--
2026-05-02 01:52
check_headings.php
559
B
-rw-r--r--
2026-05-02 01:52
check_hero.php
488
B
-rw-r--r--
2026-05-02 01:52
check_html_output.php
296
B
-rw-r--r--
2026-05-02 01:52
check_icons.php
492
B
-rw-r--r--
2026-05-02 01:52
check_menu.php
686
B
-rw-r--r--
2026-05-02 02:38
check_services_page.php
1.21
KB
-rw-r--r--
2026-05-02 01:52
check_sidebars.php
895
B
-rw-r--r--
2026-05-02 01:52
configuration.bak.php
2.88
KB
-rw-r--r--
2026-05-03 18:22
configuration.bak.php.1
2.91
KB
-rw-r--r--
2026-05-03 17:05
configuration.php
4.02
KB
-rw-r--r--
2026-05-03 18:22
configuration.php.1
4.01
KB
-rw-r--r--
2026-05-03 17:05
create_about_article.php
13.12
KB
-rw-r--r--
2026-05-02 01:52
create_about_page.php
1012
B
-rw-r--r--
2026-05-02 01:52
create_contact_page.php
10.4
KB
-rw-r--r--
2026-05-02 01:52
create_services_page.php
13.85
KB
-rw-r--r--
2026-05-03 06:02
debug_all_images.php
1.58
KB
-rw-r--r--
2026-05-02 01:52
debug_assets_table.php
1.85
KB
-rw-r--r--
2026-05-02 01:52
debug_compare.php
2.14
KB
-rw-r--r--
2026-05-02 01:52
debug_css.php
1.8
KB
-rw-r--r--
2026-05-02 01:52
debug_ext.php
1.52
KB
-rw-r--r--
2026-05-02 01:52
debug_hero.php
1.49
KB
-rw-r--r--
2026-05-02 01:52
debug_menu.php
1.54
KB
-rw-r--r--
2026-05-02 01:52
debug_version.php
1.93
KB
-rw-r--r--
2026-05-02 01:52
debug_wa.php
766
B
-rw-r--r--
2026-05-02 01:52
fix_age_cards.php
2.9
KB
-rw-r--r--
2026-05-02 02:55
fix_age_cards2.php
4.17
KB
-rw-r--r--
2026-05-02 02:57
fix_assets.php
2.37
KB
-rw-r--r--
2026-05-02 01:52
fix_contact_menu.php
1.3
KB
-rw-r--r--
2026-05-02 01:52
fix_contact_menu2.php
1.16
KB
-rw-r--r--
2026-05-02 01:52
fix_header.php
2.37
KB
-rw-r--r--
2026-04-28 03:29
fix_hero_images.php
1.73
KB
-rw-r--r--
2026-05-02 01:52
fix_home.php
619
B
-rw-r--r--
2026-04-28 04:11
fix_menu.php
770
B
-rw-r--r--
2026-05-02 01:52
fix_menu2.php
1.83
KB
-rw-r--r--
2026-05-02 01:52
fix_menu_items.php
798
B
-rw-r--r--
2026-05-02 02:39
fix_menu_module.php
3.7
KB
-rw-r--r--
2026-05-02 02:05
fix_services_age.php
2.72
KB
-rw-r--r--
2026-05-02 02:45
fix_services_page.php
1.45
KB
-rw-r--r--
2026-05-02 01:52
fix_sidebar_menu.php
436
B
-rw-r--r--
2026-05-02 02:14
fix_template.php
3.35
KB
-rw-r--r--
2026-05-02 01:52
get_colors.php
1.08
KB
-rw-r--r--
2026-04-28 04:30
htaccess.txt
6.74
KB
-rw-r--r--
2026-05-01 04:20
htaccess.txt.1
6.74
KB
-rw-r--r--
2026-04-26 19:48
index.php
1.52
KB
-rw-r--r--
2026-05-01 04:20
index.php.1
1.52
KB
-rw-r--r--
2026-04-26 19:48
install_rmh_modules.php
15.4
KB
-rw-r--r--
2026-05-03 09:56
menu_all.php
452
B
-rw-r--r--
2026-05-02 03:31
menu_children1.php
436
B
-rw-r--r--
2026-05-02 03:22
menu_cols.php
316
B
-rw-r--r--
2026-05-02 03:22
menu_full.php
453
B
-rw-r--r--
2026-05-02 03:21
menu_order_check.php
478
B
-rw-r--r--
2026-05-02 03:21
menu_parents.php
498
B
-rw-r--r--
2026-05-02 03:22
menu_root.php
380
B
-rw-r--r--
2026-05-02 03:21
menu_root2.php
464
B
-rw-r--r--
2026-05-02 03:21
patch_hero_fullbleed_slide.php
1.33
KB
-rw-r--r--
2026-05-03 06:14
revert_hero_fullbleed.php
1.2
KB
-rw-r--r--
2026-05-03 06:40
robots.txt
764
B
-rw-r--r--
2026-05-01 04:20
robots.txt.1
764
B
-rw-r--r--
2026-04-26 19:49
set_color.php
748
B
-rw-r--r--
2026-04-28 04:31
set_logo.php
863
B
-rw-r--r--
2026-04-28 04:21
update_about_page.php
9.5
KB
-rw-r--r--
2026-05-03 10:20
update_about_treatments.php
2.64
KB
-rw-r--r--
2026-05-02 01:52
update_age_images_nigeria.php
1.19
KB
-rw-r--r--
2026-05-02 03:03
update_all_content.php
17.6
KB
-rw-r--r--
2026-05-03 09:56
update_contact_colors.php
713
B
-rw-r--r--
2026-05-02 01:52
update_contact_icons.php
6.4
KB
-rw-r--r--
2026-05-02 01:52
update_contact_page.php
4.56
KB
-rw-r--r--
2026-05-02 01:52
update_hero.php
3.53
KB
-rw-r--r--
2026-05-03 16:32
web.config.txt
2.9
KB
-rw-r--r--
2026-05-01 04:20
web.config.txt.1
2.9
KB
-rw-r--r--
2026-04-26 19:49
Save
Rename
<?php require_once __DIR__ . '/configuration.php'; $config = new JConfig(); $conn = new mysqli($config->host, $config->user, $config->password, $config->db); if ($conn->connect_error) { die('DB Connection Error: ' . $conn->connect_error); } $conn->set_charset('utf8mb4'); $prefix = $config->dbprefix; $imgBase = '/joomla/ray/media/templates/site/wds-rmh/images'; $updates = []; // ── Welcome / Who We Are ── $updates['Welcome to Our Practice'] = [ 'position' => 'welcome', 'title' => 'Who We Are', 'content' => '<p class="rmh-section__subtitle">Resilient Mental Health Agency, LLC is a team of highly passionate individuals who have been carefully selected to provide the highest quality of care to the needs of individuals, families, communities in North Carolina. We analyze your strengths, and together, we plan a journey towards knowledge, healing, and growth. Whether you require therapy, counseling, mentoring, or life-skill consulting, our team is here to help. Our team has experience working with clients of all ages from all backgrounds, and we look forward to growing with you.</p> <p style="text-align:center;color:#777;font-size:0.9rem;margin-bottom:10px;">We are currently offering in person visits in Raleigh, NC and virtual appointments to anyone in North Carolina.</p> <p style="text-align:center;font-style:italic;font-weight:600;color:var(--rmh-heading);margin-bottom:40px;">Take the first step on the journey to mental health at Resilient Mental Health Agency, LLC.</p> <div class="rmh-values-grid"> <div class="rmh-value-card"> <div class="rmh-value-card__icon"><span class="icon-eye"></span></div> <h3 class="rmh-value-card__title">Mission Statement</h3> <p>To commit ourselves fully to the growth and wellness of individuals and their families, and to the community through prevention, intervention, treatment, and education. We will work tirelessly to reduce the stigma of mental illness and encourage clients to foster the strengths they already possess.</p> </div> <div class="rmh-value-card"> <div class="rmh-value-card__icon"><span class="icon-eye"></span></div> <h3 class="rmh-value-card__title">Vision Statement</h3> <p>To provide culturally competent, holistic, and wellness-focused services for those affected by mental illness. We will do this by using evidence-based strategies in our services and maintaining cutting-edge, proven techniques.</p> </div> <div class="rmh-value-card"> <div class="rmh-value-card__icon"><span class="icon-shield"></span></div> <h3 class="rmh-value-card__title">Core Values</h3> <p>Our focus is on quality of care and evidence-based service to our clients through:</p> <p><strong>Compassion</strong> – towards the individuals we serve and the community we cherish;</p> <p><strong>Acceptance</strong> – of everyone\'s right to quality, nonjudgmental, and affordable care;</p> <p><strong>Respect</strong> – of everyone\'s unique path towards their own healing;</p> <p><strong>Education</strong> – to reduce the stigma of mental illness and encourage authenticity in everyone with whom we interact.</p> </div> </div> <div class="rmh-welcome"> <div class="rmh-welcome__photo-wrap"> <div class="rmh-welcome__photo-frame"> <img src="' . $imgBase . '/raymond_george.png" alt="Dr. Tamuno Raymond George" width="400" height="500" loading="lazy"> </div> <div class="rmh-welcome__signature"> <div> <span class="rmh-welcome__signature-name">Tamuno Raymond George</span> <span class="rmh-welcome__signature-role">PhD, MBA, MHS, RN — President & CEO</span> </div> </div> </div> <div class="rmh-welcome__content"> <h3>Tamuno Raymond George, PhD, MBA, MHS, RN</h3> <p style="color:var(--rmh-primary);font-size:0.85rem;font-weight:600;text-transform:uppercase;letter-spacing:1px;margin-bottom:15px;">President and Chief Executive Officer</p> <p>Caring for the patient is our top priority. According to the <a href="https://www.nami.org/" target="_blank" rel="noopener">National Alliance on Mental Illness</a> (NAMI), half of all Americans will experience a mental illness during their lifetime. Emotional problems can impact all aspects of a person\'s life and can cause some people to not function properly, if at all.</p> <p>As a premier mental health service provider, it\'s our utmost responsibility to make sure every patient we come in contact with receives the highest quality of care using a holistic model, yet evidence-based. No greater service can be rendered to individuals who suffer from mental health and their ecosystems than to provide quality client-centered care to individuals and systems and provide support and services when they\'re needed, as a crisis rarely happens from 9 to 5.</p> <p>Accessible and affordable health care is a priority for Resilient Mental Health Agency, LLC.</p> <div class="rmh-stats rmh-reveal"> <div class="rmh-stats__item"> <span class="rmh-stats__number" data-count="3">0</span> <span class="rmh-stats__label">Therapists</span> </div> <div class="rmh-stats__item"> <span class="rmh-stats__number" data-count="8500">0</span> <span class="rmh-stats__label">Hours of Practice</span> </div> <div class="rmh-stats__item"> <span class="rmh-stats__number" data-count="25" data-suffix="+">0</span> <span class="rmh-stats__label">Services Offered</span> </div> </div> </div> </div>', ]; // ── Services ── $updates['Services'] = [ 'position' => 'services', 'title' => 'Our Therapy Services', 'content' => '<p class="rmh-section__subtitle">Our therapists will help you navigate a broad spectrum of mental health challenges — from anxiety and depression to family conflicts, trauma recovery, and beyond.</p> <div class="rmh-services-grid rmh-reveal-children"> <div class="rmh-service-card"> <img class="rmh-service-card__image" src="' . $imgBase . '/service-family.png" alt="Group, Individual and Family Therapy" loading="lazy" width="300" height="220"> <div class="rmh-service-card__body"> <h3 class="rmh-service-card__title">Group, Individual & Family Therapy</h3> <p class="rmh-service-card__text">Comprehensive therapy sessions for individuals, families, and groups. We strengthen communication, resolve conflicts, and rebuild trust within family systems.</p> </div> </div> <div class="rmh-service-card"> <img class="rmh-service-card__image" src="' . $imgBase . '/service-depression.png" alt="Depression & Anxiety" loading="lazy" width="300" height="220"> <div class="rmh-service-card__body"> <h3 class="rmh-service-card__title">Depression & Anxiety</h3> <p class="rmh-service-card__text">Evidence-based treatment including CBT, motivational interviewing, and acceptance commitment therapy for depression, anxiety, and mood disorders.</p> </div> </div> <div class="rmh-service-card"> <img class="rmh-service-card__image" src="' . $imgBase . '/service-individual.png" alt="Trauma & Crisis Counseling" loading="lazy" width="300" height="220"> <div class="rmh-service-card__body"> <h3 class="rmh-service-card__title">Trauma & Crisis Counseling</h3> <p class="rmh-service-card__text">PTSD complex trauma support with EMDR, grief and loss resolution, end-of-life preparation, and private company crisis plans and training.</p> </div> </div> <div class="rmh-service-card rmh-service-card--accent"> <h3 class="rmh-service-card__title">What We<br>Do for You</h3> <p class="rmh-service-card__text">Medication management, stress management, team building, career counseling, premarital counseling, and 25+ specialized services.</p> <a href="/joomla/ray/index.php/our-therapy-services" class="rmh-btn rmh-btn--white">See All Services →</a> </div> </div>', ]; // ── CTA Banner ── $updates['CTA Banner'] = [ 'position' => 'cta-banner', 'title' => 'CTA Banner', 'content' => '<h2>Ready to Take the First Step?</h2> <p>Take the first step on the journey to mental health at Resilient Mental Health Agency, LLC.<br>We are currently offering in-person visits in Raleigh, NC and virtual appointments to anyone in North Carolina.</p> <a href="/joomla/ray/index.php/contacts" class="rmh-btn rmh-btn--white">BOOK AN APPOINTMENT</a>', ]; // ── Testimonials ── $updates['Testimonials'] = [ 'position' => 'testimonials', 'title' => 'What Our Clients Say', 'content' => '<div class="rmh-testimonials"> <div class="rmh-testimonials__quote-mark">❝</div> <div class="rmh-testimonial-slide"> <p class="rmh-testimonials__text">The team at Resilient Mental Health Agency truly cares about their patients. Dr. George and his staff made me feel comfortable from my very first visit. Their holistic approach helped me regain control of my life.</p> <div class="rmh-testimonials__author">SATISFIED CLIENT</div> <span class="rmh-testimonials__role">Raleigh, NC</span> </div> <div class="rmh-testimonial-slide" style="display:none;" aria-hidden="true"> <p class="rmh-testimonials__text">Stephanie helped me work through years of grief and anxiety using DBT techniques. Her compassionate, evidence-based approach transformed my outlook on life. I\'m grateful for the entire team.</p> <div class="rmh-testimonials__author">THERAPY CLIENT</div> <span class="rmh-testimonials__role">North Carolina</span> </div> <div class="rmh-testimonial-slide" style="display:none;" aria-hidden="true"> <p class="rmh-testimonials__text">George helped me develop coping strategies and a healthier perspective on life. His empathic, judgment-free approach made all the difference. I highly recommend Resilient Mental Health.</p> <div class="rmh-testimonials__author">COUNSELING CLIENT</div> <span class="rmh-testimonials__role">Raleigh, NC</span> </div> <div class="rmh-testimonials__nav"> <button class="rmh-testimonials__arrow rmh-testimonials__arrow--prev" aria-label="Previous">←</button> <button class="rmh-testimonials__arrow rmh-testimonials__arrow--next" aria-label="Next">→</button> </div> </div>', ]; // ── FAQ ── $updates['FAQ'] = [ 'position' => 'faq', 'title' => 'Frequently Asked Questions', 'content' => '<div class="rmh-faq-layout"> <div class="rmh-faq__image rmh-reveal"> <img src="' . $imgBase . '/faq-therapist.png" alt="Therapist" loading="lazy" width="500" height="600"> </div> <div class="rmh-faq__list"> <div class="rmh-faq__item is-active"> <button class="rmh-faq__question" type="button">What types of therapy do you offer?<span class="rmh-faq__icon">+</span></button> <div class="rmh-faq__answer"><p>We offer individual therapy, family therapy, group therapy, grief and loss resolution, medication management, stress management, trauma and crisis counseling, depression treatment, anxiety treatment, anger management, PTSD/EMDR, premarital counseling, career counseling, and more.</p></div> </div> <div class="rmh-faq__item"> <button class="rmh-faq__question" type="button">Do you offer virtual appointments?<span class="rmh-faq__icon">+</span></button> <div class="rmh-faq__answer"><p>Yes! We offer in-person visits at our Raleigh, NC office and virtual appointments to anyone in North Carolina.</p></div> </div> <div class="rmh-faq__item"> <button class="rmh-faq__question" type="button">What ages do you serve?<span class="rmh-faq__icon">+</span></button> <div class="rmh-faq__answer"><p>We serve children (ages 3-12), adolescents (12-17), and adults (18+) from all backgrounds. We offer educational therapy, play therapy, and family therapy for younger clients, and individualized treatment plans for teens and adults.</p></div> </div> <div class="rmh-faq__item"> <button class="rmh-faq__question" type="button">What should I expect from my first session?<span class="rmh-faq__icon">+</span></button> <div class="rmh-faq__answer"><p>Your first session focuses on understanding your needs, history, and goals. Our therapists use evidence-based modalities including CBT, DBT, solution-focused therapy, and motivational interviewing to create a personalized treatment plan.</p></div> </div> <div class="rmh-faq__item"> <button class="rmh-faq__question" type="button">How do I get started?<span class="rmh-faq__icon">+</span></button> <div class="rmh-faq__answer"><p>Call us at 919-395-0142 or email info@resilientmentalhealth.com. We will schedule an initial consultation and match you with the right therapist for your needs.</p></div> </div> </div> </div>', ]; // ── Our Therapists (Gallery position) ── $updates['Gallery'] = [ 'position' => 'gallery', 'title' => 'Our Therapists', 'content' => '<div class="rmh-therapists"> <div class="rmh-therapist-card"> <div class="rmh-therapist-card__photo"> <img src="' . $imgBase . '/therapist-stephanie.jpg" alt="Stephanie Seitz LCSW" loading="lazy" width="280" height="280"> </div> <h3 class="rmh-therapist-card__name">Stephanie Seitz LCSW</h3> <p class="rmh-therapist-card__bio">Stephanie is offering in person visits in our Raleigh office and virtual visits for anyone in North Carolina. She has been a Licensed Clinical Social Worker since 2011. Stephanie uses a multi-faceted approach that includes Cognitive Behavioral Therapy (CBT), Solution Focused Therapy, Acceptance and Commitment Therapy and Motivational Interviewing. She is intensively trained in Dialectical Behavioral Therapy (DBT), which uses aspects of CBT along with a focus on mindfulness and skill building.</p> <p class="rmh-therapist-card__bio">Stephanie believes in assisting people in identifying and reaching their goals through a combination of support, problem solving, and coping skills. She works with patients to address anxiety, grief, depression, low self-esteem, anger management and difficulty with interpersonal relationships.</p> </div> <div class="rmh-therapist-card"> <div class="rmh-therapist-card__photo"> <img src="' . $imgBase . '/therapist-george.png" alt="George Edmond Sr. MSW, LCSW" loading="lazy" width="280" height="280"> </div> <h3 class="rmh-therapist-card__name">George Edmond Sr. MSW, LCSW</h3> <p class="rmh-therapist-card__bio">George is a licensed clinical psychotherapist with over 25 years of mental health experience. His goal as a therapist is to help you explore and realize your potential and become the best version of yourself. George utilizes various evidence-based modalities including cognitive behavioral therapy, motivational interviewing, reality therapy, acceptance commitment therapy, mindfulness-based trauma focus therapy, solution-focused therapy, premarital counseling, couple counseling, and spiritual counseling.</p> <p class="rmh-therapist-card__bio">George\'s goal is to develop a rapport with each individual and create an empathic, open, understanding, judgment, and bias-free environment for immediate and lasting change.</p> </div> </div>', ]; // ── Footer About ── $updates['About Us'] = [ 'position' => 'footer-about', 'title' => 'About Us', 'content' => '<p>Resilient Mental Health Agency, LLC provides compassionate, accessible mental health care in Raleigh, NC. We commit ourselves fully to the growth and wellness of individuals and their families through evidence-based approaches.</p>', ]; foreach ($updates as $oldTitle => $mod) { $contentEsc = $conn->real_escape_string($mod['content']); $newTitle = $conn->real_escape_string($mod['title']); $pos = $conn->real_escape_string($mod['position']); $result = $conn->query("SELECT id FROM {$prefix}modules WHERE position='{$pos}' AND client_id=0 LIMIT 1"); if ($row = $result->fetch_assoc()) { $conn->query("UPDATE {$prefix}modules SET title='{$newTitle}', content='{$contentEsc}', published=1 WHERE id={$row['id']}"); echo "Updated: {$mod['title']} (position: {$mod['position']}, ID: {$row['id']})\n"; } else { $now = date('Y-m-d H:i:s'); $params = json_encode(['prepare_content'=>'1','layout'=>'_:default','moduleclass_sfx'=>'','cache'=>'1','cache_time'=>'900','cachemode'=>'static','module_tag'=>'div','header_tag'=>'h2','header_class'=>'rmh-section__title','style'=>'0']); $paramsEsc = $conn->real_escape_string($params); $show = ($mod['title'] === 'CTA Banner') ? 0 : 1; $conn->query("INSERT INTO {$prefix}modules (title,note,content,ordering,position,publish_up,published,module,access,showtitle,params,client_id,language) VALUES ('{$newTitle}','','{$contentEsc}',1,'{$pos}','{$now}',1,'mod_custom',1,{$show},'{$paramsEsc}',0,'*')"); $moduleId = $conn->insert_id; $conn->query("INSERT INTO {$prefix}modules_menu (moduleid,menuid) VALUES ({$moduleId},0)"); echo "Created: {$mod['title']} (position: {$mod['position']}, ID: {$moduleId})\n"; } } $conn->close(); echo "\nAll content updated successfully.\n";