Changeset 145

Show
Ignore:
Timestamp:
04/23/06 10:45:05 (3 years ago)
Author:
laurentj
Message:

correction des bugs 6892 et 7200 à propos des repertoires temp ainsi que trois autres petits bugs sur jforms et les réponses

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/manifests/jelix-dev.mn

    r113 r145  
    137137  project.rng 
    138138  urls.rng 
     139cd lib/jelix-www/xul/test/ 
     140  testxulform.php 
     141  testxulform.xul 
  • trunk/build/manifests/jelix-lib.mn

    r142 r145  
    8686  jDbResultSet.postgresql.class.php 
    8787  jDbTools.postgresql.class.php 
    88    
     88 
    8989cd lib/jelix/db/drivers/sqlite 
    9090  jDbConnection.sqlite.class.php 
    9191  jDbResultSet.sqlite.class.php 
    92   jDbTools.sqlite.class.php   
     92  jDbTools.sqlite.class.php 
    9393 
    9494cd lib/jelix/events 
     
    237237  magicquotes.plugin.php 
    238238  plugin.xml 
     239 
     240 
     241cd lib/jelix-www 
     242  json.js 
     243cd lib/jelix-www/design 
     244  jelix.css 
     245  tooltip.css 
     246cd lib/jelix-www/js 
     247  tooltip.js 
     248cd lib/jelix-www/xul 
     249  jxulform.css 
     250  jxulform.xml 
     251  throbber.gif 
     252 
  • trunk/build/manifests/myapp.mn

    r101 r145  
    1010  xmlrpc.php 
    1111  index.php 
    12 cd myapp/www/jelix 
    13   json.js 
    14 cd myapp/www/jelix/styles 
    15   tooltip.css 
    16   jylix.css 
    17 cd myapp/www/jelix/js 
    18   tooltip.js 
    1912cd myapp/modules 
    2013  .htaccess 
  • trunk/build/manifests/testapp.mn

    r132 r145  
    1616cd testapp/www/design 
    1717  screen.css 
    18 cd testapp/www/jelix 
    19   json.js 
    20 cd testapp/www/jelix/styles 
    21   tooltip.css 
    22   jylix.css 
    23 cd testapp/www/jelix/js 
    24   tooltip.js 
    2518cd testapp/modules 
    2619  .htaccess 
  • trunk/lib/jelix/core/jConfig.class.php

    r98 r145  
    4242        } 
    4343        $config->OS = $os; 
    44         $config->isWindows = (strtolower($os) == 'win'); 
     44        $config->isWindows = (strpos(strtolower($os),'win')!== false); 
    4545        if(trim( $config->defaultAction) == '') 
    4646             $config->defaultAction = '_'; 
  • trunk/lib/jelix/core/jCoordinator.class.php

    r138 r145  
    6262        $gJCoord =  $this; 
    6363 
     64        if(JELIX_APP_TEMP_PATH=='/'){ // le realpath dans application.ini.php a renvoy�alse... 
     65            die('Jelix Error: Application temp directory doesn\'t exist !'); 
     66        } 
    6467        if(!is_writable(JELIX_APP_TEMP_PATH)){ 
    65             trigger_error('Temp directory is not writable',E_USER_ERROR); 
     68            die('Jelix Error: Application temp directory is not writable'); 
    6669        } 
    6770        // load configuration data 
  • trunk/lib/jelix/core/response/jResponseHtml.class.php

    r138 r145  
    159159    final public function outputErrors(){ 
    160160        if(!$this->_headSent){ 
    161             header('Content-Type: text/html;charset='.$this->_charset); 
     161            if(!$this->_sendHttpHeader) header('Content-Type: text/html;charset='.$this->_charset); 
    162162            echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', "\n"; 
    163163            echo '<html><head><title>Errors</title></head><body>'; 
  • trunk/lib/jelix/core/response/jResponseXul.class.php

    r138 r145  
    116116    function outputErrors(){ 
    117117        if(!$this->_headSent){ 
     118            if(!$this->_sendHttpHeader) header('Content-Type: application/vnd.mozilla.xul+xml;charset='.$GLOBALS['gJConfig']->defaultCharset); 
    118119            echo '<?xml version="1.0" encoding="'.$GLOBALS['gJConfig']->defaultCharset.'" ?>'."\n"; 
    119120            echo '<',$this->_root,' title="Erreurs" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">'; 
  • trunk/lib/jelix/forms/jForms.class.php

    r134 r145  
    4343      global $gJCoord; 
    4444      if(empty($internalIdName)){ 
    45          $internalId = 0
     45         $internalId = md5(0)
    4646      }else{ 
    4747         $internalId = $gJCoord->request->getParam($internalIdName); 
    48          if($internalId == null) $internalId=0
     48         if($internalId == null) $internalId=md5(0)
    4949      } 
    5050 
     
    7070      global $gJCoord; 
    7171      if(empty($internalIdName)){ 
    72          $internalId = 0
     72         $internalId = md5(0)
    7373      }else{ 
    7474         $internalId = $gJCoord->request->getParam($internalIdName); 
    75          if($internalId == null) $internalId=0
     75         if($internalId == null) $internalId=md5(0)
    7676      } 
    7777 
  • trunk/lib/jelix/utils/jFile.class.php

    r12 r145  
    7070        // because it cannot overwrite files with rename() 
    7171        if ($GLOBALS['gJConfig']->isWindows && file_exists($file)) { 
    72             @unlink($file); 
     72            unlink($file); 
    7373        } 
    74         @rename($_tmp_file, $file); 
     74        rename($_tmp_file, $file); 
    7575        @chmod($file,  0664); 
    7676 
Download in other formats: Unified Diff Zip Archive