PHP 8.2.30
Preview: config.php Size: 2.46 KB
/var/softaculous/odm/config.php

<?php
/*
 * Copyright (C) 2000-2021. Stephen Lawrence
 *
 * 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.
 */

// OpenDocMan sample config file

// Eliminate multiple inclusions
if (!defined('config')) {
    define('config', 'true', false);

    // config.php - you should not need to change these
    /** The name of the database for [OpenDocMan */
    define('APP_DB_NAME', isset($_ENV['APP_DB_NAME']) ? $_ENV['APP_DB_NAME'] : '[[softdb]]');

    /** MySQL database username */
    define('APP_DB_USER', isset($_ENV['APP_DB_USER']) ? $_ENV['APP_DB_USER'] : '[[softdbuser]]');

    /** MySQL database password */
    define('APP_DB_PASS', isset($_ENV['APP_DB_PASS'])? $_ENV['APP_DB_PASS'] : '[[softdbpass]]');

    /** MySQL hostname */
    /* 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.  */
    define('APP_DB_HOST', isset($_ENV['APP_DB_HOST']) ? $_ENV['APP_DB_HOST'] : '[[softdbhost]]');

    /**
     * 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 want to keep
     * 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 tables to match.
     * @DEFAULT 'odm_'
     * @ARG String
     */
    $GLOBALS['CONFIG']['db_prefix'] = isset($_ENV['DB_PREFIX']) ? $_ENV['DB_PREFIX'] : '[[dbprefix]]';

    /*** DO NOT EDIT BELOW THIS LINE ***/



    /** Absolute path to the OpenDocMan directory. */
    if (!defined('ABSPATH')) {
        if(isset($_ENV['IS_DOCKER'])) {
            define('ABSPATH', dirname(__FILE__) . '/../');
        } else {
            define('ABSPATH', dirname(__FILE__) . '/');
        }
    }
}

Directory Contents

Dirs: 5 × Files: 15

Name Size Perms Modified Actions
images DIR
- drwxr-xr-x 2024-03-21 11:28:42
Edit Download
php53 DIR
- drwxr-xr-x 2024-03-21 11:28:42
Edit Download
php56 DIR
- drwxr-xr-x 2024-03-21 11:28:42
Edit Download
php71 DIR
- drwxr-xr-x 2024-03-21 11:28:42
Edit Download
php81 DIR
- drwxr-xr-x 2024-03-21 11:28:42
Edit Download
3.07 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
3.15 KB lrw-r--r-- 2022-09-21 09:21:04
Edit Download
2.46 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
4.40 KB lrw-r--r-- 2022-09-21 09:21:04
Edit Download
433 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
1.12 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
5.30 KB lrw-r--r-- 2022-09-21 09:21:04
Edit Download
1.72 KB lrw-r--r-- 2022-09-21 08:18:40
Edit Download
921 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
4.57 KB lrw-r--r-- 2022-09-21 09:21:04
Edit Download
2.12 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
13.91 KB lrw-r--r-- 2022-09-21 09:21:04
Edit Download
645 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
2.57 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
456 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).