diff --git a/doc/dev/Makefile b/doc/dev/Makefile
index dc0e971e8fd..8fd844848e7 100644
--- a/doc/dev/Makefile
+++ b/doc/dev/Makefile
@@ -41,10 +41,10 @@ all: $(DOC).pdf $(DOC).html
%.ps: %.sgml $(FRPAGES)
$(DEBIANDOC2PS) $(OPTIONS) $<
-%.pdf: %.sgml
+%.pdf: $(FRPAGES)
$(DEBIANDOC2PDF) $(OPTIONS) $<
-%.html: %.sgml $(FRPAGES)
+%.html: $(FRPAGES)
$(DEBIANDOC2HTML) $(HOPTIONS) $<
put:
diff --git a/htdocs/admin/boxes.php b/htdocs/admin/boxes.php
index 54ffc826503..5c7cd46e603 100644
--- a/htdocs/admin/boxes.php
+++ b/htdocs/admin/boxes.php
@@ -36,7 +36,6 @@ if ($HTTP_POST_VARS["action"] == 'add')
if ($action == 'delete')
{
-
$sql = "DELETE FROM llx_boxes WHERE rowid=$rowid";
$result = $db->query($sql);
@@ -51,8 +50,6 @@ if ($action == 'delete')
$boxes = array();
$pos[0] = "Homepage";
-$pos[1] = "Gauche";
-$pos[2] = "Droite";
print '
';
diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php
index 635826c1beb..bbb7f325686 100644
--- a/htdocs/admin/index.php
+++ b/htdocs/admin/index.php
@@ -24,14 +24,11 @@ llxHeader();
print_titre("Configuration Dolibarr (version ".DOL_VERSION.")");
-
-
print '';
print '';
print '| Nom | Valeur | Action | ';
print "
\n";
-
print '| Version | ' . DOL_VERSION . ' | |
';
print '| css | ' . $conf->css . ' | |
';
print '| theme | ' . $conf->theme . ' | |
';
diff --git a/htdocs/comm/docsoc.php b/htdocs/comm/docsoc.php
index 66f7eef2790..cb270381c49 100644
--- a/htdocs/comm/docsoc.php
+++ b/htdocs/comm/docsoc.php
@@ -24,19 +24,18 @@ llxHeader();
$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)
{
global $upload_dir;
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']))
{
print "Le fichier est valide, et a été téléchargé
@@ -61,7 +60,7 @@ if ($action=='delete')
dol_delete_file($file);
}
-if ( $sendit )
+if ( $sendit )
{
do_upload ($socid);
}
@@ -139,9 +138,8 @@ if ($socid > 0)
print "\n";
print "
";
-
- echo '