mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-16 10:09:30 +00:00
Merge branch 'develop' into seeddms-5.1.x
This commit is contained in:
commit
b28153d8f9
|
@ -843,7 +843,7 @@ class Settings { /* {{{ */
|
||||||
$this->setXMLAttributValue($node, "smtpPassword", $this->_smtpPassword);
|
$this->setXMLAttributValue($node, "smtpPassword", $this->_smtpPassword);
|
||||||
|
|
||||||
// XML Path: /configuration/advanced/display
|
// XML Path: /configuration/advanced/display
|
||||||
$this->getXMLNode($xml, '/configuration', 'advanced');
|
$advnode = $this->getXMLNode($xml, '/configuration', 'advanced');
|
||||||
$node = $this->getXMLNode($xml, '/configuration/advanced', 'display');
|
$node = $this->getXMLNode($xml, '/configuration/advanced', 'display');
|
||||||
$this->setXMLAttributValue($node, "siteDefaultPage", $this->_siteDefaultPage);
|
$this->setXMLAttributValue($node, "siteDefaultPage", $this->_siteDefaultPage);
|
||||||
$this->setXMLAttributValue($node, "rootFolderID", $this->_rootFolderID);
|
$this->setXMLAttributValue($node, "rootFolderID", $this->_rootFolderID);
|
||||||
|
@ -889,6 +889,12 @@ class Settings { /* {{{ */
|
||||||
$this->setXMLAttributValue($node, "maxExecutionTime", $this->_maxExecutionTime);
|
$this->setXMLAttributValue($node, "maxExecutionTime", $this->_maxExecutionTime);
|
||||||
$this->setXMLAttributValue($node, "cmdTimeout", $this->_cmdTimeout);
|
$this->setXMLAttributValue($node, "cmdTimeout", $this->_cmdTimeout);
|
||||||
|
|
||||||
|
/* Check if there is still a converters list with a target attribute */
|
||||||
|
$node = $xml->xpath('/configuration/advanced/converters[count(@*)=0]');
|
||||||
|
if (count($node)>0) {
|
||||||
|
$this->setXMLAttributValue($node[0], 'target', 'fulltext');
|
||||||
|
}
|
||||||
|
|
||||||
// XML Path: /configuration/advanced/converters
|
// XML Path: /configuration/advanced/converters
|
||||||
foreach($this->_converters as $type=>$converters) {
|
foreach($this->_converters as $type=>$converters) {
|
||||||
foreach($this->_converters[$type] as $mimeType => $cmd) {
|
foreach($this->_converters[$type] as $mimeType => $cmd) {
|
||||||
|
@ -907,6 +913,10 @@ class Settings { /* {{{ */
|
||||||
} else {
|
} else {
|
||||||
if(trim($cmd)) {
|
if(trim($cmd)) {
|
||||||
$nodeParent = $xml->xpath('/configuration/advanced/converters[@target="'.$type.'"]');
|
$nodeParent = $xml->xpath('/configuration/advanced/converters[@target="'.$type.'"]');
|
||||||
|
if(count($nodeParent) == 0) {
|
||||||
|
$nodeParent = array($advnode->addChild("converters"));
|
||||||
|
$this->setXMLAttributValue($nodeParent[0], 'target', $type);
|
||||||
|
}
|
||||||
$node = $nodeParent[0]->addChild("converter");
|
$node = $nodeParent[0]->addChild("converter");
|
||||||
$node[0] = $cmd;
|
$node[0] = $cmd;
|
||||||
$this->setXMLAttributValue($node, 'mimeType', $mimeType);
|
$this->setXMLAttributValue($node, 'mimeType', $mimeType);
|
||||||
|
|
|
@ -118,7 +118,7 @@ function fileExistsInIncludePath($file) { /* {{{ */
|
||||||
* Load default settings + set
|
* Load default settings + set
|
||||||
*/
|
*/
|
||||||
define("SEEDDMS_INSTALL", "on");
|
define("SEEDDMS_INSTALL", "on");
|
||||||
define("SEEDDMS_VERSION", "5.0.2");
|
define("SEEDDMS_VERSION", "5.1.0");
|
||||||
|
|
||||||
require_once('../inc/inc.ClassSettings.php');
|
require_once('../inc/inc.ClassSettings.php');
|
||||||
|
|
||||||
|
@ -362,7 +362,7 @@ if ($action=="setSettings") {
|
||||||
if(file_exists('update-'.$updatedir.'/update.txt')) {
|
if(file_exists('update-'.$updatedir.'/update.txt')) {
|
||||||
print "<p>Please read the comments on updating this version. <a href=\"update-".$updatedir."/update.txt\" target=\"_blank\">Read now</a></p>";
|
print "<p>Please read the comments on updating this version. <a href=\"update-".$updatedir."/update.txt\" target=\"_blank\">Read now</a></p>";
|
||||||
}
|
}
|
||||||
print "<p>Run the <a href=\"update.php?version=".$updatedir."\">update script</a>.</p>";
|
print "<p><a href=\"update.php?version=".$updatedir."\" class=\"btn btn-primary\">Run the update script</a>.</p>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -108,7 +108,7 @@ CREATE TABLE `new_tblUsers` (
|
||||||
|
|
||||||
INSERT INTO new_tblUsers SELECT * FROM tblUsers;
|
INSERT INTO new_tblUsers SELECT * FROM tblUsers;
|
||||||
|
|
||||||
DROP TABLE tblUsers;
|
ALTER TABLE tblUsers RENAME TO old_tblUsers;
|
||||||
|
|
||||||
ALTER TABLE new_tblUsers RENAME TO tblUsers;
|
ALTER TABLE new_tblUsers RENAME TO tblUsers;
|
||||||
|
|
||||||
|
|
|
@ -33,11 +33,13 @@ if (!file_exists($configDir."/ENABLE_INSTALL_TOOL")) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$theme = "blue";
|
$theme = "bootstrap";
|
||||||
require_once("../inc/inc.Language.php");
|
require_once("../inc/inc.Language.php");
|
||||||
require_once("../inc/inc.ClassUI.php");
|
require_once("../inc/inc.ClassUI.php");
|
||||||
|
|
||||||
UI::htmlStartPage('Database update');
|
UI::htmlStartPage('Database update');
|
||||||
|
UI::globalBanner();
|
||||||
|
UI::contentStart();
|
||||||
UI::contentHeading("SeedDMS Installation for version ".$_GET['version']);
|
UI::contentHeading("SeedDMS Installation for version ".$_GET['version']);
|
||||||
UI::contentContainerStart();
|
UI::contentContainerStart();
|
||||||
|
|
||||||
|
@ -77,7 +79,7 @@ if($rec = $res->fetch(PDO::FETCH_ASSOC)) {
|
||||||
echo $query."<br />";
|
echo $query."<br />";
|
||||||
if(false === $db->exec($query)) {
|
if(false === $db->exec($query)) {
|
||||||
$e = $db->ErrorInfo();
|
$e = $db->ErrorInfo();
|
||||||
$errorMsg .= $e[2] . "<br/>";
|
$errorMsg .= $query.": ".$e[2] . "<br/>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -98,12 +100,13 @@ if($rec = $res->fetch(PDO::FETCH_ASSOC)) {
|
||||||
} else {
|
} else {
|
||||||
echo $errorMsg;
|
echo $errorMsg;
|
||||||
}
|
}
|
||||||
echo "<p><a href=\"install.php\">Go back to installation and recheck.</a></p>";
|
echo "<p><a href=\"install.php\" class=\"btn btn-primary\">Go back to installation and recheck.</a></p>";
|
||||||
} else {
|
} else {
|
||||||
echo "<p>Could not determine database schema version.</p>";
|
echo "<p>Could not determine database schema version.</p>";
|
||||||
}
|
}
|
||||||
$db = null;
|
$db = null;
|
||||||
|
|
||||||
UI::contentContainerEnd();
|
UI::contentContainerEnd();
|
||||||
|
UI::contentEnd();
|
||||||
UI::htmlEndPage();
|
UI::htmlEndPage();
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user