32 lines
8.1 KiB
PHP
32 lines
8.1 KiB
PHP
|
|
<?php
|
|||
|
|
|
|||
|
|
/*
|
|||
|
|
|| #################################################################### ||
|
|||
|
|
|| # ArrowChat # ||
|
|||
|
|
|| # ---------------------------------------------------------------- # ||
|
|||
|
|
|| # Copyright <20>2010-2012 ArrowSuites LLC. All Rights Reserved. # ||
|
|||
|
|
|| # This file may not be redistributed in whole or significant part. # ||
|
|||
|
|
|| # ---------------- ARROWCHAT IS NOT FREE SOFTWARE ---------------- # ||
|
|||
|
|
|| # http://www.arrowchat.com | http://www.arrowchat.com/license/ # ||
|
|||
|
|
|| #################################################################### ||
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
// The intial configuration settings for ArrowChat
|
|||
|
|
|
|||
|
|
$sql_ary = array(
|
|||
|
|
"INSERT IGNORE INTO `arrowchat_themes` (`id`, `folder`, `name`, `active`, `update_link`, `version`, `default`)
|
|||
|
|
VALUES (1, 'defi', 'Defi', '1' ,'http://www.arrowchat.com/updatecheck.php?id=55', '1.0', '1')",
|
|||
|
|
|
|||
|
|
"INSERT IGNORE INTO `arrowchat_smilies` (`id`, `name`, `code`)
|
|||
|
|
VALUES (1, 'arrowchat_logo.png', '[arrowchat-logo]')",
|
|||
|
|
|
|||
|
|
"INSERT IGNORE INTO `arrowchat_notifications_markup` (`id`, `name`, `type`, `markup`)
|
|||
|
|
VALUES (1, 'Private Messages', 1, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-messages fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has sent you a new message.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (2, 'Friend Requests', 2, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-user-plus fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has sent you a friend request.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (3, 'Wall Post', 3, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-pen-line fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has wrote on your wall.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (4, 'Event Invite', 4, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-calendar-day fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has invited you to an event.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (5, 'Group Invite', 5, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-people-group fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has invited you to a group.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (6, 'Birthday', 6, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-cake-candles fad\"></i><div class=\"arrowchat_notification_text\">It is <a href=\"#\">{author_name}</a>\'s birthday!<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (7, 'Comment', 7, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-comment-lines fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has left you a comment.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (8, 'Reply', 8, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-reply fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has replied to you.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (9, 'Like Post', 9, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-thumbs-up fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has liked your post.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (10, 'Like Comment', 10, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-comment-check fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has liked your comment.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>'), (11, 'Like Photo', 11, '<div class=\"arrowchat_blue_link arrowchat_notification_box\"><i class=\"fa-image fad\"></i><div class=\"arrowchat_notification_text\"><a href=\"#\">{author_name}</a> has liked your photo.<div class=\"arrowchat_received\">{longago}</div></div></div><div class=\"arrowchat_notifications_divider\"></div>')",
|
|||
|
|
|
|||
|
|
"INSERT IGNORE INTO `arrowchat_config` (`config_name`, `config_value`, `is_dynamic`)
|
|||
|
|
VALUES ('theme', 'defi', 0), ('base_url', '".$_SESSION['config_path']."', 0), ('online_timeout', '120', 0), ('disable_smilies', '0', 0), ('auto_popup_chatbox', '1', 0), ('heart_beat', '3', 0), ('language', 'en', 0), ('idle_time', '3', 0), ('install_time', '".time()."', 0), ('chatrooms_on', '0', 0), ('notifications_on', '0', 0), ('popout_chat_on', '1', 0), ('disable_avatars', '0', 0), ('disable_buddy_list', '".$disable_buddy_list."', 0), ('chat_maintenance', '0', 0), ('announcement', '', 0), ('admin_chat_all', '0', 0), ('admin_view_maintenance', '0', 0), ('user_chatrooms', '0', 0), ('user_chatrooms_flood', '10', 0), ('user_chatrooms_length', '30', 0), ('video_chat', '1', 0), ('us_time', '1', 0), ('file_transfer_on', '0', 0), ('buddy_list_heart_beat', '60', 0), ('chatroom_history_length', '60', 0), ('disable_arrowchat', '0', 0), ('enable_mobile', '0', 0), ('guests_can_chat', '".$guests_can_chat."', 0), ('guests_can_view', '".$guests_can_view."', 0), ('guests_chat_with', '1', 0), ('push_on', '".$push_on."', 0), ('push_publish', '".$_SESSION['publish_key']."', 0), ('push_subscribe', '".$_SESSION['subscribe_key']."', 0), ('show_full_username', '0', 0), ('users_chat_with', '3', 0), ('hide_admins_buddylist', '0', 0), ('guest_name_change', '1', '0'), ('guest_name_duplicates', '0', '0'), ('guest_name_bad_words', 'fuck,cunt,nigger,shit,admin,administrator,mod,moderator,support', '0'), ('blocked_words', 'fuck,[shit],nigger,[cunt],[ass],asshole', '0'), ('login_url', '', '0'), ('admin_background_color', '', '0'), ('admin_text_color', '', '0'), ('facebook_app_id', '', '0'), ('max_upload_size', '5', '0'), ('enable_moderation', '0', '0'), ('chatroom_transfer_on', '0', '0'), ('chatroom_message_length', '150', '0'), ('push_ssl', '0', '0'), ('video_chat_selection', '1', '0'), ('video_chat_width', '900', '0'), ('video_chat_height', '600', '0'), ('tokbox_api', '', '0'), ('tokbox_secret', '', '0'), ('chatroom_default_names', '0', '0'), ('group_disable_arrowchat', '', '0'), ('group_disable_video', '', '0'), ('group_disable_apps', '', '0'), ('group_disable_rooms', '', '0'), ('group_disable_uploads', '', '0'), ('group_disable_sending_private', '', '0'), ('group_disable_sending_rooms', '', '0'), ('group_enable_mode', '0', '0'), ('online_list_on', '1', '0'), ('giphy_off', '0', '0'), ('giphy_chatroom_off', '0', '0'), ('push_encrypt', '".$push_random."', '0'), ('mobile_chat_icon', 'fas fa-comment', '0'), ('mobile_chat_action', '1', '0'), ('spam_protection', '0', '0'), ('group_is_admin', '', '0'), ('group_is_mod', '', '0'), ('enable_rtl', '0', '0'), ('agora_app_id', '', '0'), ('agora_app_certificate', '', '0'), ('group_respond_timeout', '1', '0'), ('group_disable_responding_private', '', '0'), ('admin_update_time', '', '0'), ('enable_jquery', '1', '0'), ('enable_jquery_ui', '1', '0'), ('num_closed_windows', '5', '0'), ('window_left_padding', '160', '0'), ('first_time_message_on', '1', '0'), ('first_time_message_header', 'Chat with others!', '0'), ('first_time_message_content', 'Click to chat with other users online', '0'), ('allowed_closed_windows', '20', '0'), ('allowed_open_windows', '3', '0')",
|
|||
|
|
|
|||
|
|
"INSERT IGNORE INTO `arrowchat_admin` (`id`, `username`, `password`, `email`)
|
|||
|
|
VALUES (1, '".$_SESSION['admin_username']."', '".md5($_SESSION['admin_password'])."', '".$_SESSION['admin_email']."')"
|
|||
|
|
);
|
|||
|
|
?>
|