} ?> </a> | <a href="grid-tutorial.php?page=tools<? maybe_echo_server('&'); ?>"> <?php if ($page == 'tools') { echo '<b>Tools</b>'; } else { echo 'Tools'; } ?> </a> <hr> <?php // Process the post $client = new LoomClient($loom_server); $res = ''; if ($page == 'grid') { $buy_message = ''; $issuer_message = ''; $touch_message = ''; $look_message = ''; $move_message = ''; if ($_POST['buy'] != '') { $res = $client->buy($common_type, $buy_loc, $buy_usage, &$url); checkResult($res, 'usage_balance', 'error_loc', &$buy_message); } elseif ($_POST['sell'] != '') { $res = $client->sell($common_type, $buy_loc, $buy_usage, &$url); checkResult($res, 'usage_balance', 'error_loc', &$buy_message); } elseif ($_POST['issuer'] != '') { $res = $client->issuer($common_type, $issuer_orig, $issuer_dest, &$url);
$valueskv = mq($_POST['valueskv']); $take = mq($_POST['take']); $give = mq($_POST['give']); $page = mq($_POST['page']); $greendot = mq($_POST['greendot']); $contact = mq($_POST['contact']); $showfolder = mq($_POST['showfolder']); $newname = mq($_POST['newname']); $oldname = mq($_POST['oldname']); $newlocation = mq($_POST['newlocation']); $savename = mq($_POST['savename']); $delete = mq($_POST['delete']); $add_location = mq($_POST['add_location']); $commit = mq($_POST['commit']); $client = new LoomClient(); // Redefine $encrypt_key if you want to use one. // It should be a 32-character hex string, as generated // by the grid-tutotial.php "Tools" page. $encrypt_key = ''; @include "ip-config.php"; $cipher = ''; $session_cipher = ''; if ($encrypt_key != '') { makeCiphers(); if ($session_cipher != '') { if ($folderkv != '') { $folderkv = $session_cipher->decrypthex($folderkv);