Location: PHPKode > projects > O - OpenSource GroupWare > osgw/config/db_data.php
<?php
/**************************************************************************
   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.

   @Authors:	Ryan Thompson(hide@address.com)
***************************************************************************/

//DEPRECATED
/*
include("../config.inc.php");
include("data_arrays.php");

$i = 0;
foreach($countries AS $key => $value)
{
	$record['o_countries'][$i] = array("country_id"=>"$key", "country"=>"$value");	
	$i++;
}

$i = 0;
foreach($timezones AS $key => $value)
{
	$record['o_timezones'][$i] = array("tz_id"=>"$key", "timezone"=>"$value");
	$i++;	
}

$record['o_languages'] = array(
	array("language_id"=>'en_ca',"language"=>"Canada (English)","enabled"=>"TRUE"),
	array("language_id"=>'fr_ca',"language"=>"Canada (French)","enabled"=>"TRUE"),
	array("language_id"=>'en_us',"language"=>"United States (English)","enabled"=>"TRUE"),
	array("language_id"=>'en_uk',"language"=>"United Kingdom (English)","enabled"=>"TRUE"));
/*
Garbage
$record['o_locales'] = array(
array("locale"=>"en_ca",
	"country"=>"23",
	"language"=>"Canada(English)",
	"num_decimal"=>".",
	"num_separator"=>",",
	"num_pos"=>"",
	"num_neg"=>"-",
	"money_currency"=>"$",
	"money_decimal"=>".",
	"money_thousands"=>",",
	"money_fraction_digits"=>"2",
	"pos_pfx_symbol"=>"TRUE",
	"pos_position"=>"Before Quantity",
	"neg_pfx_symbol"=>"TRUE",
	"neg_position"=>"Before Quantity",
	"date"=>"F d, Y",
	"short_date"=>"d/m/y",
	"time"=>"h:i:s",
	"enabled"=>"TRUE"),
array("locale"=>"fr_ca",
	"country"=>"23",
	"language"=>"Canada(French)",
	"num_decimal"=>".",
	"num_separator"=>",",
	"num_pos"=>"",
	"num_neg"=>"-",
	"money_currency"=>"$",
	"money_decimal"=>".",
	"money_thousands"=>",",
	"money_fraction_digits"=>"2",
	"pos_pfx_symbol"=>"TRUE",
	"pos_position"=>"Before Quantity",
	"neg_pfx_symbol"=>"TRUE",
	"neg_position"=>"Before Quantity",
	"date"=>"F d, Y",
	"short_date"=>"d/m/y",
	"time"=>"h:i:s",
	"enabled"=>"FALSE"),
array("locale"=>"en_us",
	"country"=>"136",
	"language"=>"United States (English)",
	"num_decimal"=>".",
	"num_separator"=>",",
	"num_pos"=>"",
	"num_neg"=>"-",
	"money_currency"=>"$",
	"money_decimal"=>".",
	"money_thousands"=>",",
	"money_fraction_digits"=>"2",
	"pos_pfx_symbol"=>"TRUE",
	"pos_position"=>"Before Quantity",
	"neg_pfx_symbol"=>"TRUE",
	"neg_position"=>"Before Quantity",
	"date"=>"l d F Y",
	"short_date"=>"m/d/y",
	"time"=>"h:i:s A",
	"enabled"=>"FALSE"),
array("locale"=>"en_uk",
	"country"=>"134",
	"language"=>"United Kingdom (English)",
	"num_decimal"=>".",
	"num_separator"=>",",
	"num_pos"=>"",
	"num_neg"=>"-",
	"money_currency"=>"&#163;",
	"money_decimal"=>".",
	"money_thousands"=>",",
	"money_fraction_digits"=>"2",
	"pos_pfx_symbol"=>"TRUE",
	"pos_position"=>"Before Quantity",
	"neg_pfx_symbol"=>"TRUE",
	"neg_position"=>"Before Quantity",
	"date"=>"l d F Y",
	"short_date"=>"d/m/Y",
	"time"=>"h:i:s A",
	"enabled"=>"FALSE"));
*/	
/*
$lines = file ($root_dir ."/services");
$i = 0;
foreach($lines as $line_num => $line)
{	
	$location = rtrim($line);
	$data_file = $root_dir ."/". $location ."/data.php";
	include($data_file);
	
	$record['o_services'][$i] = array(
		"code"=>$service['code'],
		"location"=>"$location",
		"sort_order"=>$service['sort'],
		"active"=>"1");
		
	$record['o_user_rights'][$i] = array(
		"user_id"=>"1",
		"service"=>$service['code'],
		"rights"=>"0");
		
	$i++;

}

$record['o_preferences'] = array(
	array("service"=>"gl","user_id"=>"1","preference"=>"timezone","value"=>"377"),
	array("service"=>"gl","user_id"=>"1","preference"=>"theme","value"=>"1"),
	array("service"=>"gl","user_id"=>"1","preference"=>"navbar","value"=>"left"),
	array("service"=>"gl","user_id"=>"1","preference"=>"default_service","value"=>"hm"),
	array("service"=>"gl","user_id"=>"1","preference"=>"cookie_expiry","value"=>"3600"),
	array("service"=>"gl","user_id"=>"1","preference"=>"persistent","value"=>"TRUE"),
	array("service"=>"gl","user_id"=>"1","preference"=>"header_date","value"=>"long"),
	array("service"=>"gl","user_id"=>"1","preference"=>"header_time","value"=>"FALSE"),
	array("service"=>"gl","user_id"=>"1","preference"=>"navbar_orientation","value"=>"left"),
	array("service"=>"gl","user_id"=>"1","preference"=>"navbar_images","value"=>"small"),
	array("service"=>"gl","user_id"=>"1","preference"=>"navbar_text","value"=>"on"),
	array("service"=>"gl","user_id"=>"1","preference"=>"visible_information","value"=>"TRUE"),
	array("service"=>"gl","user_id"=>"1","preference"=>"scheme","value"=>"1"));
	
$record['o_settings'] = array(
	array("id"=>"1","setting"=>"Minimum Password Length","value"=>"8"),
	array("id"=>"2","setting"=>"Storage Quota","value"=>"1024"),
	array("id"=>"3","setting"=>"Maximum File Size","value"=>"512"),
	array("id"=>"4","setting"=>"Maximum Failed Logins","value"=>"3"),
	array("id"=>"5","setting"=>"Password Expiry Warning","value"=>"7"),
	array("id"=>"6","setting"=>"Auto Enable Accounts After","value"=>"*"),
	array("id"=>"7","setting"=>"System Language","value"=>"en_ca"),
	array("id"=>"8","setting"=>"Notify Administrator","value"=>"FALSE"),
	array("id"=>"9","setting"=>"Auto Generate Passwords","value"=>"TRUE"));
	
	
$long_en_months = serialize(array(1=>"January","February","March","April","May","June","July","August",
	"September","October","November","December"));
$med_en_months = serialize(array(1=>"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"));	
$long_en_weekdays = serialize(array(0=>"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"));
$short_en_weekdays = serialize(array(0=>"Sun","Mon","Tue","Wed","Thu","Fri","Sat"));
$priority = array(1=>"Low","Normal","High");
//array_push($record['o_text'],
$record['o_text'] = array(
	array("id_text"=>"username","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Username"),
	array("id_text"=>"password","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Password"),
	array("id_text"=>"login","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Login"),
	array("id_text"=>"forgot password","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Forgot Password"),
	array("id_text"=>"subject","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Subject"),
	array("id_text"=>"description","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Description"),
	array("id_text"=>"start","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Start"),
	array("id_text"=>"end","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"End"),
	array("id_text"=>"category","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Category"),
	array("id_text"=>"delete","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Delete"),
	array("id_text"=>"ar_long_months","language"=>"en_ca","service"=>"gl","type"=>"arr","message"=>"$long_en_months"),
	array("id_text"=>"ar_med_months","language"=>"en_ca","service"=>"gl","type"=>"arr","message"=>"$med_en_months"),
	array("id_text"=>"ar_long_weekdays","language"=>"en_ca","service"=>"gl","type"=>"arr","message"=>"$long_en_weekdays"),
	array("id_text"=>"ar_short_weekdays","language"=>"en_ca","service"=>"gl","type"=>"arr","message"=>"$short_en_weekdays"),
	array("id_text"=>"confirm_title","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Confirm Delete?"),
	array("id_text"=>"confirm_message","language"=>"en_ca","service"=>"gl","type"=>"gen","message"=>"Are you sure you want to delete the selected items?")
	//array("id_text"=>"","language"=>"en_ca","service"=>"","type"=>"gen","message"=>""),
	
);
	
$record['o_holidays'] = array(
	array("holiday"=>"New Years Day","day"=>"01","month"=>"01","country"=>"23","statutory"=>"TRUE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Valentines Day","day"=>"14","month"=>"02","country"=>"23","statutory"=>"FALSE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Halloween","day"=>"31","month"=>"10","country"=>"23","statutory"=>"FALSE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Rememberance Day","day"=>"11","month"=>"11","country"=>"23","statutory"=>"FALSE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Canada Day","day"=>"01","month"=>"07","country"=>"23","statutory"=>"TRUE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Fathers Day","day"=>"15","month"=>"06","country"=>"23","statutory"=>"FALSE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Mothers Day","day"=>"11","month"=>"05","country"=>"23","statutory"=>"FALSE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Victoria Day","day"=>"19","month"=>"05","country"=>"23","statutory"=>"TRUE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Christmas Eve","day"=>"24","month"=>"12","country"=>"23","statutory"=>"TRUE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Christmas Day","day"=>"25","month"=>"12","country"=>"23","statutory"=>"TRUE","occurrence"=>"","special"=>"FALSE"),
	array("holiday"=>"Easter","day"=>"0","month"=>"0","country"=>"23","statutory"=>"TRUE","occurrence"=>"","special"=>"TRUE"));

	
$record['o_themes'] = array(
	array("theme_name"=>"Default","directory"=>"default","button_images"=>"large","button_text"=>"0","navbar_images"=>"small","navbar_text"=>"1","navbar_newline"=>"1","scheme_link"=>"1"),
	array("theme_name"=>"Eclipse","directory"=>"eclipse","button_images"=>"large","button_text"=>"0","navbar_images"=>"large","navbar_text"=>"0","navbar_newline"=>"1","scheme_link"=>"2")

);

$record['o_schemes'] = array(
	array("scheme_id"=>"1","scheme_name"=>"Default","scheme_file"=>"default"),
	array("scheme_id"=>"2","scheme_name"=>"Dark","scheme_file"=>"dark"),
);


//Table, cell, data

//$record['countries']['cell'] = $countries;

*/
Return current item: O - OpenSource GroupWare