Code:
--------------------
statsbar:stat
$apiv = 2
$type = post
-----
$cfgref
$VAR1 = {
'rowcounter' => 'mainstats',
'display' => 'hostingpackage|sharedip|dedicatedip|shorthostname|cpanelversion|cpanelrevision|sendmailpath|machinetype'
};
-----
$dataref
$VAR1 = [
{
'percent10' => 0,
'percent5' => 0,
'rowtype' => 'even',
'percent20' => 0,
'item' => 'Hosting package',
'value' => 'default',
'name' => 'hostingpackage',
'langkey' => 'INDXHostingPackage',
'_maxed' => 0,
'module' => 'PkgInfo',
'percent' => 0,
'count' => undef,
'max' => ' ',
'id' => 'hostingpackage'
},
{
'percent10' => 0,
'percent5' => 0,
'rowtype' => 'odd',
'percent20' => 0,
'item' => 'Server Name',
'value' => 'mybox',
'name' => 'shorthostname',
'langkey' => 'INDXServername',
'_maxed' => 0,
'module' => 'Hostname',
'percent' => 0,
'count' => undef,
'max' => ' ',
'id' => 'shorthostname'
},
{
'percent10' => 0,
'percent5' => 0,
'rowtype' => 'even',
'percent20' => 0,
'item' => 'cPanel Version',
'value' => '11.25.0-STABLE',
'name' => 'cpanelversion',
'langkey' => 'INDXBuildVersion',
'_maxed' => 0,
'module' => 'Version',
'percent' => 0,
'count' => undef,
'max' => ' ',
'id' => 'cpanelversion'
},
{
'percent10' => 0,
'percent5' => 0,
'rowtype' => 'odd',
'percent20' => 0,
'item' => 'Architecture',
'value' => 'i686',
'name' => 'machinetype',
'langkey' => 'INDXMachineType',
'_maxed' => 0,
'module' => 'Serverinfo',
'percent' => 0,
'count' => undef,
'max' => ' ',
'id' => 'machinetype'
},
{
'percent10' => 0,
'percent5' => 0,
'rowtype' => 'even',
'percent20' => 0,
'item' => 'cPanel Build',
'value' => 30000,
'name' => 'cpanelrevision',
'langkey' => 'INDXRevision',
'_maxed' => 0,
'module' => 'Version',
'percent' => 0,
'count' => undef,
'max' => ' ',
'id' => 'cpanelrevision'
},
{
'percent10' => 0,
'percent5' => 0,
'rowtype' => 'odd',
'percent20' => 0,
'item' => 'Shared IP Address',
'value' => '10.1.1.1',
'name' => 'sharedip',
'langkey' => 'INDXSharedIp',
'_maxed' => 0,
'percent' => 0,
'count' => undef,
'max' => ' ',
'id' => 'sharedip',
'condition' => 1
},
{
'percent10' => 0,
'percent5' => 0,
'rowtype' => 'even',
'percent20' => 0,
'item' => 'Path to sendmail',
'value' => '/usr/sbin/sendmail',
'name' => 'sendmailpath',
'langkey' => 'INDXSendmailPath',
'_maxed' => 0,
'module' => 'Serverinfo',
'percent' => 0,
'count' => undef,
'max' => ' ',
'id' => 'sendmailpath'
}
];
--------------------