⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
olasjoys
/
modules
/
posstaticfooter
/
data
/
Edit File: demoDataFooter.php
<?php class demoDataFooter { public function initData() { $return = true; $languages = Language::getLanguages(true); $id_shop = Context::getContext()->shop->id; $id_hook_footer = (int)Hook::getIdByName('displayFooter'); $id_hook_footerafter = (int)Hook::getIdByName('displayFooterAfter'); $queries = [ 'INSERT INTO `'._DB_PREFIX_.'posstaticfooter` (`id_posstaticfooter`, `id_hook`, `position`, `width`, `type_content`, `name_module`, `content`,`active_title`) VALUES (1, '.$id_hook_footer.', 1, 4, 1, 0, \'{"cms":[false],"product":[false],"static":[false]}\', 1), (2, '.$id_hook_footer.', 2, 2, 0, 0, \'{"cms":["1","4","5"],"product":[false],"static":["contact","sitemap","stores"]}\', 1), (3, '.$id_hook_footer.', 3, 2, 0, 0, \'{"cms":["2"],"product":["prices-drop","new-products","best-sales"],"static":["authentication","my-account"]}\', 1), (4, '.$id_hook_footer.', 4, 2, 1, \'ps_socialfollow\', \'{"cms":[false],"product":[false],"static":[false]}\', 1), (5, '.$id_hook_footer.', 5, 2, 1, 0, \'{"cms":[false],"product":[false],"static":[false]}\', 1), (6, '.$id_hook_footerafter.', 6, 4, 1, 0, \'{"cms":[false],"product":[false],"static":[false]}\', 0), (7, '.$id_hook_footerafter.', 7, 4, 1, 0, \'{"cms":[false],"product":[false],"static":[false]}\', 0), (8, '.$id_hook_footerafter.', 8, 4, 1, 0, \'{"cms":[false],"product":[false],"static":[false]}\', 0);' ]; foreach (Language::getLanguages(true, Context::getContext()->shop->id) as $lang) { $queries[] = 'INSERT INTO `'._DB_PREFIX_.'posstaticfooter_lang` (`id_posstaticfooter`, `id_lang`, `name`, `html_content`, `custom_content`) VALUES (1, '.(int)$lang['id_lang'].', "About us", \'<div class="footer_about_us"> <div class="desc_info"> <p class="txt_info">We are a team of designers and developers that create high quality Magento, Prestashop, Opencart.</p> <div class="need_help"> <p>NEED HELP?</p> <p class="phone">(+800)123456789</p> </div> </div> </div>\', ""), (2, '.(int)$lang['id_lang'].', "Information", "", ""), (3, '.(int)$lang['id_lang'].', "Custom Links", "", ""), (4, '.(int)$lang['id_lang'].', "Connect With Us", "", ""), (5, '.(int)$lang['id_lang'].', "Payment Methods",\'<div class="payment"> <img src="/pos_clima/img/cms/payment.png" alt=""> </div>\', ""), (6, '.(int)$lang['id_lang'].', "Logo Block", \'<div class="logo_footer"> <a href="#"><img src="/pos_clima/img/cms/logo_footer.png" alt=""></a> </div>\', ""), (7, '.(int)$lang['id_lang'].', "links Footer", \'<div class="links_footer"> <a href="#">Service</a> <a href="#">FAQ</a> <a href="#">Privacy Policy</a> </div>\', ""), (8, '.(int)$lang['id_lang'].', "Copyright Block", \'<div class="copyright">Copyright 2020 © <a href="http://posthemes.com/">Posthemes</a>. All Rights Reserved</div>\', "")' ; } $queries[] = 'INSERT INTO `'._DB_PREFIX_.'posstaticfooter_shop` (`id_posstaticfooter`, `id_shop`) VALUES (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1)'; foreach ($queries as $query) { $return &= Db::getInstance()->execute($query); } return $return; } } ?>
Simpan