Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

profilefield_yahoo_update_url.php

Zuletzt modifiziert: 09.10.2024, 12:57 - Dateigröße: 925.00 Bytes


01  <?php
02  /**
03  *
04  * This file is part of the phpBB Forum Software package.
05  *
06  * @copyright (c) phpBB Limited <https://www.phpbb.com>
07  * @license GNU General Public License, version 2 (GPL-2.0)
08  *
09  * 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  }
39