[ Index ]

PHP Cross Reference of MyBB 1.8.40

title

Body

[close]

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

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


2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref