Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

@@ -61,10 +61,6 @@ class _Punbb extends \IPS\convert\Software
'table' => 'users',
'where' => NULL,
),
'convertRanks' => array(
'table' => 'ranks',
'where' => NULL
),
'convertPrivateMessages' => array(
'table' => 'messages',
'where' => NULL,
@@ -138,7 +134,7 @@ class _Punbb extends \IPS\convert\Software
case 'convertMembers':
/* Pseudo Profile Fields */
foreach( [ 'url', 'jabber', 'icq', 'msn', 'aim', 'yahoo', 'location' ] AS $field )
foreach( [ 'url', 'jabber', 'icq', 'msn', 'aim', 'yahoo', 'location', 'title' ] AS $field )
{
\IPS\Member::loggedIn()->language()->words["field_{$field}"] = \IPS\Member::loggedIn()->language()->addToStack( 'pseudo_field', FALSE, array( 'sprintf' => ucwords( $field ) ) );
\IPS\Member::loggedIn()->language()->words["field_{$field}_desc"] = \IPS\Member::loggedIn()->language()->addToStack( 'pseudo_field_desc' );
@@ -279,13 +275,12 @@ class _Punbb extends \IPS\convert\Software
'members_bitoptions' => [ 'view_sigs' => $row['show_sig'] ],
'signature' => $row['signature'],
'timezone' => $row['timezone'],
'member_title' => $row['title'],
'member_posts' => $row['num_posts'],
);
/* Pseudo Fields */
$profileFields = array();
foreach( [ 'url', 'jabber', 'icq', 'msn', 'aim', 'yahoo', 'location' ] AS $pseudo )
foreach( [ 'url', 'jabber', 'icq', 'msn', 'aim', 'yahoo', 'location', 'title' ] AS $pseudo )
{
/* Are we retaining? */
if ( $this->app->_session['more_info']['convertMembers']["field_{$pseudo}"] == 'no_convert' )
@@ -323,31 +318,6 @@ class _Punbb extends \IPS\convert\Software
}
}
/**
* Convert ranks
*
* @return void
*/
public function convertRanks()
{
$libraryClass = $this->getLibrary();
$libraryClass::setKey( 'id' );
foreach( $this->fetch( 'ranks', 'id' ) AS $row )
{
$info = array(
'id' => $row['id'],
'title' => $row['rank'],
'posts' => $row['min_posts']
);
$libraryClass->convertRank( $info );
$libraryClass->setLastKeyValue( $row['id'] );
}
}
/**
* Convert private messages
*