0, 'blog_image_link' => 1, 'blog_photo_w' => 400, 'blog_photo_h' => 300, 'blog_thumb_w' => 100, 'blog_thumb_h' => 100, 'blog_photo_max_w' => 1800, 'blog_photo_max_h' => 1600, 'blog_photo_max_b' => 15728640, 'blog_pagination' => 12, 'blog_allow_submission' => 1, 'blog_allow_submission_files' => 1, 'blog_extended_required' => 0, 'blog_file_types' => '.pdf,.gif,.jpg,.png,.svg,.zip,.rar,.tar,.bz2,.7z' ]; foreach ($settings as $name => $value) { $inf_insertdbrow[] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES ('".$name."', '".$value."', '".$inf_folder."')"; } // Multilanguage table $inf_mlt[] = [ "title" => $locale['blog']['title'], "rights" => "BL" ]; // Multilanguage links $enabled_languages = makefilelist(LOCALE, ".|..", TRUE, "folders"); if (!empty($enabled_languages)) { foreach ($enabled_languages as $language) { include LOCALE.$language."/setup.php"; $mlt_adminpanel[$language][] = [ 'rights' => "BLOG", 'image' => $inf_image, 'title' => $locale['setup_3055'], 'panel' => "blog_admin.php", 'page' => 1, 'language' => $language ]; // Add $mlt_insertdbrow[$language][] = DB_SITE_LINKS." (link_name, link_url, link_visibility, link_position, link_window, link_order, link_status, link_language) VALUES ('".$locale['setup_3055']."', 'infusions/blog/blog.php', '0', '2', '0', '2', '1', '".$language."')"; $mlt_insertdbrow[$language][] = DB_SITE_LINKS." (link_name, link_url, link_visibility, link_position, link_window, link_order, link_status, link_language) VALUES ('".$locale['setup_3317']."', 'submit.php?stype=b', ".USER_LEVEL_MEMBER.", '1', '0', '21', '1', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3500']."', 'bugs.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3501']."', 'downloads.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3502']."', 'games.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3503']."', 'graphics.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3504']."', 'hardware.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3505']."', 'journal.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3506']."', 'members.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3507']."', 'mods.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3509']."', 'network.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3511']."', 'php-fusion.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3512']."', 'security.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3513']."', 'software.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3514']."', 'themes.svg', '".$language."')"; $mlt_insertdbrow[$language][] = DB_BLOG_CATS." (blog_cat_name, blog_cat_image, blog_cat_language) VALUES ('".$locale['setup_3515']."', 'windows.svg', '".$language."')"; // Delete $mlt_deldbrow[$language][] = DB_SITE_LINKS." WHERE link_url='infusions/blog/blog.php' AND link_language='".$language."'"; $mlt_deldbrow[$language][] = DB_SITE_LINKS." WHERE link_url='submit.php?stype=b' AND link_language='".$language."'"; $mlt_deldbrow[$language][] = DB_BLOG_CATS." WHERE blog_cat_language='".$language."'"; $mlt_deldbrow[$language][] = DB_BLOG." WHERE blog_language='".$language."'"; $mlt_deldbrow[$language][] = DB_ADMIN." WHERE admin_rights='BLOG' AND admin_language='".$language."'"; } } else { $inf_adminpanel[] = [ "rights" => "BLOG", "image" => $inf_image, "title" => $locale['setup_3055'], "panel" => "blog_admin.php", "page" => 1, 'language' => LANGUAGE ]; $inf_insertdbrow[] = DB_SITE_LINKS." (link_name, link_url, link_visibility, link_position, link_window, link_order, link_status, link_language) VALUES('".$locale['setup_3055']."', 'infusions/blog/blog.php', '0', '2', '0', '2', '1', '".LANGUAGE."')"; $inf_insertdbrow[] = DB_SITE_LINKS." (link_name, link_url, link_visibility, link_position, link_window, link_order, link_status, link_language) VALUES ('".$locale['setup_3317']."', 'submit.php?stype=b', ".USER_LEVEL_MEMBER.", '1', '0', '21', '1', '".LANGUAGE."')"; } // Uninstallation $inf_droptable[] = DB_BLOG; $inf_droptable[] = DB_BLOG_CATS; $inf_deldbrow[] = DB_COMMENTS." WHERE comment_type='B'"; $inf_deldbrow[] = DB_RATINGS." WHERE rating_type='B'"; $inf_deldbrow[] = DB_SUBMISSIONS." WHERE submit_type='b'"; $inf_deldbrow[] = DB_PANELS." WHERE panel_filename='blog_archive_panel'"; $inf_deldbrow[] = DB_ADMIN." WHERE admin_rights='BLOG'"; $inf_deldbrow[] = DB_SETTINGS_INF." WHERE settings_inf='".$inf_folder."'"; $inf_deldbrow[] = DB_SITE_LINKS." WHERE link_url='infusions/blog/blog.php'"; $inf_deldbrow[] = DB_SITE_LINKS." WHERE link_url='submit.php?stype=b'"; $inf_deldbrow[] = DB_LANGUAGE_TABLES." WHERE mlt_rights='BL'"; $inf_delfiles[] = IMAGES_B; $inf_delfiles[] = IMAGES_B_T;