<?php include "path.php"; include "{$env['prefix']}/inc/common.php"; include "func.php"; $debug = true; $debug = false; $pgtitle = "Create a VM"; $occi = new OCCI_Client(); //$occi->set_debug(true,"<br>"); $proxypath = proxy_path(); $occi->Set_Proxy_Path($proxypath); ### {{{ function fetch_site($id) { $qry = "SELECT * FROM sites WHERE id='{$id}'"; $ret = myQuery($qry); $row = myFetchRow($ret); return $row; } function _insert_vminfo($siteid, $osid, $resid, $name, $vmurl, $title) { $qry = "INSERT INTO vminfo" . " SET siteid='{$siteid}', osid='{$osid}', resid='{$resid}', vmname='{$name}', vmurl='{$vmurl}', title='{$title}', createTime=NOW()"; //dd($qry); $ret = myQuery($qry); print myError(); } function site_title($row) { $af = $row['affiliation']; $cc = $row['cc'];
<?php include "path.php"; include "{$env['prefix']}/inc/common.php"; include "func.php"; $pgtitle = 'VM Management'; $occi = new OCCI_Client(); $occi->set_debug(true, "<br>"); $proxypath = proxy_path(); $occi->Set_Proxy_Path($proxypath); ### {{{ function _toggle_part_start() { global $form; $sfet = $form['sfet']; if ($sfet == '1') { $str = 'Close'; $sty = 'display:block'; } else { $str = 'View'; $sty = 'display:none'; } print <<<EOS <div> <span class='link' style="display:block; background-color:#eeeeee; text-align:center; margin:5 5 5 5px; font-size:11pt; padding:4 4 4 4px;" onclick="_nav_toggle(this)">{$str}</span> </div> <div id="collapse1" style="{$sty}"> EOS; }