Location: PHPKode > projects > HuMo-gen > include/settings_global.php
<?php
// *** Get settings from database ***
@$result = mysql_query("SELECT * FROM humo_settings WHERE setting_variabele!='database'",$db);
while( @$row = mysql_fetch_row($result)){
	$humo_option[$row[1]] = $row[2];
}

// *** Automatic installation or update ***
if (!isset($humo_option["rss_link"])){
	$humo_option["rss_link"]='http://';
	$sql="INSERT INTO humo_settings SET setting_variabele='rss_link', setting_value='http://'";
	@$result=mysql_query($sql) or die(mysql_error());
}

if (!isset($humo_option["parenteel_generaties"])){
	$humo_option["parenteel_generaties"]='4';
	$sql="INSERT INTO humo_settings SET setting_variabele='parenteel_generaties', setting_value='4'";
	@$result=mysql_query($sql) or die(mysql_error());
}

if (!isset($humo_option["personen_weergeven"])){
	$humo_option["personen_weergeven"]='30';
	$sql="INSERT INTO humo_settings SET setting_variabele='personen_weergeven', setting_value='30'";
	@$result=mysql_query($sql) or die(mysql_error());
}

if (!isset($humo_option["url_rewrite"])){
	$humo_option["url_rewrite"]='n';
	$sql="INSERT INTO humo_settings SET setting_variabele='url_rewrite', setting_value='n'";
	@$result=mysql_query($sql) or die(mysql_error());
}

if (!isset($humo_option["default_skin"])){
	$humo_option["default_skin"]='';
	$sql="INSERT INTO humo_settings SET setting_variabele='default_skin', setting_value=''";
	@$result=mysql_query($sql) or die(mysql_error());
}

if (!isset($humo_option["default_language"])){
	$humo_option["default_language"]='nl';
	$sql="INSERT INTO humo_settings SET setting_variabele='default_language', setting_value='nl'";
	@$result=mysql_query($sql) or die(mysql_error());
}

if (!isset($humo_option["default_language_admin"])){
	$humo_option["default_language_admin"]='nl';
	$sql="INSERT INTO humo_settings SET setting_variabele='default_language_admin', setting_value='nl'";
	@$result=mysql_query($sql) or die(mysql_error());
}
?>
Return current item: HuMo-gen