Location: PHPKode > projects > Butterfly Organizer > includes/settings.php
<?php
/*
Butterfly Organizer
Copyright (C) 2007-2008 Butterfly Media Romania

This file is part of Butterfly Organizer.

Butterfly Organizer 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; version 3 of the License.

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
*/

error_reporting(E_ALL);

// organizer settings file //

// database variables
$dbhost = "localhost";
$dbname = "organizer";
$dbuser = "root";
$dbpass = "";

// database connection
$database = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname, $database);


// general settings
$org_title = "Butterfly Organizer"; // this is the text to appear in the title bar of every page
$org_description = "advanced browser-based account organizer"; // this is the text to appear under header name on every page
$org_version = "2.0.0 BETA 1"; // this is the current version of the organizer
$org_codename = "&quot;Whiskey Tree&quot;";

/*
1.5.1 - "Iris"
1.5.2 - "Thor"/"2008 Edition" - Anniversary Edition --not released
1.5.3 - "Viking" --not released
1.6.0 - "Iris Reloaded"
1.6.1 - "Iris AJAXed"
1.6.2 - "White Rabbit"
1.6.3 - skipped, as some major changes were on
1.6.4 - skipped, as some major changes were on
1.6.5 - re-released as 1.6.6
1.6.6 - "Global Revolution" - changed variables $_GET and $_POST for the PHP5 upgrade
1.6.7 - "Dawn" - lots of fixes
1.6.8 - "Dark Temptation" - added calendar and last of 1.6.x branch
*/

$currentTheme ="default";

$contentFolder = "themes/".$currentTheme."/content/";
$imagesFolder = "themes/".$currentTheme."/images/";
$stylesFolder = "themes/".$currentTheme."/";

/*
Excluded tables (such as 'settings', 'notes' and 'contacts')
Modify index.php: ...if (($val != $excluded_tbl01) && ($val != $excluded_tbl02))... and uncomment more tables. You can exclude as many tables as you want.
*/
$excluded_tbl01 = "settings";
$excluded_tbl02 = "notes";
$excluded_tbl03 = "contacts";
//$excluded_tbl04 = "";
//$excluded_tbl05 = "";
// Add as many excluded tables as you want.

// Owner name
$result = mysql_query('SELECT owner FROM settings');
$row = mysql_fetch_array($result);
$value_owner = $row['owner'];
$value_owner = htmlspecialchars($value_owner);

// Color: empty account on first page
$result = mysql_query('SELECT color_empty_account FROM settings');
$row = mysql_fetch_array($result);
$value_color_empty_account = $row['color_empty_account'];
$value_color_empty_account = htmlspecialchars($value_color_empty_account);

// Color: full account on first page
$result = mysql_query('SELECT color_used_account FROM settings');
$row = mysql_fetch_array($result);
$value_color_used_account = $row['color_used_account'];
$value_color_used_account = htmlspecialchars($value_color_used_account);

// end of settings file
?>
Return current item: Butterfly Organizer