disabled="disabled"/>
Id().'"'; ?>
Name()), $canEdit, $svr_opt ) ?> Url()), $canEdit, $svr_opt ) ?> PathToIndex()), $canEdit, $svr_opt ) ?> PathToZMS()), $canEdit, $svr_opt ) ?> Status()), $canEdit, $svr_opt) ?> Id()]), $canEdit, $svr_opt) ?> CpuLoad(), $canEdit, $svr_opt) ?> FreeMem()) . ' / ' . human_filesize($Server->TotalMem()), $canEdit, $svr_opt) ?> FreeSwap()) . ' / ' . human_filesize($Server->TotalSwap()) , $canEdit, $svr_opt) ?> zmstats() ? 'yes' : 'no', $canEdit, $svr_opt) ?> zmaudit() ? 'yes' : 'no', $canEdit, $svr_opt) ?> zmtrigger() ? 'yes' : 'no', $canEdit, $svr_opt) ?> zmeventnotification() ? 'yes' : 'no', $canEdit, $svr_opt) ?> disabled="disabled"/>
'lower(Name)') ) as $Storage ) { $str_opt = 'class="storageCol" data-sid="'.$Storage->Id().'"'; ?>
Id()), $canEdit, $str_opt ) ?> Name()), $canEdit, $str_opt ) ?> Path()), $canEdit, $str_opt ) ?> Type()), $canEdit, $str_opt ) ?> Scheme()), $canEdit, $str_opt ) ?> Server()->Name()), $canEdit, $str_opt ) ?> disk_used_space()) . ' of ' . human_filesize($Storage->disk_total_space()) ?> EventCount().' using '.human_filesize($Storage->event_disk_space()) ?> EventCount() or !$canEdit ) { ?> disabled="disabled"EventCount() ? ' title="Can\'t delete as long as there are events stored here."' : ''?>/>
APIs are disabled. To enable, please turn on OPT_USE_API in Options->System
"; } else { ?>

'.translate('AllTokensRevoked').''; } function updateSelected() { # Turn them all off, then selectively turn the checked ones back on dbQuery('UPDATE `Users` SET `APIEnabled`=0'); if ( isset($_REQUEST['tokenUids']) ) { foreach ( $_REQUEST['tokenUids'] as $markUid ) { $minTime = time(); dbQuery('UPDATE `Users` SET `TokenMinExpiry`=? WHERE `Id`=?', array($minTime, $markUid)); } } if ( isset($_REQUEST['apiUids']) ) { 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'] = array(''=> translate('TZUnset')) + timezone_list(); } # end if tab == system ?>
$value ) { $shortName = preg_replace( '/^ZM_/', '', $name ); $optionPromptText = !empty($OLANG[$shortName])?$OLANG[$shortName]['Prompt']:$value['Prompt']; ?>
checked="checked"/> 3 ) { ?> /> /> /> />