initial commit of file from CVS for smeserver-egroupware on Sat Sep 7 20:22:36 AEST 2024
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
# Use this file to finish eGroupware removal ONLY if you don't want to keep it on your system.
|
||||
|
||||
clear
|
||||
echo "WARNING!!!"
|
||||
echo "This script will delete:"
|
||||
echo " - eGroupware MySQL database"
|
||||
echo " - eGroupware MySQL User"
|
||||
echo " - eGroupware DB entries..."
|
||||
echo " - All Install files"
|
||||
echo -n "ARE YOU SURE YOU WANT TO DELETE PERMANENTLY EGROUPWARE? (y/n) [n] "
|
||||
read del
|
||||
if [ "$del" = "y" -o "$del" = "Y" ]; then
|
||||
echo "Deleting MySQL database..."
|
||||
mysql -u root -e "DROP DATABASE egroupware"
|
||||
echo "Deleting MySQL User..."
|
||||
mysql -u root -e "REVOKE ALL PRIVILEGES ON egroupware.* FROM 'egwuser'@'localhost';"
|
||||
mysql -u root -e "DROP USER egwuser@localhost;"
|
||||
echo "Removing SME DB entries..."
|
||||
/sbin/e-smith/config delete egroupware
|
||||
echo "Removing Install files..."
|
||||
rm -rf /usr/share/egroupware
|
||||
rm -rf /usr/share/egroupware_sess
|
||||
rm -rf /usr/share/egroupware_tmp
|
||||
rm -rf /var/lib/egroupware
|
||||
echo "Done!"
|
||||
rm -f /root/eGW-Full-Uninstall.sh
|
||||
fi
|
@@ -0,0 +1,194 @@
|
||||
<?php
|
||||
/*
|
||||
* Gallery - a web based photo album viewer and editor
|
||||
* Copyright (C) 2000-2007 Bharat Mediratta
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* When display_errors is enabled, PHP errors are printed to the output.
|
||||
* For production web sites, you're strongly encouraged to turn this feature off,
|
||||
* and use error logging instead.
|
||||
* During development, you should set the value to true to ensure that you notice
|
||||
* PHP warnings and notices that are not covered in unit tests (e.g. template issues).
|
||||
*/
|
||||
@ini_set('display_errors', 0);
|
||||
|
||||
/*
|
||||
* Prevent direct access to config.php.
|
||||
*/
|
||||
if (!isset($gallery) || !method_exists($gallery, 'setConfig')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
* As a security precaution, we limit access to Gallery's test suite
|
||||
* to those people who know the password, below. Example:
|
||||
*
|
||||
* $gallery->setConfig('setup.password', 'A PASSWORD');
|
||||
*
|
||||
* Choose something random and enter it in plain text. You don't have to
|
||||
* remember it because you can always refer to this file. You'll only be asked
|
||||
* for this password when you run Gallery's lib/tools code. We don't provide a
|
||||
* default password because we want you to choose one of your own (which
|
||||
* lessens the chance that you'll get hacked).
|
||||
*/
|
||||
$gallery->setConfig('setup.password', '');
|
||||
|
||||
/*
|
||||
* In order for Gallery to manage your data, you must provide it with
|
||||
* a directory that it can write to. Gallery is a webserver application,
|
||||
* so the directory that you create must be writeable by the
|
||||
* webserver, not just by you.
|
||||
*
|
||||
* Create an empty directory anywhere you please. Gallery will fill this
|
||||
* directory with its own files (that you shouldn't mess with). This directory
|
||||
* can be anywhere on your filesystem. For security purposes, it's better
|
||||
* if the directory is not accessible via your webserver (ie, it should
|
||||
* not be in your DocumentRoot). If you *do* make it available via your
|
||||
* web server then you probably won't have any security for your data files.
|
||||
*
|
||||
* Don't make this the same as your gallery directory!
|
||||
*/
|
||||
$gallery->setConfig('data.gallery.base', '/var/lib/egroupware/default/files/g2data/');
|
||||
|
||||
/*
|
||||
* Gallery can store its data in multiple different back ends. Currently we
|
||||
* support MySQL, PostgreSQL and Oracle. Enter the hostname where your
|
||||
* database lives, and the username and password you use to connect to it.
|
||||
*
|
||||
* You must specify the name of a database that already exists. Gallery will
|
||||
* not create the database for you, because it's very difficult to do that in
|
||||
* a reliable, database-neutral fashion. The user that you use should have
|
||||
* the following permissions:
|
||||
*
|
||||
* SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER
|
||||
*
|
||||
* You must specify a table and column prefix. This is a few characters that
|
||||
* is prepended to any table or column name to avoid conflicting with reserved
|
||||
* words in the database or other tables you have in the same database. In
|
||||
* fact, it's fine to let Gallery uses the same database as other applications
|
||||
* (including other instances of Gallery itself); the prefix is enough
|
||||
* to distinguish Gallery's tables from other applications.
|
||||
*
|
||||
* We provide some reasonable default prefixes below. If you modify these
|
||||
* after Gallery has created its various tables, it will stop working until
|
||||
* you modify it back.
|
||||
*
|
||||
* The possible database types are:
|
||||
* mysqlt MySQL (3.23.34a and newer)
|
||||
* mysqli MySQL (4.1 and newer) with PHP mysqli extension
|
||||
* mysql Older MySQL (no transactions)
|
||||
* postgres7 PostgreSQL 7.x and newer
|
||||
* postgres PostgreSQL 6.x (not tested)
|
||||
* oci8po Oracle 9i and newer
|
||||
* db2 IBM DB2 9 and newer
|
||||
* ado_mssql Microsoft SQL Server (2005 and newer)
|
||||
*/
|
||||
$storeConfig['type'] = 'mysqlt';
|
||||
$storeConfig['hostname'] = 'localhost';
|
||||
$storeConfig['database'] = 'egroupware';
|
||||
$storeConfig['username'] = 'egwuser';
|
||||
$storeConfig['password'] = 'egwpass';
|
||||
$storeConfig['tablePrefix'] = 'g2_';
|
||||
$storeConfig['columnPrefix'] = 'g_';
|
||||
$storeConfig['usePersistentConnections'] = false;
|
||||
$gallery->setConfig('storage.config', $storeConfig);
|
||||
|
||||
/*
|
||||
* Put Gallery into debug mode. Useful for tracking down problems with the
|
||||
* application. Not a good idea to leave it this way, though. Possible debug
|
||||
* choices are: 'buffered', 'logged', 'immediate' or false. Don't forget to
|
||||
* use the quotes for any value but false!
|
||||
*
|
||||
* If you choose 'immediate', you'll see debugging information as soon as
|
||||
* Gallery generates it. This can be useful at times, but it'll screw up some
|
||||
* parts of the application flow.
|
||||
*
|
||||
* If you choose 'buffered', Gallery will display debug information in a table
|
||||
* as part of the application. You won't necessarily get *all* the debug
|
||||
* information but the application should work normally.
|
||||
*
|
||||
* If you choose 'logged', you must also specify:
|
||||
* $gallery->setDebugLogFile('/path/to/writeable/file');
|
||||
* and all debug output will get printed into that file. You'll get all the
|
||||
* debug output and the application will work normally.
|
||||
*
|
||||
* For best debugging output use this line:
|
||||
*
|
||||
* $gallery->setDebug('buffered');
|
||||
*
|
||||
*/
|
||||
$gallery->setDebug(false);
|
||||
|
||||
/*
|
||||
* Profiling mode. You can enable profiling for different parts of G2 to get an
|
||||
* idea of what's fast and slow. Right now the only options are to enable SQL
|
||||
* profiling:
|
||||
*
|
||||
* $gallery->setProfile(array('sql'));
|
||||
*
|
||||
*/
|
||||
$gallery->setProfile(false);
|
||||
|
||||
/*
|
||||
* Maintenance mode. You can disable access to the site for anyone but
|
||||
* site administrators by setting this flag. Set value below to:
|
||||
* true (without quotes) - to use a basic notification page; themed
|
||||
* view with admin login link when codebase is up to date, but a
|
||||
* plain unstyled page when codebase has been updated but upgrader
|
||||
* has not yet been run.
|
||||
* url (with quotes) - provide a url where requests are redirected in
|
||||
* either case described above. Example: '/maintenance.html'
|
||||
* false (without quotes) - maintenance mode off
|
||||
*/
|
||||
$gallery->setConfig('mode.maintenance', false);
|
||||
|
||||
/*
|
||||
* Embedded mode. You can disable direct access to main.php (standalone G2)
|
||||
* by setting this flag. Set value below to:
|
||||
* true (without quotes) - block direct requests
|
||||
* url (with quotes) - redirect requests to this url
|
||||
* false (without quotes) - allow direct requests
|
||||
*/
|
||||
$gallery->setConfig('mode.embed.only', false);
|
||||
|
||||
/*
|
||||
* Allow a particular IP address to access the session (it still must know the
|
||||
* session id) even though it doesn't match the address/user agent that created
|
||||
* the session. Put the address of validator.w3.org ('133.27.228.132') here to allow
|
||||
* validation of non-public Gallery pages from the links at the bottom of the page.
|
||||
*/
|
||||
$gallery->setConfig('allowSessionAccess', false);
|
||||
|
||||
/*
|
||||
* URL of Gallery codebase; required only for multisite install.
|
||||
*/
|
||||
$gallery->setConfig('galleryBaseUrl', '');
|
||||
|
||||
/*
|
||||
* This setting can be used to override Gallery's auto-detection of the domain-name,
|
||||
* protocol (http/https), URL path, and of the file & query string.
|
||||
* Most users can leave this empty. If the server is misconfigured or for very special
|
||||
* setups, this setting can be quite handy.
|
||||
* Examples (the positions of the slashes ('/') are important):
|
||||
* override the path: $gallery->setConfig('baseUri', '/another/path/');
|
||||
* override the host + path: $gallery->setConfig('baseUri', 'example.com/gallery2/');
|
||||
* override the protocol + host + path + file:
|
||||
* $gallery->setConfig('baseUri', 'https://example.com:8080/gallery2/index.php');
|
||||
*/
|
||||
$gallery->setConfig('baseUri', '');
|
||||
?>
|
38472
root/usr/share/doc/eGroupWare-1.8.005/Sources/egroupware-1.8.005.sql
Normal file
38472
root/usr/share/doc/eGroupWare-1.8.005/Sources/egroupware-1.8.005.sql
Normal file
File diff suppressed because one or more lines are too long
126
root/usr/share/doc/eGroupWare-1.8.005/Sources/header.inc.php
Normal file
126
root/usr/share/doc/eGroupWare-1.8.005/Sources/header.inc.php
Normal file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
/**
|
||||
* eGroupWare - configuration file
|
||||
*
|
||||
* Use eGroupWare's setup to create or edit this configuration file.
|
||||
* You do NOT need to copy and edit this file manually!
|
||||
*
|
||||
* @link http://www.egroupware.org
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @author RalfBecker@outdoor-training.de
|
||||
* (This file was originaly written by Dan Kuykendall)
|
||||
* @version $Id: header.inc.php.template 33300 2010-12-06 08:39:04Z leithoff $
|
||||
*/
|
||||
|
||||
// allow to migrate from phpgw_info to egw_info
|
||||
if (!isset($GLOBALS['egw_info']) || in_array($GLOBALS['egw_info']['flags']['currentapp'],array('jinn','mydms','tts')))
|
||||
{
|
||||
if (!isset($GLOBALS['egw_info']))
|
||||
{
|
||||
$GLOBALS['egw_info'] =& $GLOBALS['phpgw_info'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$GLOBALS['phpgw_info'] =& $GLOBALS['egw_info'];
|
||||
}
|
||||
$GLOBALS['egw_info']['flags']['phpgw_compatibility'] = true;
|
||||
}
|
||||
|
||||
// eGW install dir, need to be changed if you copy the server to an other directory
|
||||
define('EGW_SERVER_ROOT','/usr/share/egroupware');
|
||||
|
||||
// other pathes depending on the one above
|
||||
define('EGW_INCLUDE_ROOT',EGW_SERVER_ROOT);
|
||||
define('EGW_API_INC',EGW_INCLUDE_ROOT.'/phpgwapi/inc');
|
||||
|
||||
// who is allowed to make changes to THIS config file via eGW's setup
|
||||
$GLOBALS['egw_info']['server']['header_admin_user'] = 'header-admin';
|
||||
$GLOBALS['egw_info']['server']['header_admin_password'] = '{crypt}$2a$12$PNSICxoAOCqCg44GesUvM.uY7jT5cZ7jA0I5VWwPZGN6QpADqiROK';
|
||||
|
||||
// restrict the access to setup to certain (comma separated) IPs or domains
|
||||
$GLOBALS['egw_info']['server']['setup_acl'] = '';
|
||||
|
||||
/* eGroupWare domain-specific db settings */
|
||||
$GLOBALS['egw_domain']['default'] = array(
|
||||
'db_host' => 'localhost',
|
||||
'db_port' => '3306',
|
||||
'db_name' => 'egroupware',
|
||||
'db_user' => 'egwuser',
|
||||
'db_pass' => 'egwpass',
|
||||
// Look at the README file
|
||||
'db_type' => 'mysqli',
|
||||
// This will limit who is allowed to make configuration modifications
|
||||
'config_user' => 'config-admin',
|
||||
'config_passwd' => '{crypt}$2a$12$Ci3HBJfWrvBMEtBpYMCnqelSaBZ1FOTEhwJp0.0xgltVjVrnVH7tS'
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
** If you want to have your domains in a select box, change to True
|
||||
** If not, users will have to login as user@domain
|
||||
** Note: This is only for virtual domain support, default domain users (that's everyone
|
||||
** form the first domain or if you have only one) can login only using just there loginid.
|
||||
*/
|
||||
$GLOBALS['egw_info']['server']['show_domain_selectbox'] = false;
|
||||
|
||||
$GLOBALS['egw_info']['server']['db_persistent'] = true;
|
||||
|
||||
/*
|
||||
** used session handler: egw_session_files works for all build in php session handlers
|
||||
** other handlers (like egw_session_memcache) can be enabled here
|
||||
*/
|
||||
$GLOBALS['egw_info']['server']['session_handler'] = 'egw_session_files';
|
||||
|
||||
/* Select which login template set you want, most people will use idots */
|
||||
$GLOBALS['egw_info']['login_template_set'] = 'idots';
|
||||
|
||||
/* This is used to control mcrypt's use */
|
||||
$GLOBALS['egw_info']['server']['mcrypt_enabled'] = false;
|
||||
|
||||
/*
|
||||
** This is a random string used as the initialization vector for mcrypt
|
||||
** feel free to change it when setting up eGrouWare on a clean database,
|
||||
** but you must not change it after that point!
|
||||
** It should be around 30 bytes in length.
|
||||
*/
|
||||
$GLOBALS['egw_info']['server']['mcrypt_iv'] = 'N1jKhg3q8X9HoXDHZeQJPvG9z4l5w3';
|
||||
|
||||
if(!isset($GLOBALS['egw_info']['flags']['nocachecontrol']) || !$GLOBALS['egw_info']['flags']['nocachecontrol'])
|
||||
{
|
||||
header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1
|
||||
header('Pragma: no-cache'); // HTTP/1.0
|
||||
}
|
||||
else
|
||||
{
|
||||
// allow caching by browser
|
||||
session_cache_limiter('private_no_expire');
|
||||
}
|
||||
|
||||
$GLOBALS['egw_info']['flags']['page_start_time'] = microtime(true);
|
||||
|
||||
define('DEBUG_API', False);
|
||||
define('DEBUG_APP', False);
|
||||
|
||||
include(EGW_SERVER_ROOT.'/phpgwapi/setup/setup.inc.php');
|
||||
$GLOBALS['egw_info']['server']['versions']['phpgwapi'] = $setup_info['phpgwapi']['version'];
|
||||
$GLOBALS['egw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header'];
|
||||
unset($setup_info);
|
||||
$GLOBALS['egw_info']['server']['versions']['header'] = '1.29';
|
||||
|
||||
if(!isset($GLOBALS['egw_info']['flags']['noapi']) || !$GLOBALS['egw_info']['flags']['noapi'])
|
||||
{
|
||||
if (substr($_SERVER['SCRIPT_NAME'],-7) != 'dav.php') // dont do it for webdav/groupdav, as we can not safely switch it off again
|
||||
{
|
||||
ob_start(); // to prevent error messages to be send before our headers
|
||||
}
|
||||
require_once(EGW_API_INC . '/functions.inc.php');
|
||||
}
|
||||
else
|
||||
{
|
||||
require_once(EGW_API_INC . '/common_functions.inc.php');
|
||||
}
|
||||
|
||||
/*
|
||||
Leave off the final php closing tag, some editors will add
|
||||
a \n or space after which will mess up cookies later on
|
||||
*/
|
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
// $Id: config.php 21209 2006-04-06 13:38:25Z ralfbecker $
|
||||
|
||||
// if $webpath set to an value it will be possible to include phpsysinfo with a simple include() statement in other scripts
|
||||
// but the structure in the phpsysinfo directory can't be changed
|
||||
// $webpath specifies the absolute path when you browse to the phpsysinfo page
|
||||
// e.g.: your domain www.yourdomain.com
|
||||
// you put the phpsysinfo directory at /phpsysinfo in the webroot
|
||||
// then normally you browse there with www.yourdomain.com/phpsysinfo
|
||||
// now you want to include the index.php from phpsysinfo in a script, locatet at /
|
||||
// then you need to set $webpath to /phpsysinfo/
|
||||
// if you put the phpsysinfo folder at /tools/phpsysinfo $webpath will be /tools/phpsysinfo/
|
||||
// you don't need to change it, if you don't include it in other pages
|
||||
// so default will be fine for everyone
|
||||
$webpath = "";
|
||||
|
||||
// define the default lng and template here
|
||||
$default_lng=$GLOBALS['egw_info']['user']['preferences']['common']['lang'];
|
||||
$default_template='aq'; // looks best in idots ;-)
|
||||
|
||||
// hide language and template picklist
|
||||
// false = display picklist
|
||||
// true = do not display picklist
|
||||
$hide_picklist = false;
|
||||
|
||||
// define the motherboard monitoring program here
|
||||
// we support four programs so far
|
||||
// 1. lmsensors http://www2.lm-sensors.nu/~lm78/
|
||||
// 2. healthd http://healthd.thehousleys.net/
|
||||
// 3. hwsensors http://www.openbsd.org/
|
||||
// 4. mbmon http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html
|
||||
// 5. mbm5 http://mbm.livewiredev.com/
|
||||
|
||||
// $sensor_program = "lmsensors";
|
||||
// $sensor_program = "healthd";
|
||||
// $sensor_program = "hwsensors";
|
||||
// $sensor_program = "mbmon";
|
||||
// $sensor_program = "mbm5";
|
||||
$sensor_program = "";
|
||||
|
||||
// show mount point
|
||||
// true = show mount point
|
||||
// false = do not show mount point
|
||||
$show_mount_point = true;
|
||||
|
||||
// show bind
|
||||
// true = display filesystems mounted with the bind options under Linux
|
||||
// false = hide them
|
||||
$show_bind = true;
|
||||
|
||||
// Hide mount(s). Example:
|
||||
// $hide_mounts[] = '/home';
|
||||
|
||||
// if the hddtemp program is available we can read the temperature, if hdd is smart capable
|
||||
// !!ATTENTION!! hddtemp might be a security issue
|
||||
// $hddtemp_avail = "tcp"; // read data from hddtemp deamon (localhost:7634)
|
||||
// $hddtemp_avail = "suid"; // read data from hddtemp programm (must be set suid)
|
||||
|
||||
// show a graph for current cpuload
|
||||
// true = displayed, but it's a performance hit (because we have to wait to get a value, 1 second)
|
||||
// false = will not be displayed
|
||||
$loadbar = true;
|
||||
|
||||
// additional paths where to look for installed programs
|
||||
// e.g. $addpaths = array('/opt/bin', '/opt/sbin');
|
||||
$addpaths = array();
|
||||
|
||||
// display error messages at the top of the page
|
||||
// $showerrors = true; // show the errors
|
||||
// $showerrors = false; // don't show the errors
|
||||
$showerrors = false;
|
||||
|
||||
?>
|
Reference in New Issue
Block a user