[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/install/resources/ -> upgrade6.php (source)

   1  <?php
   2  /**
   3   * MyBB 1.6
   4   * Copyright 2010 MyBB Group, All Rights Reserved
   5   *
   6   * Website: http://mybb.com
   7   * License: http://mybb.com/about/license
   8   *
   9   * $Id$
  10   */
  11  
  12  /**
  13   * Upgrade Script: 1.2
  14   */
  15  
  16  
  17  $upgrade_detail = array(
  18      "revert_all_templates" => 0,
  19      "revert_all_themes" => 0,
  20      "revert_all_settings" => 0,
  21      "requires_deactivated_plugins" => 0,
  22  );
  23  
  24  @set_time_limit(0);
  25  
  26  function upgrade6_dbchanges()
  27  {
  28      global $db, $output, $mybb;
  29  
  30      $output->print_header("Performing Queries");
  31  
  32      echo "<p>Performing necessary upgrade queries..</p>";
  33      
  34      $db->write_query("ALTER TABLE ".TABLE_PREFIX."mycode CHANGE regex regex text NOT NULL");
  35      $db->write_query("ALTER TABLE ".TABLE_PREFIX."mycode CHANGE replacement replacement text NOT NULL");
  36  
  37      $contents = "Done</p>";
  38      $contents .= "<p>Click next to continue with the upgrade process.</p>";
  39      $output->print_contents($contents);
  40      $output->print_footer("6_done");
  41  }
  42  
  43  ?>


Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1