[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/phpbb/db/migration/data/v31x/ -> profilefield_yahoo_update_url.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * For full copyright and license information, please see
  10  * the docs/CREDITS.txt file.
  11  *
  12  */
  13  
  14  namespace phpbb\db\migration\data\v31x;
  15  
  16  class profilefield_yahoo_update_url extends \phpbb\db\migration\migration
  17  {
  18  	static public function depends_on()
  19      {
  20          return array('\phpbb\db\migration\data\v31x\v312');
  21      }
  22  
  23  	public function update_data()
  24      {
  25          return array(
  26              array('custom', array(array($this, 'update_contact_url'))),
  27          );
  28      }
  29  
  30  	public function update_contact_url()
  31      {
  32          $sql = 'UPDATE ' . $this->table_prefix . "profile_fields
  33              SET field_contact_url = 'ymsgr:sendim?%s'
  34              WHERE field_name = 'phpbb_yahoo'
  35                  AND field_contact_url = 'http://edit.yahoo.com/config/send_webmesg?.target=%s&amp;.src=pg'";
  36          $this->sql_query($sql);
  37      }
  38  }


Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1