Changeset 243
- Timestamp:
- 08/23/06 00:11:51 (2 years ago)
- Files:
-
- trunk/lib/jelix-scripts/templates/defaultconfig.ini.php.tpl (modified) (1 diff)
- trunk/lib/jelix/core/defaultconfig.ini.php (modified) (1 diff)
- trunk/lib/jelix/core/jErrorHandler.lib.php (modified) (1 diff)
- trunk/lib/jelix/core/jException.lib.php (modified) (2 diffs)
- trunk/myapp/var/config/defaultconfig.ini.php.dist (modified) (1 diff)
- trunk/testapp/var/config/defaultconfig.ini.php.dist (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix-scripts/templates/defaultconfig.ini.php.tpl
r190 r243 31 31 email = root@localhost 32 32 emailHeaders = "From: webmaster@yoursite.com\nX-Mailer: Jelix\nX-Priority: 1 (Highest)\n" 33 quietMessage="Une erreur technique est survenue. D�l�our ce d�gr�nt." 33 34 34 ; mots cl�que vous pouvez utiliser : ECHO, E XIT, LOGFILE, SYSLOG, MAIL35 ; mots cl�que vous pouvez utiliser : ECHO, ECHOQUIET, EXIT, LOGFILE, SYSLOG, MAIL, TRACE 35 36 default = ECHO EXIT 36 37 error = ECHO EXIT trunk/lib/jelix/core/defaultconfig.ini.php
r234 r243 61 61 email = root@localhost 62 62 emailHeaders = "From: webmaster@yoursite.com\nX-Mailer: Jelix\nX-Priority: 1 (Highest)\n" 63 quietMessage="Une erreur technique est survenue. D�l�our ce d�gr�nt." 63 64 64 ; mots cl�que vous pouvez utiliser : ECHO, E XIT, LOGFILE, SYSLOG, MAIL65 ; mots cl�que vous pouvez utiliser : ECHO, ECHOQUIET, EXIT, LOGFILE, SYSLOG, MAIL, TRACE 65 66 default = ECHO EXIT 66 67 error = ECHO EXIT trunk/lib/jelix/core/jErrorHandler.lib.php
r168 r243 70 70 )); 71 71 72 if(strpos($action , 'TRACE') !== false){ 73 $arr = debug_backtrace(); 74 $messageLog.="\ttrace:"; 75 array_shift($arr); 76 foreach($arr as $k=>$t){ 77 $messageLog.="\n\t$k\t".(isset($t['class'])?$t['class'].$t['type']:'').$t['function']."()\t"; 78 $messageLog.=(isset($t['file'])?$t['file']:'[php]').' : '.(isset($t['line'])?$t['line']:''); 79 } 80 $messageLog.="\n"; 81 } 72 82 // traitement du message 73 if(strpos($action , 'ECHO') !== false){ 83 if(strpos($action , 'ECHOQUIET') !== false){ 84 if($gJCoord->addErrorMsg($codeString[$errno], $code, $conf['quietMessage'], '', '')) 85 $action.=' EXIT'; 86 }elseif(strpos($action , 'ECHO') !== false){ 74 87 if($gJCoord->addErrorMsg($codeString[$errno], $code, $errmsg, $filename, $linenum)) 75 88 $action.=' EXIT'; trunk/lib/jelix/core/jException.lib.php
r121 r243 30 30 '%msg%' => $msg, 31 31 '%file%' => $exception->getFile(), 32 '%line%' => $exception->getLine() 32 '%line%' => $exception->getLine(), 33 '%typeerror%'=>'exception', 34 '\t' =>"\t", 35 '\n' => "\n" 33 36 )); 34 37 if($gJCoord->response == null){ … … 36 39 } 37 40 41 if(strpos($action , 'TRACE') !== false){ 42 $arr = debug_backtrace(); 43 $messageLog.="\ttrace:"; 44 array_shift($arr); 45 foreach($arr as $k=>$t){ 46 $messageLog.="\n\t$k\t".(isset($t['class'])?$t['class'].$t['type']:'').$t['function']."()\t"; 47 $messageLog.=(isset($t['file'])?$t['file']:'[php]').' : '.(isset($t['line'])?$t['line']:''); 48 } 49 $messageLog.="\n"; 50 } 51 38 52 // traitement du message 39 if(strpos($action , 'ECHO') !== false){ 53 if(strpos($action , 'ECHOQUIET') !== false){ 54 if($gJCoord->addErrorMsg('error', $exception->getCode(), $conf['quietMessage'], '', '')) 55 $action.=' EXIT'; 56 }elseif(strpos($action , 'ECHO') !== false){ 40 57 $gJCoord->addErrorMsg('error', $exception->getCode(), $msg, $exception->getFile(), $exception->getLine()); 41 58 } trunk/myapp/var/config/defaultconfig.ini.php.dist
r190 r243 31 31 email = root@localhost 32 32 emailHeaders = "From: webmaster@yoursite.com\nX-Mailer: Jelix\nX-Priority: 1 (Highest)\n" 33 quietMessage="Une erreur technique est survenue. D�l�our ce d�gr�nt." 33 34 34 ; mots cl�que vous pouvez utiliser : ECHO, E XIT, LOGFILE, SYSLOG, MAIL35 ; mots cl�que vous pouvez utiliser : ECHO, ECHOQUIET, EXIT, LOGFILE, SYSLOG, MAIL, TRACE 35 36 default = ECHO EXIT 36 37 error = ECHO EXIT trunk/testapp/var/config/defaultconfig.ini.php.dist
r190 r243 30 30 email = root@localhost 31 31 emailHeaders = "From: webmaster@yoursite.com\nX-Mailer: Jelix\nX-Priority: 1 (Highest)\n" 32 quietMessage="Une erreur technique est survenue. D�l�our ce d�gr�nt." 32 33 33 ; mots cl�que vous pouvez utiliser : ECHO, E XIT, LOGFILE, SYSLOG, MAIL34 ; mots cl�que vous pouvez utiliser : ECHO, ECHOQUIET, EXIT, LOGFILE, SYSLOG, MAIL, TRACE 34 35 default = ECHO EXIT 35 36 error = ECHO EXIT 36 37 warning = ECHO 37 notice = 38 strict = 38 notice = ECHO 39 strict = ECHO 39 40 ; pour les exceptions, il y a implicitement un EXIT 40 41 exception = ECHO
