INCREMENT BY 1 MAXVALUE 2147483647 NO MINVALUE CACHE 1; create table extra_felder ( id integer DEFAULT nextval('extraid'::text) NOT NULL, owner char(10), -> [CVP]id fkey text, -> Feldname fval text -> Wert zum Feld ); CREATE INDEX extrafld_key ON extra_felder USING btree (owner); */ require_once "inc/stdLib.php"; include "inc/template.inc"; $menu = $_SESSION['menu']; $head = mkHeader(); $owner = $_GET["owner"] ? $_GET["owner"] : $_POST["owner"]; function suchFelder($data) { $tab = substr($data['owner'], 0, 1); foreach ($data as $key => $val) { if ($key == "suche") { continue; } if ($key == "owner") { continue; } if ($val) { $where .= "(fkey = '{$key}' and fval ilike '{$val}%' and tab = '{$tab}') or "; } }
function doHeader(&$t) { $head = mkHeader(); $menu = $_SESSION['menu']; $t->set_var(array('JAVASCRIPTS' => $menu['javascripts'], 'STYLESHEETS' => $menu['stylesheets'], 'PRE_CONTENT' => $menu['pre_content'], 'START_CONTENT' => $menu['start_content'], 'END_CONTENT' => $menu['end_content'], 'JQUERY' => $head['JQUERY'], 'JQUERYUI' => $head['JQUERYUI'], 'JQTABLE' => $head['JQTABLE'], 'JQDATE' => $head['JQDATE'], 'JQWIDGET' => $head['JQWIDGET'], 'JQFILEUP' => $head['JQFILEUP'], 'THEME' => $head['THEME'], 'CRMCSS' => $head['CRMCSS'], 'CRMPATH' => $head['CRMPATH'])); }
} $url_parsed = parse_url($url); if ($url_parsed === FALSE) { exit('Error: Invalid URL'); } if (empty($url_parsed['scheme'])) { $url = 'http://' . $url; $url_parsed = parse_url($url); } if (empty($_POST['proxy'])) { $proxy = FALSE; } else { $proxy = $_POST['proxy']; } //ヘッダ作成 $header_ar = mkHeader($_POST['req_hdr'], $url_parsed); //POSTの場合 $post_str = $_POST['post_str']; if (empty($post_str)) { $method = 'GET'; $post_ar = FALSE; } elseif ($post_str === 'HEAD') { $method = 'HEAD'; $post_ar = FALSE; } else { $method = 'POST'; // $post_ar = mkPostData($post_str); $post_ar = $post_str; } //リクエスト list($req_header, $res_header, $body) = HTTPreq($method, $url, $proxy, FALSE, $post_ar, $header_ar);
function doHeader(&$t) { $head = mkHeader(); $menu = $_SESSION['menu']; $t->set_var(array('JAVASCRIPTS' => $menu['javascripts'], 'STYLESHEETS' => $menu['stylesheets'], 'PRE_CONTENT' => $menu['pre_content'], 'START_CONTENT' => $menu['start_content'], 'END_CONTENT' => $menu['end_content'], 'JQTABLE' => $head['JQTABLE'], 'JQWIDGET' => $head['JQWIDGET'], 'JQFILEUP' => $head['JQFILEUP'], 'THEME' => $head['THEME'], 'CRMCSS' => $head['CRMCSS'], 'CRMPATH' => $head['CRMPATH'], 'BOXCSS' => $head['BOXCSS'], 'JQBOX' => $head['JQBOX'], 'DATEPICKER' => $head['DATEPICKER'], 'JQCALCULATOR' => $head['JQCALCULATOR'], 'FANCYBOX' => $head['FANCYBOX'], 'QRCODE' => $head['QRCODE'], 'TOOLS' => $head['TOOLS'])); }