pre-release 0.1.3

This commit is contained in:
Rodolphe Quiedeville 2003-06-24 15:21:05 +00:00
parent c80b809a07
commit b02fadfd5a
7 changed files with 30 additions and 49 deletions

View File

@ -41,10 +41,10 @@ all: $(DOC).pdf $(DOC).html
%.ps: %.sgml $(FRPAGES) %.ps: %.sgml $(FRPAGES)
$(DEBIANDOC2PS) $(OPTIONS) $< $(DEBIANDOC2PS) $(OPTIONS) $<
%.pdf: %.sgml %.pdf: $(FRPAGES)
$(DEBIANDOC2PDF) $(OPTIONS) $< $(DEBIANDOC2PDF) $(OPTIONS) $<
%.html: %.sgml $(FRPAGES) %.html: $(FRPAGES)
$(DEBIANDOC2HTML) $(HOPTIONS) $< $(DEBIANDOC2HTML) $(HOPTIONS) $<
put: put:

View File

@ -36,7 +36,6 @@ if ($HTTP_POST_VARS["action"] == 'add')
if ($action == 'delete') if ($action == 'delete')
{ {
$sql = "DELETE FROM llx_boxes WHERE rowid=$rowid"; $sql = "DELETE FROM llx_boxes WHERE rowid=$rowid";
$result = $db->query($sql); $result = $db->query($sql);
@ -51,8 +50,6 @@ if ($action == 'delete')
$boxes = array(); $boxes = array();
$pos[0] = "Homepage"; $pos[0] = "Homepage";
$pos[1] = "Gauche";
$pos[2] = "Droite";
print '<table border="1" cellpadding="3" cellspacing="0">'; print '<table border="1" cellpadding="3" cellspacing="0">';

View File

@ -24,14 +24,11 @@ llxHeader();
print_titre("Configuration Dolibarr (version ".DOL_VERSION.")"); print_titre("Configuration Dolibarr (version ".DOL_VERSION.")");
print '<table border="1" cellpadding="3" cellspacing="0">'; print '<table border="1" cellpadding="3" cellspacing="0">';
print '<TR class="liste_titre">'; print '<TR class="liste_titre">';
print '<td>Nom</td><td>Valeur</td><td>Action</td>'; print '<td>Nom</td><td>Valeur</td><td>Action</td>';
print "</TR>\n"; print "</TR>\n";
print '<tr><td>Version</td><td>' . DOL_VERSION . '</td><td>&nbsp;</td></tr>'; print '<tr><td>Version</td><td>' . DOL_VERSION . '</td><td>&nbsp;</td></tr>';
print '<tr><td>css</td><td>' . $conf->css . '</td><td>&nbsp;</td></tr>'; print '<tr><td>css</td><td>' . $conf->css . '</td><td>&nbsp;</td></tr>';
print '<tr><td>theme</td><td>' . $conf->theme . '</td><td>&nbsp;</td></tr>'; print '<tr><td>theme</td><td>' . $conf->theme . '</td><td>&nbsp;</td></tr>';

View File

@ -24,19 +24,18 @@ llxHeader();
$db = new Db(); $db = new Db();
$upload_dir = SOCIETE_DOCUMENT_DIR . "/" . $socid . "/"; $upload_dir = SOCIETE_OUTPUTDIR . "/" . $socid . "/";
if (! is_dir($upload_dir))
{
mkdir($upload_dir);
}
function do_upload ($socid) function do_upload ($socid)
{ {
global $upload_dir; global $upload_dir;
global $local_file, $error_msg; global $local_file, $error_msg;
if (! is_dir($upload_dir))
{
mkdir($upload_dir, 0755);
}
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $upload_dir . $_FILES['userfile']['name'])) if (move_uploaded_file($_FILES['userfile']['tmp_name'], $upload_dir . $_FILES['userfile']['name']))
{ {
print "Le fichier est valide, et a &eacute;t&eacute; t&eacute;l&eacute;charg&eacute; print "Le fichier est valide, et a &eacute;t&eacute; t&eacute;l&eacute;charg&eacute;
@ -141,7 +140,6 @@ if ($socid > 0)
print "</table>"; print "</table>";
echo '<FORM NAME="userfile" ACTION="docsoc.php?socid='.$socid.'" ENCTYPE="multipart/form-data" METHOD="POST">'; echo '<FORM NAME="userfile" ACTION="docsoc.php?socid='.$socid.'" ENCTYPE="multipart/form-data" METHOD="POST">';
print '<input type="hidden" name="max_file_size" value="2000000">'; print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input type="file" name="userfile" size="40" maxlength="80">'; print '<input type="file" name="userfile" size="40" maxlength="80">';
print '<BR>'; print '<BR>';

View File

@ -26,19 +26,10 @@ class Conf {
Function Conf() Function Conf()
{ {
/* A conserver */
$this->db = new DbConf(); $this->db = new DbConf();
/* A verifier */
$this->theme = "dolibarr";
$this->css = "theme/".$this->theme."/".$this->theme.".css";
$this->liste_limit = 10; $this->liste_limit = 10;
$this->societe = 1;
$this->voyage = 0; $this->voyage = 0;
$this->compta = new ComptaConf(); $this->compta = new ComptaConf();
@ -53,10 +44,7 @@ class Conf {
$this->readonly = 0; $this->readonly = 0;
$this->years = 2001; $this->password_encrypted = 0;
$this->password_encrypted = 1;
} }
} }
@ -68,14 +56,10 @@ class ComptaConf
} }
} }
class PropalConf { class PropalConf
Function PropalConf() { {
Function PropalConf()
$this->fromtoname = "Service Commercial"; {
$this->fromtomail = "commercial@propal.com";
$this->replytoname = "Service Commercial";
$this->replytomail = "commercial@propal.com";
} }
} }

View File

@ -75,10 +75,6 @@ $user = new User($db);
$user->fetch($GLOBALS["REMOTE_USER"]); $user->fetch($GLOBALS["REMOTE_USER"]);
if ($user->limite_liste <> $conf->liste_limit)
{
$conf->liste_limit = $user->limite_liste;
}
/* /*
* Definition de toutes les Constantes globales d'envirronement * Definition de toutes les Constantes globales d'envirronement
* *
@ -154,6 +150,15 @@ if (defined("SIZE_LISTE_LIMIT"))
{ {
$conf->liste_limit=SIZE_LISTE_LIMIT; $conf->liste_limit=SIZE_LISTE_LIMIT;
} }
else
{
$conf->liste_limit=20;
}
if ($user->limite_liste <> $conf->liste_limit)
{
$conf->liste_limit = $user->limite_liste;
}
if (defined("MAIN_THEME")) if (defined("MAIN_THEME"))
{ {

View File

@ -1,8 +1,5 @@
-- =================================================================== -- ===================================================================
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- $Id$
-- $Source$
-- --
-- This program is free software; you can redistribute it and/or modify -- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by -- it under the terms of the GNU General Public License as published by
@ -18,6 +15,9 @@
-- along with this program; if not, write to the Free Software -- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- $Id$
-- $Source$
--
-- =================================================================== -- ===================================================================
create table llx_propal create table llx_propal