diff --git a/1.1/config/Batch/config.php b/1.1/config/Batch/config.php index 4c6b08c5..21d91fcb 100644 --- a/1.1/config/Batch/config.php +++ b/1.1/config/Batch/config.php @@ -1,12 +1,11 @@ \ No newline at end of file diff --git a/1.1/includes/auto_prepend.php b/1.1/includes/auto_prepend.php deleted file mode 100644 index 7d2f63d8..00000000 --- a/1.1/includes/auto_prepend.php +++ /dev/null @@ -1,78 +0,0 @@ -Host = MYSQL_HOST; - $this->Database = MYSQL_DEFAULT_DB; - $this->User = MYSQL_USER; - $this->Password = MYSQL_PASS; - } - - function getRow() { - $ret= $this->Record; - for( $i= 0; $iRecord); $i++ ) { if( !isset($ret[$i]) ) break; unset($ret[$i]); } - return $ret; - } - - function query($q) { - if ( MYSQL_SQL_LOG != 'NONE' ) $time_start=getmicrotime(); - - $ret=DB_sql::query($q); - - if ( MYSQL_SQL_LOG == 'NONE' ) return $ret; - - $time_end= getmicrotime(); - $time_total= $time_end-$time_start; - $time_total= substr((string)$time_total,0,10); - $now= date('Y/m/d H:i:s', $time_start); - if ($ret<1) - $mysqlerror = mysql_errno() .' : '. mysql_error(); - else - $mysqlerror = ''; - - $sqlAction=strtoupper(substr(trim($q),0,6)); - if ( MYSQL_SQL_LOG=='SELECT' && $sqlAction=='SELECT' ) - $logOption='_select'; - elseif ( MYSQL_SQL_LOG=='UPDATE' && ( $sqlAction=='UPDATE' || $sqlAction=='INSERT' || $sqlAction=='DELETE' ) ) - $logOption='_update'; - else - $logOption=''; - - $fh=@fopen(REP_TEMP . 'db_mysql'.$logOption.'.log', 'a+'); - if ($fh) { - @fwrite($fh, "$now\t$time_total\t" . MYSQL_HOST ."\t". MYSQL_USER ."\t". MYSQL_DB ."\t$mysqlerror\t$q\r\n"); - @fclose($fh); - } - - $mySqlErrTab=explode(' : ', $mysqlerror); - $mySqlErrno=(int)$mySqlErrTab[0]; - if ( $mySqlErrno > 0 && $mySqlErrno !=1062 ) { - mail( 'Erreur MySQL '.$mySqlErrno, $mysqlerror ."\n\n". $q ); - } - - return $ret; - } -}*/ - ?> \ No newline at end of file