PluginProbe
Insert Html Snippet / 1.0
Insert Html Snippet v1.0
1.4.6 trunk 1.0 1.0.1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 All 27 releases
insert-html-snippet / admin / install.php

install.php in Insert Html Snippet 1.0, at admin/install.php

27 lines 787 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 function xyz_ihs_install(){
4
5 global $wpdb;
6 //global $current_user; get_currentuserinfo();
7
8
9 if(get_option('xyz_credit_link') == "")
10 {
11 add_option("xyz_credit_link",0);
12 }
13
14 add_option('xyz_ihs_limit',20);
15
16 $queryInsertHtml = "CREATE TABLE IF NOT EXISTS ".$wpdb->prefix."xyz_ihs_short_code (
17 `id` int NOT NULL AUTO_INCREMENT,
18 `title` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
19 `content` longtext COLLATE utf8_unicode_ci NOT NULL,
20 `short_code` varchar(2000) COLLATE utf8_unicode_ci NOT NULL,
21 `status` int NOT NULL,
22 PRIMARY KEY (`id`)
23 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1";
24 $wpdb->query($queryInsertHtml);
25 }
26
27 register_activation_hook(XYZ_INSERT_HTML_PLUGIN_FILE,'xyz_ihs_install');