change table engine, fix small issues
Dieser Commit ist enthalten in:
Ursprung
fcf7a560ad
Commit
dc9a1043a8
Binäre Datei nicht angezeigt.
@ -25,5 +25,9 @@ class d3_cfg_usersonline_Main extends d3_cfg_mod_main
|
||||
|
||||
protected $_blHasTestModeSwitch = false;
|
||||
|
||||
protected $_sMenuItemTitle = 'd3mxusersonline';
|
||||
|
||||
protected $_sMenuSubItemTitle = 'd3mxusersonline_settings';
|
||||
|
||||
//protected $_sDebugHelpTextIdent = 'D3_INQUIRY_MAIN_DEBUGACTIVE_DESC';
|
||||
}
|
||||
|
@ -17,6 +17,10 @@ class d3_usersonline_statistic extends d3_cfg_mod_main
|
||||
protected $_iExpTime = 600; // (in seconds)
|
||||
protected $_sThisTemplate = 'd3_usersonline_statistic.tpl';
|
||||
|
||||
protected $_sMenuItemTitle = 'd3mxusersonline';
|
||||
|
||||
protected $_sMenuSubItemTitle = 'd3mxusersonline_analysis';
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
|
@ -33,9 +33,13 @@ DQ9';
|
||||
public $sRequirements = '';
|
||||
public $sBaseValue = '';
|
||||
|
||||
public $sMinModCfgVersion = '4.3.7.0';
|
||||
|
||||
protected $_aUpdateMethods = array(
|
||||
array('check' => 'checkUsersOnlineTableExist',
|
||||
'do' => 'updateUsersOnlineTableExist'),
|
||||
array('check' => 'checkUsersOnlineTableEngine',
|
||||
'do' => 'updateUsersOnlineTableEngine'),
|
||||
array('check' => 'checkRenameFields',
|
||||
'do' => 'fixRenameFields'),
|
||||
array('check' => 'checkDeleteFields',
|
||||
@ -162,12 +166,39 @@ DQ9';
|
||||
$blRet = true;
|
||||
|
||||
if ($this->checkUsersOnlineTableExist()) {
|
||||
$blRet = $this->_addTable2('d3usersonline', $this->aFields, $this->aIndizes, 'users online', 'MyISAM');
|
||||
$blRet = $this->_addTable2('d3usersonline', $this->aFields, $this->aIndizes, 'users online', 'InnoDB');
|
||||
}
|
||||
|
||||
return $blRet;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool true, if table has wrong engine
|
||||
*/
|
||||
public function checkUsersOnlineTableEngine()
|
||||
{
|
||||
/** @var d3installdbtable $oDbTable */
|
||||
$oDbTable = oxNew('d3installdbtable', $this);
|
||||
$aData = $oDbTable->getTableData('d3usersonline');
|
||||
|
||||
if (isset($aData) && count($aData) && isset($aData['ENGINE']) && $aData['ENGINE'] == 'InnoDB') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function updateUsersOnlineTableEngine()
|
||||
{
|
||||
/** @var d3installdbtable $oDbTable */
|
||||
$oDbTable = oxNew('d3installdbtable', $this);
|
||||
$blRet = $oDbTable->changeTableEngine('d3usersonline', 'InnoDB');
|
||||
return $blRet;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -25,7 +25,7 @@ $iLangNr = 0;
|
||||
$aLang = array(
|
||||
'charset' => 'ISO-8859-15',
|
||||
|
||||
'd3mxusersonline' => 'Benutzer online',
|
||||
'd3mxusersonline' => '<i class="fa fa-bar-chart"></i> Benutzer online',
|
||||
'd3mxusersonline_settings' => 'Einstellungen',
|
||||
'd3tbclussersonline_settings_main' => 'Grundeinstellungen',
|
||||
'd3mxusersonline_analysis' => 'Auswertungen',
|
||||
@ -35,4 +35,5 @@ $aLang = array(
|
||||
'D3_USERSONLINE_USER' => 'Benutzer',
|
||||
'D3_USERSONLINE_USERS' => 'Benutzer',
|
||||
'D3_USERSONLINE_ALL' => 'gesamt',
|
||||
'D3_USERSONLINE_SAVE' => 'Speichern',
|
||||
);
|
||||
|
@ -25,7 +25,7 @@ $iLangNr = 0;
|
||||
$aLang = array(
|
||||
'charset' => 'ISO-8859-15',
|
||||
|
||||
'd3mxusersonline' => 'Users Online',
|
||||
'd3mxusersonline' => '<i class="fa fa-bar-chart"></i> Users online',
|
||||
'd3mxusersonline_settings' => 'Settings',
|
||||
'd3tbclussersonline_settings_main' => 'Main Settings',
|
||||
'd3mxusersonline_analysis' => 'Analysis',
|
||||
@ -35,4 +35,5 @@ $aLang = array(
|
||||
'D3_USERSONLINE_USER' => 'user',
|
||||
'D3_USERSONLINE_USERS' => 'users',
|
||||
'D3_USERSONLINE_ALL' => 'all',
|
||||
'D3_USERSONLINE_SAVE' => 'save',
|
||||
);
|
||||
|
@ -128,7 +128,7 @@
|
||||
<td class="edittext ext_edittext" align="left">
|
||||
<br>
|
||||
<span class="d3modcfg_btn icon status_ok">
|
||||
<input type="submit" name="save" value="[{oxmultilang ident="D3_INQUIRY_MAIN_SAVE"}]">
|
||||
<input type="submit" name="save" value="[{oxmultilang ident="D3_USERSONLINE_SAVE"}]">
|
||||
<span></span>
|
||||
</span>
|
||||
<br><br>
|
||||
@ -142,13 +142,3 @@
|
||||
</form>
|
||||
|
||||
[{include file="d3_cfg_mod_inc.tpl"}]
|
||||
|
||||
<script type="text/javascript">
|
||||
if (parent.parent) {
|
||||
parent.parent.sShopTitle = "[{$actshopobj->oxshops__oxname->getRawValue()|oxaddslashes}]";
|
||||
parent.parent.sMenuItem = "[{oxmultilang ident="d3mxusersonline"}]";
|
||||
parent.parent.sMenuSubItem = "[{oxmultilang ident="d3mxusersonline_settings"}]";
|
||||
parent.parent.sWorkArea = "[{$_act}]";
|
||||
parent.parent.setTitle();
|
||||
}
|
||||
</script>
|
@ -149,13 +149,3 @@
|
||||
[{/if}]
|
||||
|
||||
[{include file="d3_cfg_mod_inc.tpl"}]
|
||||
|
||||
<script type="text/javascript">
|
||||
if (parent.parent) {
|
||||
parent.parent.sShopTitle = "[{$actshopobj->oxshops__oxname->getRawValue()|oxaddslashes}]";
|
||||
parent.parent.sMenuItem = "[{oxmultilang ident="d3mxusersonline"}]";
|
||||
parent.parent.sMenuSubItem = "[{oxmultilang ident="d3mxusersonline_settings"}]";
|
||||
parent.parent.sWorkArea = "[{$_act}]";
|
||||
parent.parent.setTitle();
|
||||
}
|
||||
</script>
|
@ -143,7 +143,7 @@ class requConfig
|
||||
'aParams' => array(
|
||||
'id' => 'd3modcfg_lib',
|
||||
'name' => 'Modul-Connector',
|
||||
'version' => '4.3.1.0',
|
||||
'version' => '4.3.7.0',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren