[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-admin/includes/install/ -> form.php (source)

   1  <?php
   2  
   3  /* Form install */
   4  
   5  global $wpdb;
   6  
   7  //////////////////////////////////
   8  //// Install                  ////
   9  //////////////////////////////////
  10  
  11  $charset_collate = $wpdb->get_charset_collate();
  12  
  13  $mp_tables = "CREATE TABLE $wpdb->mp_forms (
  14   id bigint(20) NOT NULL auto_increment,
  15   label varchar(255) NOT NULL default '',
  16   description varchar(255) NOT NULL default '',
  17   template varchar(50) NOT NULL default '',
  18   settings longtext,
  19   PRIMARY KEY (id),
  20   UNIQUE KEY id (id)
  21  ) $charset_collate;
  22  CREATE TABLE $wpdb->mp_fields (
  23   id bigint(20) NOT NULL auto_increment,
  24   form_id bigint(20) NOT NULL,
  25   ordre bigint(20) UNSIGNED NOT NULL default 0,
  26   type varchar(50) NOT NULL default '',
  27   template varchar(50) NOT NULL default '',
  28   label varchar(255) NOT NULL default '',
  29   description varchar(255) NOT NULL default '',
  30   settings longtext,
  31   PRIMARY KEY (id),
  32   UNIQUE KEY id (id)
  33  ) $charset_collate;\n";
  34  
  35  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
  36  dbDelta( $mp_tables );


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1