Version 4.3.6

This commit is contained in:
Neo committed 2025-12-19 05:49:12 -08:00
1 parent fe1acf984a
commit 1a0c7fd3c2
609 files changed
+14707 -5726

No files matched your search

+74 -1
View File
@@ -554,9 +554,45 @@ class _App extends \IPS\Patterns\ActiveRecord
switch( $this->data['app_key'] )
{
case 'photopost8':
case 'photopost7':
$this->app_key = 'photopost';
$this->save();
break;
case 'bbpress23':
case 'bbpress_standalone':
$this->app_key = 'bbpress';
$this->save();
break;
case 'mybb_legacy':
$this->app_key = 'mybb';
$this->save();
break;
case 'phpbb_legacy':
$this->app_key = 'phpbb';
$this->save();
break;
case 'smf_legacy':
$this->app_key = 'smf';
$this->save();
break;
case 'vbulletin_legacy':
case 'vbulletin_legacy36':
case 'vbulletin_subs':
case 'vbblog':
case 'vbdynamics':
$this->app_key = 'vbulletin';
$this->save();
break;
case 'vb5connect':
$this->app_key = 'vbulletin5';
$this->save();
break;
}
if ( ! class_exists( 'IPS\\convert\\Software\\' . ucwords( $this->_data['sw'] ) . '\\' . ucwords( $this->_data['app_key'] ) ) )
@@ -650,7 +686,44 @@ class _App extends \IPS\Patterns\ActiveRecord
{
return TRUE;
}
return FALSE;
}
/**
* Set running flag
*
* @param string $method Method name
* @param bool $status Flag status
*/
public function setRunningFlag( $method, $status )
{
$running = isset( $this->_session['running'] ) ? $this->_session['running'] : array();
/* If setting running flag, set to a timestamp */
if( $status === TRUE )
{
$status = time();
}
$running[ $method ] = $status;
$this->_session = array_merge( $this->_session, array( 'running' => $running ) );
}
/**
* Get running flag
*
* @param string $method Method name
* @return bool|int False or a timestamp
*/
public function getRunningFlag( $method )
{
if( isset( $this->_session['running'][ $method ] ) )
{
return $this->_session['running'][ $method ];
}
return FALSE;
}
}