[Isis-users] What is missing in the files
Egbert De Smet
egbert.desmet at uantwerpen.be
Sun May 9 20:28:02 CEST 2021
This question at least to me remains totally unclear :
- the attached file ABCD.txt seems to be some memory-dump which has nothing to do with ABCd
- the printed config.php is the one we currently use in v2.2 (and works well).
So it is not possible to indicate 'what is missing' in such a text-file.
If the question is 'what is wrong' with the file, then we need more details on exactly what is happening (which error) and at exactly which step in the use of ABCD.
We want to keep helping ABCD- users but the questions need to be more precise and detailed.
Egbert de Smet
Universiteit Antwerpen
________________________________
From: isis-users <isis-users-bounces+egbert.desmet=uantwerpen.be at iccisis.org> on behalf of Henk Rutten <hlrutten at xs4all.nl>
Sent: Saturday, May 8, 2021 9:22 PM
To: isis-users at iccisis.org
Subject: [Isis-users] What is missing in the files
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Aldo Levi would like to know what is missing in the two files (ABCD2.txt and Config.php)
Aldo Levi gustaría saber qué falta en los dos archivos.
Config.php:
<?php
/* Modifications
2021-02-03 fho4abcd: Set metaencoding only for active session (from repository ABCD2.2)
2021-02-03 fho4abcd: moved comment for cisis version to actual statement
2021-02-04 fho4abcd: ensure trailing slash for $db_path
2021-02-10 fho4abcd: new/improved checks $ABCD_path, $db_path, abcd.def
2021-02-10 fho4abcd: replace fixed server port by autodetection of server port, code formatting
2021-02-25 fho4abcd: don't send header info (wrong and out of order here)
2021-04-02 fho4abcd: autodetected protocol (port was already detected since 2021-02-10))
2021-04-15 fho4abcd: Send header info to server. (revert 2021-02-25)
*/
ini_set('error_reporting', E_ALL);
$cisis_versions_allowed="16-60;ffi;bigisis";
// *** Main server configuration
// URL for internal server actions, with autodetected protocol and port
// Note: protocol/port are determined by server config vhosts file. (also if defaults are used)
$protocol="http:"; // default protocol
if ( isset($_SERVER['HTTPS']) and $_SERVER['HTTPS']=="on") $protocol="https:";
$server_url=$protocol."//localhost:".$_SERVER['SERVER_PORT'];
$postMethod=1; // if set to '1' (or true) ABCD will use POST-method; if set to '0' the GET-method will be used. Use with caution
$dirtree=1; // USE THIS PARAMETER TO SHOW THE ICON THAT ALLOWS THE BASES FOLDER EXPLORATION
$MD5=0; // USE THIS PARAMETER TO ENABLE/DISABLE THE MD5 PASSWORD ENCRIPTYON (0=OFF 1=ON)
$EmpWeb=1; // use EmpWeb or not
$use_ldap=1; // use LDAP or not
// Set operation system depending variables
if (stripos($_SERVER["SERVER_SOFTWARE"],"Win") > 0) {
// Windows variables
C:/ABCD/ // base path to ABCD-installation
C:/ABCD/www/bases/"; // path where the databases are to be located
$exe_ext=".exe"; // extension for executables
}else{
// Linux variables
$ABCD_path="/opt/ABCD/"; // base path to ABCD-installation
$db_path="/var/opt/ABCD/bases/"; // path where the databases are to be located
$exe_ext=""; // extension for executables
}
$ABCD_scripts_path=$ABCD_path. "www/htdocs/"; //PATH
//IF THERE ARE MULTIPLE BASES FOLDERS THE FOLDER SELECTED IS SET
if ( isset($_SESSION["db_path"]) and $_SESSION["db_path"]!="")
$db_path=$_SESSION["db_path"];
if (isset($_REQUEST["db_path"])) { //PARA PERMITIR MANEJAR VARIAS CARPETAS BASES DESDE EL OPAC
$_REQUEST["db_path"]=urldecode($_REQUEST["db_path"]);
$db_path=$_REQUEST["db_path"];
if (isset($_SESSION)) $_SESSION["db_path"]=$db_path; //CUANDO VIENE DEL OPAC NO SE TRABAJA CON SESIONES
}
// Other local settings to be configured
$open_new_window="Y"; // Open the Central module in a new window for avoiding the use of the browse buttons
$context_menu="Y"; // allow opening right-click menu
$config_date_format="DD/MM/YY"; // USED FOR ALL THE DATE FUNCTIONS. DD=DAYS, MM=MONTH, AA=YEAR. USE / AS SEPARATOR
$app_path="central"; // Folder with the administration module
$inventory_numeric ="N"; // This variable erases the left zeroes in the inventory number
$max_inventory_length=1; // Add Zeroes to the left for reaching the max length of the inventory number
$max_cn_length=1; // Add Zeroes to the left for reaching the max length of the control number
$log="Y"; // switch on logging of the actions, a subfolder 'log' needs to exist in database-directory
$lang="es"; // default language
$lang_db="es"; // Default langue for the databases definition
$change_password="Y"; //allow change password
$ext_allowed=array("jpg","gif","png","pdf","doc","docx","xls","xlsx","odt"); //extensions allowed for uploading files (used in dataentry/)
// *** NO CHANGES NEEDED BELOW HERE
if (substr($db_path, strlen($db_path)-1,1) <> "/") $db_path.="/"; // Ensure db_path has has trailing /.
// Construction of executable path and URL
$wxis_exec="wxis".$exe_ext; // name and extension of wxis executable
$mx_exec="mx".$exe_ext; // name and extension of mx executable
$msg_path=$db_path; // path where the message-files are stored, typical the database-directory
$img_path=$db_path; // legacy path to the folder where the uploaded images are to be stored (the database name will be added to this path)
$cgibin_path=$ABCD_path."www/cgi-bin/"; // path to the basic directory for CISIS-utilities
$xWxis=$ABCD_path."www/htdocs/$app_path/dataentry/wxis/"; // path to the wxis scripts .xis for Central
$unicode="";
$institution_name="";
$cisis_ver=""; // initialisation of $cisis_ver as empty = default standard CISIS-version
// Check existence of locations/files
// These checks are not bulletproof: succesfull check does not guarantee correct configuration
$document_root=$_SERVER['DOCUMENT_ROOT'];
if (!fnmatch("*".$ABCD_path."*", $document_root)) {
echo "<div>Variable '\$ABCD_path' in the configuration file must be a substring of 'DocumentRoot' in the virtual host file</div>";
echo "<div>E.g. \"$ABCD_path\" (configured path) must be substring of \"$document_root\" (DocumentRoot)</div>";
echo "<div>→ Please check your virtual host file and variable '\$ABCD_path' in file ".__FILE__."</div>";
die;
}
if (!file_exists($ABCD_path)) {
echo "<div>Missing Base path to ABCD installation folder: $ABCD_path</div>";
echo "<div>→ Please check variable '\$ABCD_path' in file ".__FILE__."</div>";
die;
}
if (!file_exists($db_path)){
echo "<div>Missing database folder :$db_path </div>";
echo "<div>→ Please check variable '\$db_path' in file ".__FILE__."</div>";
echo "<div>→ Please check paths in file ".dirname(__DIR__,1).DIRECTORY_SEPARATOR."dbpath.dat"."</div>";
die;
}
if (!file_exists($db_path."abcd.def")){
echo "Missing file abcd.def in database folder $db_path";
die;
}
if (isset($_SESSION["MULTIPLE_DB_FORMATS"])) unset($_SESSION["MULTIPLE_DB_FORMATS"]);
$def = parse_ini_file($db_path."abcd.def",true); // read variables from abcd.def
$institution_name=$def["LEGEND2"]; // Institution name defined by abcd.def 'LEGEND2'
if (isset($def["UNICODE"]) and $def["UNICODE"]==1)
$meta_encoding="UTF-8";
else
$meta_encoding="ISO-8859-1";
if (file_exists(realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR."config_extended.php")){
//Include config_extended.php that reads extra configuration parameters
include (realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR."config_extended.php");
}
//en el config_extended.php se pueden cambiar los valores de $def["UNICODE"],$def[["CISIS_VERSION"]] 0 $def["UNICODE"]
//se determina la versión del cisis; Si el parámetro no existe se asuma 16-60
//echo "<pre>";echo print_r($def);echo "</pre>";
if (isset($def["UNICODE"]) and $def["UNICODE"]==1){
$unicode="utf8";
$charset="UTF-8";
}else{
$unicode="ansi";
$def["UNICODE"]=0;
$charset="ISO-8859-1";
}
// Send characterset to the server. Note that the browser gets it via the html header.
header('Content-type: text/html; charset=$charset');
if (session_status() != PHP_SESSION_NONE ) $_SESSION["meta_encoding"]=$meta_encoding;
//SE CAMBIA EL LENGUAJE POR DEFECTO POR EL QUE SE ESTABLEZCA EN abcd.def
if (isset($def["DEFAULT_LANG"])) $lang=$def["DEFAULT_LANG"];
if (isset($def["CISIS_VERSION"]) and $def["CISIS_VERSION"]!="16-60" and $def["CISIS_VERSION"]!="" ){
$cisis_ver=$def["CISIS_VERSION"];
}
$cisis_path=$cgibin_path.$unicode;
if ($cisis_ver!="")
$cisis_path.="/".$cisis_ver."/"; // path to directory with correct CISIS-executables
else
$cisis_path.="/";
$mx_path=$cisis_path.$mx_exec; // path to mx-executable
if ($postMethod == '1'){
$wxisUrl=$server_url."/cgi-bin/";
if ($unicode!="") $wxisUrl.="$unicode/";
if ($cisis_ver!="") $wxisUrl.=$cisis_ver."/";
$wxisUrl.=$wxis_exec; // POST method used
$Wxis="";
}else{
$wxisUrl="";
$Wxis=$cgibin_path;
if ($unicode!="") $Wxis.="$unicode/";
if ($cisis_ver!="") $Wxis.=$cisis_ver."/";
$Wxis.=$wxis_exec; //GET method is used
}
$FCKConfigurationsPath="/".$app_path."/dataentry/fckconfig.js"; // path to CKeditor configuration
$FCKEditorPath="/site/bvs-mod/FCKeditor/"; // path to CKEditor
if ($use_ldap) { //LDAP parameters if used
$ldap_host = "ldap://zflexldap.com<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mf.surf.net%2Fcanit%2Furlproxy.php%3F_q%3DaHR0cDovL3pmbGV4bGRhcC5jb20%253D%26_s%3DaGVuay5ydXR0ZW5AdGl0dXNicmFuZHNtYWluc3RpdHV1dC5ubA%253D%253D%26_c%3Dabdf0bb1%26_r%3DcnU%253D&data=04%7C01%7Cegbert.desmet%40uantwerpen.be%7C8bcfb198b2cd4e18ebc508d9127c160d%7C792e08fb2d544a8eaf72202548136ef6%7C0%7C0%7C637561146458746072%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0&sdata=BRISQq3ZFegqQZc5q9YfY1jzoWBWwIMhJZnfuG0SEAY%3D&reserved=0>";
$ldap_dn = "cn=ro_admin,ou=sysadmins,dc=zflexsoftware,dc=com";
$ldap_search_context = "ou=guests,dc=zflexsoftware,dc=com";
$ldap_port = "389";
$ldap_pass = "zflexpass";
}
if ($EmpWeb) { //EmpWeb parameters if used
$empwebservicequerylocation = "http://localhost:8086/ewengine/services/EmpwebQueryService";
$empwebservicetranslocation = "http://localhost:8086/ewengine/services/EmpwebTransactionService";
$empwebserviceobjectsdb = "objetos";
$empwebserviceusersdb = "*";
}
$adm_login=""; // emergency username for administrator
$adm_password=""; // emergency password for administrator
?>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20210509/ff910cb4/attachment.html>
More information about the isis-users
mailing list