mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
changed name from letodms to ѕeeddms, use extraPath from settings
This commit is contained in:
parent
8b8ef6a72c
commit
717493061c
|
@ -1,12 +1,9 @@
|
|||
<?php
|
||||
ini_set('include_path', '.:/usr/share/php:/usr/share/letodms/www');
|
||||
|
||||
include("inc/inc.ClassSettings.php");
|
||||
include("LetoDMS/Core.php");
|
||||
include("../inc/inc.ClassSettings.php");
|
||||
|
||||
function usage() { /* {{{ */
|
||||
echo "Usage:\n";
|
||||
echo " letodms-adddoc [--config <file>] [-c <comment>] [-k <keywords>] [-s <number>] [-n <name>] [-V <version>] [-s <sequence>] [-t <mimetype>] [-h] [-v] -F <folder id> -f <filename>\n";
|
||||
echo " seeddms-adddoc [--config <file>] [-c <comment>] [-k <keywords>] [-s <number>] [-n <name>] [-V <version>] [-s <sequence>] [-t <mimetype>] [-h] [-v] -F <folder id> -f <filename>\n";
|
||||
echo "\n";
|
||||
echo "Description:\n";
|
||||
echo " This program uploads a file into a folder of LetoDMS.\n";
|
||||
|
@ -56,6 +53,11 @@ if(isset($options['config'])) {
|
|||
$settings = new Settings();
|
||||
}
|
||||
|
||||
if(isset($settings->_extraPath))
|
||||
ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path'));
|
||||
|
||||
require_once("LetoDMS/Core.php");
|
||||
|
||||
if(isset($options['F'])) {
|
||||
$folderid = (int) $options['F'];
|
||||
} else {
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
<?php
|
||||
ini_set('include_path', '.:/usr/share/php:/usr/share/letodms/www');
|
||||
|
||||
include("inc/inc.ClassSettings.php");
|
||||
include("LetoDMS/Core.php");
|
||||
include("../inc/inc.ClassSettings.php");
|
||||
|
||||
function usage() { /* {{{ */
|
||||
echo "Usage:\n";
|
||||
echo " letodms-createfolder [--config <file>] [-c <comment>] [-n <name>] [-s <sequence>] [-h] [-v] -F <parent id>\n";
|
||||
echo " seeddms-createfolder [--config <file>] [-c <comment>] [-n <name>] [-s <sequence>] [-h] [-v] -F <parent id>\n";
|
||||
echo "\n";
|
||||
echo "Description:\n";
|
||||
echo " This program creates a new folder in LetoDMS.\n";
|
||||
|
@ -48,6 +45,11 @@ if(isset($options['config'])) {
|
|||
$settings = new Settings();
|
||||
}
|
||||
|
||||
if(isset($settings->_extraPath))
|
||||
ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path'));
|
||||
|
||||
require_once("LetoDMS/Core.php");
|
||||
|
||||
if(isset($options['F'])) {
|
||||
$folderid = (int) $options['F'];
|
||||
} else {
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
<?php
|
||||
ini_set('include_path', '.:/usr/share/php:/usr/share/letodms/www');
|
||||
|
||||
require_once("inc/inc.ClassSettings.php");
|
||||
require_once("LetoDMS/Core.php");
|
||||
require_once("LetoDMS/Lucene.php");
|
||||
require_once("../inc/inc.ClassSettings.php");
|
||||
|
||||
function usage() { /* {{{ */
|
||||
echo "Usage:\n";
|
||||
echo " letodms-indexer [-h] [-v] [--config <file>]\n";
|
||||
echo " seeddms-indexer [-h] [-v] [--config <file>]\n";
|
||||
echo "\n";
|
||||
echo "Description:\n";
|
||||
echo " This program recreates the full text index of LetoDMS.\n";
|
||||
|
@ -45,6 +41,12 @@ if(isset($options['config'])) {
|
|||
$settings = new Settings();
|
||||
}
|
||||
|
||||
if(isset($settings->_extraPath))
|
||||
ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path'));
|
||||
|
||||
require_once("LetoDMS/Core.php");
|
||||
require_once("LetoDMS/Lucene.php");
|
||||
|
||||
function tree($folder, $indent='') {
|
||||
global $index, $dms;
|
||||
echo $indent."D ".$folder->getName()."\n";
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/bin/php -f /usr/share/letodms/utils/adddoc.php -- $*
|
||||
/usr/bin/php -f /usr/share/seeddms/utils/adddoc.php -- $*
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/bin/php -f /usr/share/letodms/utils/createfolder.php -- $*
|
||||
/usr/bin/php -f /usr/share/seeddms/utils/createfolder.php -- $*
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/bin/php -f /usr/share/letodms/utils/indexer.php -- $*
|
||||
/usr/bin/php -f /usr/share/seeddms/utils/indexer.php -- $*
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/bin/php -f /usr/share/letodms/utils/xmldump -- $*
|
||||
/usr/bin/php -f /usr/share/seeddms/utils/xmldump -- $*
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
<?php
|
||||
ini_set('include_path', '.:/usr/share/php:/usr/share/letodms');
|
||||
|
||||
require_once("inc/inc.ClassSettings.php");
|
||||
//require_once("LetoDMS/Core.php");
|
||||
require_once("LetoDMS_Core/Core.php");
|
||||
require_once("../inc/inc.ClassSettings.php");
|
||||
|
||||
function usage() { /* {{{ */
|
||||
echo "Usage:\n";
|
||||
echo " letodms-xmldump [-h] [-v] [--config <file>]\n";
|
||||
echo " seeddms-xmldump [-h] [-v] [--config <file>]\n";
|
||||
echo "\n";
|
||||
echo "Description:\n";
|
||||
echo " This program creates an xml dump of the whole or parts of the dms.\n";
|
||||
|
@ -53,6 +49,11 @@ if(isset($options['config'])) {
|
|||
$settings = new Settings();
|
||||
}
|
||||
|
||||
if(isset($settings->_extraPath))
|
||||
ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path'));
|
||||
|
||||
require_once("LetoDMS/Core.php");
|
||||
|
||||
if(isset($options['folder'])) {
|
||||
$folderid = intval($options['folder']);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user