', $table_prefix='', $goOffline=true ) { // perform a number of fatality checks, then die gracefully if (!function_exists( 'mysql_connect' )) { $mosSystemError = 1; if ($goOffline) { $basePath = dirname( __FILE__ ); include $basePath . '/../configuration.php'; include $basePath . '/../offline.php'; exit(); } } if (phpversion() < '4.2.0') { if (!($this->_resource = @mysql_connect( $host, $user, $pass ))) { $mosSystemError = 2; if ($goOffline) { $basePath = dirname( __FILE__ ); include $basePath . '/../configuration.php'; include $basePath . '/../offline.php'; exit(); } } } else { if (!($this->_resource = @mysql_connect( $host, $user, $pass, true ))) { $mosSystemError = 2; if ($goOffline) { $basePath = dirname( __FILE__ ); include $basePath . '/../configuration.php'; include $basePath . '/../offline.php'; exit(); } } } if ($db != '' && !mysql_select_db( $db, $this->_resource )) { $mosSystemError = 3; if ($goOffline) { $basePath = dirname( __FILE__ ); include $basePath . '/../configuration.php'; include $basePath . '/../offline.php'; exit(); } } $this->_table_prefix = $table_prefix; //@mysql_query("SET NAMES 'utf8'", $this->_resource); $this->_ticker = 0; $this->_log = array(); } /** * @param int */ function debug( $level ) { $this->_debug = intval( $level ); } /** * @return int The error number for the most recent query */ function getErrorNum() { return $this->_errorNum; } /** * @return string The error message for the most recent query */ function getErrorMsg() { return str_replace( array( "\n", "'" ), array( '\n', "\'" ), $this->_errorMsg ); } /** * Get a database escaped string * * @param string The string to be escaped * @param boolean Optional parameter to provide extra escaping * @return string * @access public * @abstract */ function getEscaped( $text, $extra = false ) { // Use the appropriate escape string depending upon which version of php // you are running if (version_compare(phpversion(), '4.3.0', '<')) { $string = mysql_escape_string($text); } else { $string = mysql_real_escape_string($text, $this->_resource); } if ($extra) { $string = addcslashes( $string, '%_' ); } return $string; } /** * Get a quoted database escaped string * * @param string A string * @param boolean Default true to escape string, false to leave the string unchanged * @return string * @access public */ function Quote( $text, $escaped = true ) { return '\''.($escaped ? $this->getEscaped( $text ) : $text).'\''; } /** * Quote an identifier name (field, table, etc) * @param string The name * @return string The quoted name */ function NameQuote( $s ) { $q = $this->_nameQuote; if (strlen( $q ) == 1) { return $q . $s . $q; } else { return $q{0} . $s . $q{1}; } } /** * @return string The database prefix */ function getPrefix() { return $this->_table_prefix; } /** * @return string Quoted null/zero date string */ function getNullDate() { return $this->_nullDate; } /** * Sets the SQL query string for later execution. * * This function replaces a string identifier $prefix with the * string held is the _table_prefix class variable. * * @param string The SQL query * @param string The offset to start selection * @param string The number of results to return * @param string The common table prefix */ function setQuery( $sql, $offset = 0, $limit = 0, $prefix='#__' ) { $this->_sql = $this->replacePrefix( $sql, $prefix ); $this->_limit = intval( $limit ); $this->_offset = intval( $offset ); } /** * This function replaces a string identifier $prefix with the * string held is the _table_prefix class variable. * * @param string The SQL query * @param string The common table prefix * @author thede, David McKinnis */ function replacePrefix( $sql, $prefix='#__' ) { $sql = trim( $sql ); $escaped = false; $quoteChar = ''; $n = strlen( $sql ); $startPos = 0; $literal = ''; while ($startPos < $n) { $ip = strpos($sql, $prefix, $startPos); if ($ip === false) { break; } $j = strpos( $sql, "'", $startPos ); $k = strpos( $sql, '"', $startPos ); if (($k !== FALSE) && (($k < $j) || ($j === FALSE))) { $quoteChar = '"'; $j = $k; } else { $quoteChar = "'"; } if ($j === false) { $j = $n; } $literal .= str_replace( $prefix, $this->_table_prefix, substr( $sql, $startPos, $j - $startPos ) ); $startPos = $j; $j = $startPos + 1; if ($j >= $n) { break; } // quote comes first, find end of quote while (TRUE) { $k = strpos( $sql, $quoteChar, $j ); $escaped = false; if ($k === false) { break; } $l = $k - 1; while ($l >= 0 && $sql{$l} == '\\') { $l--; $escaped = !$escaped; } if ($escaped) { $j = $k+1; continue; } break; } if ($k === FALSE) { // error in the query - no end quote; ignore it break; } $literal .= substr( $sql, $startPos, $k - $startPos + 1 ); $startPos = $k+1; } if ($startPos < $n) { $literal .= substr( $sql, $startPos, $n - $startPos ); } return $literal; } /** * @return string The current value of the internal SQL vairable */ function getQuery() { return "
" . htmlspecialchars( $this->_sql ) . ""; } /** * Execute the query * @return mixed A database resource if successful, FALSE if not. */ function query() { global $mosConfig_debug; if ($this->_limit > 0 && $this->_offset == 0) { $this->_sql .= "\nLIMIT $this->_limit"; } else if ($this->_limit > 0 || $this->_offset > 0) { $this->_sql .= "\nLIMIT $this->_offset, $this->_limit"; } if ($this->_debug) { $this->_ticker++; $this->_log[] = $this->_sql; } $this->_errorNum = 0; $this->_errorMsg = ''; $this->_cursor = mysql_query( $this->_sql, $this->_resource ); if (!$this->_cursor) { $this->_errorNum = mysql_errno( $this->_resource ); $this->_errorMsg = mysql_error( $this->_resource )." SQL=$this->_sql"; if ($this->_debug) { trigger_error( mysql_error( $this->_resource ), E_USER_NOTICE ); //echo "
" . $this->_sql . "\n"; if (function_exists( 'debug_backtrace' )) { foreach( debug_backtrace() as $back) { if (@$back['file']) { echo '
| $k | "; } $buf .= "
|---|
| $v | "; } $buf .= "
$this->_sql" : ''); } function insertid() { return mysql_insert_id( $this->_resource ); } function getVersion() { return mysql_get_server_info( $this->_resource ); } /** * @return array A list of all the tables in the database */ function getTableList() { $this->setQuery( 'SHOW TABLES' ); return $this->loadResultArray(); } /** * @param array A list of valid (and safe!) table names * @return array A list the create SQL for the tables */ function getTableCreate( $tables ) { $result = array(); foreach ($tables as $tblval) { $this->setQuery( 'SHOW CREATE table ' . $this->getEscaped( $tblval ) ); $rows = $this->loadRowList(); foreach ($rows as $row) { $result[$tblval] = $row[1]; } } return $result; } /** * @param array A list of valid (and safe!) table names * @return array An array of fields by table */ function getTableFields( $tables ) { $result = array(); foreach ($tables as $tblval) { $this->setQuery( 'SHOW FIELDS FROM ' . $tblval ); $fields = $this->loadObjectList(); foreach ($fields as $field) { $result[$tblval][$field->Field] = preg_replace("/[(0-9)]/",'', $field->Type ); } } return $result; } /** * Fudge method for ADOdb compatibility */ function GenID( $foo1=null, $foo2=null ) { return '0'; } } /** * mosDBTable Abstract Class. * @abstract * @package Joomla * @subpackage Database * * Parent classes to all database derived objects. Customisation will generally * not involve tampering with this object. * @author Andrew Eddie
';print_r($orders);echo ''; // compact once more until I can find a better algorithm for ($i=0, $n=count( $orders ); $i < $n; $i++) { if ($orders[$i]->ordering >= 0) { $orders[$i]->ordering = $i+1; $query = "UPDATE $this->_tbl" . "\n SET ordering = " . (int) $orders[$i]->ordering . "\n WHERE $k = " . $this->_db->Quote( $orders[$i]->$k ) ; $this->_db->setQuery( $query); $this->_db->query(); //echo '
nov
29
2007
|
| ||||
| Le sacrifice d'un animal au nom d'Allah (Oud-hiya) est un acte d’adoration ('Ibâdah) très important dans l'Islam. C'est une pratique (sounnah) du père des prophètes, Ibrâhim (alayhis salâm)
Depuis l'époque préislamique, les gens de Makka sacrifiaient des animaux en offrande au nom des idoles. Avec la venue de l'Islam, Allah ordonna que ce sacrifice soit fait en Son Seul Nom. Le sacrifice étant un acte d’adoration ('Ibâdah) comme la Salah, il doit être accompli seulement au nom d'Allah. Telle est la signification du verset suivant : "Accomplis la Salah (de 'Eid) pour ton Seigneur et sacrifies (cad égorges le jour de Nahr) " (Verset 2 / chapitre 106 ; com. de Ibn ‘Abâss (Ra), cité dans Sounan Koubra P.259)
Le même sujet est expliqué différemment dans un autre verset : "Dis : En vérité, ma Salah, mes actes de dévotions (cad le Oud-hiya, ainsi que chaque animal sacrifié au nom d’Allah), ma vie et ma mort appartiennent à Allah, Seigneur de l’univers." (Verset 161 / chapitre 6 ; com. de Abou Bakr Jassâss (Ra), cité dans Ahkâmoul Qour’âne V.4 / P.200). Sacrifier un animal au nom d'Allah fait donc partie des devoirs du musulman.
L'exemple du Prophète (sallallâhou 'alayhi wa sallam) suffit pour démontrer son importance : lui qui résida dix ans à Madina après le Hidjrah ne manqua jamais d'accomplir le Oud-hiya chaque année. (Cité par Tirmidhi). Il a aussi averti ceux qui négligent cette pratique en disant : "Celui qui a les moyens et ne fait pas le Oud-hiyah, qu'il ne s'approche pas de notre Mousalla ('Eidgah)." (Cité par Ibn Mâdja et Ahmad) Voyez un peu l'emphase mise sur le Qourbâni par le Prophète (sallallâhou 'alayhi wa sallam). Rappelez vous que le Oud-hiya est un symbole -Chi’âr- de l'Islam (Ahkâmoul Ahkâm V.2 / P.110). Il n'y a aucune action plus aimée par Allah en ce jour de 'Eidoul Ad-ha que le sacrifice d'un animal. Allah pardonne tous les péchés passées de la personne lors de l’écoulement de la première goutte de sang. (Résumé de deux hadiths cités par Ibn Mâdja et Tirmidhi (hassan gharîb) et Ibn Hibbân) Sachez aussi que l'animal sacrifié sera amené le jour du jugement avec tous ses poils, ses cornes, ses pattes et sa viande (afin de peser plus lourd dans la balance et d’augmenter les récompenses) .(cités par Tirmidhi (hassan gharîb), Hâkim (sahih), et Ibn Mâdja) Enfin, n’oubliez pas que le meilleur animal à sacrifier est celui qui a le plus de viande (Règle de Imâm Abou Hanifa (ra), cité dans Al Fiqhoul Islâmi V.4 / P.2720) FAITES DONC LE OUD-HIYA Â CŒUR JOIE, précise le Prophète (sallallâhou 'alayhi wa sallam). (Cité par Tirmidhi (hassan gharîb), Ibn Mâdja et Hâkim (sahih)) Mawlâna Bilâl G.
Cet article est disponible sous forme d'affiche au format .pdf. Cliquez sur le lien pour télécharger : OUDH-HIYA / QOURBANI N'hésitez pas à l'imprimer et la diffuser autour de vous. |
|
| Dernière mise à jour : ( 02-12-2007 ) | |