Storage if ( !isset($_REQUEST['id']) ) { ajaxError('Storage Id Not Provided'); return; } $null = ''; $checked = 'checked="checked"'; $sid = $_REQUEST['id']; if ( !canEdit('System') ) return; require_once('includes/Server.php'); require_once('includes/Storage.php'); if ( $_REQUEST['id'] ) { if ( !($newStorage = ZM\Storage::find_one(array('Id'=>$sid)) ) ) { // Perhaps do something different here, rather than return nothing return; } } else { $newStorage = new ZM\Storage(); $newStorage->Name(translate('NewStorage')); } $type_options = array( 'local' => translate('Local'), 's3fs' => translate('s3fs') ); $scheme_options = array( 'Deep' => translate('Deep'), 'Medium' => translate('Medium'), 'Shallow' => translate('Shallow'), ); $servers = ZM\Server::find( null, array('order'=>'lower(Name)') ); $ServersById = array(); foreach ( $servers as $S ) { $ServersById[$S->Id()] = $S; } ?>