mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
remove old code, add some more comments
This commit is contained in:
parent
ed93657566
commit
00429e6e3a
|
@ -56,16 +56,9 @@ if(isset($options['v']) || isset($options['verѕion'])) {
|
||||||
/* Set alternative config file */
|
/* Set alternative config file */
|
||||||
if(isset($options['config'])) {
|
if(isset($options['config'])) {
|
||||||
define('SEEDDMS_CONFIG_FILE', $options['config']);
|
define('SEEDDMS_CONFIG_FILE', $options['config']);
|
||||||
// $settings = new Settings($options['config']);
|
|
||||||
} else {
|
|
||||||
// $settings = new Settings();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(isset($settings->_extraPath))
|
/* Set parent folder */
|
||||||
// ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path'));
|
|
||||||
|
|
||||||
//require_once("SeedDMS/Core.php");
|
|
||||||
|
|
||||||
if(isset($options['F'])) {
|
if(isset($options['F'])) {
|
||||||
$folderid = (int) $options['F'];
|
$folderid = (int) $options['F'];
|
||||||
} else {
|
} else {
|
||||||
|
@ -74,16 +67,19 @@ if(isset($options['F'])) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set comment of document */
|
||||||
$comment = '';
|
$comment = '';
|
||||||
if(isset($options['c'])) {
|
if(isset($options['c'])) {
|
||||||
$comment = $options['c'];
|
$comment = $options['c'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set comment of version */
|
||||||
$version_comment = '';
|
$version_comment = '';
|
||||||
if(isset($options['C'])) {
|
if(isset($options['C'])) {
|
||||||
$version_comment = $options['C'];
|
$version_comment = $options['C'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set keywords */
|
||||||
$keywords = '';
|
$keywords = '';
|
||||||
if(isset($options['k'])) {
|
if(isset($options['k'])) {
|
||||||
$keywords = $options['k'];
|
$keywords = $options['k'];
|
||||||
|
@ -132,17 +128,6 @@ include("../inc/inc.ClassNotificationService.php");
|
||||||
include("../inc/inc.ClassEmailNotify.php");
|
include("../inc/inc.ClassEmailNotify.php");
|
||||||
include("../inc/inc.ClassController.php");
|
include("../inc/inc.ClassController.php");
|
||||||
|
|
||||||
//$db = new SeedDMS_Core_DatabaseAccess($settings->_dbDriver, $settings->_dbHostname, $settings->_dbUser, $settings->_dbPass, $settings->_dbDatabase);
|
|
||||||
//$db->connect() or die ("Could not connect to db-server \"" . $settings->_dbHostname . "\"");
|
|
||||||
//$db->_conn->debug = 1;
|
|
||||||
|
|
||||||
|
|
||||||
//$dms = new SeedDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir);
|
|
||||||
//if(!$dms->checkVersion()) {
|
|
||||||
// echo "Database update needed.";
|
|
||||||
// exit;
|
|
||||||
//}
|
|
||||||
|
|
||||||
/* Parse categories {{{ */
|
/* Parse categories {{{ */
|
||||||
$categories = array();
|
$categories = array();
|
||||||
if(isset($options['K'])) {
|
if(isset($options['K'])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user