| 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")) { |
|---|