From f99010a8a9be3083e1a09c5dbebd8d00d401d4ef Mon Sep 17 00:00:00 2001 From: Jesse Watson Date: Tue, 27 Oct 2015 11:40:47 -0600 Subject: [PATCH] Read Description. This is the installation file for skype/gtalk icons. It needs to be deleted once executed. --- Themes/core/install.php | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Themes/core/install.php diff --git a/Themes/core/install.php b/Themes/core/install.php new file mode 100644 index 0000000..ea5df42 --- /dev/null +++ b/Themes/core/install.php @@ -0,0 +1,52 @@ +Error: Cannot install - please verify you put this in the same place as SMF\'s index.php.'); + +global $smcFunc; + +if(!array_key_exists('db_add_column', $smcFunc)) + db_extend('packages'); + +$column_array = array( + 'column1' => array( + 'name' => 'skype', + 'type' => 'varchar', + 'size' => '45', + 'null' => false, + 'default' => '', + ), + 'column2' => array( + 'name' => 'gtalk', + 'type' => 'varchar', + 'size' => '45', + 'null' => false, + 'default' => '', + ), +); + +foreach ($column_array as $key => $data) +{ + $smcFunc['db_add_column']( + '{db_prefix}members', + $data, + array(), + 'update', + 'fatal' + ); +} + +?> \ No newline at end of file