Changeset 2134

Show
Ignore:
Timestamp:
07/12/06 08:12:13 (7 years ago)
Author:
diego_iastrubni
Message:

revert the sqlite-install patch. development should not be done on the branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.1/amp_conf/htdocs/admin/functions.inc.php

    r2133 r2134  
    982982  $data=''; 
    983983  // if there is an sql file, run it 
    984    
    985   $db_engine = $amp_conf["AMPDBENGINE"]; 
    986   $sql_file  = $amp_conf["AMPWEBROOT"]."/admin/modules/{$moddir}/"; 
    987   if ($db_engine == ""){ 
    988           $db_engine = "mysql"; 
    989   } 
    990  
    991   switch ($db_engine) { 
    992           case "pgsql": 
    993           case "mysql": 
    994       $sql_file = $sql_file . $type . ".sql"; 
    995                 break; 
    996  
    997           case "sqlite": 
    998           $sql_file = $sql_file . $type . ".sqlite"; 
    999             break; 
    1000  
    1001               default: 
    1002                   die( "Unknown SQL engine: [$db_engine]"); 
    1003   } 
    1004      
    1005   if (is_file($sql_file)) { 
     984  if (is_file($amp_conf["AMPWEBROOT"]."/admin/modules/{$moddir}/{$type}.sql")) { 
    1006985    // run sql script 
    1007     $fd = fopen($sql_file,"r"); 
     986    $fd = fopen($amp_conf["AMPWEBROOT"]."/admin/modules/{$moddir}/{$type}.sql","r"); 
    1008987    while (!feof($fd)) { $data .= fread($fd, 1024); } 
    1009988    fclose($fd); 
     
    1020999  return true; 
    10211000} 
     1001 
    10221002 
    10231003