Patch 092-2
Fix problem with database creation in user mode
This commit is contained in:
parent
a208a414df
commit
bb68336cfa
4 changed files with 4 additions and 7 deletions
|
|
@ -115,6 +115,7 @@ if ( isset ($_GET["action"]) ) {
|
|||
$Sql=sprintf("CREATE DATABASE DOSSIER%d encoding='ISO8859-1' TEMPLATE MOD%d",$l_id,$_POST["FMOD_ID"]);
|
||||
echo_debug($Sql);
|
||||
ExecSql($cn,$Sql);
|
||||
$Res=ExecSql($cn,"insert into jnt_use_dos (use_id,dos_id) values (1,$l_id)");
|
||||
} // if $l_id != 0
|
||||
} // $_POST[DATABASE]
|
||||
?>
|
||||
|
|
@ -212,7 +213,6 @@ if ( $count == 0 ) {
|
|||
$Res=ExecSql($cn,"create sequence s_jrn");
|
||||
$Res=ExecSql($cn,"create sequence s_jrn_op");
|
||||
$Res=ExecSql($cn,"create sequence s_centralized");
|
||||
|
||||
}
|
||||
// Show all available templates
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
/*
|
||||
* This file is part of WCOMPTA.
|
||||
*
|
||||
* WCOMPTA is free software; you can redistribute it and/or modify
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* WCOMPTA is distributed in the hope that it will be useful,
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@
|
|||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
export PATH=/opt/psql732/bin:$PATH
|
||||
export PGDATA=/opt/database
|
||||
version=3
|
||||
VerifOutil() {
|
||||
RESULT="Verif. $1"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
export PGDATA=/opt/database
|
||||
export PATH=/opt/psql732/bin:$PATH
|
||||
export REMOTECVS=:pserver:danpo@july:/home/danpo/CVSCOMPTA
|
||||
export LOCALCVS=/home/danpo/CVSCOMPTA
|
||||
export MANPATH=/opt/psql732/man
|
||||
export PATH=$PATH:/home/danpo/doxygen/bin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue