disabled="disabled"/>
Id(), 'zmServer', 'server', validHtmlStr($Server->Name()), $canEdit) ?> Id(), 'zmServer', 'server', validHtmlStr($Server->Url()), $canEdit) ?> Id(), 'zmServer', 'server', validHtmlStr($Server->PathToIndex()), $canEdit) ?> Id(), 'zmServer', 'server', validHtmlStr($Server->PathToZMS()), $canEdit) ?> Id(), 'zmServer', 'server', validHtmlStr($Server->PathToApi()), $canEdit) ?> Id(), 'zmServer', 'server', validHtmlStr($Server->Status()), $canEdit) ?> Id(), 'zmServer', 'server', validHtmlStr($monitor_counts[$Server->Id()]), $canEdit) ?> Id(), 'zmServer', 'server',$Server->CpuLoad(), $canEdit) ?> Id(), 'zmServer', 'server', human_filesize($Server->FreeMem()) . ' / ' . human_filesize($Server->TotalMem()), $canEdit) ?> Id(), 'zmServer', 'server', human_filesize($Server->FreeSwap()) . ' / ' . human_filesize($Server->TotalSwap()) , $canEdit) ?> Id(), 'zmServer', 'server', $Server->zmstats() ? 'yes' : 'no', $canEdit) ?> Id(), 'zmServer', 'server', $Server->zmaudit() ? 'yes' : 'no', $canEdit) ?> Id(), 'zmServer', 'server', $Server->zmtrigger() ? 'yes' : 'no', $canEdit) ?> Id(), 'zmServer', 'server', $Server->zmeventnotification() ? 'yes' : 'no', $canEdit) ?> disabled="disabled"/>
'lower(Name)') ) as $Storage ) { ?>
Id(), 'zmStorage', 'storage', validHtmlStr($Storage->Id()), $canEdit ) ?> Id(), 'zmStorage', 'storage', validHtmlStr($Storage->Name()), $canEdit ) ?> Id(), 'zmStorage', 'storage', validHtmlStr($Storage->Path()), $canEdit ) ?> Id(), 'zmStorage', 'storage', validHtmlStr($Storage->Type()), $canEdit ) ?> Id(), 'zmStorage', 'storage', validHtmlStr($Storage->Scheme()), $canEdit ) ?> Id(), 'zmStorage', 'storage', validHtmlStr($Storage->Server()->Name()), $canEdit ) ?> disk_used_space()) . ' of ' . human_filesize($Storage->disk_total_space()) ?> disabled="disabled"/>
APIs are disabled. To enable, please turn on OPT_USE_API in Options->System
"; } else { ?>

'.translate('AllTokensRevoked').''; } function updateSelected() { dbQuery('UPDATE `Users` SET `APIEnabled`=0'); foreach ( $_REQUEST["tokenUids"] as $markUid ) { $minTime = time(); dbQuery('UPDATE `Users` SET `TokenMinExpiry`=? WHERE `Id`=?', array($minTime, $markUid)); } foreach ( $_REQUEST["apiUids"] as $markUid ) { dbQuery('UPDATE `Users` SET `APIEnabled`=1 WHERE `Id`=?', array($markUid)); } echo ''.translate('Updated').''; } if ( array_key_exists('revokeAllTokens',$_POST) ) { revokeAllTokens(); } if ( array_key_exists('updateSelected',$_POST) ) { updateSelected(); } ?>

/>
query('SELECT * FROM `Config` ORDER BY `Id` ASC'); if ( !$result ) echo mysql_error(); while( $row = dbFetchNext($result) ) { $config[$row['Name']] = $row; if ( !($configCat = &$configCats[$row['Category']]) ) { $configCats[$row['Category']] = array(); $configCat = &$configCats[$row['Category']]; } $configCat[$row['Name']] = $row; } if ( $tab == 'system' ) { $configCats[$tab]['ZM_LANG_DEFAULT']['Hint'] = join('|', getLanguages()); $configCats[$tab]['ZM_SKIN_DEFAULT']['Hint'] = join('|', array_map('basename', glob('skins/*',GLOB_ONLYDIR))); $configCats[$tab]['ZM_CSS_DEFAULT']['Hint'] = join('|', array_map ( 'basename', glob('skins/'.ZM_SKIN_DEFAULT.'/css/*',GLOB_ONLYDIR) )); $configCats[$tab]['ZM_BANDWIDTH_DEFAULT']['Hint'] = $bandwidth_options; function timezone_list() { static $timezones = null; if ($timezones === null) { $timezones = []; $offsets = []; $now = new DateTime('now', new DateTimeZone('UTC')); foreach (DateTimeZone::listIdentifiers() as $timezone) { $now->setTimezone(new DateTimeZone($timezone)); $offsets[] = $offset = $now->getOffset(); $timezones[$timezone] = '(' . format_GMT_offset($offset) . ') ' . format_timezone_name($timezone); } array_multisort($offsets, $timezones); } return $timezones; } function format_GMT_offset($offset) { $hours = intval($offset / 3600); $minutes = abs(intval($offset % 3600 / 60)); return 'GMT' . ($offset ? sprintf('%+03d:%02d', $hours, $minutes) : ''); } function format_timezone_name($name) { $name = str_replace('/', ', ', $name); $name = str_replace('_', ' ', $name); $name = str_replace('St ', 'St. ', $name); return $name; } $configCats[$tab]['ZM_TIMEZONE']['Hint'] = timezone_list(); } ?>
$value ) { $shortName = preg_replace( '/^ZM_/', '', $name ); $optionPromptText = !empty($OLANG[$shortName])?$OLANG[$shortName]['Prompt']:$value['Prompt']; ?>
checked="checked"/> 3 ) { ?> /> /> /> />  ()