$t = 'select table'; $s = 320; break; case "msqlfind": req('msql'); $ret = msql_find($id, $va, $opt, $res); break; case "msqlcall": $r = msql_read($id, $va, $opt); if (auth(6)) { $ret = msqlink($id, $va, $opt) . ' '; } $ret .= $optb !== false ? stripslashes($r[$optb]) : $r; break; case "msqlread": $ret = msq_goodtable($id . '_' . $va . '_' . $opt . '_' . $optb . '§' . $optb); if ($res) { req('pop,spe,art,tri'); $ret = format_txt_r(stripslashes($ret), '', ''); } break; case "popmsqt": $rt = msql_read($id, $va, $opt); if (is_array($rt)) { $rt = $rt[$optb ? $optb : 0]; } if (auth(6)) { $ret = msqlink($id, $va, $opt) . ' '; } $ret .= nl2br(stripslashes($rt)); $t = $va . ' ' . $opt . ' ' . $optb;
function msqgraph($d, $m) { static $n; $n++; $large = prma('content'); if (substr($m, 0, 2) == 'nl') { return; } list($da, $rep) = split_one("§", $d, 1); list($nd, $bs, $va, $op) = explode("_", $da); if ($bs) { $nd = $nd ? $nd : ses('qb'); } else { $nd = ses('qb'); $bs = $d; } $r = msq_goodtable($da); $menu = $r['_menus_']; unset($r['_menus_']); if ($r && $rep) { foreach ($r as $k => $v) { $i++; $bit[$k] = $v[$rep]; } } elseif ($r && $op) { foreach ($r as $k => $v) { $i++; $bit[$k] = $v; } } $output = 'imgc/' . ses('qd') . '_' . $_SESSION["read"] . '_graph_' . $n . '.png'; graphics($output, $large, 140, $bit, $_SESSION['clrs'][$_SESSION['prmd']][7], 'yes'); /// if ($_GET["read"]) { return image($output, '', '" style="border:0;') . "\n"; } }