"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "config-sample.php" between
opendocman-1.3.8-release.tar.gz and opendocman-1.4.0-release.tar.gz

About: OpenDocman is a document management system (DMS) designed to comply with ISO 17025 and OIE standard for document management (using PHP, MySQL).

config-sample.php  (opendocman-1.3.8-release):config-sample.php  (opendocman-1.4.0-release)
skipping to change at line 25 skipping to change at line 25
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
// Eliminate multiple inclusion of config.php // Eliminate multiple inclusion of config.php
if (!defined('config')) { if (!defined('config')) {
define('config', 'true', false); define('config', 'true', false);
// config.php - useful variables/functions // config.php - you should not need to change these
$db_name = isset($_ENV['DB_NAME']) ? $_ENV['DB_NAME'] : 'opendocman';
$db_user = isset($_ENV['DB_USER']) ? $_ENV['DB_USER'] : 'opendocman';
$db_pass = isset($_ENV['DB_PASS'])? $_ENV['DB_PASS'] : 'opendocman';
$db_host = isset($_ENV['DB_HOST']) ? $_ENV['DB_HOST'] : 'localhost;port=3306
';
$db_prefix = isset($_ENV['DB_PREFIX']) ? $_ENV['DB_PREFIX'] : 'odm_';
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for [OpenDocMan */ /** The name of the database for [OpenDocMan */
define('DB_NAME', $db_name); define('DB_NAME', isset($_ENV['DB_NAME']) ? $_ENV['DB_NAME'] : 'database_nam e_here');
/** MySQL database username */ /** MySQL database username */
define('DB_USER', $db_user); define('DB_USER', isset($_ENV['DB_USER']) ? $_ENV['DB_USER'] : 'username_her e');
/** MySQL database password */ /** MySQL database password */
define('DB_PASS', $db_pass); define('DB_PASS', isset($_ENV['DB_PASS'])? $_ENV['DB_PASS'] : 'password_here ');
/** MySQL hostname */ /** MySQL hostname */
/* The MySQL server. It can also include a port number. e.g. "hostname;port= 3306" or a path to a /* The MySQL server. It can also include a port number. e.g. "hostname;port= 3306" or a path to a
* local socket e.g. ":/path/to/socket" for the localhost. */ * local socket e.g. ":/path/to/socket" for the localhost. */
define('DB_HOST', $db_host); define('DB_HOST', isset($_ENV['DB_HOST']) ? $_ENV['DB_HOST'] : 'localhost');
/** /**
* Prefix to append to each table name in the database (ex. odm_ would make the tables * Prefix to append to each table name in the database (ex. odm_ would make the tables
* named "odm_users", "odm_data" etc. Leave this set to the default if you w ant to keep * named "odm_users", "odm_data" etc. Leave this set to the default if you w ant to keep
* it the way it was. If you do change this to a different value, make sure it is either * it the way it was. If you do change this to a different value, make sure it is either
* a clean-install, or you manually go through and re-name the database tabl es to match. * a clean-install, or you manually go through and re-name the database tabl es to match.
* @DEFAULT 'odm_' * @DEFAULT 'odm_'
* @ARG String * @ARG String
*/ */
$GLOBALS['CONFIG']['db_prefix'] = $db_prefix; $GLOBALS['CONFIG']['db_prefix'] = isset($_ENV['DB_PREFIX']) ? $_ENV['DB_PREF IX'] : 'odm_';
/*** DO NOT EDIT BELOW THIS LINE ***/ /*** DO NOT EDIT BELOW THIS LINE ***/
/** Absolute path to the OpenDocMan directory. */ /** Absolute path to the OpenDocMan directory. */
if (!defined('ABSPATH')) { if (!defined('ABSPATH')) {
define('ABSPATH', dirname(__FILE__) . '/'); define('ABSPATH', dirname(__FILE__) . '/');
} }
} }
 End of changes. 6 change blocks. 
14 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)