Quote
New DB_TABLE_NAME also.
- by Craig
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (!defined("DB_EVENTS")) {
define("DB_EVENTS", DB_PREFIX."ems_events2");
}
if (!defined("IN_FUSION")) { die("Access Denied"); }
include INFUSIONS."rezerwacja_panel2/infusion_db.php";
if (file_exists(INFUSIONS."rezerwacja_panel2/locale/".$settings['locale'].".php")) {
include INFUSIONS."rezerwacja_panel2/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."rezerwacja_panel2/locale/English.php";
}
// Infusion general information
$inf_title = "Rezerwacja panel 2";
$inf_description = $locale['inf_description'];
$inf_version = "1.00";
$inf_developer = "Ankur Thakur";
$inf_email = "admin@phpfusionmods.co.uk";
$inf_weburl = "http://www.phpfusionmods.co.uk";
$inf_folder = "rezerwacja_panel2";
$inf_newtable[1] = DB_EVENTS." (
event_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
event_title VARCHAR(100) NOT NULL DEFAULT '',
event_author MEDIUMINT(8) UNSIGNED NOT NULL,
event_startdate INT(10) UNSIGNED DEFAULT '0',
event_enddate INT(10) UNSIGNED DEFAULT '0',
event_text TEXT NOT NULL,
event_visibility INT(3) UNSIGNED DEFAULT '0',
event_image VARCHAR(100) NOT NULL DEFAULT '',
event_thumb_image VARCHAR(100) NOT NULL DEFAULT '',
event_allow_comments TINYINT(1) UNSIGNED DEFAULT '0',
event_allow_ratings TINYINT(1) UNSIGNED DEFAULT '0',
event_hidden TINYINT(1) UNSIGNED DEFAULT '0',
PRIMARY KEY (event_id)
) ENGINE=MyISAM;";
// Infusion Settings
$inf_insertdbrow[1] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_member_post_allow', '0', '".$inf_folder."')";
$inf_insertdbrow[2] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_post_admin_moderate', '1', '".$inf_folder."')";
$inf_insertdbrow[3] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_show_birthdays_calendar', '1', '".$inf_folder."')";
$inf_insertdbrow[4] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_width', '1800', '".$inf_folder."')";
$inf_insertdbrow[5] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_height', '1600', '".$inf_folder."')";
$inf_insertdbrow[6] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_width', '200', '".$inf_folder."')";
$inf_insertdbrow[7] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_height', '200', '".$inf_folder."')";
$inf_insertdbrow[8] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_size', '300000', '".$inf_folder."')";
$inf_insertdbrow[9] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_calendar_tip_direction', 'up', '".$inf_folder."')";
$inf_insertdbrow[10] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_panel_tip_direction', 'left', '".$inf_folder."')";
// Style CSS
// BG Color
$inf_insertdbrow[11] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_currentdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[12] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_eventdate', '00FF00', '".$inf_folder."')";
$inf_insertdbrow[13] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_dates', 'FFFFFF', '".$inf_folder."')";
// Text Color
$inf_insertdbrow[14] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_currentdate', 'FFFFFF', '".$inf_folder."')";
$inf_insertdbrow[15] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_eventdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[16] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_dates', '000000', '".$inf_folder."')";
// Days Colors
$inf_insertdbrow[17] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_days', '333333', '".$inf_folder."')";
$inf_insertdbrow[18] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_days', 'FFFFFF', '".$inf_folder."')";
// Add Site Link - Events
$inf_sitelink[1]['title'] = $locale['event_view'];
$inf_sitelink[1]['url'] = "events.php";
$inf_sitelink[1]['visibility'] = "0";
// Delete Infusion Settings
$inf_deldbrow[1] = DB_SETTINGS_INF." WHERE settings_inf='".$inf_folder."'";
// Delete Comments on Events
$inf_deldbrow[2] = DB_COMMENTS." WHERE comment_type='EM'";
// Delete Ratings on Events
$inf_deldbrow[3] = DB_RATINGS." WHERE rating_type='E'";
// Drop Table Events
$inf_droptable[1] = DB_EVENTS;
$inf_adminpanel[1] = array(
"title" => $locale['inf_title'],
"image" => "ems.png",
"panel" => "rezerwacja_panel2_admin.php",
"rights" => "EMS"
);
if (!defined("IN_FUSION")) { die("Access Denied"); }
include INFUSIONS."rezerwacja_panel2/infusion_db.php";
if (file_exists(INFUSIONS."rezerwacja_panel2/locale/".$settings['locale'].".php")) {
include INFUSIONS."rezerwacja_panel2/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."rezerwacja_panel2/locale/English.php";
}
// Infusion general information
$inf_title = $locale['inf_title'];
$inf_description = $locale['inf_description'];
$inf_version = "1.00";
$inf_developer = "Ankur Thakur";
$inf_email = "admin@phpfusionmods.co.uk";
$inf_weburl = "http://www.phpfusionmods.co.uk";
$inf_folder = "rezerwacja_panel2";
$inf_newtable[1] = DB_EVENTS2." (
event_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
event_title VARCHAR(100) NOT NULL DEFAULT '',
event_author MEDIUMINT(8) UNSIGNED NOT NULL,
event_startdate INT(10) UNSIGNED DEFAULT '0',
event_enddate INT(10) UNSIGNED DEFAULT '0',
event_text TEXT NOT NULL,
event_visibility INT(3) UNSIGNED DEFAULT '0',
event_image VARCHAR(100) NOT NULL DEFAULT '',
event_thumb_image VARCHAR(100) NOT NULL DEFAULT '',
event_allow_comments TINYINT(1) UNSIGNED DEFAULT '0',
event_allow_ratings TINYINT(1) UNSIGNED DEFAULT '0',
event_hidden TINYINT(1) UNSIGNED DEFAULT '0',
PRIMARY KEY (event_id)
) ENGINE=MyISAM;";
// Infusion Settings
$inf_insertdbrow[1] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_member_post_allow', '0', '".$inf_folder."')";
$inf_insertdbrow[2] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_post_admin_moderate', '1', '".$inf_folder."')";
$inf_insertdbrow[3] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_show_birthdays_calendar', '1', '".$inf_folder."')";
$inf_insertdbrow[4] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_width', '1800', '".$inf_folder."')";
$inf_insertdbrow[5] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_height', '1600', '".$inf_folder."')";
$inf_insertdbrow[6] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_width', '200', '".$inf_folder."')";
$inf_insertdbrow[7] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_height', '200', '".$inf_folder."')";
$inf_insertdbrow[8] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_size', '300000', '".$inf_folder."')";
$inf_insertdbrow[9] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_calendar_tip_direction', 'up', '".$inf_folder."')";
$inf_insertdbrow[10] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_panel_tip_direction', 'left', '".$inf_folder."')";
// Style CSS
// BG Color
$inf_insertdbrow[11] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_currentdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[12] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_eventdate', '00FF00', '".$inf_folder."')";
$inf_insertdbrow[13] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_dates', 'FFFFFF', '".$inf_folder."')";
// Text Color
$inf_insertdbrow[14] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_currentdate', 'FFFFFF', '".$inf_folder."')";
$inf_insertdbrow[15] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_eventdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[16] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_dates', '000000', '".$inf_folder."')";
// Days Colors
$inf_insertdbrow[17] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_days', '333333', '".$inf_folder."')";
$inf_insertdbrow[18] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_days', 'FFFFFF', '".$inf_folder."')";
// Add Site Link - Events
$inf_sitelink[1]['title'] = $locale['event_view'];
$inf_sitelink[1]['url'] = "events.php";
$inf_sitelink[1]['visibility'] = "0";
// Delete Infusion Settings
$inf_deldbrow[1] = DB_SETTINGS_INF." WHERE settings_inf='".$inf_folder."'";
// Delete Comments on Events
$inf_deldbrow[2] = DB_COMMENTS." WHERE comment_type='EM'";
// Delete Ratings on Events
$inf_deldbrow[3] = DB_RATINGS." WHERE rating_type='E'";
// Drop Table Events
$inf_droptable[1] = DB_EVENTS2;
$inf_adminpanel[1] = array(
"title" => $locale['inf_title'],
"image" => "ems.png",
"panel" => "rezerwacja_panel2_admin.php",
"rights" => "EMS"
);
$inf_insertdbrow[1] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_member_post_allow', '0', '".$inf_folder."')";
$inf_insertdbrow[2] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_post_admin_moderate', '1', '".$inf_folder."')";
$inf_insertdbrow[3] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_show_birthdays_calendar', '1', '".$inf_folder."')";
$inf_insertdbrow[4] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_width', '1800', '".$inf_folder."')";
$inf_insertdbrow[5] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_height', '1600', '".$inf_folder."')";
$inf_insertdbrow[6] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_width', '200', '".$inf_folder."')";
$inf_insertdbrow[7] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_height', '200', '".$inf_folder."')";
$inf_insertdbrow[8] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_size', '300000', '".$inf_folder."')";
$inf_insertdbrow[9] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_calendar_tip_direction', 'up', '".$inf_folder."')";
$inf_insertdbrow[10] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_panel_tip_direction', 'left', '".$inf_folder."')";
// Style CSS
// BG Color
$inf_insertdbrow[11] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_currentdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[12] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_eventdate', '00FF00', '".$inf_folder."')";
$inf_insertdbrow[13] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_dates', 'FFFFFF', '".$inf_folder."')";
// Text Color
$inf_insertdbrow[14] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_currentdate', 'FFFFFF', '".$inf_folder."')";
$inf_insertdbrow[15] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_eventdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[16] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_dates', '000000', '".$inf_folder."')";
// Days Colors
$inf_insertdbrow[17] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_days', '333333', '".$inf_folder."')";
$inf_insertdbrow[18] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_days', 'FFFFFF', '".$inf_folder."')";
Category Forum
Panels and InfusionsLabels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions