<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| Author: Andre Krell (systemweb.de)
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

include "infusion_db.php";

// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."studiobox_panel/locale/".$settings['locale'].".php")) {
	// Load the locale file matching the current site locale setting.
	include INFUSIONS."studiobox_panel/locale/".$settings['locale'].".php";
} else {
	// Load the infusion's default locale file.
	include INFUSIONS."studiobox_panel/locale/English.php";
}

// Infusion general information
$inf_title = $sb_locale['studiobox_inf_title'];
$inf_description = $sb_locale['studiobox_inf_desc'];
$inf_version = "2.0";
$inf_developer = "Andre Krell | Systemweb";
$inf_email = "support@systemweb.de";
$inf_weburl = "http://www.systemweb.de";
$inf_folder = "studiobox_panel";

if(!FUSION_V6) {
	$inf_adminpanel[1] = array(
	"title" => $sb_locale['studiobox_name'],
	"image" => "infusions.gif",
	"panel" => "studiobox_admin.php",
	"rights" => "SWSB"
	);

	$inf_newtable[1] = $sb_db['table_settings']." (
  	`profile` varchar(15) NOT NULL DEFAULT 'default',
  	`default_sp` smallint(1) NOT NULL,
	`guests_allowed` smallint(1) NOT NULL DEFAULT '0',
  	`infotext` text NOT NULL,
  	PRIMARY KEY (`profile`),
  	UNIQUE KEY `profile` (`profile`)
	) ENGINE=MyISAM;";

	$inf_newtable[2] = $sb_db['table_posts']." (
  	`ID` int(15) unsigned NOT NULL AUTO_INCREMENT,
  	`sp_number` smallint(1) unsigned NOT NULL DEFAULT '0',
  	`user_id` int(15) NOT NULL DEFAULT '0',
  	`user_name` varchar(25) NOT NULL,
  	`user_ip` varchar(50) NOT NULL,
  	`submit_time` int(25) unsigned NOT NULL,
  	`greetings` text NOT NULL,
 	 `wishes` text NOT NULL,
  	PRIMARY KEY (`ID`)
	) ENGINE=MyISAM;";

	$inf_insertdbrow[1] = $sb_db['table_settings']." (profile, default_sp, infotext)
	VALUES('default', '', '');";

	$inf_droptable[1] = $sb_db['table_settings'];
	$inf_droptable[2] = $sb_db['table_posts'];
}
?>
