params= new JRegistry(); $this->params->loadString($plugin->params, 'JSON'); $this->_cacheEnabled = $this->params->get('cache_enabled'); if ($this->_cacheEnabled === null) $this->_cacheEnabled == 1; $this->_autoflush = $this->params->get('autoFlush'); if ($this->_autoflush === null) $this->_autoflush = 1; $this->_autoflush3rdParty = $this->params->get('autoFlush-ThirdParty'); if ($this->_autoflush3rdParty === null) $this->_autoflush3rdParty = 1; $this->_autoflushClientSide = $this->params->get('autoFlush-ClientSide'); if ($this->_autoflushClientSide === null) $this->_autoflushClientSide = 0; } /** * Heartbeat cache checking function. Will also monitor $_GET for the jSGCache parameter * (pressing the purge cache button in admin) * * * @access public * @return null */ public function onAfterInitialise() { if (!$this->_cacheEnabled || $this->_isBlacklisted($this->_applicationPath)) { JResponse::setHeader('X-Cache-Enabled','False',true); return; } if ($this->_cacheEnabled) { JResponse::allowCache(true); JResponse::setHeader('X-Cache-Enabled','True',true); } //Init the application url $this->_applicationPath = str_replace(array('administrator/index.php','index.php'),'',str_replace($_SERVER['DOCUMENT_ROOT'],'',$_SERVER['SCRIPT_FILENAME'])); //Check for any admin action and proceed to flushMonitor and 3rd party plugins if ( isset($_POST['task']) || isset($_GET['task']) || isset($_GET['cart_virtuemart_product_id'])) { $this->_flushMonitor(); if ($this->_autoflush3rdParty) $this->_monitorThirdPartyPlugins(); } //Check if we have a logged in user and enable cache bypass cookie 'task' => string 'user.login' $user = JFactory::getUser(); if (!$user->guest || (isset($_POST['task']) && preg_match('/login/i', $_POST['task']))) { $_POST[JSession::getFormToken()] = 1; //Force the correct token, since the login box on the page is cached with the 1st visitors' token //Enable the cache bypass for logged users by setting a cache bypass cookie setcookie('jSGCacheBypass',1,time() + 6000,'/'); } if ($user->guest || (isset($_POST['task']) && $_POST['task'] == 'user.logout')) { //Remove the bypass cookie if not a logged user if (isset($_COOKIE['jSGCacheBypass'])) setcookie('jSGCacheBypass',0, time() - 3600,'/'); } // Handle purge button press when get has jSGCache=purge, but only in admin with a logged user if(isset($_GET['jSGCache']) && $_GET['jSGCache'] == 'purge' && JFactory::getApplication()->isAdmin() && !$user->guest ) $this->_purgeCache(true); } /** * Admin panel icon display * * @access public * @param string $context * @return array */ public function onGetIcons( $context ) { return array(array( 'link'=>'?jSGCache=purge', 'image'=>'refresh', 'text'=>JText::_('Purge jSGCache'), 'id'=>'jSGCache' )); } /** * Calls the cache server to purge the cache * * @access public * @param string|bool $message Message to be displayed if purge is successful. If this param is false no output would be done * @return null */ private function _purgeCache( $message = true ) { $purgeRequest = $this->_applicationPath . '(.*)'; // Construct the PURGE request $hostname = str_replace( 'www.', '', $_SERVER['HTTP_HOST'] ); $purge_method = "PURGE"; $cacheServerSocket = fsockopen($hostname, 80, $errno, $errstr, 2); if(!$cacheServerSocket) { JError::raise(E_ERROR,500,JText::_('Connection to cache server failed!')); JError::raise(E_ERROR,500,JText::_($errstr ($errno))); return; } $request = "$purge_method {$purgeRequest} HTTP/1.0\r\nHost: {$_SERVER['SERVER_NAME']}\r\nConnection: Close\r\n\r\n"; if (preg_match('/^www\./',$_SERVER['SERVER_NAME'])) { $domain_no_www = preg_replace('/^www\./', '', $_SERVER['SERVER_NAME']); $request2 = "$purge_method {$purgeRequest} HTTP/1.0\r\nHost: {$domain_no_www}\r\nConnection: Close\r\n\r\n"; } else $request2 = "$purge_method {$purgeRequest} HTTP/1.0\r\nHost: www.{$_SERVER['SERVER_NAME']}\r\nConnection: Close\r\n\r\n"; fwrite($cacheServerSocket, $request); $response = fgets($cacheServerSocket); fclose($cacheServerSocket); $cacheServerSocket = fsockopen($hostname, 80, $errno, $errstr, 2); fwrite($cacheServerSocket, $request2); fclose($cacheServerSocket); if($message !== false) { if(preg_match('/200/',$response)) { if ($message === true) JFactory::getApplication()->enqueueMessage(JText::_('SG Cache Successfully Purged!')); else JFactory::getApplication()->enqueueMessage(JText::_( $message )); } else { JError::raise(E_NOTICE,501, JText::_('SG Cache: Purge was not successful!')); JError::raise(E_NOTICE,501, jText::_('Error: ' . $response)); } } } /** * Check if url is in caching blacklist * * @param string $applicationPath * * @return bool */ private function _isBlacklisted($applicationPath) { $blacklistArray = explode("\n",$this->params->get('blacklist')); $blacklistRegexArray = array(); $indexIsBlacklisted = false; foreach($blacklistArray as $key=>$row) { $row = trim($row); if ($row != '/' && $quoted = preg_quote($row,'/')) $blacklistRegexArray[$key] = $quoted; if ($row == '/') $indexIsBlacklisted = true; } if ($indexIsBlacklisted && $_SERVER['REQUEST_URI'] == $applicationPath) return true; if (empty($blacklistRegexArray)) return false; $blacklistRegex = '/('.implode('|',$blacklistRegexArray) . ')/i'; return preg_match($blacklistRegex, $_SERVER['REQUEST_URI']); } /** * 3rd party plugin monitor * * @access private * @return null */ private function _monitorThirdPartyPlugins() { // Kunena & K2 if ($this->params->get('autoFlush-ThirdParty') == 1 && isset($_POST['option']) && ($_POST['option']=='com_k2' || $_POST['option' ]== 'com_kunena')) { $this->_purgeCache(false); } // VirtueMart if ( (isset($_POST['option']) && $_POST['option'] == 'com_virtuemart') || ( isset($_GET['option']) && $_GET['option'] == 'com_virtuemart' ) || isset($_GET['cart_virtuemart_product_id']) ) { if($this->params->get('autoFlush-ThirdParty') == 1) $this->_purgeCache(false); } } /** * Action monitor * * @access private * @return null */ private function _flushMonitor() { $user = JFactory::getUser(); if ((!JFactory::getApplication()->isAdmin() && !$this->_autoflushClientSide) || $user->guest) return; $autoflush = $this->params->get('autoFlush'); if ($autoflush === null) $autoflush = 1; if (isset($_POST['task']) && $_POST['task'] && !in_array($_POST['task'],self::$_ignoreTasks) && $autoflush == 1) $this->_purgeCache(false); } } Understanding the Power of Surahs
  Tuesday, 26 December 2023
  2 Replies
  899 Visits
  Subscribe
Chapters in the Quran, the sacred book of Islam, are called surahs. Muslims believe that the angel Gabriel revealed the word of God to Prophet Muhammad (peace be upon him) and that this revelation is what is contained in the Quran. Every Surah has a unique name and comprises several Ayat or verses.

Surahs are said to have great power in Islam, and Muslims recite them for a variety of reasons, such as asking for blessings, protection, and guidance. The following are some facets of the Surahs' influence on Islam:

Spiritual Guidance: Muslims can obtain spiritual guidance from the Surahs. They include stories, laws, and teachings illuminating Islam's moral and ethical precepts.

Protection and Healing: Certain surahs are thought to offer protection and healing capabilities. For protection against harm and evil forces, Muslims recite Surah Al-Fatihah, Surah Al-Baqarah, Surah Al-Ikhlas, Surah Al-Falaq, and Surah An-Naas.

Prayer and Worship: The Islamic prayer, known as salah, is incomplete without the Surahs. Muslims emphasize the relationship between the worshipper and the divine by reciting different Surahs during their daily prayers.

Intercession for the Day of Judgement: Surah Al-Fatihah is frequently called "The Opening of the Book" or simply the "Opening." It is said during each segment of the Muslim prayer and is understood to be an appeal to Allah for forgiveness and protection on the Day of Judgement.

Blessings through Recitation: Muslims consider that reciting specific Surahs will result in blessings and rewards. For instance, Surah Al-Kahf is frequently repeated on Fridays because of its ability to protect against hardships and temptations.

Cleaning and Purification: When recited, Surah Al-Baqarah is said to be a potent surah that cleans and purifies the surrounding area. It is frequently chanted to ward off evil spirits.

Seeking Allah's Assistance: Muslims recite Surahs to ask Allah for support and guidance during trying times. Repeating Surah Al-Isra (17:109) can help shield oneself from adversaries.

Memorization and Education: Muslims must often memorize the Surahs early in their religious education. Their understanding of Islamic teachings is made more accessible, and this memorization strengthens their relationship to the Quran.

It's crucial to remember that the Islamic faith's practices and beliefs are fundamental to the power of the Surahs. Muslims believe that the Quran is a divine revelation. And that the Quran memorization and applying it can help one become closer to Allah and live a moral life. Individuals may have different understandings and experiences with the Surahs depending on their faith, devotion, and life experiences.
salma khan marked this post as Resolved — 4 months ago
4 months ago
·
#7815
Islam holds that the Quran's surahs, or chapters, have enormous authority. They offer blessings through recitation, purification, and cleansing, asking Allah for help, memorizing, prayer, intercession for the Day of Judgement, spiritual guidance, protection, healing, and prayer. Muslims consider the Quran a revelation from God and feel that memorizing it can help them lead moral lives. However, a person's comprehension of and experiences with the Surahs may differ based on their devotion, faith, and life events.

Visit our site to learn the Quran and Islamic knowledge: https://qurantutorsonline.com/
1 month ago
·
#7818
Excellent and intriguing essay. Thank you very much! Thank you for sharing this outstanding content. run 3 is a blog that will help you recover your password and regain access to your account if you've lost it.
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
  • +1 (408) 821-8283
  • Email hello@sellacious.com