setUpdateMode(false); Mage::getConfig()->saveConfig('web/unsecure/base_url', 'http://example.com/'); Mage::getConfig()->saveConfig('web/secure/base_url', 'https://example.com/'); Mage::getConfig()->reinit(); echo "Configuration saved successfully!\n";
setUpdateMode(false); try { Mage::getConfig()->loadModules(); Mage::getModel('core/cache')->flush(); Mage::getSingleton('adminhtml/session')->setIsSecureMode(null); Mage::getSingleton('core/session', array('name' => 'adminhtml'))->start(); Mage::getSingleton('core/session')->setIsSecureMode(null); Mage::getSingleton('catalog/indexer_url')->reindexAll(); Mage::getSingleton('catalog/indexer_flat')->reindexAll(); echo "Extensions installed successfully!\n"; } catch (Exception $e) { echo "Error: " . $e->getMessage() . "\n"; }This script installs extensions for the Magento store. It uses various objects and methods, including `Mage::getModel()`, `Mage::getSingleton()`, and `Mage::getSingleton()->reindexAll()`. PHP Mage Run is part of the Magento library, which is a package of PHP classes and scripts used for building Magento-based applications.