if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."user_display_info_panel/locale/".LOCALESET."user_display.php")) {
include INFUSIONS."user_display_info_panel/locale/".LOCALESET."user_display.php";
} else {
include INFUSIONS."user_display_info_panel/locale/English/user_display.php";
}
include INFUSIONS."user_display_info_panel/infusion_db.php";
$inf_title = $locale['UDR8100'];
$inf_description = $locale['UDR8101'];
$inf_version = "0815";
$inf_developer = "Rolly8-HL";
$inf_email = "";
$inf_weburl = "#";
$inf_folder = "user_display_info_panel";
$inf_newtable[1] = DB_DISPLAYINFO." (
UDR8_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
UDR8_subject VARCHAR(200) NOT NULL DEFAULT '',
UDR8_image VARCHAR(100) NOT NULL DEFAULT '',
UDR8_image_t1 VARCHAR(100) NOT NULL DEFAULT '',
UDR8_image_t2 VARCHAR(100) NOT NULL DEFAULT '',
UDR8_cat MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
UDR8_news TEXT NOT NULL,
UDR8_extended TEXT NOT NULL,
UDR8_breaks CHAR(1) NOT NULL DEFAULT '',
UDR8_name MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '1',
UDR8_datestamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
UDR8_start INT(10) UNSIGNED NOT NULL DEFAULT '0',
UDR8_end INT(10) UNSIGNED NOT NULL DEFAULT '0',
UDR8_visibility TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
UDR8_reads INT(10) UNSIGNED NOT NULL DEFAULT '0',
UDR8_draft TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
UDR8_sticky TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
UDR8_allow_comments TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
UDR8_allow_ratings TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
PRIMARY KEY (UDR8_id),
KEY UDR8_datestamp (UDR8_datestamp),
KEY UDR8_reads (UDR8_reads)
) ;";
$inf_newtable[2] = DB_DISPLAYINFO_CAT." (
UDR8_cat_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
UDR8_cat_name VARCHAR(100) NOT NULL DEFAULT '',
UDR8_cat_image VARCHAR(100) NOT NULL DEFAULT '',
PRIMARY KEY (UDR8_cat_id)
) ;";
$inf_insertdbrow[1] = DB_DISPLAYINFO." (UDR8_id, UDR8_subject, UDR8_image, UDR8_image_t1, UDR8_image_t2, UDR8_cat, UDR8_news, UDR8_extended, UDR8_breaks, UDR8_name, UDR8_datestamp, UDR8_start, UDR8_end, UDR8_visibility, UDR8_reads, UDR8_draft, UDR8_sticky, UDR8_allow_comments, UDR8_allow_ratings) VALUES
(1, 'Home', '', '', '', 1, '<p>Hallo Gast</p>', '', 'n', 1, 1343381419, 0, 0, 0, 0, 0, 0, 1, 1);
";
$inf_insertdbrow[2] = DB_DISPLAYINFO_CAT." (UDR8_cat_id, UDR8_cat_name, UDR8_cat_image) VALUES
(1, 'Eigene', 'r8.jpg');
";
$inf_insertdbrow[1] = DB_PANELS." SET panel_name='".$inf_title."', panel_filename='".$inf_folder."', panel_side=3, panel_order='0', panel_type='file', panel_access='0', panel_display='1', panel_status='1' ";
$inf_deldbrow[1] = DB_PANELS." WHERE panel_filename='".$inf_folder."'";
$inf_droptable[1] = DB_DISPLAYINFO;
$inf_droptable[2] = DB_DISPLAYINFO_CAT;
$inf_adminpanel[1] = array(
"title" => "User Displayinfo",
"image" => "udir8.gif",
"panel" => "user_display_admin.php",
"rights" => "UDR8"
);