</div> </form> </div> </div><!-- /.box-body --> </div> </div> <div class="col-xs-1"></div> <div class="box-body"> <?php $all = Guests::getByPosition('3'); //echo '<script>$(document).ready(function(){setTimeout(refresh, 3000);})</script>'; $class = "hide"; $api = 'testDrive'; ?> <div id="theApi" style="display: none" data-id="<?php echo $api; ?> "></div> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>ID</th> <th>Name</th> <th>Phone</th> <th class="<?php
<?php /* * This software cannot be modified, embedded or redistributed without the author's permision. * Copyright Kazuki Nakajima <*****@*****.**> */ set_time_limit(300); //ini_set('display_errors', 'Off'); ini_set('date.timezone', 'Asia/Tokyo'); require_once './config.php'; require_once './Error.php'; require_once './Parse.php'; require_once './Vmservers.php'; require_once './Zfs.php'; require_once './Guests.php'; $error = new Error(); $parse = new Parse(); $zfs = new Zfs(ZFS_USER, ZFS_HOSTNAME); $vmservers = new Vmservers(OVM_USER, OVM_PASSWORD, OVM_POOL); $guests = new Guests(OVM_USER, OVM_PASSWORD, OVM_POOL, ZFS_USER, ZFS_HOSTNAME); $ovs_list = $vmservers->get_ovs_list(); $zpool = $zfs->get_zpool_detail(ZFS_ZPOOL); #$template_list = $zfs->get_template_list(); $vm_list = $guests->get_vm_list($ovs_list); start_html: $error->check(FALSE, 'html'); require_once 'html/index.php'; ?>
</div> </form> </div> </div><!-- /.box-body --> </div> </div> <div class="col-xs-1"></div> <div class="box-body"> <?php $all = Guests::getRegistration(); $class = "show"; ?> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>ID</th> <th>Name</th> <th>Phone</th> <th class="<?php echo $class; ?> ">Branch</th> <!--<th>Position</th> <th>Previous</th>--> <th>Status</th>
$guests->update_memory($vm_name, $vm_memory); $error->check(); break; case 'vm_update_dedicated_nfs_size': $zfs = new Zfs(ZFS_USER, ZFS_HOSTNAME); $zfs->update_dedicated_nfs_size($vm_name, $vm_dedicated_nfs_size); $error->check(); break; case 'vm_update_disk': $zfs = new Zfs(ZFS_USER, ZFS_HOSTNAME); $zfs->update_dedicated_nfs($vm_name, $vm_disk); $error->check(); break; case 'vm_snapshot': $zfs = new Zfs(ZFS_USER, ZFS_HOSTNAME); $vm_snapshot_name = date("Y_m_d_H_i_s"); $zfs->snapshot_vm($vm_name, $vm_snapshot_name); $error->check(); break; case 'vm_rollback': $guests = new Guests(OVM_USER, OVM_PASSWORD, OVM_POOL); $vm_power = $guests->get_vm_power($vm_name); $zfs = new Zfs(ZFS_USER, ZFS_HOSTNAME); $zfs->rollback_vm($vm_name, $vm_snapshot_name, $vm_power); $error->check(); break; } $error->flush(); ?>