Location: PHPKode > scripts > AmaroK Web Frontend > obsidianmusic-2.3.0/inc/config.example.php
<?php

//
//  ObsidianMusic
//   a.k.a. amaroK Web Frontend 2.0
//
//  Created 11/24/05
//   Copyright (C) Ryan Loebs (ObsidianX) 2005/2006
//   See LICENSE for GPL
//
//  config.php - Main configuration
//
///////////////////////////////////////

if(eregi("config.php", $_SERVER['PHP_SELF'])){
	die("Cannot access directly.");
}


// Database Configuration
// ----------------------
// db array:
//          user = Username to the database
//          pass = Password to the database
//          name = Database name
//          host = Host of the database
// dbtype = What kind of database we're using
//    0 - MySQL
//    1 - PostgreSQL
//    2 - SQLite (NOTE: REQUIRES PHP5) (DOUBLE NOTE: NOT FUNCTIONAL!!)
/////////////////////////////
$db = array(
	'user' => "amarokuser",
	'pass' => "amarokpass",
	'name' => "amarokdb",
	'host' => "localhost");
$dbtype = 0;


// Access Configuration
// --------------------
// locked = Whether or not to lock ObsidianMusic
//          (If this is false all the following are void)
// authtype = What method to use for saving a session
//    1 - Sessions
//    2 - Cookies
// cookielen = If you chose 2 for authtype then how long should the cookie last?
//             Time is in minutes.
//             (If authtype is 1 this is ignored)
// NOTE: use the python script inc/auth/genauth.py in the console
//       to make the SHA1 hash to put into the array $userlist
/////////////////////////////
$locked = false;
$authtype = 1;
$cookielen = 60;

// Output Configuration
// --------------------
// playlist = What playlist format to output to the user
//    0 - No output (Listings are just for show)
//    1 - PLS format
//    2 - M3U Format
//    3 - Download (No streaming, the song is sent to the user via TAR archive)
//                 (NOTE: When download is enabled the script has to generate a TAR archive,
//                        this can take a considerable amount of time depending on the amount
//                        of songs being sent)
// gzip = Whether or not to output as a GZIP compressed page
// cache = Cache the pages to improve rebuild speed
// paginate = Whether or not to split up results into pages (only on the Browse page)
// ressize = How many results do you want to show on the page at one time (if paginate is on)
// language = What language the page should output in
//            (en_us is the only one as of 1.0)
// theme = Default theme to show the users if they haven't chosen one on their own
// allowchoose = Should the users be able to choose a theme (saved to a session variable)
// extrainfo = Displays a few extra columns about the song results
// errorreporting = allows you to disable spitting out errors all over the screen
//                  (NOTE: please only enable this if you are modifying code and are having
//                         issues.  Errors are disabled to prevent any issues with outputting
//                         the playlist data and the song data so keep this off most of the time)
/////////////////////////////
$playlist = 1;
$gzip = false;
$cache = true;
$paginate = true;
$ressize = 200;
$language = "en_us";
$theme = "default";
$allowchoose = true;
$extrainfo = false;
$errorreporting = false;


// Enable ObsidianMusic
// --------------------
// enabled - If this isn't true then the script won't run ;)
//           (an offline message will be shown instead)
/////////////////////////////
$enabled = true;

Return current item: AmaroK Web Frontend