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'), ); global $Servers; $ServersById = array(); foreach ( $Servers as $S ) { $ServersById[$S->Id()] = $S; } ?>