[ Index ]

PHP Cross Reference of MyBB 1.8.39

title

Body

[close]

/install/resources/ -> upgrade60.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.8.38
  13   */
  14  
  15  $upgrade_detail = array(
  16      "revert_all_templates" => 0,
  17      "revert_all_themes" => 0,
  18      "revert_all_settings" => 0
  19  );
  20  
  21  @set_time_limit(0);
  22  function upgrade60_dbchanges()
  23  {
  24      global $output, $mybb, $db, $cache;
  25  
  26      $output->print_header("Updating Database");
  27      echo "<p>Performing necessary upgrade queries...</p>";
  28      flush();
  29      
  30      if($db->field_exists('icq', 'users'))
  31      {
  32          $db->drop_column('users', 'icq');
  33      }
  34      $db->delete_query("settings", "name='allowicqfield'");
  35  
  36      $db->modify_column("posts", "username", "varchar(120)", "set", "''");
  37      $db->modify_column("threads", "username", "varchar(120)", "set", "''");
  38  
  39      $output->print_contents("<p>Click next to continue with the upgrade process.</p>");
  40      $output->print_footer("60_done");
  41  }


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