| 1 | <?php |
| 2 | define('DB_USER', 'user'); |
| 3 | define('DB_PASS', 'pass'); |
| 4 | define('DB_NAME', 'store'); |
| 5 | define('DB_HOST', 'localhost'); |
| 6 | define('DB_DSN', 'mysql:host='.DB_HOST.';dbname='.DB_NAME); |
| 7 | |
| 8 | define('DIR_HOME', '.'); |
| 9 | define('DIR_LIB', DIR_HOME.'/lib'); |
| 10 | define('DIR_IMAGES', DIR_HOME.'/images'); |
| 11 | define('DIR_LOCALE', DIR_HOME.'/locale'); |
| 12 | define('DIR_BARCODES', DIR_HOME.'/barcodes'); |
| 13 | define('DIR_TEMPLATES', DIR_HOME.'/templates'); |
| 14 | define('DIR_APIS', DIR_HOME.'/apis'); |
| 15 | define('DIR_ASSISTANTS', DIR_HOME.'/assistants'); |
| 16 | |
| 17 | define('URL_HOME', dirname($_SERVER['SCRIPT_NAME'])); //TODO: use request_uri with path_info stripped for portability |
| 18 | define('URL_IMAGES', URL_HOME.'/images'); |
| 19 | define('URL_BARCODES', URL_HOME.'/barcodes'); |
| 20 | |
| 21 | define('BACKEND_AUTH', 'internal'); |
| 22 | define('BACKEND_ACCOUNTING', 'internal'); |
| 23 | |
| 24 | define('LOCALE_LANG', 'en'); |
| 25 | |
| 26 | define('INSTANCE_ID', ''); |
| 27 | |
| 28 | define('FRONTEND_LISTING_LIMIT', 23); |
| 29 | define('FRONTEND_PAGE_WELCOME', ''); |
| 30 | |
| 31 | define('BARCODE_TYPE', 'code128b'); |
| 32 | define('BARCODE_PREFIX', 'STORE/'); |
| 33 | |
| 34 | $internal_auth_users = array( //You can specify multiple users in this array |
| 35 | //'username' => array('password', 'uid','gid'), |
| 36 | DB_USER => array(DB_PASS, 0,0) |
| 37 | ); |