DIR : /home/kozerus/public_html/ko_best.php
/home/kozerus/public_html
<?php
# ko.php 20260824_1300 html_hangmanwz div_ set_html fail
# ko.php 20260824_1200 html_hangmanwz words_procurement/hockey ?vas=vasid html_winwz(global *_content)
# ko.php 20260816_1245 pdo_cr_ ai cab us pdo_insert_ leds_ai leds_cab leds_doc leds_us
# ko.php 20260816_1200 kludge leds_install
# ko.php 20260816_0115 htmls.php pdo_leds.php
# ko.php 20260813_1930 $leds_leds
# pdo.php 20260812_0700
# pdo.php 20260809_0300
$document_root=$_SERVER['DOCUMENT_ROOT'];
$progid="ko";
$dbfile="$progid.db3";
$dbname=$dbfile;
$sqlfile="$progid.sql";
$dttm=date('Ymd_His');
$path_imgs="imgs/cab";
$path_btn="imgs/btn";
$path_leds="imgs/leds/ani_";
$path_leds="imgs/leds/hal_";
$path_leds="imgs/leds/crome_";
$leds_context="";
$leds_contexts="ai cab doc us";
$set_dhtml="";
# winwz_content beg =======================================
$btns_content = "";
$btns_content .= " <a href=ko.php>\n";
$btns_content .= " <img src=imgs/btn/giphy_box_spinners.gif title=\" home\" height=25>\n";
$btns_content .= " </a>\n";
$btns_content .= " <a href=ko.php?login>\n";
$btns_content .= " <img src=imgs/btn/giphy_box_spinners.gif title=\" login\" height=25>\n";
$btns_content .= " </a>\n";
$btns_content .= " <a href=ko.php?tools>\n";
$btns_content .= " <img src=imgs/btn/giphy_box_spinners.gif title=\" tools\" height=25>\n";
$btns_content .= " </a>\n";
$status_content="<br>status_content passed<b>\n";
$leds_content="<br>leds_content<b>\n";
$ledsover_content="<br>ledsover_content<b>\n";
$ctx_content = "";
$ctx_content .= "<a href=ko.php?ctx=ai >\n";
$ctx_content .= " <img id=leds_ai name=leds_ai src=imgs/btn/leds_ai.png title=\" leds_ai\" height=40 border=0>\n";
$ctx_content .= " </a>\n";
$ctx_content .= "   \n";
$ctx_content .= "<a href=ko.php?ctx=cab >\n";
$ctx_content .= " <img id=leds_cab name=leds_cab src=imgs/btn/leds_cab.png title=\" leds_cab\" height=50 border=0>\n";
$ctx_content .= " </a>\n";
$ctx_content .= "   \n";
$ctx_content .= "<a href=ko.php?ctx=doc >\n";
$ctx_content .= " <img id=leds_doc name=leds_doc src=imgs/btn/leds_doc.png title=\" leds_doc\" height=40 border=0>\n";
$ctx_content .= " </a>\n";
$ctx_content .= "   \n";
$ctx_content .= "<a href=ko.php?ctx=us >\n";
$ctx_content .= " <img id=leds_us name=leds_us src=imgs/btn/leds_us.png title=\" leds_us\" height=40 border=0>\n";
$ctx_content .= " </a>\n";
$links_content = "";
$links_content .= "<img src=imgs/btn/koeye.png onclick=\"cfg_show();return false;\" title=\" cfg_show\" height=20 border=0>\n";
$links_content .= "   \n";
$links_content .= "<img src=imgs/btn/koeyeb.png onclick=\"cfg_reset();return false;\" title=\" cfg_reset\" height=20 border=0>\n";
$links_content .= "   \n";
$links_content .= "<img src=imgs/btn/koeyew.png onclick=\"cfg_save(); return false;\" title=\" cfg_save\" height=20 border=0>\n";
$links_content .= "   \n";
$links_content .= "<img src=imgs/btn/tn_konet_vas.png onclick=\"window.open('ko.php?vas'); return false;\" title=\" konet_vas\" height=20 border=0>\n";
$links_content .= "   \n";
$links_content .= "<img src=imgs/btn/tn_iperms_vas.png onclick=\"window.open('ko.php?vas=iperms'); return false;\" title=\" iperms_vas\" height=20 border=0>\n";
$links_content .= "   \n";
$links_content .= "<img src=imgs/btn/tn_hangmanwz0.png onclick=\"window.open('ko.php?hangmanwz'); return false;\" title=\" hangmanwz\" height=20 border=0>\n";
$links_content .= "   \n";
$test_content="<br>test_content<b>\n";
# winwz_content end =======================================
$kbfile="$document_root/ko1/db3/kb.db3";
$tblname="leds";
$media_path="imgs";
# $dbfiles = $GLOBALS['dbfiles'];
# $roles = $GLOBALS['roles'];
# $dbs = $dbfiles[$role];
# print( "BUGS_001 dbfile=$dbfile sqlfile=$sql_bugsfile G_sql_bugsfile=".$GLOBALS['sql_bugsfile']."<br>\n" );
$cfg_header_psv="fld|val|desc";
$leds_header_psv="led_id|led_status|led_code|led_name|led_dttm|led_color|led_speed|led_type|led_date|led_cmd|led_cmdout|led_desc|led_misc|led_city|led_bldg|led_loc_code|led_floor|led_group|led_orgs|led_title|led_published|led_width|led_height|led_comment|led_filename|led_user|led_user_ip|led_referer|led_remote_port|led_viewrole|led_user_agent|led_unique_id|led_err|led_fix|led_os";
$leds_ai_header_psv="led_id|led_status|led_code|led_name|led_dttm|led_color|led_speed|led_type|led_date|led_cmd|led_cmdout|led_desc|led_misc|led_city|led_bldg|led_loc_code|led_floor|led_group|led_orgs|led_title|led_published|led_width|led_height|led_comment|led_filename|led_user|led_user_ip|led_referer|led_remote_port|led_viewrole|led_user_agent|led_unique_id|led_err|led_fix|led_os|id|model|created|context_length|pricing_prompt|pricing_completion|tool_calling|structured_outputs|reasoning|response_format|web_search|vendor|type|status|img|tn|zn";
$leds_us_header_psv="led_id|led_status|led_code|led_name|led_dttm|led_color|led_speed|led_type|led_date|led_cmd|led_cmdout|led_desc|led_misc|led_city|led_bldg|led_loc_code|led_floor|led_group|led_orgs|led_title|led_published|led_width|led_height|led_comment|led_filename|led_user|led_user_ip|led_referer|led_remote_port|led_viewrole|led_user_agent|led_unique_id|led_err|led_fix|led_os|gender|title|fname|lname|str_no|str_name|city|state|country|zip|coord_lat|coord_long|tz_offset|tz_descr|email|login_uuid|login_user|login_pass|login_salt|login_md5|login_sha1|login_sha256|dob_date|dob_age|reg_dt|reg_age|phn|cell|id_name|id_val|zn|img|tn|nat";
startup();
function html_vas($vasid) {
if( $vasid == "" ) { $vasid="konet"; }
$htmout = "";
$htmout .= "<!DOCTYPE html>\n";
$htmout .= "<html lang=\"en\">\n";
$htmout .= "<head>\n";
$htmout .= " <meta charset=\"UTF-8\">\n";
$htmout .= " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n";
$htmout .= " <title>$vasid vas</title>\n";
$htmout .= " <style>\n";
$htmout .= " * { margin: 0; padding: 0; box-sizing: border-box; }\n";
$htmout .= " body { overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; height: 100vh; position: relative; }\n";
$htmout .= " canvas { display: block; cursor: none; }\n";
$htmout .= " #coords {\n";
$htmout .= " position: fixed; bottom: 8px; right: 8px;\n";
$htmout .= " color: #aaa; font-family: monospace; font-size: 18px;\n";
$htmout .= " background: rgba(0,0,0,0.8); padding: 4px 10px;\n";
$htmout .= " border-radius: 4px; z-index: 5; pointer-events: none;\n";
$htmout .= " letter-spacing: 0.5px;\n";
$htmout .= " }\n";
$htmout .= " #loader {\n";
$htmout .= " position: fixed; top: 0; left: 0; width: 100%; height: 100%;\n";
$htmout .= " background: #000; display: flex; align-items: center;\n";
$htmout .= " justify-content: center; flex-direction: column;\n";
$htmout .= " color: #888; font-family: monospace; font-size: 14px; z-index: 10;\n";
$htmout .= " }\n";
$htmout .= " #loader .bar { width: 200px; height: 4px; background: #333; margin-top: 12px; border-radius: 2px; overflow: hidden; }\n";
$htmout .= " #loader .fill { height: 100%; background: #ccc; transition: width 0.3s; }\n";
$htmout .= " </style>\n";
$htmout .= "</head>\n";
$htmout .= "<body>\n";
$htmout .= " <div id=\"loader\">Loading<div class=\"bar\"><div class=\"fill\" id=\"loadFill\"></div></div></div>\n";
$htmout .= " <div id=\"coords\">x:000 y:000</div>\n";
$htmout .= " <canvas id=\"c\"></canvas>\n";
$htmout .= " <script>\n";
$htmout .= " (function() {\n";
$htmout .= " var canvas = document.getElementById('c');\n";
$htmout .= " var ctx = canvas.getContext('2d');\n";
$htmout .= " var coordsEl = document.getElementById('coords');\n";
$htmout .= " var W = 700, H = 480;\n";
$htmout .= " canvas.width = W;\n";
$htmout .= " canvas.height = H;\n";
$htmout .= "\n";
$htmout .= " function resize() {\n";
$htmout .= " var scale = Math.min(window.innerWidth / W, window.innerHeight / H);\n";
$htmout .= " canvas.style.width = Math.floor(W * scale) + 'px';\n";
$htmout .= " canvas.style.height = Math.floor(H * scale) + 'px';\n";
$htmout .= " }\n";
$htmout .= " window.addEventListener('resize', resize);\n";
$htmout .= " resize();\n";
$htmout .= "\n";
$htmout .= " /* ---- image loading ---- */\n";
$htmout .= " var imgSrcs = [\n";
$htmout .= " 'imgs/vas/$vasid'+'1.jpg', // narrow 0\n";
$htmout .= " 'imgs/vas/$vasid'+'2.jpg', // narrow 1\n";
$htmout .= " 'imgs/vas/$vasid'+'3.jpg', // narrow 2\n";
$htmout .= " 'imgs/vas/$vasid'+'4.jpg', // narrow 3\n";
$htmout .= " 'imgs/vas/$vasid'+'5.jpg', // narrow 4\n";
$htmout .= " 'imgs/vas/$vasid'+'6.jpg', // narrow 5\n";
$htmout .= " 'imgs/vas/$vasid'+'7_wide.jpg', // wide 6\n";
$htmout .= " 'imgs/vas/$vasid'+'8_wide.jpg', // wide 7\n";
$htmout .= " 'imgs/vas/$vasid'+'9_wide.jpg' // wide 8\n";
$htmout .= " ];\n";
$htmout .= " var imgs = [];\n";
$htmout .= " var loaded = 0;\n";
$htmout .= " var total = imgSrcs.length;\n";
$htmout .= " var ready = false;\n";
$htmout .= "\n";
$htmout .= " function onImgLoad() {\n";
$htmout .= " loaded++;\n";
$htmout .= " var pct = Math.round((loaded / total) * 100);\n";
$htmout .= " document.getElementById('loadFill').style.width = pct + '%';\n";
$htmout .= " if (loaded >= total) {\n";
$htmout .= " document.getElementById('loader').style.display = 'none';\n";
$htmout .= " ready = true;\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " imgSrcs.forEach(function(src) {\n";
$htmout .= " var img = new Image();\n";
$htmout .= " img.onload = onImgLoad;\n";
$htmout .= " img.src = src;\n";
$htmout .= " imgs.push(img);\n";
$htmout .= " });\n";
$htmout .= "\n";
$htmout .= " /* ---- mouse ---- */\n";
$htmout .= " var mx = W / 2;\n";
$htmout .= " var my = H / 2;\n";
$htmout .= " var targetMx = mx;\n";
$htmout .= " var targetMy = my;\n";
$htmout .= " var mouseOnStage = true;\n";
$htmout .= "\n";
$htmout .= " var globalMx = W / 2;\n";
$htmout .= " var globalMy = H / 2;\n";
$htmout .= "\n";
$htmout .= " canvas.addEventListener('mousemove', function(e) {\n";
$htmout .= " var rect = canvas.getBoundingClientRect();\n";
$htmout .= " var cx = (e.clientX - rect.left) / rect.width * W;\n";
$htmout .= " var cy = (e.clientY - rect.top) / rect.height * H;\n";
$htmout .= " globalMx = cx;\n";
$htmout .= " globalMy = cy;\n";
$htmout .= " if (cx >= 0 && cx <= W && cy >= 0 && cy <= H) {\n";
$htmout .= " mouseOnStage = true;\n";
$htmout .= " targetMx = cx;\n";
$htmout .= " targetMy = cy;\n";
$htmout .= " } else {\n";
$htmout .= " mouseOnStage = false;\n";
$htmout .= " }\n";
$htmout .= " });\n";
$htmout .= " canvas.addEventListener('mouseleave', function() {\n";
$htmout .= " mouseOnStage = false;\n";
$htmout .= " });\n";
$htmout .= " canvas.addEventListener('touchmove', function(e) {\n";
$htmout .= " e.preventDefault();\n";
$htmout .= " var rect = canvas.getBoundingClientRect();\n";
$htmout .= " var cx = (e.touches[0].clientX - rect.left) / rect.width * W;\n";
$htmout .= " var cy = (e.touches[0].clientY - rect.top) / rect.height * H;\n";
$htmout .= " globalMx = cx;\n";
$htmout .= " globalMy = cy;\n";
$htmout .= " if (cx >= 0 && cx <= W && cy >= 0 && cy <= H) {\n";
$htmout .= " mouseOnStage = true;\n";
$htmout .= " targetMx = cx;\n";
$htmout .= " targetMy = cy;\n";
$htmout .= " } else {\n";
$htmout .= " mouseOnStage = false;\n";
$htmout .= " }\n";
$htmout .= " }, { passive: false });\n";
$htmout .= "\n";
$htmout .= " /* ---- helpers ---- */\n";
$htmout .= " function lerp(a, b, t) { return a + (b - a) * t; }\n";
$htmout .= " function clamp(v, lo, hi) { return Math.max(lo, Math.min(hi, v)); }\n";
$htmout .= "\n";
$htmout .= " /* ============================================================\n";
$htmout .= " * Letterbox dimensions\n";
$htmout .= " * ============================================================ */\n";
$htmout .= " var LB_W = 704, LB_H = 300;\n";
$htmout .= " var LB_X = (W - LB_W) / 2;\n";
$htmout .= " var LB_Y = (H - LB_H) / 2;\n";
$htmout .= "\n";
$htmout .= " /* ============================================================\n";
$htmout .= " * Determine active narrow image index (0-5) from mouse X\n";
$htmout .= " * and active wide image index (0-2) from mouse Y\n";
$htmout .= " * ============================================================ */\n";
$htmout .= " function getActiveNarrowIndex() {\n";
$htmout .= " if (!mouseOnStage) return -1;\n";
$htmout .= " return clamp(Math.floor(mx / (W / 6)), 0, 5);\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function getActiveWideIndex() {\n";
$htmout .= " if (!mouseOnStage) return -1;\n";
$htmout .= " return clamp(Math.floor(my / (H / 3)), 0, 2);\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* ============================================================\n";
$htmout .= " * animation_x mask for a single narrow image band\n";
$htmout .= " * ============================================================ */\n";
$htmout .= " function getAnimXMask(frame, bandIndex) {\n";
$htmout .= " var f = clamp(frame, 0, W);\n";
$htmout .= " var bandTop = bandIndex * (H / 6);\n";
$htmout .= " var maskX = LB_X + (W - f);\n";
$htmout .= " var maskW = clamp(20 + 150 * Math.sin(Math.PI * f / W), 8, 200);\n";
$htmout .= " return { x: maskX, y: LB_Y + bandTop, w: maskW, h: H / 6 };\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* ============================================================\n";
$htmout .= " * animation_y mask for a single wide image band\n";
$htmout .= " * ============================================================ */\n";
$htmout .= " function getAnimYMask(frame, bandIndex) {\n";
$htmout .= " var f = clamp(frame + 50, 0, H);\n";
$htmout .= " var bandLeft = bandIndex * (W / 3);\n";
$htmout .= " var maskY = H - f;\n";
$htmout .= " var maskH = clamp(20 + 150 * Math.sin(Math.PI * f / H), 8, 200);\n";
$htmout .= " return { x: LB_X + bandLeft, y: LB_Y + maskY, w: W / 3, h: maskH };\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* ============================================================\n";
$htmout .= " * animation_x image state (single image)\n";
$htmout .= " * ============================================================ */\n";
$htmout .= " function getAnimXImageState(frame) {\n";
$htmout .= " var f = clamp(frame, 0, 700);\n";
$htmout .= " var x, alpha;\n";
$htmout .= " if (f <= 350) {\n";
$htmout .= " var t = f / 350;\n";
$htmout .= " x = W + (W / 2 - W) * t;\n";
$htmout .= " alpha = 0.05 + (1.0 - 0.05) * t;\n";
$htmout .= " } else {\n";
$htmout .= " var t = (f - 350) / 350;\n";
$htmout .= " x = W / 2 + (-W - W / 2) * t;\n";
$htmout .= " alpha = 1.0 + (0.05 - 1.0) * t;\n";
$htmout .= " }\n";
$htmout .= " return { x: x, alpha: clamp(alpha, 0, 1) };\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* ============================================================\n";
$htmout .= " * animation_y image state (single image)\n";
$htmout .= " * ============================================================ */\n";
$htmout .= " function getAnimYImageState(frame) {\n";
$htmout .= " var f = clamp(frame, 0, 300);\n";
$htmout .= " var y, alpha;\n";
$htmout .= " if (f <= 150) {\n";
$htmout .= " var t = f / 150;\n";
$htmout .= " y = H + (H / 2 - H) * t;\n";
$htmout .= " alpha = 0.05 + (1.0 - 0.05) * t;\n";
$htmout .= " } else {\n";
$htmout .= " var t = (f - 150) / 150;\n";
$htmout .= " y = H / 2 + (-H - H / 2) * t;\n";
$htmout .= " alpha = 1.0 + (0.05 - 1.0) * t;\n";
$htmout .= " }\n";
$htmout .= " return { y: y, alpha: clamp(alpha, 0, 1) };\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* ============================================================\n";
$htmout .= " * Drawing functions\n";
$htmout .= " * ============================================================ */\n";
$htmout .= "\n";
$htmout .= " function drawBackground() {\n";
$htmout .= " ctx.fillStyle = '#000000';\n";
$htmout .= " ctx.fillRect(0, 0, W, H);\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* ---- animation_x: single narrow image with own mask ---- */\n";
$htmout .= " function drawAnimX(frame) {\n";
$htmout .= " if (!mouseOnStage) return;\n";
$htmout .= " var idx = getActiveNarrowIndex();\n";
$htmout .= " if (idx < 0) return;\n";
$htmout .= "\n";
$htmout .= " var f = clamp(Math.ceil(frame), 0, W);\n";
$htmout .= " var state = getAnimXImageState(f);\n";
$htmout .= " if (state.alpha < 0.01) return;\n";
$htmout .= "\n";
$htmout .= " var img = imgs[idx];\n";
$htmout .= " if (!img || !img.complete || img.naturalWidth === 0) return;\n";
$htmout .= "\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.globalAlpha = state.alpha;\n";
$htmout .= " // Draw with correct width (236px) and height (355px), aligned to letterbox top\n";
$htmout .= " ctx.drawImage(img, state.x, LB_Y, 236, 355);\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function drawAnimXOutline(frame) {\n";
$htmout .= " if (!mouseOnStage) return;\n";
$htmout .= " var idx = getActiveNarrowIndex();\n";
$htmout .= " if (idx < 0) return;\n";
$htmout .= "\n";
$htmout .= " var f = clamp(Math.ceil(frame), 0, W);\n";
$htmout .= " var mask = getAnimXMask(f, idx);\n";
$htmout .= " var state = getAnimXImageState(f);\n";
$htmout .= " if (state.alpha < 0.01) return;\n";
$htmout .= "\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.strokeStyle = 'rgba(200, 200, 200, 0.4)';\n";
$htmout .= " ctx.lineWidth = 1;\n";
$htmout .= " ctx.setLineDash([]);\n";
$htmout .= " ctx.strokeRect(mask.x, mask.y, mask.w, mask.h);\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* ---- animation_y: single wide image with own mask ---- */\n";
$htmout .= " function drawAnimY(frame) {\n";
$htmout .= " if (!mouseOnStage) return;\n";
$htmout .= " var idx = getActiveWideIndex();\n";
$htmout .= " if (idx < 0) return;\n";
$htmout .= "\n";
$htmout .= " var f = clamp(Math.ceil(frame), 0, 300);\n";
$htmout .= " var state = getAnimYImageState(f);\n";
$htmout .= "\n";
$htmout .= " // For konet9_wide.jpg (idx = 2), use a gentler alpha curve to ensure visibility\n";
$htmout .= " var alpha = state.alpha;\n";
$htmout .= " if (idx === 2) { // konet9_wide.jpg\n";
$htmout .= " // Use a gentler alpha curve that ensures konet9_wide.jpg is always visible\n";
$htmout .= " alpha = 0.3 + 0.4 * Math.sin(Math.PI * f / 300);\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " if (alpha < 0.01) return;\n";
$htmout .= "\n";
$htmout .= " var img = imgs[idx + 6];\n";
$htmout .= " if (!img || !img.complete || img.naturalWidth === 0) return;\n";
$htmout .= "\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.globalAlpha = alpha;\n";
$htmout .= " // Draw wide images with correct width (700px), height (217px), aligned to far left of letterbox\n";
$htmout .= " ctx.drawImage(img, LB_X, state.y, 700, 217);\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function drawAnimYOutline(frame) {\n";
$htmout .= " if (!mouseOnStage) return;\n";
$htmout .= " var idx = getActiveWideIndex();\n";
$htmout .= " if (idx < 0) return;\n";
$htmout .= "\n";
$htmout .= " var f = clamp(Math.ceil(frame), 0, 300);\n";
$htmout .= " var mask = getAnimYMask(f, idx);\n";
$htmout .= "\n";
$htmout .= " // For konet9_wide.jpg, use a gentler alpha curve for outline too\n";
$htmout .= " var outlineAlpha = 0.4;\n";
$htmout .= " if (idx === 2) {\n";
$htmout .= " outlineAlpha = 0.6;\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.strokeStyle = 'rgba(200, 200, 200,' + outlineAlpha + ')';\n";
$htmout .= " ctx.lineWidth = 1;\n";
$htmout .= " ctx.setLineDash([]);\n";
$htmout .= " ctx.strokeRect(mask.x, mask.y, mask.w, mask.h);\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function drawLetterbox() {\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.strokeStyle = 'rgba(255, 255, 255, 0.2)';\n";
$htmout .= " ctx.lineWidth = 2;\n";
$htmout .= " ctx.strokeRect(LB_X, LB_Y, LB_W, LB_H);\n";
$htmout .= " ctx.restore();\n";
$htmout .= "\n";
$htmout .= " // konet7_wide.jpg through konet9_wide.jpg should be aligned to far left of letterbox\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.strokeStyle = 'rgba(255, 0, 0, 0.3)';\n";
$htmout .= " ctx.lineWidth = 1;\n";
$htmout .= " ctx.setLineDash([5, 5]);\n";
$htmout .= " ctx.strokeRect(LB_X, LB_Y, LB_W, LB_H);\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function drawCrosshair() {\n";
$htmout .= " if (!mouseOnStage) return;\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.strokeStyle = 'rgba(255, 255, 255, 0.35)';\n";
$htmout .= " ctx.lineWidth = 1;\n";
$htmout .= " ctx.setLineDash([6, 4]);\n";
$htmout .= "\n";
$htmout .= " ctx.beginPath();\n";
$htmout .= " ctx.moveTo(mx, 0);\n";
$htmout .= " ctx.lineTo(mx, H);\n";
$htmout .= " ctx.stroke();\n";
$htmout .= "\n";
$htmout .= " ctx.beginPath();\n";
$htmout .= " ctx.moveTo(0, my);\n";
$htmout .= " ctx.lineTo(W, my);\n";
$htmout .= " ctx.stroke();\n";
$htmout .= "\n";
$htmout .= " ctx.setLineDash([]);\n";
$htmout .= " ctx.fillStyle = 'rgba(255, 255, 255, 0.6)';\n";
$htmout .= " ctx.beginPath();\n";
$htmout .= " ctx.arc(mx, my, 4, 0, Math.PI * 2);\n";
$htmout .= " ctx.fill();\n";
$htmout .= "\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function drawCrosshairButtons() {\n";
$htmout .= " if (!mouseOnStage) return;\n";
$htmout .= " var btnR = 8;\n";
$htmout .= " ctx.save();\n";
$htmout .= "\n";
$htmout .= " ctx.fillStyle = 'rgba(255, 100, 100, 0.7)';\n";
$htmout .= " ctx.beginPath();\n";
$htmout .= " ctx.arc(mx, 15, btnR, 0, Math.PI * 2);\n";
$htmout .= " ctx.fill();\n";
$htmout .= " ctx.strokeStyle = 'rgba(255, 255, 255, 0.5)';\n";
$htmout .= " ctx.lineWidth = 1;\n";
$htmout .= " ctx.stroke();\n";
$htmout .= "\n";
$htmout .= " ctx.fillStyle = 'rgba(100, 255, 100, 0.7)';\n";
$htmout .= " ctx.beginPath();\n";
$htmout .= " ctx.arc(15, my, btnR, 0, Math.PI * 2);\n";
$htmout .= " ctx.fill();\n";
$htmout .= " ctx.strokeStyle = 'rgba(255, 255, 255, 0.5)';\n";
$htmout .= " ctx.lineWidth = 1;\n";
$htmout .= " ctx.stroke();\n";
$htmout .= "\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function drawText() {\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.fillStyle = 'rgba(255, 255, 255, 0.8)';\n";
$htmout .= " ctx.font = 'bold 14px Arial, sans-serif';\n";
$htmout .= " ctx.textAlign = 'center';\n";
$htmout .= " ctx.fillText('".$vasid."_vas', W / 2, 20);\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function drawBackButton() {\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.fillStyle = 'rgba(255, 255, 255, 0.5)';\n";
$htmout .= " ctx.font = '12px Arial, sans-serif';\n";
$htmout .= " ctx.textAlign = 'left';\n";
$htmout .= " ctx.fillText('BACK', 15, 465);\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function drawSkipButton() {\n";
$htmout .= " var btnX = W / 2 - 30;\n";
$htmout .= " var btnY = LB_Y + LB_H + 5;\n";
$htmout .= " var btnW = 60;\n";
$htmout .= " var btnH = 20;\n";
$htmout .= "\n";
$htmout .= " ctx.save();\n";
$htmout .= " ctx.fillStyle = 'rgba(255, 255, 255, 0.3)';\n";
$htmout .= " ctx.fillRect(btnX, btnY, btnW, btnH);\n";
$htmout .= " ctx.strokeStyle = 'rgba(255, 255, 255, 0.5)';\n";
$htmout .= " ctx.lineWidth = 1;\n";
$htmout .= " ctx.strokeRect(btnX, btnY, btnW, btnH);\n";
$htmout .= " ctx.fillStyle = 'rgba(255, 255, 255, 0.8)';\n";
$htmout .= " ctx.font = '10px Arial, sans-serif';\n";
$htmout .= " ctx.textAlign = 'center';\n";
$htmout .= " ctx.fillText('SKIP', btnX + btnW / 2, btnY + 14);\n";
$htmout .= " ctx.restore();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* ---- button hit detection ---- */\n";
$htmout .= " function getCanvasPos(e) {\n";
$htmout .= " var rect = canvas.getBoundingClientRect();\n";
$htmout .= " return {\n";
$htmout .= " x: (e.clientX - rect.left) / rect.width * W,\n";
$htmout .= " y: (e.clientY - rect.top) / rect.height * H\n";
$htmout .= " };\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function isInCircle(px, py, cx, cy, r) {\n";
$htmout .= " var dx = px - cx, dy = py - cy;\n";
$htmout .= " return dx * dx + dy * dy <= r * r;\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " function isInRect(px, py, rx, ry, rw, rh) {\n";
$htmout .= " return px >= rx && px <= rx + rw && py >= ry && py <= ry + rh;\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " canvas.addEventListener('click', function(e) {\n";
$htmout .= " var pos = getCanvasPos(e);\n";
$htmout .= " var px = pos.x, py = pos.y;\n";
$htmout .= "\n";
$htmout .= " if (px < 0 || px > W || py < 0 || py > H) return;\n";
$htmout .= "\n";
$htmout .= " if (isInCircle(px, py, mx, 15, 10)) {\n";
$htmout .= " window.location.href = 'ko_contacts.html';\n";
$htmout .= " return;\n";
$htmout .= " }\n";
$htmout .= " if (isInCircle(px, py, 15, my, 10)) {\n";
$htmout .= " window.location.href = 'ko.php';\n";
$htmout .= " return;\n";
$htmout .= " }\n";
$htmout .= " var skipX = W / 2 - 30, skipY = LB_Y + LB_H + 5, skipW = 60, skipH = 20;\n";
$htmout .= " if (isInRect(px, py, skipX, skipY, skipW, skipH)) {\n";
$htmout .= " playSkipAudio();\n";
$htmout .= " window.location.href = 'ko.php';\n";
$htmout .= " return;\n";
$htmout .= " }\n";
$htmout .= " if (px >= 10 && px <= 50 && py >= 455 && py <= 475) {\n";
$htmout .= " window.history.back();\n";
$htmout .= " return;\n";
$htmout .= " }\n";
$htmout .= " });\n";
$htmout .= "\n";
$htmout .= " /* ---- audio for skip button ---- */\n";
$htmout .= " var skipAudio = null;\n";
$htmout .= " function playSkipAudio() {\n";
$htmout .= " try {\n";
$htmout .= " if (!skipAudio) { skipAudio = new Audio('sounds/skip.mp3'); }\n";
$htmout .= " skipAudio.currentTime = 0;\n";
$htmout .= " skipAudio.play();\n";
$htmout .= " } catch (e) { /* audio may be blocked */ }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* ---- main draw loop ---- */\n";
$htmout .= " function draw() {\n";
$htmout .= " if (mouseOnStage) {\n";
$htmout .= " mx = lerp(mx, targetMx, 0.12);\n";
$htmout .= " my = lerp(my, targetMy, 0.12);\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " /* update coordinate display with larger readable font */\n";
$htmout .= " var displayX = Math.round(globalMx);\n";
$htmout .= " var displayY = Math.round(globalMy);\n";
$htmout .= " coordsEl.textContent = 'x:' + displayX + ' y:' + displayY;\n";
$htmout .= "\n";
$htmout .= " ctx.fillStyle = '#000000';\n";
$htmout .= " ctx.fillRect(0, 0, W, H);\n";
$htmout .= "\n";
$htmout .= " if (ready && mouseOnStage) {\n";
$htmout .= " var frameX = Math.ceil(clamp(mx, 0, W));\n";
$htmout .= " var frameY = Math.ceil(clamp(my, 0, H));\n";
$htmout .= "\n";
$htmout .= " drawBackground();\n";
$htmout .= " drawAnimX(frameX);\n";
$htmout .= " drawAnimXOutline(frameX);\n";
$htmout .= " drawAnimY(frameY);\n";
$htmout .= " drawAnimYOutline(frameY);\n";
$htmout .= " drawLetterbox();\n";
$htmout .= " drawCrosshair();\n";
$htmout .= " drawCrosshairButtons();\n";
$htmout .= " drawText();\n";
$htmout .= " drawBackButton();\n";
$htmout .= " drawSkipButton();\n";
$htmout .= " } else if (ready) {\n";
$htmout .= " drawBackground();\n";
$htmout .= " drawLetterbox();\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " requestAnimationFrame(draw);\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " if (total === 0) {\n";
$htmout .= " document.getElementById('loader').style.display = 'none';\n";
$htmout .= " ready = true;\n";
$htmout .= " }\n";
$htmout .= " draw();\n";
$htmout .= " })();\n";
$htmout .= " </script>\n";
$htmout .= "</body>\n";
$htmout .= "</html>\n";
return($htmout);
}
function html_winwz($btns_content, $status_content, $leds_content, $ledsover_content, $ctx_content, $links_content, $test_content) {
# bugs("","BUGS_100 html_winwz btns=$btns_content leds=$leds_content<br>\n");
# bugs("","BUGS_100 html_winwz btns=$btns<br>\n");
$htmout = "";
$htmout .= "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
$htmout .= "<html>\n";
$htmout .= "<head>\n";
$htmout .= " <meta http-equiv=\"expires\" content=\"0\">\n";
$htmout .= " <meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\">\n";
$htmout .= " <META HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\">\n";
$htmout .= " <title>winwz.html 20260822_1900</title>\n";
$htmout .= " <link rel=\"stylesheet\" type=\"text/css\" href=\"js/wz/wz.css\">\n";
$htmout .= "\n";
$htmout .= " <style id=style_body>\n";
$htmout .= " body { font-family: 'Montserrat', sans-serif; }\n";
$htmout .= " </style id=style_body>\n";
$htmout .= "\n";
$htmout .= " <script id=\"script_cfg_wz\">\n";
$htmout .= " var cfgwz = {\n";
$htmout .= " hdr: { x:'x', y:'y', w:'w', h:'h', z:'z', idx:'idx' },\n";
$htmout .= " div_btns: { x:'10', y:'10', w:'285', h:'30', z:'58', idx:'13' },\n";
$htmout .= " div_clock: { x:'300', y:'10', w:'215', h:'30', z:'57', idx:'17' },\n";
$htmout .= " div_status: { x:'520', y:'10', w:'500', h:'30', z:'65', idx:'12' },\n";
$htmout .= "\n";
$htmout .= " layer_leds: { x:'10', y:'45', w:'500', h:'20', z:'60', idx:'11' },\n";
$htmout .= " div_leds: { x:'10', y:'65', w:'500', h:'550', z:'88', idx:'11' },\n";
$htmout .= "\n";
$htmout .= " layer_ledsover: { x:'520', y:'45', w:'500', h:'20', z:'84', idx:'8' },\n";
$htmout .= " div_ledsover: { x:'520', y:'65', w:'500', h:'550', z:'87', idx:'8' },\n";
$htmout .= "\n";
$htmout .= " layer_ctx: { x:'10', y:'615', w:'500', h:'20', z:'107', idx:'5' },\n";
$htmout .= " div_ctx: { x:'10', y:'640', w:'500', h:'80', z:'107', idx:'5' },\n";
$htmout .= "\n";
$htmout .= " layer_links: { x:'10', y:'720', w:'500', h:'20', z:'53', idx:'2' },\n";
$htmout .= " div_links: { x:'10', y:'740', w:'500', h:'50', z:'53', idx:'2' },\n";
$htmout .= "\n";
$htmout .= " layer_test: { x:'10', y:'800', w:'500', h:'20', z:'0', idx:'16' },\n";
$htmout .= " div_test: { x:'10', y:'820', w:'500', h:'300', z:'0', idx:'16' }\n";
$htmout .= " };\n";
$htmout .= "\n";
$htmout .= " const ids = [\n";
$htmout .= " \"div_clock\",\n";
$htmout .= " \"div_btns\",\n";
$htmout .= " \"div_status\",\n";
$htmout .= " \"layer_leds\", \"div_leds\",\n";
$htmout .= " \"layer_ledsover\", \"div_ledsover\",\n";
$htmout .= " \"layer_ctx\", \"div_ctx\",\n";
$htmout .= " \"layer_links\", \"div_links\",\n";
$htmout .= " \"layer_test\", \"div_test\"\n";
$htmout .= " ];\n";
$htmout .= "\n";
$htmout .= " </script id=script_cfg_wz_end>\n";
$htmout .= "\n";
$htmout .= " <script id=script_clock>\n";
$htmout .= " function clock() {\n";
$htmout .= " if (!document.getElementById) return;\n";
$htmout .= " theclock=document.getElementById(\"div_clock\");\n";
$htmout .= "\n";
$htmout .= " const timestamp = new Intl.DateTimeFormat('en-CA', {\n";
$htmout .= " timeZone: 'America/Chicago',\n";
$htmout .= " year: 'numeric',\n";
$htmout .= " month: '2-digit',\n";
$htmout .= " day: '2-digit',\n";
$htmout .= " hour: '2-digit',\n";
$htmout .= " minute: '2-digit',\n";
$htmout .= " second: '2-digit',\n";
$htmout .= " hourCycle: 'h23'\n";
$htmout .= " })\n";
$htmout .= " .formatToParts(new Date())\n";
$htmout .= " .reduce((result, part) => {\n";
$htmout .= " result[part.type] = part.value;\n";
$htmout .= " return result;\n";
$htmout .= " }, {});\n";
$htmout .= "\n";
$htmout .= " const dttm =\n";
$htmout .= " timestamp.year+timestamp.month+timestamp.day+\"_\" +\n";
$htmout .= " timestamp.hour+timestamp.minute+timestamp.second;\n";
$htmout .= "\n";
$htmout .= "// theclock.innerHTML = hours + \":\" + mins + \":\" + secs;\n";
$htmout .= " theclock.innerHTML = dttm;\n";
$htmout .= " window.setTimeout(\"clock();\",250);\n";
$htmout .= " }\n";
$htmout .= " </script id=script_clock_end>\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= " <script id=script_cfg_show>\n";
$htmout .= " function cfg_show(args) {\n";
$htmout .= "\n";
$htmout .= " htmout=\"\";\n";
$htmout .= " const items = [\n";
$htmout .= " \"div_btns\",\n";
$htmout .= " \"div_clock\",\n";
$htmout .= " \"div_status\",\n";
$htmout .= " \"layer_leds\", \"div_leds\",\n";
$htmout .= " \"layer_ledsover\", \"div_ledsover\",\n";
$htmout .= " \"layer_ctx\", \"div_ctx\",\n";
$htmout .= " \"layer_links\", \"div_links\",\n";
$htmout .= " \"layer_test\", \"div_test\"\n";
$htmout .= " ];\n";
$htmout .= "\n";
$htmout .= " htmout += \"<table>\";\n";
$htmout .= " htmout += \"<tr>\";\n";
$htmout .= " htmout += \" <td width=10> </td>\";\n";
$htmout .= " htmout += \" <td width=100 >item</td>\";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>x</td>\";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>y</td>\";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>w</td>\";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>h</td>\";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>z</td>\";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>index</td>\";\n";
$htmout .= " htmout += \" <td width=10> </td>\";\n";
$htmout .= " htmout += \" </tr>\";\n";
$htmout .= "\n";
$htmout .= " for( item of items ) {\n";
$htmout .= " htmout += \"<tr>\";\n";
$htmout .= " htmout += \" <td width=10> </td>\";\n";
$htmout .= " htmout += \" <td><b>\"+item+\"</b></td>\";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>\"+dd.elements[item].x+\"</td> \";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>\"+dd.elements[item].y+\"</td> \";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>\"+dd.elements[item].w+\"</td> \";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>\"+dd.elements[item].h+\"</td> \";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>\"+dd.elements[item].z+\"</td> \";\n";
$htmout .= " htmout += \" <td width=85 style='text-align: right'>\"+dd.elements[item].index+\"</td>\";\n";
$htmout .= " htmout += \" <td width=10> </td>\";\n";
$htmout .= " htmout += \" </tr>\";\n";
$htmout .= " }\n";
$htmout .= " htmout += \" </table>\";\n";
$htmout .= "\n";
$htmout .= " var iW = dd.getWndW();\n";
$htmout .= " var iH = dd.getWndH();\n";
$htmout .= "// htmout += \"        iW=\"+iW+\" iH=\"+iH;\n";
$htmout .= " var mx=0; var my=0;\n";
$htmout .= "// var mx = dd.obj.body.div.clientX;\n";
$htmout .= "// var my = dd.obj.body.div.clientY;\n";
$htmout .= " htmout += \"        iW=<b>\"+iW+\"</b> iH=<b>\"+iH+\"</b> mx=\"+mx+\" my=\"+my;\n";
$htmout .= " htmout += \"<br>\";\n";
$htmout .= " if( document.getElementById(\"div_ledsover\") ) {\n";
$htmout .= " document.getElementById('div_ledsover').innerHTML=htmout;\n";
$htmout .= " }\n";
$htmout .= " else {\n";
$htmout .= " alert( \"BUGS_102 NOTFOUND div_ledsover htmout=\"+htmout );\n";
$htmout .= " }\n";
$htmout .= " return(htmout);\n";
$htmout .= " }\n";
$htmout .= " </script id=script_cfg_show_end>\n";
$htmout .= "\n";
$htmout .= " <script id=script_cfg_reset>\n";
$htmout .= " function cfg_reset() {\n";
$htmout .= " const ids = [\n";
$htmout .= " \"div_clock\", \"div_btns\", \"div_status\",\n";
$htmout .= " \"layer_leds\", \"div_leds\",\n";
$htmout .= " \"layer_ledsover\", \"div_ledsover\",\n";
$htmout .= " \"layer_ctx\", \"div_ctx\",\n";
$htmout .= " \"layer_links\", \"div_links\",\n";
$htmout .= " \"layer_test\", \"div_test\"\n";
$htmout .= " ];\n";
$htmout .= "\n";
$htmout .= " htmout = \"\";\n";
$htmout .= " htmout += \"<table id=table_cfg_reset>\";\n";
$htmout .= " htmout += \"<tr><td width=80px>id</td><td width=400px>moveTo/resizeTo</td></tr>\";\n";
$htmout .= " for( id of ids ) {\n";
$htmout .= " dd.elements[id].moveTo(cfgwz[id].x,cfgwz[id].y);\n";
$htmout .= " dd.elements[id].resizeTo(cfgwz[id].w,cfgwz[id].h);\n";
$htmout .= " htmout += \"<tr>\";\n";
$htmout .= " htmout += \"<td width=80px><b>\"+id+\"</b></td>\";\n";
$htmout .= " htmout += \"<td width=400px>\";\n";
$htmout .= " htmout += \"moveTo(<b> \"+cfgwz[id].x+\" , \"+cfgwz[id].y+\" </b>); \";\n";
$htmout .= " htmout += \"resizeTo(<b> \"+cfgwz[id].w+\" , \"+cfgwz[id].h+\" </b>);\"\n";
$htmout .= " htmout += \"</td>\";\n";
$htmout .= " htmout += \"</tr>\";\n";
$htmout .= " }\n";
$htmout .= " htmout += \" </table id=table_cfg_reset_end>\"; \n";
$htmout .= "\n";
$htmout .= " if( document.getElementById('div_ledsover')) {\n";
$htmout .= " document.getElementById('div_ledsover').innerHTML=htmout;\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= " </script id=script_cfg_reset_end>\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= " <script id=script_cfg_set>\n";
$htmout .= " function cfg_set() {\n";
$htmout .= " ;\n";
$htmout .= " }\n";
$htmout .= " </script id=script_cfg_default_end>\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= " <script id=script_startup>\n";
$htmout .= " function startup(args) {\n";
$htmout .= "// alert( \"BUGS_100 startup args=\"+args );\n";
$htmout .= " clock();\n";
$htmout .= " return(args);\n";
$htmout .= " }\n";
$htmout .= " </script id=script_startup_end>\n";
$htmout .= " </head>\n";
$htmout .= "\n";
$htmout .= "<body bgcolor=linen onload=\"startup('onload'); return false;\" >\n";
$htmout .= "\n";
$htmout .= "<script type=\"text/javascript\" src=\"js/wz/wz_dragdrop.js\"></script>\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_btns\" name=div_btns style=\"\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:10px;top:10px;\n";
$htmout .= " width:285px;height:30px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:linen;\n";
$htmout .= " \">\n";
$htmout .= $btns_content;
$htmout .= " </div id=div_status_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_clock\" name=div_status style=\"\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:300px;top:10px;\n";
$htmout .= " width:215px;height:30px;\n";
$htmout .= " border:2px outset #eeeeee;\n";
$htmout .= " font-size: 24px;\n";
$htmout .= " background:linen;\n";
$htmout .= " \">\n";
$htmout .= " 00:00:00\n";
$htmout .= " </div id=div_status_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_status\" name=div_status style=\"\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:520px;top:10px;\n";
$htmout .= " width:500px;height:30px;\n";
$htmout .= " border:2px outset #eeeeee;\n";
$htmout .= " background:linen;\n";
$htmout .= " \">\n";
# $status_content = "";
# $status_content .= " status: .........................................\n";
$htmout .= $status_content;
$htmout .= " </div id=div_status_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"layer_leds\" style=\"\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:10px;top:40px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " \">\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_leds_title\" name=div_leds_title style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " left:0px;top:0px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px;\n";
$htmout .= " background:wheat;\n";
$htmout .= " \">\n";
$htmout .= " <img src=imgs/btn/koeyew.png height=15 id=img_leds_btn_toggle name=img_leds_btn_toggle>\n";
$htmout .= "         div_leds_title\n";
$htmout .= " </div id=div_leds_title_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_leds\" style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " left:0px;top:0px;\n";
$htmout .= " width:500px;height:550px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:linen;\n";
$htmout .= " overflow:auto;\n";
$htmout .= " \">\n";
$htmout .= " <center>\n";
$htmout .= "\n";
$htmout .= " <table id=table_leds cellpadding=\"10\">\n";
$htmout .= " <tr>\n";
$htmout .= " <td>\n";
$htmout .= $leds_content;
# $htmout .= " <div id=div_led name=div_led style=\"width:60 height:60\" >\n";
# $htmout .= " <img id=img_led name=img_led src=imgs/leds/crome_green1.gif height=50 border=0>\n";
# $htmout .= " </a>\n";
$htmout .= " </td>\n";
$htmout .= " </tr>\n";
$htmout .= " </table id=table_leds_end>\n";
$htmout .= " </center>\n";
$htmout .= " </div id=div_leds_end>\n";
$htmout .= " </div id=layer_leds_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"layer_ledsover\" style=\"\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:520px;top:40px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " \">\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_ledsover_title\" name=div_ledsover_title style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " left:0px;top:0px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " \">\n";
$htmout .= " <img src=imgs/btn/koeyew.png height=15 id=img_ledsover_btn_toggle name=img_ledsover_btn_toggle>\n";
$htmout .= "         div_ledsover_title\n";
$htmout .= " </div id=div_test_title_end>\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_ledsover\" style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " width:500px;height:550px;\n";
$htmout .= " border:2px inset black;\n";
$htmout .= " background:linen;\n";
$htmout .= " overflow:auto;\n";
$htmout .= " \">\n";
$htmout .= " <table id=table_ledsover cellpadding=\"10\">\n";
$htmout .= " <tr>\n";
$htmout .= " <td>\n";
$htmout .= $ledsover_content;
# $htmout .= "<a href=ko.php?detail/cm12>\n";
# $htmout .= " <h1>cab: cm12</h1>\n";
# $htmout .= " <img id=img_cab name=img_cab src=imgs/cab/cm12.png height=200 border=0>\n";
# $htmout .= " </a>\n";
# $htmout .= "<hr color=goldenrod>\n";
# $htmout .= "cab=cm12 floor=floor bldg=bldg dttm=dttm phn=123-456-7890 \n";
# $htmout .= "<hr color=goldenrod>\n";
# $htmout .= "<a href=imgs/cab/cm12.png ><img src=imgs/cab/tn/tn_cm12.png height=50 border=0></a>\n";
$htmout .= " </td>\n";
$htmout .= " </tr>\n";
$htmout .= " </table id=table_ledsover_end>\n";
$htmout .= " </center>\n";
$htmout .= " </div id=div_ledsover_end>\n";
$htmout .= " </div id=layer_ledsover_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"layer_ctx\" style=\"\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:10px;top:615px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px inset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " \">\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_ctx_title\" name=div_ctx_title style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " left:0px;top:0px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px inset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " \">\n";
$htmout .= " <img src=imgs/btn/koeyew.png height=15 id=img_ctx_btn_toggle name=img_ctx_btn_toggle>\n";
$htmout .= "         div_ctx_title\n";
$htmout .= " </div id=div_test_title_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_ctx\" style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " width:500px;height:80px;\n";
$htmout .= " border:2px inset black;\n";
$htmout .= " background:linen;\n";
$htmout .= " overflow:auto;\n";
$htmout .= " \">\n";
$htmout .= " <table id=table_ctx cellpadding=\"10\">\n";
$htmout .= " <tr>\n";
$htmout .= " <td>\n";
$htmout .= $ctx_content;
$htmout .= " </td>\n";
$htmout .= " </tr>\n";
$htmout .= " </table id=table_ctx_end>\n";
$htmout .= " </center>\n";
$htmout .= " </div id=div_ctx_end>\n";
$htmout .= " </div id=layer_ctx_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"layer_links\" style=\"\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:10px;top:720px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " \">\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_links_title\" name=div_links_title style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " left:0px;top:0px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " \">\n";
$htmout .= " <img src=imgs/btn/koeyew.png height=15 id=img_links_btn_toggle name=img_links_btn_toggle>\n";
$htmout .= "         div_links_title\n";
$htmout .= " </div id=div_links_title_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_links\" style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " width:500px;height:50px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:linen;\n";
$htmout .= " overflow:auto;\n";
$htmout .= " \">\n";
$htmout .= " <table id=table_links cellpadding=\"10\">\n";
$htmout .= " <tr>\n";
$htmout .= " <td>\n";
$htmout .= $links_content;
$htmout .= " </td>\n";
$htmout .= " </tr>\n";
$htmout .= " </table id=table_links_end>\n";
$htmout .= " </center>\n";
$htmout .= " </div id=div_links_end>\n";
$htmout .= " </div id=layer_links_end>\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= "<!-- visability:hidden; -->\n";
$htmout .= " <div id=\"layer_test\" name=layer_test style=\"\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:10px;top:800px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:linen;\n";
$htmout .= " \">\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_test_title\" name=div_test_title style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " left:0px;top:0px;\n";
$htmout .= " width:500px;height:20px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " \">\n";
$htmout .= " <img src=imgs/btn/koeyew.png height=15 id=img_test_btn_toggle name=img_test_btn_toggle>\n";
$htmout .= "         div_test_title\n";
$htmout .= " </div id=div_test_title_end>\n";
$htmout .= "\n";
$htmout .= " <div id=\"div_test\" name=div_test style=\"\n";
$htmout .= " position:relative;\n";
$htmout .= " left:0px;top:0px;\n";
$htmout .= " width:500px;height:300px;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:linen;\n";
$htmout .= " \">\n";
$test_content = "";
$test_content .= " <hr color=goldenrod>\n";
$test_content .= " <img src=imgs/btn/ko.png height=10 id=img_test name=img_test>\n";
$test_content .= " <hr color=goldenrod>\n";
$test_content .= " <img src=imgs/btn/ko.png height=10 id=img_test1 name=img_test1>\n";
$test_content .= " <hr color=goldenrod>\n";
$test_content .= " <img src=imgs/btn/ko.png height=10 id=img_test2 name=img_test2>\n";
$test_content .= " <hr color=goldenrod>\n";
$test_content .= " <img src=imgs/btn/ko.png height=10 id=img_test3 name=img_test3>\n";
$test_content .= " <hr color=goldenrod>\n";
$htmout .= $test_content;
$htmout .= " </div id=div_test_end>\n";
$htmout .= " </div id=\"layer_test_end\">\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= "<script type=\"text/javascript\">\n";
$htmout .= "<!--\n";
$htmout .= "\n";
$htmout .= "SET_DHTML(\n";
$htmout .= "<!--\n";
$htmout .= " \"div_xxx_title\"+CURSOR_MOVE, \n";
$htmout .= " \"layer_xxx\"+NO_DRAG, \n";
$htmout .= " \"div_xxx\"+NO_DRAG, \n";
$htmout .= " \"img_xxx_btn_resize\"+MAXOFFLEFT+210+MAXOFFTOP+90+CURSOR_NW_RESIZE,\n";
$htmout .= " \"img_xxx_btn_toggle\"+VERTICAL+HORIZONTAL,\n";
$htmout .= " -->\n";
$htmout .= "\n";
$htmout .= " \"div_clock\"+RESIZABLE,\n";
$htmout .= " \"layer_test\",\n";
$htmout .= " \"img_test_btn_toggle\"+RESIZABLE,\n";
$htmout .= " \"div_test\"+RESIZABLE,\n";
$htmout .= "\n";
$htmout .= " \"div_btns\"+RESIZABLE,\n";
$htmout .= " \"div_status\"+RESIZABLE,\n";
$htmout .= "\n";
$htmout .= " \"layer_leds\",\n";
$htmout .= " \"img_leds_btn_toggle\"+RESIZABLE,\n";
$htmout .= " \"div_leds\"+RESIZABLE,\n";
$htmout .= "\n";
$htmout .= " \"layer_ledsover\",\n";
$htmout .= " \"img_ledsover_btn_toggle\"+RESIZABLE,\n";
$htmout .= " \"div_ledsover\"+RESIZABLE,\n";
$htmout .= "\n";
$htmout .= " \"layer_ctx\",\n";
$htmout .= " \"img_ctx_btn_toggle\"+RESIZABLE,\n";
$htmout .= " \"div_ctx\"+RESIZABLE,\n";
$htmout .= "\n";
$htmout .= " \"layer_links\",\n";
$htmout .= " \"img_links_btn_toggle\"+RESIZABLE,\n";
$htmout .= " \"div_links\"+RESIZABLE\n";
$htmout .= " );\n";
$htmout .= "\n";
$htmout .= "// Some vars to customize window:\n";
$htmout .= "<!--\n";
$htmout .= "var layer_xxx_padding = 0;\n";
$htmout .= "var div_xxx_title_h = 19;\n";
$htmout .= "var div_xxx_margin = 4;\n";
$htmout .= "var xxx_toolbar_h = 20;\n";
$htmout .= "var xxx_statusbar_h = 20;\n";
$htmout .= "var xxx_last_window_h;\n";
$htmout .= " -->\n";
$htmout .= "\n";
$htmout .= "// preload button images to ensure un-delayed image swapping \n";
$htmout .= "<!--\n";
$htmout .= "var img_xxx_btn_toggle_down_outset = new Image();\n";
$htmout .= "var img_xxx_btn_toggle_down_inset = new Image();\n";
$htmout .= "var img_xxx_btn_toggle_up_outset = new Image();\n";
$htmout .= "var img_xxx_btn_toggle_up_inset = new Image();\n";
$htmout .= "\n";
$htmout .= "img_xxx_btn_toggle_down_outset.src = 'imgs/btn/koeyeb.png';\n";
$htmout .= "img_xxx_btn_toggle_down_inset.src = 'imgs/btn/koeyeb.png';\n";
$htmout .= "img_xxx_btn_toggle_up_outset.src = 'imgs/btn/koeyew.png';\n";
$htmout .= "img_xxx_btn_toggle_up_inset.src = 'imgs/btn/koeyew.png';\n";
$htmout .= " -->\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= "// initWindow() moves elements to their adequate locations\n";
$htmout .= "// and builds coherences between these elements by converting outer layer_xxx, client area and images for resize functionalities to 'childern' of the draggable div_xxx_title \n";
$htmout .= "\n";
$htmout .= "function initWindow_xxx() {\n";
$htmout .= "<!--\n";
$htmout .= " dd.elements.div_xxx_title.moveTo(\n";
$htmout .= " dd.elements.layer_xxx.x+2+layer_xxx_padding, \n";
$htmout .= " dd.elements.layer_xxx.y+2+layer_xxx_padding\n";
$htmout .= " );\n";
$htmout .= " dd.elements.div_xxx_title.addChild(\"layer_xxx\");\n";
$htmout .= " dd.elements.div_xxx_title.setZ(dd.elements.layer_xxx.z+1);\n";
$htmout .= " dd.elements.div_xxx_title.resizeTo(\n";
$htmout .= " dd.elements.layer_xxx.w-4-(layer_xxx_padding<<1), \n";
$htmout .= " div_xxx_title_h\n";
$htmout .= " );\n";
$htmout .= "\n";
$htmout .= " dd.elements.div_xxx.moveTo(\n";
$htmout .= " dd.elements.layer_xxx.x+2+layer_xxx_padding+div_xxx_margin,\n";
$htmout .= " dd.elements.div_xxx_title.y+div_xxx_title_h+xxx_toolbar_h+div_xxx_margin\n";
$htmout .= " );\n";
$htmout .= " dd.elements.div_xxx_title.addChild(\"div_xxx\");\n";
$htmout .= " dd.elements.div_xxx.resizeTo(\n";
$htmout .= " dd.elements.layer_xxx.w-4-(layer_xxx_padding<<1)-(div_xxx_margin<<1),\n";
$htmout .= " dd.elements.layer_xxx.h-div_xxx_title_h-xxx_toolbar_h-xxx_statusbar_h-4-(layer_xxx_padding<<1)-div_xxx_margin\n";
$htmout .= " );\n";
$htmout .= "\n";
$htmout .= " dd.elements.img_xxx_btn_resize.moveTo(\n";
$htmout .= " dd.elements.layer_xxx.x+dd.elements.layer_xxx.w-dd.elements.img_xxx_btn_resize.w-2,\n";
$htmout .= " dd.elements.layer_xxx.y+dd.elements.layer_xxx.h-dd.elements.img_xxx_btn_resize.h-2\n";
$htmout .= " );\n";
$htmout .= "\n";
$htmout .= " dd.elements.img_xxx_btn_toggle.moveTo(\n";
$htmout .= " dd.elements.div_xxx_title.x+dd.elements.div_xxx_title.w\n";
$htmout .= " -dd.elements.img_xxx_btn_toggle.w\n";
$htmout .= " -layer_xxx_padding-(div_xxx_title_h>>1)\n";
$htmout .= " +Math.round(dd.elements.img_xxx_btn_toggle.w/2),\n";
$htmout .= "\n";
$htmout .= " dd.elements.div_xxx_title.y\n";
$htmout .= " +Math.round(div_xxx_title_h/2)\n";
$htmout .= " -Math.round(dd.elements.img_xxx_btn_toggle.h/2)\n";
$htmout .= " );\n";
$htmout .= " dd.elements.div_xxx_title.addChild(\"img_xxx_btn_toggle\");\n";
$htmout .= " dd.elements.div_xxx_title.addChild(\"img_xxx_btn_resize\");\n";
$htmout .= " dd.elements.div_xxx_title.show();\n";
$htmout .= " -->\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function initWindow_leds() {\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function initWindow_ledsover() {\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function initWindow_ctx() {\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function initWindow_links() {\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "<!-- initWindow_xxx(); -->\n";
$htmout .= "initWindow_leds();\n";
$htmout .= "initWindow_ledsover();\n";
$htmout .= "initWindow_ctx();\n";
$htmout .= "initWindow_links();\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= "// my_PickFunc, my_DragFunc and my_DropFunc override their namesakes in wz_dragdrop.js\n";
$htmout .= "function my_PickFunc() {\n";
$htmout .= "<!--\n";
$htmout .= " if (dd.obj.name == \"img_xxx_btn_toggle\") {\n";
$htmout .= " dd.obj.swapImage(dd.elements.div_xxx.visible? img_xxx_btn_toggle_up_inset.src : img_xxx_btn_toggle_down_inset.src);\n";
$htmout .= " }\n";
$htmout .= " -->\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function my_DragFunc() {\n";
$htmout .= "\n";
$htmout .= "<!--\n";
$htmout .= " if (dd.obj.name == \"img_xxx_btn_resize\") {\n";
$htmout .= " dd.elements.layer_xxx.resizeTo(\n";
$htmout .= " dd.obj.x-dd.elements.layer_xxx.x+dd.obj.w+2,\n";
$htmout .= " dd.obj.y-dd.elements.layer_xxx.y+dd.obj.h+2\n";
$htmout .= " );\n";
$htmout .= " dd.elements.div_xxx_title.resizeTo(\n";
$htmout .= " dd.obj.x-dd.elements.div_xxx_title.x+dd.obj.w-layer_xxx_padding,\n";
$htmout .= " div_xxx_title_h\n";
$htmout .= " );\n";
$htmout .= " dd.elements.div_xxx.resizeTo(\n";
$htmout .= " dd.elements.layer_xxx.w-4\n";
$htmout .= " -(layer_xxx_padding<<1)-(div_xxx_margin<<1),\n";
$htmout .= "\n";
$htmout .= " dd.elements.layer_xxx.h-div_xxx_title_h\n";
$htmout .= " -xxx_toolbar_h\n";
$htmout .= " -xxx_statusbar_h-4\n";
$htmout .= " -(layer_xxx_padding<<1)\n";
$htmout .= " -div_xxx_margin\n";
$htmout .= " );\n";
$htmout .= " dd.elements.img_xxx_btn_toggle.moveTo(\n";
$htmout .= " dd.elements.div_xxx_title.x\n";
$htmout .= " +dd.elements.div_xxx_title.w\n";
$htmout .= " -dd.elements.img_xxx_btn_toggle.w\n";
$htmout .= " -layer_xxx_padding\n";
$htmout .= " -(div_xxx_title_h>>1)\n";
$htmout .= " +Math.round(dd.elements.img_xxx_btn_toggle.w/2),\n";
$htmout .= "\n";
$htmout .= " dd.elements.img_xxx_btn_toggle.y\n";
$htmout .= " );\n";
$htmout .= " }\n";
$htmout .= " -->\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "\n";
$htmout .= "function my_DropFunc() {\n";
$htmout .= " if( dd.obj.name == \"img_test_btn_toggle\" ) {\n";
$htmout .= " if( dd.elements.div_test.visible) {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyeb.png\");\n";
$htmout .= " dd.elements.div_test.hide();\n";
$htmout .= " }\n";
$htmout .= " else {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyew.png\");\n";
$htmout .= " dd.elements.div_test.show();\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " if( dd.obj.name == \"img_leds_btn_toggle\" ) {\n";
$htmout .= " if( dd.elements.div_leds.visible) {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyeb.png\");\n";
$htmout .= " dd.elements.div_leds.hide();\n";
$htmout .= " }\n";
$htmout .= " else {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyew.png\");\n";
$htmout .= " dd.elements.div_leds.show();\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " if( dd.obj.name == \"img_ledsover_btn_toggle\" ) {\n";
$htmout .= " if( dd.elements.div_ledsover.visible) {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyeb.png\");\n";
$htmout .= " dd.elements.div_ledsover.hide();\n";
$htmout .= " }\n";
$htmout .= " else {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyew.png\");\n";
$htmout .= " dd.elements.div_ledsover.show();\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " if( dd.obj.name == \"img_ctx_btn_toggle\" ) {\n";
$htmout .= " if( dd.elements.div_ctx.visible) {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyeb.png\");\n";
$htmout .= " dd.elements.div_ctx.hide();\n";
$htmout .= " }\n";
$htmout .= " else {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyew.png\");\n";
$htmout .= " dd.elements.div_ctx.show();\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " if( dd.obj.name == \"img_links_btn_toggle\" ) {\n";
$htmout .= " if( dd.elements.div_links.visible) {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyeb.png\");\n";
$htmout .= " dd.elements.div_links.hide();\n";
$htmout .= " }\n";
$htmout .= " else {\n";
$htmout .= " dd.obj.swapImage(\"imgs/btn/koeyew.png\");\n";
$htmout .= " dd.elements.div_links.show();\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " }\n";
$htmout .= "//-->\n";
$htmout .= " </script>\n";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
$htmout .= "\n";
$htmout .= "\n";
return($htmout);
}
function bugs($dbfile,$line) {
if( $dbfile == "" ) {
print( "bugs: $line" );
}
else {
if( ! is_file( $dbfile )) {
print( "bugs: BUGS_$line NOTFOUND dbfile=$dbfile<br>\n" );
}
else {
print( "bugs: BUGS_$line ___FOUND dbfile=$dbfile<br>\n" );
}
}
return;
}
function startup() {
global $progid;
global $dttm;
global $logfil;
global $document_root;
global $dbfile;
global $leds_context;
$default_role="anon";
$default_role="";
# $default_role="admin";
# session_cache_limiter("must-revalidate");
# session_cache_limiter("public");
session_start();
error_reporting(0);
$dttm_ip= sprintf( "%s.%s.%s.%s",
substr( $dttm, 0, 2 ),
substr( $dttm, 2, 2 ),
substr( $dttm, 4, 2 ),
substr( $dttm, 6, 2 ));
$path_btn="imgs/btn";
$path_ani="imgs/ani";
# phpinfo();
$document_root=$_SERVER['DOCUMENT_ROOT'];
# $GLOBALS['hosts_allow']="/etc/hosts.allow";
$GLOBALS['hosts_allow']="$document_root"."/../safer/hosts.allow";
$GLOBALS['kbfile']="$document_root/ko_center/db3/koaac_kb.db3";
$GLOBALS['kb_rootpath'] = "$document_root/ko_center/kb";
$GLOBALS['ko_center_certsfile'] = "$document_root/ko_center/db3/ko_center_certs.db3";
$GLOBALS['screenshots_pcharts'] = "";
$GLOBALS['kbpath'] = "$document_root/ko_center/kb";
$yyyymm=date('Ym');
$logfil_basename="$progid"."_"."$yyyymm".".log";
$logfil_rootpath="$document_root"."/../ko_safer";
$logfil="$logfil_rootpath/$logfil_basename";
$logfil="../../safer/".$logfil_basename;
$hostos="";
# $uname='uname -a';
# $uname='uname -a';
# $hostos="win";
#
# escapeshellarg()
# escapeshellcmd()
# exec()
# passthru()
# pcntl_exec()
# backtick operator
# $uname=system("uname -a 2>&1",$status);
$status=exec("uname -a 2>&1",$uname);
# printf( "BUGS_135a: status=[$status] uname=[$uname]<hr>\n" );
# $status=exec("ls -lat 2>&1",$files);
$dttm=date('Ymd_His');
# foreach(PDO::getAvailableDrivers() as $driver) {$html .= "$j $driver<br>\n"; $j++;}
# $allowflag_fields=explode( " ", $allowflag ); $kb_user = $allowflag_fields[2];
# foreach( $files as $file) {
# $html .= "$j $file<br>\n";
# printf( "BUGS_135b: $j file=$file status=[$status] lslat=[$lslat]<hr>\n" );
# $j++;
# }
# printf( "$html\n");
# printf( "BUGS_135b: status=[$status] lslat=[$lslat]<hr>\n" );
# $item_text=str_replace( "!", "", $item_levels );
if ( isset( $_REQUEST['vas'] )) {
$vasid=$_REQUEST['vas'];
$htmout = html_vas($vasid); print($htmout); return;
}
if ( isset( $_REQUEST['hangmanwz'] )) { $htmout = html_hangmanwz(); print($htmout); return; }
if ( isset( $_REQUEST['winwz'] )) {
global $btns_content;
global $status_content;
global $leds_content;
global $ledsover_content;
global $ctx_content;
global $links_content;
global $test_content;
$htmout = html_winwz($btns_content, $status_content, $leds_content, $ledsover_content, $ctx_content, $links_content, $test_content);
# $htmout = html_winwz($btns);
print($htmout);
return;
}
$uname=`uname -a`;
if( preg_match( "/CYG/", $uname, $matches)) { $hostos = "win"; }
if( $hostos == "win" ) {
# $GLOBALS['kbrootpath'] = "L:\\xampp\\htdocs\\ko_center\\kb";
# $GLOBALS['dbfile'] = "L:\\xampp\\htdocs\\ko_center\\ko_center.db3";
# $GLOBALS['hosts_allow']="L:\\xampp\\htdocs\\ko_center\\hosts.allow";
$GLOBALS['kbfile'] = "S:\\xampp\\htdocs\\ko_center\\db3/koaac_kb.db3";
$GLOBALS['kbrootpath'] = "S:\\xampp\\htdocs\\ko_center\\kb";
$GLOBALS['dbfile'] = "S:\\xampp\\htdocs\\ko_center\\ko_center.db3";
$GLOBALS['hosts_allow']="S:\\xampp\\htdocs\\ko_center\\hosts.allow";
$GLOBALS['hosts_allow']="c:\\windows\\system32\\drivers\\etc\\hosts.allow";
$hosts_allow=$GLOBALS['hosts_allow'];
}
# $wc=`wc -l *.php`;
# printf( "BUGS_160 uname=[$uname] hosts_allow=[$hosts_allow]<hr>\n" );
if (!extension_loaded('gd') && !extension_loaded('gd2')) {
printf( "<hr><b>extension not loaded gd and gd2 </b><hr>\n" );
if(!extension_loaded('gd2')) {
printf( "<hr><b>extension not loaded gd2 </b><hr>\n" );
}
return;
}
# check REMOTE_ADDR ip against hosts.all
# $filename="$document_root/ko_center/ko_center.db3";
# $filename="/etc/hosts.allow";
# $filename="c:\\windows\\system32\\drivers\\etc\\hosts.allow";
# $filename="c:/windows/system32/drivers/etc/hosts.allow";
$remote_addr=$_SERVER['REMOTE_ADDR'];
$php_self=$_SERVER['PHP_SELF'];
$allowflag="";
$hosts_allow = $GLOBALS['hosts_allow'];
$kbfile = $GLOBALS['kbfile'];
$kb_rootpath = $GLOBALS['kb_rootpath'];
$logrec="$progid|$dttm|bugs_0130_sitehit|$remote_addr|$user|$email||\n";
logwrite( $logfil, $logrec );
# logdump( $logfil );
# print( "<hr>BUGS_134 progid=$progid dttm=[$dttm] logfil=[$logfil]<hr>\n" );
# return;
# $path="/ko_center/kb/201208/20120810_130000";
# ko_ls( $options, $path );
# $remote_addr="160.132.7.53"; # mouserk
# $remote_addr="10.200.82.186"; # wilsong
# $remote_addr="10.200.80.179"; # gospodarecsm
$db3file="$progid.db3";
# $db3tbl="hallo";
# printf( "BUGS_150 db3file=%s db3tbl=%s<br>", $db3file, $db3tbl );
# $hallos=sql3_insert_hallo($db3file, $db3tbl);
# printf( "BUGS_161 hallos=%s<br>",$hallos );
# $rows=sql3_select_hallo($db3file, $db3tbl, $ip );
# printf( "BUGS_162 rows_ip=%s<br>",$rows['ip'] );
# var_dump($rows);
if( isset($_REQUEST['vas'])) {
$vasid=$_REQUEST['vas'];
$htmout=html_vas($vasid);
print($htmout);
return;
}
if( isset($_REQUEST['winwz'])) {
$btns_content=""; $status_content=""; $leds_content=""; $ledsover_content=""; $ctx_content=""; $links_content=""; $test_content="";
$htmout = html_winwz($btns_content, $status_content, $leds_content, $ledsover_content, $ctx_content, $links_content, $test_content);
# $htmout=html_winwz();
print($htmout);
return;
}
if( file_exists( $hosts_allow )) {
# printf( "$progid $dttm MSG:_200: FOUND hosts_allow=[$hosts_allow][$remote_addr][$php_self]<br>\n" );
$fp = fopen( $hosts_allow, 'r' );
while( $bigline = fread($fp, 1024)) {
$image .= $bigline;
$lines = explode("\n", $bigline );
for( $j=0; $j < count($lines); $j++ ) {
$line=$lines[$j];
# printf( "$progid $dttm MSG:_150: $j line=[$line] [$remote_addr]<br>\n" );
# if( $remote_addr == $line ) { printf( "ALLOW<br>\n" ); }
if( preg_match( "/$remote_addr/", $line, $matches)) {
# $allowflag="true";
$allowflag=$line;
$GLOBALS['allowflag']=$line;
$GLOBALS['kb_ip']=$remote_addr;
break;
}
}
# printf( "$progid $dttm MSG_110: line=[$line]<br>\n" );
}
fclose( $fp );
}
# else {
# $logrec="$progid|$dttm|bugs_0161_notfound_hostsallow|$remote_addr|ERR_NOTFOUND_hosts_allow=$hosts_allow|\n"; logwrite( $logfil, $logrec );
# printf( "$progid $dttm ERR_211: NOTFOUND hosts_allow=[$hosts_allow][$remote_addr]<br>\n" );
# print( "$progid $dttm ERR_212: NOTFOUND remote_addr=$remote_addr<br>\n" );
# }
# $allowflag=$GLOBALS['allowflag'];
# $allowflag_fields=explode( "#", $allowflag );
# $user=$allowflag_fields[3];
# $allowflag="";
$allowflag="allow";
if( isset( $_REQUEST['ip'] )) { $allowflag = "allow"; }
# printf( "<hr>BUGS_170 hostos=[$hostos] allowflag=[$allowflag] form_request_access php_self=[https:/$php_self]<br>\n" );
if( "$allowflag" == "" ) {
printf( "BUGS_171 form_request_access php_self=[https:/$php_self]<br>\n" );
$html = "<html><title>$php_self $dttm DENIED $remote_addr</title>\n";
# $html .= "<body bgcolor=lightblue>\n";
$html .= "<body bgcolor=linen>\n";
$html .= "<hr>$progid $dttm ERR_127: HOSTDENIED allowflag=[$allowflag] your_ip=[$remote_addr] userid=[] email=[] <hr>\n";
$html .= "<a href=\"mailto:joachim.kassil.ctr@mail.mil?subject=ko_center l1033 access: $remote_addr userid email org\" target=_blank>request access</a><br>\n";
$html .= "</body></html>\n";
printf( $html );
$logrec="$progid|$dttm|bugs_177_login_notallowd|$remote_addr|$user|$email|allowflag=$allowflag|\n"; logwrite( $logfil, $logrec );
# header( 'Location: https:#147.238.94.126/ko_center/ko_center.php?q=form_request_access' );
#/ header( 'Location: https:#147.238.94.126/ko_center/ko_center.php?q=about' );
exit;
}
$logrec="$progid|$dttm|bugs_180_login_allowed|$remote_addr|$user|$email|\n"; logwrite( $logfil, $logrec );
# $sysid="fp";
$sysid="ko_center";
$tblname= "leds";
$dttm=date("Ymd_His");
$query_string_all=$_SERVER['QUERY_STRING'];
$query_strings = explode( "&", $query_string_all );
$query_string = $query_strings[0];
$user=$_POST['user'];
$pass=$_POST['pass'];
$step=$_POST['step'];
$step=$_POST['user'];
$step=$_POST['email'];
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
$script_filename = $_SERVER['SCRIPT_FILENAME'];
$script_basename = basename( $script_filename );
$dbfile = str_replace( "php", "db3", $script_filename );
# $dbfile = str_replace( "index.db3", "$sysid.db3", $dbfile );
dbs_init($options);
if( ! $_SESSION['role'] ) { $_SESSION['role'] = $default_role; $role=$default_role; } else { $role=$_SESSION['role']; }
if( $_SESSION['role'] ) {$role=$_SESSION['role']; } else { $_SESSION['role'] = $default_role; }
# print( "BUGS_100 role=$role _SESSION['role'] = ".$_SESSION['role']."<br>\n" );
if(( $_SESSION['role'] != "" ) && ( $_SESSION['role'] != "anon" )) {
# print( "role=$role/".$_SESSION['role']."<hr>\n" );
$output .= "role=$role/".$_SESSION['role']."<hr>\n";
$logrec="$progid|$dttm|msg_0215_valid_session|$remote_addr|user=$user|email=$email|role=$role|\n"; logwrite( $logfil, $logrec );
}
# $themes = array( 'swanky', 'redmond', 'humanity', 'frog', 'swanky', 'darkness', 'lightness', 'sunny', 'mint' );
$themes = array( 'swanky', 'redmond', 'humanity', 'frog', 'darkness', 'lightness' );
$default_theme=$themes[0];
#/ $GLOBALS['allowflag'] = "";
$GLOBALS['themes'] = $themes;
if(! $_SESSION['theme']) { $_SESSION['theme'] = $default_theme; }
$roles = $GLOBALS['roles'];
$dbfiles = $GLOBALS['dbfiles'];
$GLOBALS['dbs'] = $dbfiles[$role];
# $GLOBALS['dbs'] = $dbfiles;
$GLOBALS['version'] = "0.13_20120531_1320";
$GLOBALS['dbfile'] = $dbfile;
$GLOBALS['tblname'] = $tblname;
# $GLOBALS['media_path'] = "media/";
# $GLOBALS['media_path'] = "/var/www/inbox/";
$GLOBALS['media_path'] = "$document_root/inbox/";
$_SESSION['preview'] = "on";
# print( "$php_self startup MSG: sysid=$sysid [$script_basename] script_filename=[$script_filename] dbfile=[$dbfile]<br \>\n" );
# $dbfile = "C:/xampp/htdocs/hrc/hrc.db3";
# $GLOBALS['dbfile'] = "c:/xampp/htdocs/hrc/hrc.db3";
# print( "script_filename=[$script_filename] dbfile=[$dbfile]<br>\n" );
# phpinfo();
$allowflag_fields=explode( " ", $allowflag ); $kb_user = $allowflag_fields[2];
$GLOBALS['kb_user']=$kb_user;
#/ $allowflag_fields=explode( " ", $allowflag ); $user = $allowflag_fields[1];
#/ print( "$progid $dttm MSG_168: startup: allowflag=[$allowflag] user=[$user]" );
# print( "startup: [$dttm] [$user][$pass][$step]<br> [$query_string] option=[$option] option1=[$option1] option2=[$option2]<br>\n" );
# print( "php_self=[$php_self]<br>\n" );
# print( "http_host=[$http_host]<br>\n" );
# print( "request_uri=[$request_uri]<br>\n" );
# print( "dbfile=[".$GLOBALS['dbfile'] ."]<br>\n" );
# phpinfo();
# parse_str( $query_string, $query_args );
# $args=explode( "/", $query_string );
# $args=explode( "/", $_REQUEST['q'] );
# $options=explode( "/", $query_string );
# $option=$args[0]; $option1=$args[1]; $option2=$args[2]; $option3=$args[3]; $option4=$args[4];
$options=explode( "/", $_REQUEST['q'] );
$dttm=date("Ymd_His");
# if(isset($_POST['leds_context'])) {
# $GLOBALS['leds_context']=$_REQUESTS['set_leds_context'];
# $leds_context_global=$GLOBALS['leds_context'];
# $leds_context=$_REQUEST['leds_context'];
# print( "BUGS_325 set_leds_context leds_context=$leds_context globals=$leds_context_global<br>\n" );
# }
if( $_REQUEST['todo'] ) {
# main_todo();
startup_todo();
}
# print( "BUGS173: query_string=$query_string<br>\n" );
# print( "BUGS173: \$_REQUEST['q']=[".$_REQUEST['q']."]<br>\n" );
# print( "BUGS175: o1=$options[1]<br>\n" );
# print( "BUGS175: o2=$options[2]<br>\n" );
# print( "BUGS175: o3=$options[3]<br>\n" );
# print( "BUGS175: o4=$options[4]<br>\n" );
# print_r( $options );
# return;
# new install if no db3 file
# unlink( $dbfile );
# if( ! file_exists( $GLOBALS['dbfile'] )) {
if( ! is_file( $dbfile )) {
# print( "<hr>$progid $dttm startup NOTFOUND dbfile=$dbfile NOT INSTALLED<hr>\n" );
# ob_start();
print( "BUGS_381 startup before leds_install new dbfile=$dbfile<br>\n" );
leds_install("new");
# $leds_context = exec_get_leds_context( $dbfile );
# leds_show();
print( "BUGS_382 startup after leds_install new dbfile=$dbfile<br>\n" );
header( 'Location:'.$php_self );
# ob_flush();
# die();
# leds_show();
# return;
}
# ------------------------------------------------------------------
# Handle form submission — set the leds_context
# ------------------------------------------------------------------
if( isset( $_POST['set_leds_context'] ) || isset( $_GET['leds_context'] ) ) {
$lc = "";
if( isset( $_POST['set_leds_context'] ) ) { $lc = $_POST['set_leds_context']; }
if( isset( $_GET['leds_context'] ) ) { $lc = $_GET['leds_context']; }
$lc = strtolower( trim( $lc ) );
# validate allowed values
$allowed = array( "ai","cab","doc", "us", "" );
if( in_array( $lc, $allowed ) ) {
exec_set_leds_context( $dbfile, $lc );
$GLOBALS['leds_context'] = $lc;
}
}
# ------------------------------------------------------------------
# Load current leds_context from the database
# ------------------------------------------------------------------
$leds_context = exec_get_leds_context( $dbfile );
# $fp = "fp05";
# $xmlfile= "$fp"."_hotspots.xml";
# $options[1]="$fp";
# $xmltext= leds_zview_xmlnew( $options );
# if( ! file_exists( $xmlfile )) {
# print( "<hr>fp.php MSG: NEW xmlfile=[$xmlfile]<hr>\n" );
# $f = fopen( $xmlfile, "w" );
# fwrite( $f, $xmltext );
# for( $x=0; $x<count($xmltext); $x++ ){
# fputs($f, $xmltext[$x]);
# }
# fclose($f);
# }
#
# print( "<hr>xmltext=<hr>$xmltext<hr>\n" );
# return;
# session tests
if( $options[0] == "about" ) {
$output = leds_about( $options );
leds_show();
print( $output );
return;
}
$option0=$options[0];
$option1=$options[1];
$option2=$options[2];
$option3=$options[3];
$option4=$options[4];
$option5=$options[5];
# printf( "<hr>BUGS_290 o0=$option0 o1=$option1 o2=$option2<hr>\n" );
# return;
if( $options[0] == "ko_im" ) {
$html = html_header( $options );
$html .= html_btn_squares($options);
$html .= leds_show($options);
$html .= "<hr>\n";
if( $options[1] == "test1" ) {
$html .= "<hr><b>test1: $option2</b><hr>\n";
$html .= ko_im( $options );
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "test2" ) {
$html .= "<hr><b>test2: $option2</b><hr>\n";
$html .= ko_im( $options );
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "test3" ) {
$html .= "<hr><b>test2: $option2</b><hr>\n";
$html .= ko_im( $options );
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "test4" ) {
$html .= "<hr><b>test2: $option2</b><hr>\n";
$html .= ko_im( $options );
$html .= html_footer($options);
print( $html );
return;
}
print( $html );
return;
}
if( $options[0] == "ko_ajax" ) {
$html = html_header( $options );
$html .= html_btn_squares($options);
$html .= leds_show($options);
$html .= "<hr>\n";
if( $options[1] == "test1" ) {
$html .= "<hr><b>test1: $option2</b><hr>\n";
$html .= ko_ajax( $options );
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "test2" ) {
$html .= "<hr><b>test2: $option2</b><hr>\n";
$html .= ko_ajax( $options );
$html .= html_footer($options);
print( $html );
return;
}
}
if( $options[0] == "ko_dragdrop" ) {
$html = html_header( $options );
$html .= html_btn_squares($options);
$html .= leds_show($options);
$html .= "<hr>\n";
if( $options[1] == "test1" ) {
$html .= "<hr><b>test1: $option2</b><hr>\n";
$html .= ko_dragdrop( $options );
$html .= "<hr><b>test1: $option2</b><hr>\n";
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "test2" ) {
$html .= "<hr><b>test2: $option2</b><hr>\n";
$html .= ko_dragdrop( $options );
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "test3" ) {
$html .= "<hr><b>test2: $option2</b><hr>\n";
$html .= ko_dragdrop( $options );
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "test4" ) {
$html .= "<hr><b>test2: $option2</b><hr>\n";
$html .= ko_dragdrop( $options );
$html .= html_footer($options);
print( $html );
return;
}
print( $html );
return;
}
if( $options[0] == "reports" ) {
$dttm=date("Ymd_His");
# printf( "<hr>BUGS_1200 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n" );
$output = html_btn_squares( $options, "" );
$output .= leds_show( $options );
# $output .= leds_temp($options);
$output .= "<h3>ko_center reports detail </h3>\n";
$output .= "<a href=$php_self?q=reports/rpt ><img src=imgs/btn/report.png border=0 width=75></a>\n";
$output .= "<br>\n";
# $output .= "       ";
# $output .= "<a href=$php_self?q=reports/view >view</a>\n";
# $output .= "       ";
# $output .= "<a href=$php_self?q=db/grid/ko_center/periods >periods </a>\n";
# $output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center/ko_plans>ko_plans</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center/ko_hw>ko_hw</a>\n";
$output .= "       ";
$output .= "<br>\n";
$output .= "<a href=$php_self?q=db/grid/ko_center/rpts >rpts</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center/hw >hw </a>\n";
$output .= "       ";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center/defrag_plan >defrag_plan </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center/defrag_plansum >defrag_plansum </a>\n";
$output .= "      ";
$output .= "<br>\n" ;
$output .= "<a href=$php_self?q=db/grid/ko_center/hrc_dc_unix>hrc_dc_unix</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center/hrc_dc_win>hrc_dc_win </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center/hrc_datacenters_equipment >hrc_datacenters_equipment </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center/hrc_datacenters_equipment_defrag >hrc_datacenters_equipment_defrag </a>\n";
# $output .= "       ";
# $output .= "<a href=$php_self?q=db/grid/ko_center/jk >jk</a>\n";
# $output .= "       ";
# $output .= "<a href=$php_self?q=db/grid/ko_center/sm >sm</a>\n";
# $output .= "       ";
# $output .= "<a href=$php_self?q=db/grid/ko_center/bk >bk</a>\n";
# $output .= "       ";
# $output .= "<a href=$php_self?q=db/grid/ko_center/tmp >tmp</a>\n";
# $output .= "       ";
$output .= "       ";
$output .= "<hr>\n";
# $output .= leds_cons($options);
if( $options[1] == "" ) {
# $output .= "<hr>BUGS_1301 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
else {
## if( $option1 == "new" ) {
## $output .= ko_centeraac_kb_add_form();
## print( "$output" );
## return;
## }
if( $option1 == "view" ) {
$cert_code=$option2;
$host_code=$option2;
$output .= leds_reports_view($options);
print( "$output" );
return;
}
if( $option1 == "rpt" ) {
#/ $output .= leds_reports_rpt( $options );
$output .= leds_reports_rpt( $options );
print( "$output" );
return;
}
if( $option1 == "sql" ) {
$output .= leds_reports_sql( $options );
print( "$output" );
return;
}
if( $option1 == "mod" ) {
$cert_id=$option2;
$output = html_btn_squares( $options, "" );
$output .= leds_reports_view($options);
# $output .= "<hr>BUGS_1320 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
if( $option1 == "add" ) {
$output = html_btn_squares( $options, "" );
# $output .= leds_reports_view($options);
$output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
if( $option1 == "search" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_reports_view($options);
# $output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
$output .= "<hr>BUGS_522 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
$output .= "<hr>BUGS_1820 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
if( $options[0] == "rptsxml" ) {
$html = html_header($options);
$html .= "<h4>rptsxml </h4>\n";
$html .= rptsxml($options);
$html .= "</body>\n";
$html .= "</html>\n";
print( $html );
return;
}
if( $options[0] == "hw" ) {
$html = html_header( $options );
$html .= html_btn_squares($options);
$html .= leds_show($options);
$html .= "<hr>\n";
if( $options[1] == "cab" ) {
$html .= "<hr><b>cabinet: $option2</b><hr>\n";
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "model" ) {
$html .= "<hr><b>model: $option2</b><hr>\n";
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "sn" ) {
$html .= "<hr><b>sn: $option2</b><hr>\n";
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "hrc_tag" ) {
$html .= "<hr><b>hrc_tag: $option2</b><hr>\n";
$html .= html_footer($options);
print( $html );
return;
}
if( $options[1] == "bluetag" ) {
$html .= "<hr><b>bluetag: $option2</b><hr>\n";
$html .= html_footer($options);
print( $html );
return;
}
hw($options); return;
}
if( $options[0] == "koaac_kb_new_form" ) { koaac_kb_new_form($options); return; }
if( $options[0] == "koaac_kb_add_form" ) { koaac_kb_add_form($options); return; }
if( $options[0] == "koaac_kb_mod_form" ) { koaac_kb_mod_form(); return; }
if( $options[0] == "koaac_kb_upd_form" ) { koaac_kb_upd_form(); return; }
if( $options[0] == "koaac_kb_view_form" ) { koaac_kb_view_form(); return; }
if( $options[0] == "phpinfo" ) { leds_phpinfo( $options ); return; }
if( $options[0] == "pdo_cr_dbs" ) { pdo_cr_dbs(); return; }
if( $options[0] == "pdo_cr_kb" ) { pdo_cr_kb(); return; }
if( $options[0] == "pdo_cr_flds" ) { pdo_cr_flds(); return; }
if( $options[0] == "pdo_cr_menus" ) { pdo_cr_menus(); return; }
if( $options[0] == "pdo_insert_menus" ) { pdo_insert_menus( $options ); return; }
if( $options[0] == "pdo_insert_dbs" ) { pdo_insert_dbs( $options ); return; }
if( $options[0] == "pdo_cr_users" ) { pdo_cr_users( $options ); return; }
if( $options[0] == "pdo_insert_users" ) { pdo_insert_users( $options ); return; }
# if( $options[0] == "fgmenu" ) { fgmenu_dyn( $options ); return; }
if( $options[0] == "fgmenu" ) { fgmenu_htm( $options ); return; }
if( $options[0] == "fgmenu_htm" ) { fgmenu_htm( $options ); return; }
if( $options[0] == "fgmenu_dyn" ) { fgmenu_dyn( $options ); return; }
if( $options[0] == "login" ) { leds_login_form( $options ); return; }
if( $options[0] == "login_validate" ) { leds_login_validate( $options ); return; }
if( $options[0] == "logout" ) { leds_logout( $options ); return; }
if( $options[0] == "konet" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show($options);
$html .= "<hr>\n";
$html .= "<img src=imgs/ko.png width=25 height=12><br>\n";
$html .= "joachim kassil<br>\n";
# $html .= "1-502-613-0144 desk<br>\n";
# $html .= "1-314-355-0144 mo<br>\n";
# $html .= "1-270-998-1075 ky<br>\n";
$html .= "<a href=mailto:hi@konet.org?subject=hrc help konet>hi@konet.org</a><br>\n";
$html .= "<br>\n";
# $html .= "lds 1-314-571-9505<br>\n";
# $html .= "<a href=mailto:lds@focussolutions.us?subject=hrc help focussolutions hrc>lds@focussolutions.us</a><br>\n";
print( $html );
return;
}
if( $options[0] == "pdo" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show($options);
$j=1;
foreach(PDO::getAvailableDrivers() as $driver) {
$html .= "$j $driver<br>\n"; $j++;
}
print($html );
return;
}
if( $options[0] == "form_request_access" ) {
# form_login_access( $options );
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show($options);
$html .= "<h1>ko_center l1033 access request form</h1>\n";
$html .= "</body></html>\n";
return;
}
if( $options[0] == "ko_plans" ) {
$dttm=date("Ymd_His");
$html = html_header($options);
$html .= html_btn_squares( $options, "" );
$html .= leds_show( $options );
# $html .= leds_ko_center($options);
$html .= "<h3>ko_center ko_plans </h3>\n";
$html .= "<a href=$php_self?q=db/grid/ko_center/props >grid_search </a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=db/grid/ko_center/rpts >grid_rpts</a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=ko_plans/reports >reports</a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=ko_plans/view >view</a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=ko_plans/steps >step</a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=ko_plans/items >items</a>\n";
$html .= "       ";
$html .= "<hr>\n";
if( $options[1] == "" ) {
printf( $html );
return;
}
if( $options[1] == "steps" ) {
$html .= "<h1>ko_plans_steps</h1>\n";
$html .= ko_plans_steps($options);
printf( $html );
return;
}
if( $options[1] == "items" ) {
$html .= "<h1>ko_plans_items</h1>\n";
$html .= ko_plans_items($options);
printf( $html );
return;
}
# $html .= ko_plans($options);
# printf( $html );
if( $options[1] == "" ) {
# $output .= "<hr>BUGS_1301 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
$output .= ko_plans( $options );
$html .= $output;
print( "$html" );
return;
}
else {
#/ if( $option1 == "new" ) {
#/ $output .= ko_center_kb_add_form();
#/ print( "$output" );
#/ return;
#/ }
if( $option1 == "view" ) {
$ko_centerd_code=$option2;
$output .= leds_ko_center($options);
print( "$output" );
return;
}
if( $option1 == "rpts" ) {
# $output .= "<h2>BUGS_1415 rpts</h2>\n";
$output .= leds_ko_center_rpts( $options );
print( "$output" );
return;
}
# if( $option1 == "mod" ) {
# $cert_id=$option2;
# $output = html_btn_squares( $options, "" );
# $output .= leds_certs($options);
# $output .= "<hr>BUGS_1320 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# print( "$output" );
# return;
# }
# if( $option1 == "add" ) {
# $output = html_btn_squares( $options, "" );
# $output .= leds_certs($options);
# $output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# print( "$output" );
# return;
# }
# if( $option1 == "search" ) {
# $output = html_btn_squares( $options, "" );
# $output .= leds_kb($options);
# $output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# print( "$output" );
# return;
# }
$output .= "<hr>BUGS_s719 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
$output .= "<hr>BUGS_600 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
if( $options[0] == "ko_center1" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= "$progid $dttm MSG_470: ko_center $options[0] $options[1] $option2[2]<h1>ko_center engineering</h1>\n";
$html .= "<a href=?q=ko_center/about >\n";
$html .= "<img src=\"/ko_center/about/tn_ko_center_orgchart.png\" alt=\"ko_center_about\" border=0 height=\"30\" width=\"30\" /></a>\n";
if( $options[1] == "about" ) {
$html .= "<h1>Systems Management Branch</h1>\n";
$html .= "<h2>about</h2>\n";
$html .= "<hr>\n";
$html .= "<a href=/ko_center/about/ko_center_orgchart.png target=_blank><img src=/ko_center/about/tn_ko_center_orgchart.png border=0></a><br>\n";
$html .= "<hr>\n";
$html .= "<a href=/ko_center/about/ko_center_mission_9-blank.jpg target=_blank><img src=/ko_center/about/tn_ko_center_mission_9-blank.jpg border=0></a>\n";
$html .= "<br> \n";
$html .= "<a href=/ko_center/about/ko_center_mission_1-td.jpg target=_blank><img src=/ko_center/about/tn_ko_center_mission_1-td.jpg border=0></a>\n";
$html .= "       \n";
$html .= "<a href=/ko_center/about/ko_center_mission_2-mission.jpg target=_blank><img src=/ko_center/about/tn_ko_center_mission_2-mission.jpg border=0></a>\n";
$html .= "       \n";
$html .= "<a href=/ko_center/about/ko_center_mission_3-metl.jpg target=_blank><img src=/ko_center/about/tn_ko_center_mission_3-metl.jpg border=0></a>\n";
$html .= "       \n";
$html .= "<a href=/ko_center/about/ko_center_mission_4-core.jpg target=_blank><img src=/ko_center/about/tn_ko_center_mission_4-core.jpg border=0></a>\n";
$html .= "<br>\n";
$html .= "<a href=/ko_center/about/ko_center_mission_5-struct.jpg target=_blank><img src=/ko_center/about/tn_ko_center_mission_5-struct.jpg border=0></a>\n";
$html .= "       \n";
$html .= "<a href=/ko_center/about/ko_center_mission_6-org.jpg target=_blank><img src=/ko_center/about/tn_ko_center_mission_6-org.jpg border=0></a>\n";
$html .= "       \n";
$html .= "<a href=/ko_center/about/ko_center_mission_7-workforce.jpg target=_blank><img src=/ko_center/about/tn_ko_center_mission_7-workforce.jpg border=0></a>\n";
$html .= "       \n";
$html .= "<a href=/ko_center/about/ko_center_mission_8-plan.jpg target=_blank><img src=/ko_center/about/tn_ko_center_mission_8-plan.jpg border=0></a>\n";
print( "$html" );
return;
}
print( $html );
return;
}
if( $options[0] == "pchart" ) {
if( $options[1] == "main" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
$html .= "<h1>Systems Management Branch</h1><h2>pchart main demo</h2>\n";
$html .= "<hr>\n";
# $html .= "<a href=https:#147.238.94.126/ko_center/ko_pchart_examples.php target=_blank>ko_Pchart_examples</a><br>\n";
$html .= "<a href=/ko_center/ko_pchart_examples.php target=_blank>ko_Pchart_examples</a><br>\n";
#/ $html .= "<br>\n";
#/ $html .= "<a href=https:#147.238.94.126/pChart/pchart213.pdf target=_blank>pchart213.pdf</a><br>\n";
#/ $html .= "<br>\n";
#/ $html .= "<a href=https:#147.238.94.126/pChart target=_blank>pChart_examples</a><br>\n";
print( $html );
return;
}
if( $options[1] == "demo" ) {
# if( file_exists( "$document_root/pChart/" )) {
if( is_dir( "$document_root/pChart" )) {
# header( 'Location: https:#147.238.94.126/pChart/' );
header( 'Location: /pChart/' );
return;
}
else {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
$html .= "<h1>Systems Management Branch</h1><h2>pchart demo unavailable</h2>\n";
$html .= "<hr>\n";
print( $html );
return;
}
}
if( $options[1] == "pie" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
$html .= "<h1>pchar pie</h1><h2>fld=$fld val=[$val]</h2>\n";
$html .= pchart_pie($options);
$html .= "<hr>\n";
print( $html );
return;
}
if( $options[1] == "pdf" ) {
# if( file_exists( "$document_root/pChart/" )) {
if( file_exists( "$document_root/pChart/pchart231.pdf" )) {
# header( 'Location: https:#147.238.94.126/pChart/pchart231.pdf' );
header( 'Location: /pChart/pchart231.pdf' );
return;
}
else {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
$html .= "<h1>Systems Management Branch</h1><h2>pchart231.pdf unavailable</h2>\n";
$html .= "<hr>\n";
print( $html );
return;
}
}
return;
}
if( $options[0] == "detail" ) {
# printf( "$progid $dttm MSG_440: $options[0] $options[1] $option2[2]<hr>xxxxxxxxxxxx<hr>\n" );
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show($options);
# $html .= leds_show_context($options);
$html .= "<hr>\n";
$html .= "<table><tr><td>\n";
$html .= "<a href=$php_self?q=leds_update_form>update $option1</a>";
$html .= "     ";
# $html .= "<a href=$php_self?q=leds_rpts_form>rpts $option1</a>";
# $html .= "<a href=$php_self?q=leds_rpts_form>rpts $option1</a>";
# $html .= "     ";
$html .= "<a href=$php_self?q=nodes/rpts>rpts $option1</a>";
# $html .= leds_update_form( $options );
$html .= "</td></tr></table>\n";
$html .= "<hr>\n";
if( $options[1] == "ko_center" ) {
$html_ko_center = "";
# $html_ko_center .= "$progid $dttm MSG_460: ko_center $options[0] $options[1] $option2[2]<h1>system management branch</h1>\n";
$html .= "<a href=?q=ko_center >\n";
$html .= "<img src=\"imgs/btn/ko_center.png\" alt=\"ko_center\" border=0 height=\"35\" width=\"35\" /></a>\n";
$html .= "       \n" ;
$html .= "<a href=/itil/index.html >\n";
$html .= "<img src=\"$path_btn/itil.png\" alt=\"itil\" border=0 height=\"30\" width=\"30\" />";
$html .= "</a>\n";
$html .= "       \n" ;
$html .= "<a href=?q=kb >\n";
$html .= "<img src=\"imgs/btn/kbbooks.png\" alt=\"kb\" border=0 height=\"30\" width=\"30\" /></a>\n";
print( $html );
return;
}
if( $options[1] == "ko_centere" ) {
$html = "";
$html .= "$progid $dttm MSG_470: ko_center $options[0] $options[1] $option2[2]<h1>ko_center engineering</h1>\n";
$html .= "<a href=?q=certs >\n";
$html .= "<img src=\"imgs/btn/cert.png\" alt=\"kb\" border=0 height=\"30\" width=\"30\" /></a>\n";
$html .= "<a href=?q=db/grid/ko_center_certs >\n";
$html .= "<img src=\"imgs/btn/cert.png\" alt=\"kbko_center_certs\" border=0 height=\"30\" width=\"30\" /></a>\n";
$html .= "<a href=?q=db/grid/ko_center_certs/certs >\n";
$html .= "<img src=\"imgs/btn/cert.png\" alt=\"kbko_center_certs_certs\" border=0 height=\"30\" width=\"30\" /></a>\n";
print( $html );
return;
}
if( $options[1] == "ko_centerd" ) {
$dttm=date("Ymd_His");
# $html = "";
# $html .= html_btn_squares( $options, "" );
# $html .= leds_show( $options );
$html .= "<h3>ko_centerd deployment detail </h3>\n";
$html .= "<a href=?q=db/grid/ko_centerd>\n";
$html .= "<img src=\"imgs/btn/moving.png\" alt=\"ko_centerd\" border=0 height=\"40\" width=\"40\" /></a>\n";
$html .= "<a href=$php_self?q=db/grid/ko_centerd/moves >grid_search </a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=db/grid/ko_centerd/rpts >grid_rpts</a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=ko_centerd/rpts >rpts</a>\n";
$html .= "       ";
#/ $html .= "<a href=$php_self?q=ko_centerd/view >view</a>\n";
$html .= "       ";
$html .= "<hr>\n";
# $html .= leds_certs($options);
if( $options[2] == "" ) {
# $html .= "<hr>BUGS_1301 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$html" );
return;
}
# if( $option2 == "new" ) {
# $html .= koaac_kb_add_form();
# print( "$html" );
# return;
# }
if( $option2 == "view" ) {
$ko_centerd_code=$option2;
$html .= leds_ko_centerd($options);
print( "$html" );
return;
}
if( $option2 == "rpts" ) {
# $html .= "<h2>BUGS_620 rpts</h2>\n";
$html .= leds_ko_centerd_rpts( $options );
print( "$html" );
return;
}
# if( $option2 == "mod" ) {
# $cert_id=$option2;
# $html .= leds_certs($options);
# $html .= "<hr>BUGS_1320 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# print( "$html" );
# return;
# }
#
# if( $option2 == "add" ) {
# $html .= leds_certs($options);
# $html .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# print( "$html" );
# return;
# }
if( $option2 == "search" ) {
$html .= leds_ko_centerd($options);
# $html .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$html" );
return;
}
print( $html );
return;
}
if( $options[1] == "ko_centert" ) {
$html_ko_center = "";
$html_ko_center .= "$progid $dttm MSG_480: ko_center $options[0] $options[1] $option2[2]<h1>ko_center training</h1>\n";
$html .= $html_ko_center;
print( $html );
return;
}
if( $options[1] == "hpx" ) {
if( $options[2] == "_us" ) {
if( file_exists( "$document_root/ko_center/us/kohpx_us.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/us/kohpx_us.php' );
return;
}
}
if( $options[2] == "_vg" ) {
if( file_exists( "$document_root/ko_center/vg/kohpx_vg.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/vg/kohpx_vg.php' );
return;
}
}
if( $options[2] == "_sw" ) {
if( file_exists( "$document_root/ko_center/sw/kohpx_sw.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/sw/kohpx_sw.php' );
return;
}
}
if( $options[2] == "_hs" ) {
if( file_exists( "$document_root/ko_center/hs/kohpx_hs.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/hs/kohpx_hs.php' );
return;
}
}
if( $options[2] == "_kb" ) {
if( file_exists( "$document_root/ko_center/kb/kohpx_kb.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/kb/kohpx_kb.php' );
return;
}
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
$html .= "<h1>kohpx_kb</h1>\n";
$html .= "<h2>knowledgebase</h2>\n";
$html .= "<a href=$php_self/ko_center/hpx target=_blank>kohpx_rpts</a><br>\n";
$html .= "<hr>\n";
$html .= ko_ls( $options, "/home/ko/hpx" );
print( $html );
return;
}
if( $options[2] == "_bp" ) {
if( file_exists( "$document_root/ko_center/bp/kohpx_bp.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/bp/kohpx_bp.php' );
return;
}
}
}
if( $options[1] == "aix" ) {
if( $options[2] == "_us" ) {
if( file_exists( "$document_root/ko_center/us/koaix_us.php" )) {
# header( 'Location: https:#147.238.94.126/ko_center/us/koaix_us.php' );
header( 'Location: /ko_center/us/koaix_us.php' );
return;
}
}
if( $options[2] == "_vg" ) {
if( file_exists( "$document_root/ko_center/vg/koaix_vg.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/vg/koaix_vg.php' );
return;
}
}
if( $options[2] == "_sw" ) {
if( file_exists( "$document_root/ko_center/sw/koaix_sw.php" )) {
# header( 'Location: https:#147.238.94.126/ko_center/sw/koaix_sw.php' );
header( 'Location: /ko_center/sw/koaix_sw.php' );
return;
}
}
if( $options[2] == "_hs" ) {
if( file_exists( "$document_root/ko_center/hs/koaix_hs.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/hs/koaix_hs.php' );
return;
}
}
if( $options[2] == "_kb" ) {
if( file_exists( "$document_root/ko_center/kb/koaix_kb.php" )) {
# header( 'Location: https:#147.238.94.126/ko_center/kb/koaix_kb.php' );
header( 'Location: /ko_center/kb/koaix_kb.php' );
return;
}
}
if( $options[2] == "_bp" ) {
if( file_exists( "$document_root/ko_center/bp/koaix_bp.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/bp/koaix_bp.php' );
return;
}
}
}
if( $options[1] == "rhe" ) {
if( $options[2] == "_us" ) {
if( file_exists( "$document_root/ko_center/us/korhe_us.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/us/korhe_us.php' );
return;
}
}
if( $options[2] == "_vg" ) {
if( file_exists( "$document_root/ko_center/vg/korhe_vg.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/vg/korhe_vg.php' );
return;
}
}
if( $options[2] == "_sw" ) {
if( file_exists( "$document_root/ko_center/sw/korhe_sw.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/sw/korhe_sw.php' );
return;
}
}
if( $options[2] == "_hs" ) {
if( file_exists( "$document_root/ko_center/hs/korhe_hs.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/hs/korhe_hs.php' );
return;
}
}
if( $options[2] == "_kb" ) {
if( file_exists( "$document_root/ko_center/kb/korhe_kb.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/kb/korhe_kb.php' );
return;
}
}
if( $options[2] == "_bp" ) {
if( file_exists( "$document_root/ko_center/bp/korhe_bp.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/bp/korhe_bp.php' );
return;
}
}
}
if( $options[1] == "win" ) {
if( $options[2] == "_us" ) {
if( file_exists( "$document_root/ko_center/us/kowin_us.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/us/kowin_us.php' );
return;
}
}
if( $options[2] == "_vg" ) {
if( file_exists( "$document_root/ko_center/vg/kowin_vg.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/vg/kowin_vg.php' );
return;
}
}
if( $options[2] == "_sw" ) {
if( file_exists( "$document_root/ko_center/sw/kowin_sw.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/sw/kowin_sw.php' );
return;
}
}
if( $options[2] == "_hs" ) {
if( file_exists( "$document_root/ko_center/hs/kowin_hs.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/hs/kowin_hs.php' );
return;
}
}
if( $options[2] == "_kb" ) {
if( file_exists( "$document_root/ko_center/kb/kowin_kb.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/kb/kowin_kb.php' );
return;
}
}
if( $options[2] == "_bp" ) {
if( file_exists( "$document_root/ko_center/bp/kowin_bp.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/bp/kowin_bp.php' );
return;
}
}
}
if( $options[1] == "uss" ) {
if( $options[2] == "_us" ) {
if( file_exists( "$document_root/ko_center/us/kouss_us.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/us/kouss_us.php' );
return;
}
}
if( $options[2] == "_vg" ) {
if( file_exists( "$document_root/ko_center/vg/kouss_vg.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/vg/kouss_vg.php' );
return;
}
}
if( $options[2] == "_sw" ) {
if( file_exists( "$document_root/ko_center/sw/kouss_sw.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/sw/kouss_sw.php' );
return;
}
}
if( $options[2] == "_hs" ) {
if( file_exists( "$document_root/ko_center/hs/kouss_hs.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/hs/kouss_hs.php' );
return;
}
}
if( $options[2] == "_kb" ) {
#/ if( file_exists( "$document_root/ko_center/kb/kouss_kb.php" )) {
#/ header( 'Location: https:#147.238.94.126/ko_center/kb/kouss_kb.php' );
#/ return;
#/ }
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
$html .= "<h1>kouss_kb</h1>\n";
$html .= "<h2>knowledgebase</h2>\n";
$html .= "<a href=$php_self/ko_center/uss target=_blank>kouss_rpts</a><br>\n";
$html .= "<hr>\n";
$html .= ko_ls( $options, "./uss" );
print( $html );
return;
}
if( $options[2] == "_bp" ) {
if( file_exists( "$document_root/ko_center/bp/kouss_bp.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/bp/kouss_bp.php' );
return;
}
}
}
if( $options[1] == "aac" ) {
if( $options[2] == "_us" ) {
if( file_exists( "$document_root/ko_center/us/koaac_us.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/us/koaac_us.php' );
return;
}
}
if( $options[2] == "_vg" ) {
if( file_exists( "$document_root/ko_center/vg/koaac_vg.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/vg/koaac_vg.php' );
return;
}
}
if( $options[2] == "_sw" ) {
if( file_exists( "$document_root/ko_center/sw/koaac_sw.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/sw/koaac_sw.php' );
return;
}
}
if( $options[2] == "_hs" ) {
if( file_exists( "$document_root/ko_center/hs/koaac_hs.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/hs/koaac_hs.php' );
return;
}
}
if( $options[2] == "_kb" ) {
#/ if( file_exists( "$document_root/ko_center/kb/koaac_kb.php" )) {
#/ header( 'Location: https:#147.238.94.126/ko_center/kb/koaac_kb.php' );
#/ return;
#/ }
if( $options[3] == "search" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
print( "$html" );
koaac_kb_update_form();
return;
}
if( $options[3] == "new" ) {
# $html = "";
# $html .= html_header($options);
# $html .= html_btn_squares($options);
# $html .= leds_show( $options );
# $html .= html_kb_Links($options);
$html .= koaac_kb_new_form($options);
print( $html );
return;
}
if( $options[3] == "add" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
print( "$html" );
koaac_kb_add_form();
return;
}
if( $options[3] == "mod" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
print( "$html" );
koaac_kb_mod_form( $kbid );
return;
}
if( $options[3] == "upd" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
print( "$html" );
koaac_kb_upd_form( $kbid );
return;
}
if( $options[3] == "view" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
print( "$html" );
koaac_kb_view_form( $kbid );
return;
}
$kbfile = $GLOBALS['kbfile'];
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
$html .= "<h1>koaac_kb</h1>\n";
$html .= "<h2>knowledgebase</h2>\n";
$html .= "<a href=$php_self?q=detail/aac/_kb/new>search</a><br>\n";
$html .= "<a href=$php_self?q=detail/aac/_kb/new>new</a><br>\n";
$html .= "<a href=$php_self?q=detail/aac/_kb/update>update</a><br>\n";
$html .= "<a href=$php_self?q=detail/aac/_kb/new>mod</a><br>\n";
$html .= "<hr>\n";
$html .= "<a href=$php_self?q=db/grid/koaac_kb/kb target=_blank>grid</a><br>\n";
$html .= "<hr>\n";
$html .= "<a href=$php_self?q=pdo_cr_kb>pdo_cr_kb</a><br>\n";
$html .= "<a href=$php_self?q=pdo_cr_flds>pdo_cr_flds</a><br>\n";
$html .= "<hr>\n";
$html .= "kbfile=[$kbfile]<br>\n";
print( $html );
return;
}
if( $options[2] == "_bp" ) {
if( file_exists( "$document_root/ko_center/bp/koaac_bp.php" )) {
header( 'Location: https:#147.238.94.126/ko_center/bp/koaac_bp.php' );
return;
}
}
if( $options[2] == "ko_center" ) {
$html .= "<hr>ko_center_822<hr>\n";
}
if( $options[2] == "ko_centere" ) {
$html .= "<hr>ko_centere_822<hr>\n";
}
if( $options[2] == "ko_centerd" ) {
$html .= "<hr>ko_centerd_822<hr>\n";
}
if( $options[2] == "ko_centert" ) {
$html .= "<hr>ko_centert_822<hr>\n";
}
}
# printf( "$progid $dttm MSG_1360: $options[0] $options[1] $option2[2]<hr>xxxxxxxxxxxx<hr>\n" );
$output = leds_detail( $options );
printf( $output );
return;
}
if( $options[0] == "view" ) { leds_view( $options ); return; }
if( $options[0] == "menu" ) { leds_menu( $options ); return; }
if( $options[0] == "tools" ) {
$html = "";
# printf( "<html><title>ko_center.php tools</title><body bgcolor=lightblue><hr>tools<hr></body></html>\n" );
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= html_btn_footer($options,"");
$html .= html_footer($options,"");
print( $html );
return;
}
if( $options[0] == "scrub" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
# $html = scrub_show( $options );
# $output .= "<hr><a href=/ko_center/scrub.php target=_blank><img src=./imgs/scrubbrush01.jpg width=100 height=100 border=0></a><hr>\n";
# $output .= "<hr><a href=/ko_center/scrub.php target=_blank><img src=./imgs/scrubbrush02.jpg width=100 height=100 border=0></a><hr>\n";
# $output .= "<a href=$php_self?q=scrub_upload_form/$led_name>scrub_upload_form $led_name</a><br/>\n";
$html .= "ko_scrub will parse a file for ip, mac, hostname, ssn and replace with labels<br>\n";
$html .= "<hr>\n";
$html .= "<a href=/ko_center/ko_scrub_test.log target=_blank>ko_scrub_test.log</a><br>\n";
$html .= "<hr>\n";
$html .= "<a href=https:#147.238.94.126/ko_center/ko_center.php?q=scrub_upload_form target=_blank>\n";
$html .= "<img src=\"imgs/scrubbrush.png\" alt=\"btn_black_scrub scrub_upload_form\" border=0 height=\"40\" width=\"40\" />";
$html .= "</a><hr>\n";
$html .= "<br>ko_scrub 0.2 multiple file download tests<br>\n";
$html .= "<a href=/biupload/index.html target=_blank><img src=imgs/scrubbrush01.png width=30 height=30 border=0> biupload </a>\n";
$html .= "       ";
$html .= "<a href=/h5upload/index.html target=_blank><img src=imgs/scrubbrush01.png width=30 height=30 border=0> h5upload</a>\n";
$html .= "       ";
$html .= "<a href=/plupload/examples/scrub.html target=_blank><img src=imgs/scrubbrush01.png width=30 height=30 border=0> plupload</a>\n";
$html .= html_footer($options,"");
print( $html );
return;
}
if( $options[0] == "scrub_upload_form" ) {
scrub_upload_form( $options );
return;
}
if( $options[0] == "scrub_upload" ) {
$html=scrub_upload( $options );
echo $html;
return;
}
if( $options[0] == "csv2db3" ) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
$html .= "ko_csv2db3 will parse a file csv file and create db3 file<br>\n";
$html .= "<hr>\n";
$html .= "<a href=/ko_center/ko_csv2db3.csv target=_blank>ko_csv2db3.csv</a><br>\n";
$html .= "<a href=/ko_center/ko_csv2db3.psv target=_blank>ko_csv2db3.psv</a><br>\n";
$html .= "<hr>\n";
$html .= "<a href=https:#147.238.94.126/ko_center/ko_center.php?q=csv2db3_upload_form target=_blank>\n";
$html .= "<img src=\"imgs/scrubbrush.png\" alt=\"btn_black_scrub csv2db3_upload_form\" border=0 height=\"40\" width=\"40\" />";
$html .= "</a><hr>\n";
$html .= "<br>ko_csv2db3 0.1 multiple file download tests<br>\n";
if( $options[1] != "" ) {
$csvfil=$options[1];
$delimiter="|";
if( preg_match( "/csv$/i", $csvfil )) { $delimiter = ","; }
$html_csv2db3=csv2db3($csvfil, $delimiter);
$html .= $html_csv2db3;
}
$html .= html_footer($options,"");
print( $html );
return;
}
if( $options[0] == "csvdb3_upload_form" ) {
csv2db3_upload_form( $options );
return;
}
if( $options[0] == "csv2db3_upload" ) {
#/ printf( "BUGS_SCRUB_UPLOAD_238: output=[$output]\n" );
$html=csv2db3_upload( $options );
echo $html;
return;
}
if( $options[0] == "leds_update_form" ) { leds_update_form( $options ); return; }
if( $options[0] == "leds_update" ) {
#/ printf( "BUGS_LEDS_UPDATE_235: option=[$options[0]]<br>\n" );
#/ printf( "BUGS_LEDS_UPDATE_236: option1=[$options[1]]<br>\n" );
#/ printf( "BUGS_LEDS_UPDATE_237: option2=[$options[2]]<br>\n" );
#/ $output=ko_upload( $options );
#/ printf( "BUGS_LEDS_UPDATE_238: output=[$output]\n" );
leds_update( $options );
return;
}
if( $options[0] == "mail" ) { ko_imap( $options ); return; }
if( $options[0] == "list" ) { leds_list( $options ); return; }
if( $options[0] == "install" ) { leds_install("new"); return; }
if( $options[0] == "reinstall" ) { leds_install("old"); return; }
if( $options[0] == "test" ) { leds_test( $options ); return; }
if( $options[0] == "local" ) { localcmds( $options ); return; }
if( $options[0] == "docview" ) {
$dbcode=$options[1];
$dbtable=$options[2];
$dbrowid=$options[3];
$page=$options[4];
docview( $dbcode, $dbtable, $dbrowid,$page );
return;
}
if( $options[0] == "set" ) {
# print( "<hr><a href=http:#$http_host$php_self?q=set>set</a><hr>\n" );
$url_setvar=$options[1];
$url_setval=$options[2];
switch( true ) {
case ($url_setvar == "theme" ):
$setvals = explode( " ", "swanky redmond humanity frog darkness lightness" );
foreach( $setvals as $setval ) {
if( $setval == $url_setval ) {
$_SESSION['theme'] = $url_setval;
# print( "$url_setvar $url_setval _SESSION['theme']=".$_SESSION['theme']."<br>\n" );
}
}
break;
case ($url_setvar == "role" ):
$setvals = explode( " ", "admin local mgr op user anon" );
foreach( $setvals as $setval ) {
# print( "BUGS_254 setval=$setval url_setval=$url_setval<br>\n" );
if( $setval == $url_setval ) {
$_SESSION['role'] = $url_setval;
# print( "$url_setvar $url_setval _SESSION['role']=".$_SESSION['role']."<br>\n" );
# print( "BUGS_255_match setval=$setval url_setval=$url_setval<br>\n" );
}
}
break;
case ($url_setvar == "hs" ):
# $setvals = explode( " ", "none all grid us hw n11" );
$setvals = explode( " ", "all grid us hw n11" );
foreach( $setvals as $setval ) {
if( $setval == $url_setval ) {
$_SESSION['hs_type'] = $url_setval;
# print( "$url_setvar $url_setval _SESSION['hs_type']=".$_SESSION['hs_type']."<br>\n" );
}
}
break;
case ($url_setvar == "org" ):
$setvals = explode( " ", "a e h o p t" );
foreach( $setvals as $setval ) {
if( $setval == $url_setval ) {
$_SESSION['org_type'] = $url_setval;
# print( "$url_setvar $url_setval _SESSION['org_type']=".$_SESSION['org_type']."<br>\n" );
}
}
case ($url_setvar == "preview" ):
$setvals = explode( " ", "on off" );
foreach( $setvals as $setval ) {
if( $setval == $url_setval ) {
$_SESSION['preview'] = $url_setval;
# print( "$url_setvar $url_setval _SESSION['preview']=".$_SESSION['preview']."<br>\n" );
}
}
case ( $url_setvar == "grid_zoom" ):
if( $_SESSION['grid_zoom'] ) { unset( $_SESSION['grid_zoom'] ); }
else { $_SESSION['grid_zoom'] = true; }
break;
}
$location_url="$php_self?q=config";
if( $_REQUEST['callback'] != "" ) { $location_url=$_REQUEST['callback']; }
# print( "<a href=$location_url>$location_url</a><br>\n" );
header( 'Location:'.$location_url );
# html_page($options);
return;
}
if( $options[0] == "leds" ) {
if( $options[1] == "fp" ) {
printf( "\n<hr>fp<hr>\n" );
return;
}
if( $options[1] == "us" ) { /* users */
printf( "\n<hr>us<hr>\n" );
return;
}
if( $options[1] == "hs" ) { /* hosts */
printf( "\n<hr>hs<hr>\n" );
return;
}
if( $options[1] == "os" ) { /* os teams */
printf( "\n<hr>hs<hr>\n" );
return;
}
if( $options[1] == "sw" ) { /* swlist */
printf( "\n<hr>sw<hr>\n" );
return;
}
html_page($options);
return;
}
if( $options[0] == "db" ) {
$html_btn_squares = html_btn_squares($options);
if( $options[1] == "grid" ) {
$html_body .=pdo_grid($options );
$html_head .= html_header($options);
$html = $html_head . $html_btn_squares . $html_body . $html_foot;
print( $html );
return;
}
if( $options[1] == "load" ) { pdo_load($options ); return; }
if( $options[1] == "unload" ) { pdo_unload($options ); return; }
if( $options[1] == "gridxml" ) { pdo_gridxml($options ); return; }
if( $options[1] == "list" ) { pdo_list($options ); return; }
if( $options[1] == "update" ) { pdo_update($options ); return; }
# $callback="$php_self?q=zoom/$url_zmcode/$url_zmtype/$url_zmrowid";
$html_body = "<hr>\n";
$html_body .= "<a href=$php_self?q=db/grid>db grid</a><br>\n";
# $html_body .= "<a href=$php_self?q=db/unload>db unload</a><br>\n";
# $html_body .= "<a href=$php_self?q=db/load>db load</a><br>\n";
# $html_body .= "<a href=$php_self?q=db/list><i>db list</i></a><br>\n";
# $html_body .= "<a href=$php_self?q=db/update><i>db update</i></a><br>\n";
$html_body .= "<hr>\n";
$html_head = html_header($options);
$html = $html_head . $html_btn_squares . $html_body . $html_foot;
print( $html );
return;
}
if( $options[0] == "telnet" ) { telnet($options); return; }
if( $options[0] == "pdo_insert_pano" ) { pdo_insert_pano($options ); return; }
if( $options[0] == "pdo_insert_obj" ) { pdo_insert_obj($options ); return; }
if( $options[0] == "config" ) {
leds_config($options);
return;
}
if( $options[0] == "zoom" ) {
leds_zoom($options);
return;
}
if( $options[0] == "zoomxml" ) {
if( $_SESSION['zoomxml'] ) {
$zoomxml=$_SESSION['zoomxml']; print( $zoomxml ); }
# else {
# leds_zoomxml($options);
# }
return;
}
if( $options[0] == "zview" ) {
$output = leds_zview($options );
print( "$output" );
return;
}
if( $options[0] == "zviewxml" ) {
$zmcode=$options[1];
$zmtype=$options[2];
$zmrowid=$options[3];
leds_zview_xml($options);
# print( "BUGS_368 zviewxml: zmcode=[$zmcode] zmtype=[$zmtype] zmrowid=[$zmrowid]<br>\n" );
return;
if( $zmrowid != "" ) {
leds_zview_xml($options );
return;
}
if( $_SESSION['zoomxml'] ) {
$zoomxml = $_SESSION['zoomxml'];
print( $zoomxml );
return;
}
return;
}
if( $options[0] == "zview" ) { leds_zview($options ); return; }
# if( $options[0] == "zoom" ) { leds_zviewxml($options); return; }
if( $options[0] == "zview_xml" ) { leds_zview_xml($options); return; }
if( $options[0] == "zview_details" ) {
leds_zview_details($options); return;
}
if( $options[0] == "zoom" ) {
$output = leds_zoom($options);
print( "$output" );
return;
}
if( $options[0] == "ptobject" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_ptobject($options);
print( "$output" );
return;
}
if( $options[0] == "ptviewer" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_ptviewer($options);
print( "$output" );
return;
}
if( $options[0] == "dc" ) {
$dttm=date("Ymd_His");
# printf( "<hr>BUGS_1430 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n" );
$html = html_btn_squares( $options, "" );
$html .= leds_show( $options );
# $html .= leds_show_context( $options );
# $html .= html_dc_links( $options );
if( $options[1] == "" ) {
$html .= "<hr>BUGS_1201 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$html" );
return;
}
else {
#/ if( $option1 == "new" ) {
#/ $html .= "<hr>BUGS_1333 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
#/ $html .= html_dc_links($options);
#/ print( $html );
# $html = dc_new_form( $options );
# print( $html );
# return;
# }
# if( $option1 == "mod" ) {
# printf( "<h3>BUGS_1340_MOD</h3>\n" );
# $kbid=$option2;
## $html .= "<hr>BUGS_1220 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# $html .= koaac_kb_mod_form( $kbid );
# $html .= koaac_kb_new_form( $kbid );
# print( "$html" );
# return;
# }
if( $option1 == "rpts" ) {
printf( "BUGS_1460 RPTS<hr>\n" );
$html .= rpts( $options );
$html .= leds_dc_rpts( $options );
print( "$html" );
return;
}
if( $option1 == "rptsxml" ) {
$html .= rptsxml( $options );
print( "$html" );
return;
}
# if( $option1 == "view" ) {
# $html = html_header($options);
# $html .= "";
# $html .= html_btn_squares( $options, "" );
# $html .= "<h3>ko_center_reports</h3>\n";
# $html .= leds_dc($options);
# $html .= html_dc_links($options);
# $html .= "<hr>BUGS_1240 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# print( "$html" );
# return;
# }
if( $option1 == "search" ) {
$output = html_btn_squares( $options, "" );
# $output .= leds_kb($options);
$output .= "<hr>BUGS_1250 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
$output .= "<hr>BUGS_1231 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
}
$output .= "<hr>BUGS_1235 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
}
# knowledgebase
if( $options[0] == "kb" ) {
$dttm=date("Ymd_His");
# printf( "<hr>BUGS_1200 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n" );
$html = html_btn_squares( $options, "" );
$html .= leds_show( $options );
$html .= html_kb_links( $options );
if( $options[1] == "" ) {
# $html .= "<hr>BUGS_1201 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$html" );
return;
}
else {
if( $option1 == "new" ) {
$html .= "<hr>BUGS_1333 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# $html .= html_kb_links($options);
# print( $html );
$html = koaac_kb_new_form( $options );
print( $html );
return;
}
if( $option1 == "mod" ) {
printf( "<h3>BUGS_1340_MOD</h3>\n" );
$kbid=$option2;
# $html .= "<hr>BUGS_1220 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# $html .= koaac_kb_mod_form( $kbid );
$html .= koaac_kb_new_form( $kbid );
print( "$html" );
return;
}
if( $option1 == "rpts" ) {
$html .= rpts( $options );
$html .= leds_kb_rpts( $options );
print( "$html" );
return;
}
if( $option1 == "rptsxml" ) {
$html .= rptsxml( $options );
print( "$html" );
return;
}
if( $option1 == "view" ) {
# $html = html_header($options);
# $html .= "";
# $html .= html_btn_squares( $options, "" );
$html .= "<h3>ko_center_knowledgebase_view</h3>\n";
$html .= leds_kb($options);
# $html .= html_kb_links($options);
# $html .= "<hr>BUGS_1240 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$html" );
return;
}
if( $option1 == "search" ) {
$output = html_btn_squares( $options, "" );
# $output .= leds_kb($options);
$output .= "<hr>BUGS_1250 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
$output .= "<hr>BUGS_1231 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
}
$output .= "<hr>BUGS_1565 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
}
if( $options[0] == "nodes" ) {
$dttm=date("Ymd_His");
# printf( "<hr>BUGS_1390 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n" );
# return;
$html = html_btn_squares( $options, "" );
$html .= leds_show( $options );
$html .= html_nodes_links( $options );
if( $options[1] == "" ) {
$html .= "<hr>BUGS_1201 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$html" );
return;
}
else {
if( $option1 == "new" ) {
$html .= "<hr>BUGS_1333 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# $html .= html_nodes_links($options);
# print( $html );
# $html = koaac_kb_new_form( $options );
print( $html );
return;
}
if( $option1 == "mod" ) {
printf( "<h3>BUGS_1340_MOD</h3>\n" );
$kbid=$option2;
# $html .= "<hr>BUGS_1220 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# $html .= koaac_kb_mod_form( $kbid );
$html .= koaac_kb_new_form( $kbid );
print( "$html" );
return;
}
if( $option1 == "rpts" ) {
$html .= leds_nodes_rpts( $options );
print( "$html" );
return;
}
if( $option1 == "view" ) {
# $html = html_header($options);
# $html .= "";
# $html .= html_btn_squares( $options, "" );
$html .= "<h3>ko_center_nodes_view</h3>\n";
# $html .= leds_nodes($options);
$html .= html_nodes_links($options);
$html .= "<hr>BUGS_1433 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$html" );
return;
}
}
if( $option1 == "search" ) {
$output = html_btn_squares( $options, "" );
# $output .= leds_kb($options);
$output .= "<hr>BUGS_1250 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
$output .= "<hr>BUGS_1231 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
}
if( $options[0] == "ko_center" ) {
$dttm=date("Ymd_His");
# printf( "<hr>BUGS_1400 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n" );
$html = html_btn_squares( $options, "" );
$html .= leds_show( $options );
# $html .= leds_smdb($options);
$html .= "<h3>ko_center ko_centerd detail </h3>\n";
$html .= "<a href=$php_self?q=db/grid/ko_centerd/certs >grid_search </a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=db/grid/ko_centerd/rpts >grid_rpts</a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=ko_centerd/rpts >rpts</a>\n";
$html .= "       ";
$html .= "<a href=$php_self?q=ko_centerd/view >view</a>\n";
$html .= "       ";
$html .= "<hr>\n";
# $html .= leds_ko_centerd($options);
if( $options[1] == "" ) {
# $output .= "<hr>BUGS_1301 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$html" );
return;
}
else {
#/ if( $option1 == "new" ) {
#/ $output .= koaac_kb_add_form();
#/ print( "$output" );
#/ return;
#/ }
if( $option1 == "view" ) {
$ko_centerd_code=$option2;
$output .= leds_ko_centerd($options);
print( "$output" );
return;
}
if( $option1 == "rpts" ) {
# $output .= "<h2>BUGS_1415 rpts</h2>\n";
$output .= leds_ko_centerd_rpts( $options );
print( "$output" );
return;
}
# if( $option1 == "mod" ) {
# $cert_id=$option2;
# $output = html_btn_squares( $options, "" );
# $output .= leds_certs($options);
# $output .= "<hr>BUGS_1320 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# print( "$output" );
# return;
# }
# if( $option1 == "add" ) {
# $output = html_btn_squares( $options, "" );
# $output .= leds_certs($options);
# $output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# print( "$output" );
# return;
# }
# if( $option1 == "search" ) {
# $output = html_btn_squares( $options, "" );
# $output .= leds_kb($options);
# $output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
# print( "$output" );
# return;
# }
$output .= "<hr>BUGS_1956 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
$output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
if( $options[0] == "certs" ) {
$dttm=date("Ymd_His");
# printf( "<hr>BUGS_1200 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n" );
$output = html_btn_squares( $options, "" );
$output .= leds_show( $options );
# $output .= leds_certs($options);
$output .= "<h3>ko_center certs detail </h3>\n";
$output .= "<a href=$php_self?q=db/grid/ko_center_certs/certs >grid_search </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_certs/rpts >grid_rpts</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=certs/rpts >rpts</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=certs/view >view</a>\n";
$output .= "       ";
$output .= "<hr>\n";
# $output .= leds_certs($options);
if( $options[1] == "" ) {
# $output .= "<hr>BUGS_1301 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
else {
if( $option1 == "new" ) {
$output .= koaac_kb_add_form();
print( "$output" );
return;
}
if( $option1 == "view" ) {
$cert_code=$option2;
$output .= leds_certs($options);
print( "$output" );
return;
}
if( $option1 == "rpts" ) {
# $output .= "<h2>BUGS_1315 rpts</h2>\n";
$output .= leds_certs_rpts( $options );
print( "$output" );
return;
}
if( $option1 == "mod" ) {
$cert_id=$option2;
$output = html_btn_squares( $options, "" );
$output .= leds_certs($options);
# $output .= "<hr>BUGS_1320 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
if( $option1 == "add" ) {
$output = html_btn_squares( $options, "" );
# $output .= leds_certs($options);
$output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
if( $option1 == "search" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_kb($options);
# $output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
$output .= "<hr>BUGS_2036 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
$output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
# certs
if( $options[0] == "certs1" ) {
if( $options[2] == "" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_certs($options);
$output .= "<h2>CERTS_1140 o0=[$option1] o1=[$option1] o2=[$option2] o3=[$options3]</h2>\n";
print( "$output" );
return;
}
else {
if( $option1 == "view" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_certs($options);
print( "$output" );
return;
}
if( $option1 == "mod" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_certs($options);
print( "$output" );
return;
}
if( $option1 == "add" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_certs($options);
print( "$output" );
return;
}
$output = html_btn_squares( $option2, "" );
$output .= "<h2>CERTS_1180 UNSUPPORTED COMMAND o0=[$option1] o1=[$option1] o2=[$option2] o3=[$options3]</h2>\n";
}
}
if( $options[0] == "cons" ) {
$dttm=date("Ymd_His");
# printf( "<hr>BUGS_1200 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n" );
$output = html_btn_squares( $options, "" );
$output .= leds_show( $options );
# $output .= leds_certs($options);
$output .= "<h3>ko_center cons detail </h3>\n";
$output .= "<a href=$php_self?q=db/grid/ko_center_cons/rsncons >grid_search </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_cons/rpts >grid_rpts</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=cons/rpts >rpts</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=cons/view >view</a>\n";
$output .= "       ";
$output .= "<hr>\n";
# $output .= leds_cons($options);
if( $options[1] == "" ) {
# $output .= "<hr>BUGS_1301 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
else {
## if( $option1 == "new" ) {
## $output .= koaac_kb_add_form();
## print( "$output" );
## return;
## }
if( $option1 == "view" ) {
$cert_code=$option2;
$output .= leds_cons($options);
print( "$output" );
return;
}
if( $option1 == "rpts" ) {
# $output .= "<h2>BUGS_1315 rpts</h2>\n";
$output .= leds_cons_rpts( $options );
print( "$output" );
return;
}
if( $option1 == "mod" ) {
$cert_id=$option2;
$output = html_btn_squares( $options, "" );
$output .= leds_cons($options);
# $output .= "<hr>BUGS_1320 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
if( $option1 == "add" ) {
$output = html_btn_squares( $options, "" );
# $output .= leds_cons($options);
$output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
if( $option1 == "search" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_kb($options);
# $output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
$output .= "<hr>BUGS_2148 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
$output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
if( $options[0] == "dc" ) {
$dttm=date("Ymd_His");
# printf( "<hr>BUGS_1200 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n" );
$output = html_btn_squares( $options, "" );
$output .= leds_show( $options );
# $output .= leds_certs($options);
$output .= "<h3>ko_center test detail </h3>\n";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/ko_center_hosts >ko_center_hosts </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/ko_center_servers >ko_center_servers </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/rsn_servers >rsn_servers </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/hrc_servers >hrc_servers </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/hrc_hosts >hrc_hosts </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/datacall >datacall </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/rpts >rpts</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=hosts/rpts >rpts</a>\n";
$output .= "       ";
}
if( $options[0] == "hosts" ) {
$dttm=date("Ymd_His");
# printf( "<hr>BUGS_1200 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n" );
$output = html_btn_squares( $options, "" );
$output .= leds_show( $options );
# $output .= leds_certs($options);
$output .= "<h3>ko_center hosts detail </h3>\n";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/ko_center_hosts >ko_center_hosts </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/ko_center_servers >ko_center_servers </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/rsn_servers >rsn_servers </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/hrc_servers >hrc_servers </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/hrc_hosts >hrc_hosts </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/datacall >datacall </a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=db/grid/ko_center_hosts/rpts >rpts</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=hosts/rpts >rpts</a>\n";
$output .= "       ";
$output .= "<a href=$php_self?q=hosts/view >view</a>\n";
$output .= "       ";
$output .= "<hr>\n";
# $output .= leds_cons($options);
if( $options[1] == "" ) {
# $output .= "<hr>BUGS_1301 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
else {
## if( $option1 == "new" ) {
## $output .= koaac_kb_add_form();
## print( "$output" );
## return;
## }
if( $option1 == "view" ) {
$cert_code=$option2;
$host_code=$option2;
$output .= leds_hosts($options);
print( "$output" );
return;
}
if( $option1 == "rpts" ) {
# $output .= "<h2>BUGS_1315 rpts</h2>\n";
$output .= leds_hosts_rpts( $options );
print( "$output" );
return;
}
if( $option1 == "mod" ) {
$cert_id=$option2;
$output = html_btn_squares( $options, "" );
$output .= leds_hosts($options);
# $output .= "<hr>BUGS_1320 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
if( $option1 == "add" ) {
$output = html_btn_squares( $options, "" );
# $output .= leds_hosts($options);
$output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
if( $option1 == "search" ) {
$output = html_btn_squares( $options, "" );
$output .= leds_hosts($options);
# $output .= "<hr>BUGS_1330 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( "$output" );
return;
}
$output .= "<hr>BUGS_2262 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
$output .= "<hr>BUGS_1820 $progid $dttm o0=$option0 o1=$option1 o2=$option2 o3=$option3<hr>\n";
print( $output );
return;
}
if( $options[0] == "iperms" ) { iperms($options); return; }
if( $options[0] == "run" ) {
$function_name=$options[1];
if( function_exists( $function_name )) {
# print( "startup MSG: EXISTS $function_name<br>\n" );
html_page($options);
$function_name( $options );
}
else {
html_page($options);
print( "startup ERR: UNAVAILABLE $options[1]<br>\n" );
# $functions = get_defined_functions();
# print_r($functions['user']);
}
return;
}
if( $_REQUESTS['todo'] ) { startup_todo(); }
if( $options[0] == "install_leds" ) {pdo_cr_leds(); pdo_insert_leds(); return;}
if( $options[0] == "install_users" ) {pdo_cr_users(); pdo_insert_users(); return;}
# leds_install();
# leds_query();
# $option0=$options[0];
# printf( "<hr>BUGS_501 option=$option0<hr>\n" );
html_page($options);
# printf( "<hr>BUGS_502 option=$option0<hr>\n" );
# fgmenu_htm($options);
# fgmenu_dyn($options);
# print( "BUGS_2470 startup end<br>\n" );
# leds_show($options);
}
function startup_todo() {
# phpinfo();
$progid="ko";
$dttm=date('Ymd_His');
# $img="/fb/pages/zn/zn_1.jpg";
# $img="/fb/byrdbellvjk/pages/zn/zn_1.jpg";
# $dr=$_SERVER['DOCUMENT_ROOT'];
# $drimg = $dr.$img;
# $htmout="";
# $w=100; $h=150;
# $tn=img2tn($drimg,$w,$h);
# $htmout .= "img=$img<br>\n";
# $htmout .= "drimg=$drimg<br>\n";
# $htmout .= "<a href=$img target=_blank>";
# $htmout .= " <img src=$img height=$h border=0>";
# $htmout .= " </a>\n";
# print( $htmout );
# exit;
# if( isset($_REQUEST['kups'])) {
# $kups=$_REQUEST['kups'];
# $htmout = kups($kups);
# printf( $htmout );
# exit;
# }
if( isset($_REQUEST['plupload'])) {
# printf( "BUGS_305 PLUPLOAD<br>\n" );
$args="args";
$htmout=plupload($args);
printf( $htmout );
exit;
}
if( isset($_REQUEST['contacts'])) {
$htmout="";
$htmout=contacts('');
# printf($htmout);
exit;
}
if( isset($_REQUEST['kov'])) {
$htmout="";
$htmout=kov('');
# printf($htmout);
exit;
}
if( isset($_REQUEST['leds'])) {
$htmout=leds('');
printf( $htmout );
exit;
}
if( isset($_REQUEST['lists'])) {
# $file=""; $dr=""; $j=0; $k=0; $htmout=""; $db3="ko.db3"; $tbl="items";
$file=""; $dr=""; $j=0; $k=0; $htmout=""; $db3="ko_todo.db3"; $tbl="items";
$lists=$_REQUEST['lists'];
$tbl=$lists;
if($_SERVER['DOCUMENT_ROOT']) { $dr=$_SERVER['DOCUMENT_ROOT']; }
$drfile="$dr$file";
$drdb3="$dr$db3";
if( isset($_REQUEST['db3'])) {
$htmout=""; $j=0; $k=0;
$db3=$_REQUEST['db3'];
$db3fil="$dr/$db3";
$sql="select * from $tbl";
$fld="";
if( ! is_file($db3fil)) {
printf( "BUGS_313 NOTFOUND db3fil=$db3fil<br>\n" );
exit;
}
# $htmout .= sqlq( $db3fil, $sql, $fld );
$pdo = newpdo($db3fil);
if( $tbl == "letter" ) {
$sql="select rowid,text,desc from $tbl";
$psv="rowid|text|desc\n";
$sql="select rowid,text,desc from $tbl";
foreach( $pdo->query($sql) as $row ) {
$rowid=$row['rowid'];
$text=$row['text'];
$desc=$row['desc'];
$psv.="$rowid|$text|$desc\n";
}
printf( $htmout."\n".$psv );
exit;
}
if( $tbl == "contacts" ) {
$sql="select rowid,* from $tbl";
$psv="rowid|id|name|phn|firm|url|email|note|action\n";
$sql="select rowid,* from $tbl";
foreach( $pdo->query($sql) as $row ) {
$rowid=$row['rowid'];
$id=$row['id'];
$name=$row['name'];
$phn=$row['phn'];
$firm=$row['firm'];
$url=$row['url'];
$email=$row['email'];
$note=$row['note'];
$action=$row['action'];
$psv.="$rowid|$id|$name|$phn|$firm|$url|$email|$note|$action\n";
}
printf( $htmout."\n".$psv );
exit;
}
if( $tbl == "leds" ) {
$sql="select rowid,* from $tbl";
$psv="ROWID|led_id|led_status|led_code|led_name|led_dttm|led_color|led_speed|led_type|led_date|led_cmd|led_cmdout|led_desc|led_misc|led_city|led_bldg|led_loc_code|led_floor|led_group|led_orgs|led_title|led_published|led_width|led_height|led_comment|led_filename|led_user|led_user_ip|led_referer|led_remote_port|led_viewrole|led_user_agent|led_unique_id|led_err|led_fix|led_os";
$sql="select * from $tbl";
$rowid="";
$j=0;
foreach( $pdo->query($sql) as $row ) {
$j=$j+1;
# $rowid=$row['rowid'];
$led_id=$row['led_id'];
$led_status=$row['led_status'];
$led_code=$row['led_code'];
$led_name=$row['led_name'];
$led_dttm=$row['led_dttm'];
$led_color=$row['led_color'];
$led_speed=$row['led_speed'];
# printf( "BUGS_2610 LEDS led_id=$led_id led_code=$led_code led_name=$led_name $led_color $led_speed\n" );
$led_type=$row['led_type'];
$led_date=$row['led_date'];
$led_cmd=$row['led_cmd'];
$led_cmdout=$row['led_cmdout'];
$led_desc=$row['led_desc'];
$led_misc=$row['led_misc'];
$led_city=$row['led_city'];
$led_bldg=$row['led_bldg'];
$led_loc_code=$row['led_loc_code'];
$led_floor=$row['led_floor'];
$led_group=$row['led_group'];
$led_orgs=$row['led_orgs'];
$led_title=$row['led_title'];
$led_published=$row['led_published'];
$led_width=$row['led_width'];
$led_height=$row['led_height'];
$led_comment=$row['led_comment'];
$led_filename=$row['led_filename'];
$led_user=$row['led_user'];
$led_user_ip=$row['led_user_ip'];
$led_referer=$row['led_referer'];
$led_remote_port=$row['led_remote_port'];
$led_viewrole=$row['led_viewrole'];
$led_user_agent=$row['led_user_agent'];
$led_unique_id=$row['led_unique_id'];
$led_err=$row['led_err'];
$led_fix=$row['led_fix'];
$led_os=$row['led_os'];
$psv.="$rowid|$led_id|$led_status|$led_code|$led_name|$led_dttm|$led_color|$led_speed|$led_type|$led_date|$led_cmd|$led_cmdout|$led_desc|$led_misc|$led_city|$led_bldg|$led_loc_code|$led_floor|$led_group|$led_orgs|$led_title|$led_published|$led_width|$led_height|$led_comment|$led_filename|$led_user|$led_user_ip|$led_referer|$led_remote_port|$led_viewrole|$led_user_agent|$led_unique_id|$led_err|$led_fix|$led_os<br>\n";
# printf( "BUGS_400 j=$j psv=$psv\n" );
}
printf( $psv );
exit;
}
$psv="rowid|pathfile|path|file|base|ext|dttm|exif_dt|exif_tm|desc|\n";
$sql="select rowid,pathfile,path,file,base,ext,dttm,exif_dt,exif_tm,desc from $tbl";
foreach( $pdo->query($sql) as $row ) {
$rowid=$row['rowid'];
$pathfile=$row['pathfile'];
$path=$row['path'];
$file=$row['file'];
$base=$row['base'];
$ext=$row['ext'];
$exif_dt=$row['exif_dt'];
$exif_tm=$row['exif_tm'];
$desc=$row['desc'];
$psv.="$rowid|$pathfile|$path|$file|$base|$ext|$dttm|$exif_dt|$exif_tm|$desc|\n";
}
printf( $htmout."\n".$psv );
exit;
}
if( $lists == "items" ) { $file="/ko/lists_items.txt"; }
if( $lists == "contacts" ) { $file="/ko/lists_contacts.txt"; }
if( $lists == "letter" ) { $file="/ko/lists_letter.txt"; }
if( $lists == "monkeytraps" ) { $file="/ko/lists_monkeytraps.txt"; }
if( $lists == "floods" ) { $file="/ko/lists_floods.txt"; }
if( $lists == "postturtles" ) { $file="/lists_postturtles.txt"; }
if( $lists == "coffee" ) { $file="/lists_coffee.txt"; }
$drfile="$dr$file";
if( is_file($drfile)) {
# printf( "BUGS_313 ___FOUND lists=$lists dr=$dr file=$file drfile=$drfile\n" );
$htmout=htmout_load($drfile);
}
else {
printf( "BUGS_313 NOTFOUND lists=$lists dr=$dr file=$file drfile=$drfile\n" );
exit;
}
printf( $htmout );
exit;
}
if( isset($_REQUEST['kups'])) {
$kups=$_REQUEST['kups'];
if( $kups == "" ) {
$htmout = kups('');
}
if( $kups == "review" ) {
$htmout = kups_review('');
}
# printf( "BUGS_295 isset _FILES<br>\n" );
if( $kups == "go" ) {
$htmout = img2dirs();
}
printf( $htmout );
exit;
}
if( isset($_FILES["kups"])) {
printf( "BUGS_295 isset _FILES<br>\n" );
$htmout = img2dirs();
printf( $htmout );
exit;
}
if( isset($_REQUEST["k9"])) {
$k9=$_REQUEST['k9'];
printf( "BUGS_295 isset _K9 k9=$k9<br>\n" );
$htmout = k9($k9);
printf( $htmout );
exit;
}
if( isset($_REQUEST['img2b64'] )) {
# img2b64( $imgfil, $fmt );
# img2b64("./imgs/btn/kobrd.png","png","b64" );
# img2b64("./imgs/bg/ko_colorado_white.jpg","jpg","b64" );
# img2b64("./imgs/btn/kobrd.png","png","html" );
# img2b64("./imgs/btn/kobrd.png","png","" );
$htmout = "";
$htmout .= "<html><head><title>/ko1/ko_todo.php?img2b64 20230129_1700</title></head>\n";
$img2b64=$_REQUEST['img2b64'];
$htm_koeye = gdImgToHTML( "./imgs/btn/koeye.png", $format='png' );
$htm_kobrd = gdImgToHTML( "./imgs/btn/kobrd.png", $format='png' );
$img_koeye = img2b64("./imgs/btn/koeye.png","png","html");
$img_kobrd = img2b64("./imgs/btn/kobrd.png","png","html");
$b64_koeye = img2b64("./imgs/btn/koeye.png","png","b64");
$b64_kobrd = img2b64("./imgs/btn/kobrd.png","png","b64");
$htmout .= "<a href=./imgs/btn/koeye.png target=_blank>\n";
$htmout .= $htm_koeye;
$htmout .= "</a><br>\n";
$htmout .= "<a href=./imgs/btn/kobrd.png target=_blank>\n";
$htmout .= $htm_kobrd;
$htmout .= "</a><br>\n";
$htmout .= "<hr color=black>\n";
$htmout .= "<a href=./imgs/btn/koeye.png target=_blank>\n";
$htmout .= $img_koeye;
$htmout .= "</a><br>\n";
$htmout .= "<a href=./imgs/btn/kobrd.png target=_blank>\n";
$htmout .= $img_kobrd;
$htmout .= "</a><br>\n";
$htmout .= "<hr color=black>\n";
$htmout .= "<a href=./imgs/btn/koeye.png target=_blank>\n";
$htmout .= "<img src=".$b64_koeye." height=30 border=0>\n";
$htmout .= "</a><br>\n";
$htmout .= "<a href=./imgs/btn/kobrd.png target=_blank>\n";
$htmout .= "<img src=". $b64_kobrd." height=30 border=0>\n";
$htmout .= "</a><br>\n";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
printf( $htmout);
exit;
}
if( isset($_FILES["image"])) {
printf( "BUGS_295 isset _FILES<br>\n" );
$htmout = img2dirs();
printf( $htmout );
exit;
}
if( isset($_REQUEST['txt2imgs'])) {
$htmout=txt2imgs('');
printf($htmout);
exit;
}
if( isset($_REQUEST['txt2img'])) {
$htmout="";
$img="./imgs/btn/koeye.png";
$fmt="b64";
$imgfil="./imgs/btn/kobrd.png";
$fontid="yokkmokk";
$text="sophia";
$fmt="";
$savefile="./imgs/btn/koeye_sophia.png";
$htmout=txt2img($imgfil,$fontid,$text,$fmt,$save);
printf($htmout);
exit;
}
if( isset($_REQUEST['gd'])) {
$options="";
$gd=$_REQUEST['gd'];
$htmout = gd($gd);
printf($htmout);
exit;
}
if( isset($_REQUEST['img2tn'])) {
$htmout = "";
$img=$_REQUEST['img2tn'];
if( $img == "" ) { $img="/fb/pages/zn/zn_1.jpg"; }
$htmout .= "<h1>BUGS_290 img2tn img=$img</h1>";
$htmout=img2tn($img);
printf( $htmout );
}
if( isset($_REQUEST['kin'])) {
$htmout = "";
$options="kin_options";
$htmout .= "<h1>BUGS_291 kin options=$options</h1>";
kin($options);
}
if( isset($_REQUEST['kup'])) {
printf( "<h1>BUGS_292 kup ko_kup</h1>" );
startup();
}
if( isset($_REQUEST['ko_kup'])) {
printf( "<h1>BUGS_293 ko_kup</h1>" );
ko_kup();
}
$args=array();
$id="";
$query_string="";
if( isset($_REQUEST['QUERY_STRING'])) {
$query_string = $_REQUEST['QUERY_string'];
}
# print( "\n<h1>BUGS_101 ko.php MAIN query_string=$query_string</h1><br>\n" );
if( isset($_REQUEST['ko_form']) || isset($_REQUEST['ko_form'] )) {
ko_form('');
exit;
}
if( isset($_REQUEST['ko_form_submit']) || isset($_REQUEST['ko_form_submit'] )) {
phpinfo();
exit;
}
if( isset($_REQUEST['scrub_upload_form']) || isset($_REQUEST['scrub_upload_form'] )) {
$options="";
scrub_upload_form( $options );
exit;
}
if( isset($_REQUEST['ko_upload']) || isset($_REQUEST['ko_upload2'] )) {
$options="";
$htmout=ko_upload2();
printf( "$htmout" );
exit;
}
if( isset($_REQUEST['ko_uploads']) || isset($_REQUEST['ko_uploads'] )) {
$options="";
$htmout=ko_uploads($options);
printf( "$htmout" );
exit;
}
if( isset($_REQUEST['bugs']) || isset($_REQUEST['bugs'] )) {
$options="";
$htmout=bugs($options);
printf( "<h1>BUGS_100 $htmout </h1>\n" );
exit;
}
$dbname="dgs";
$db3fil="$dbname.db3";
if( isset($_REQUEST['db2']) || isset($_REQUEST['db2'] )) {
$request_db2=$_REQUEST['db2'];
$server="localhost";
$user="root";
$pass="..root";
$htmout = "";
# $htmout .= htmout_head('db2');
$htmout .= "<html><head>\n";
$htmout .= htmout_load('ko_scripts.html');
$htmout .= htmout_load('ko_styles.html');
$htmout .= " </head>";
$htmout .= "<body bgcolor=linen onload=\"startup('db2);return false;\" >\n";
$htmout .= "<img src=\"/imgs/btn/koeye.png\" onclick=\"toggle('div_db2'); return false;\" height=24>\n";
$htmout .= "<div id=div_db2>\n";
$htmout .= " <hr color=goldenrod>\n";
$htmout .= " <h1>div_db2<h1>\n";
$server="localhost";
$dbname="dgs";
$sql2="show tables;";
$sql2="select * from ko_temp";
$sql2="select * from Players";
$dbname="zc"; $sql2="select * from Products";
$dbname="zc"; $sql2="select * from Categories";
$dbname="zc"; $sql2="select count(*) from Products";
$dbname="dgs"; $sql2="describe Players";
$dbname="dgs"; $sql2="show tables;";
$dbname="zc"; $sql2="show tables;";
$dbname="dgs"; $sql2="show tables;";
$db3fil="$dbname.db3";
$tblnum=1;
$dbname="dgs";
$j=0;
if( preg_match("/show/", $request_db2 )) {
$dbname="dgs"; $tbl="ko_temp";
$sql="show tables";
if( preg_match("/show_dgs/", $request_db2 )) { $dbname="dgs"; }
if( preg_match("/show_zc/", $request_db2 )) { $dbname="zc"; }
# print( "<h3>MSG_716 DB2 SHOW tbl=$tbl sql=$sql</h3>" );
$htmout_db2_query=db2_query( $server,$dbname,$tbl,$sql, $db3fil, $user,$pass );
print( $htmout_db2_query );
}
# print( "<h3>MSG_290 DB2 SELECT HEAD</h3>" );
if( preg_match("/select/", $request_db2 )) {
$tbl="ko_temp";
if( count(explode("_",$request_db2)) > 0 ) {
$tbl=explode("select_", $request_db2)[1];
}
$sql="select * from $tbl";
# print( "<h3>MSG_291 DB2 SELECT dbname=$dbname tbl=$tbl sq1=$sql</h3>" );
$htmout_db2_query=db2_query( $server,$dbname,$tbl,$sql, $db3fil, $user,$pass );
print( $htmout_db2_query );
}
if (( $_REQUEST['db2'] == "creates" ) || ( $_REQUEST['db2'] == "creates" )) {
# print( "<h3>BUGS_275 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
$tbls=explode("\n", show_tables($dbname));
$tbls_len=count($tbls);
# print( "<h3>BUGS_270 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
foreach( $tbls as $tbl ) {
if( $tbl == "" ) {
# print( "<h1>BUGS_270 SKIP j=$j tbl=$tbl</h1>" );
continue;
}
$j=$j+1;
$sql2="describe $tbl;";
$sql="";
print( "<h2>BUGS_280 j=$j dbname=$dbname tbl=$tbl sql=$sql db3fil=$db3fil</h2>" );
# mysql2sql3_insert( $server,$dbname,$tbl,$user,$pass,$db3fil);
mysql2sql3_create( $server,$dbname,$tbl,$user,$pass,$db3fil);
}
}
if (( $_REQUEST['db2'] == "inserts" ) || ( $_REQUEST['db2'] == "inserts" )) {
# print( "<h3>BUGS_275 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
$tbls=explode("\n", show_tables($dbname));
$tbls_len=count($tbls);
# print( "<h3>BUGS_270 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
foreach( $tbls as $tbl ) {
if( $tbl == "" ) {
# print( "<h1>BUGS_270 SKIP j=$j tbl=$tbl</h1>" );
continue;
}
$j=$j+1;
$sql2="describe $tbl;";
$sql="";
print( "<h2>BUGS_280 j=$j dbname=$dbname tbl=$tbl sql=$sql db3fil=$db3fil</h2>" );
mysql2sql3_insert( $server,$dbname,$tbl,$user,$pass,$db3fil);
mysql2sql3_create( $server,$dbname,$tbl,$user,$pass,$db3fil);
}
}
$user="root"; $pass="..root";
print( "<h1>BUGS_100 DB2</h1>" );
if( isset( $_REQUEST['db2'] )) { $dbname=$_REQUEST['db2']; }
if( isset( $_REQUEST['user'] )) { $user=$_REQUEST['user']; }
if( isset( $_REQUEST['db3fil'] )) { $db3fil=$_REQUEST['db3fil']; }
if( isset( $_REQUEST['sql'] )) { $sql=$_REQUEST['sql']; }
if( isset( $_REQUEST['fmt'] )) { $fmt=$_REQUEST['fmt']; }
$j=0; $k=0; $i=0;
if( isset( $_REQUEST['tbl'] )) { $tbl=$_REQUEST['tbl']; }
$dbname="zc"; $tbl="ko_temp";
$dbname="dgs"; $tbl="ko_temp";
$dbname="dgs"; $tbl="Players";
if( $dbname == "" ) { $dbname="dgs"; }
if( $dbname == "" ) { $dbname="zc"; }
# $db2=db2_connect($server,$dbname,$user,$pass);
# $htmout_db2_query = db2_query($db2,$dbname,$sql2 );
# $htmout_db2_exec = db2_exec($db2,$dbname,$sql2 );
print( "<h1>BUGS_310 j=$j k=$k dbname=$dbname tbl=$tbl sql2=$sql2</h1>" );
$htmout .= " </div>\n";
$htmout .= htmout_load('ko_divs.html');
$htmout .= htmout_tail('db2');
print($htmout);
exit;
}
if( isset($_REQUEST['db3']) || isset($_REQUEST['db3'] )) {
$htmout = "";
# $htmout .= htmout_head('db3');
$htmout .= "<html><head>\n";
$htmout .= " <title>$progid $dttm db3</title>\n";
$htmout .= htmout_load('ko_styles.html');
$htmout .= htmout_load('ko_scripts.html');
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen onload=\"startup('db3);return false;\" >\n";
$htmout .= "<img src=\"/imgs/btn/koeye.png\" onclick=\"toggle('div_db3'); return false;\" height=24>\n";
$htmout .= "<div id=div_db3>\n";
$htmout .= " <hr color=goldenrod>\n";
$htmout .= " <h1>div_db3<h1>\n";
$htmout .= db3($db3fil);
$htmout .= " </div>\n";
$htmout .= htmout_load('ko_divs.html');
$htmout .= htmout_tail('db3');
print($htmout);
exit;
}
if( isset($_REQUEST['file']) || isset($_REQUEST['file'] )) {
$filnam=$_REQUEST['file'];
if( file_exists( $filnam )) {
$filtxt=read_htmlfile($filnam);
print($filtxt);
}
else {
print( "ERR_430: NOTFOUND filnam=$filnam<br>\n" );
}
exit;
}
if( isset($_REQUEST['ko_coffeeshop']) || isset($_REQUEST['ko_coffeeshop'] )) {
$gid=""; $fmt="";
if( isset( $_REQUEST['db3'] )) { $db3=$_REQUEST['db3']; }
if( isset( $_REQUEST['fmt'] )) { $fmt=$_REQUEST['fmt']; }
$request="ko_coffeeshop";
$txt=""; $csv=""; $psv="";
$htmout=""; $htmout_table_head=""; $htmout_table_body="";
# print( "<h1>BUGS_400 gid=$gid fmt=$fmt</h1>" );
$json="{ \"$request\": [\n";
$htmout_table_head = "<table id=table_$request>\n";
$htmout_table_head .= "<tr><td style='text-align:center' colspan=14>gameid: $gid</td></tr>\n";
$htmout_table_head .= "<tr>";
$htmout_table_head .= "<td>row</td>";
$htmout_table_head .= "<td>ord</td>";
$htmout_table_head .= "<td>no</td>";
$htmout_table_head .= "<td>id</td>";
$htmout_table_head .= "<td>status</td>";
$htmout_table_head .= "<td>dttm</td>";
$htmout_table_head .= "<td>grp</td>";
$htmout_table_head .= "<td>item</td>";
$htmout_table_head .= "<td>logo</td>";
$htmout_table_head .= "<td>coffee_id</td>";
$htmout_table_head .= "<td>coffee_url</td>";
$htmout_table_head .= "<td>coffee_tn</td>";
$htmout_table_head .= "<td>logo</td>";
$htmout_table_head .= "<td>hostid</td>";
$htmout_table_head .= "<td>host</td>";
$htmout_table_head .= "<td>pdf</td>";
$htmout_table_head .= "<td>pdftxt</td>";
$htmout_table_head .= "<td>fb</td>";
$htmout_table_head .= "<td>fbtxt</td>";
$htmout_table_head .= "<td>gif</td>";
$htmout_table_head .= "<td>giftxt</td>";
$htmout_table_head .= "<td>mp3</td>";
$htmout_table_head .= "<td>mp3txt</td>";
$htmout_table_head .= "<td>mp4</td>";
$htmout_table_head .= "<td>mp4txt</td>";
$htmout_table_head .= "<td>bc</td>";
$htmout_table_head .= "<td>bctxt</td>";
$htmout_table_head .= "<td>yt</td>";
$htmout_table_head .= "<td>yttxt</td>";
$htmout_table_head .= "<td>pn</td>";
$htmout_table_head .= "<td>pntxt</td>";
$htmout_table_head .= "<td>sl</td>";
$htmout_table_head .= "<td>sltxt</td>";
$htmout_table_head .= "<td>tl</td>";
$htmout_table_head .= "<td>tltxt</td>";
$htmout_table_head .= "<td>tx</td>";
$htmout_table_head .= "<td>txtxt</td>";
$htmout_table_head .= "<td>zm</td>";
$htmout_table_head .= "<td>zmtxt</td>";
$htmout_table_head .= "<td>hostid</td>";
$htmout_table_head .= "<td>host</td>";
$htmout_table_head .= "<td>home</td>";
$htmout_table_head .= "<td>name</td>";
$htmout_table_head .= "<td>email</td>";
$htmout_table_head .= "<td>phn</td>";
$htmout_table_head .= "<td>fab</td>";
$htmout_table_head .= "<td>gab</td>";
$htmout_table_head .= "<td>pl</td>";
$htmout_table_head .= "<td>pt</td>";
$htmout_table_head .= "<td>ss</td>";
$htmout_table_head .= "<td>ts</td>";
$htmout_table_head .= "<td>tw</td>";
$htmout_table_head .= "<td>jitsi</td>";
$htmout_table_head .= "<td>chat</td>";
$htmout_table_head .= "<td>item</td>";
$htmout_table_head .= "<td>cnt</td>";
$htmout_table_head .= "<td>amt</td>";
$htmout_table_head .= "<td>note</td>";
$htmout_table_head .= "</tr>\n";
$psvhdr=""; $psvdta ="";
$psvhdr .= "row|ord|no|id|status|dttm|grp|item|logo|";
$psvhdr .= "coffee_id|coffee_url|coffee_tn|";
$psvhdr .= "fb|fbtxt|pdf|pdftxt|gif|giftxt|";
$psvhdr .= "mp3|mp3txt|mp4|mp4txt|bc|bctxt|rm|rmtxt|vm|vmtxt|yt|yttxt|";
$psvhdr .= "pn|pntxt|sl|sltxt|tl|tltxt|tx|txtxt|zm|zmtxt|";
$psvhdr .= "hostid|host|home|name|email|phn|";
$psvhdr .= "fab|gab|li|pl|pt|ss|ts|tw|jitsi|chat|";
$psvhdr .= "dm|dmtxt|dr|drtxt|gp|gptxt|js|jstxt|wm|wmtxt|zh|zhtxt|";
$psvhdr .= "itm|cnt|amt|note";
$psvhdr .= "\n";
$db3fil="ko.db3"; $fld=""; $output = "";
$sql="select * from ko_coffeeshop";
# $sql="select * from ko_coffeeshop where gid='$gid'";
# $bxbys = sqlq( $db3fil, $sql, $fld );
$pdo = newpdo($db3fil);
foreach( $pdo->query($sql) as $row ) {
$rowno=$row['rowno'];
$ord=$row['ord'];
$no=$row['no'];
$id=$row['id'];
$status=$row['status'];
$dttm=$row['dttm'];
$grp=$row['grp'];
$item=$row['item'];
$logo=$row['logo'];
$coffee_id=$row['coffee_id'];
$coffee_url=$row['coffee_url'];
$coffee_tn=$row['coffee_tn'];
$fb=$row['fb'];
$fbtxt=$row['fbtxt'];
$pdf=$row['pdf'];
$pdftxt=$row['pdftxt'];
$gif=$row['gif'];
$giftxt=$row['giftxt'];
$mp3=$row['mp3'];
$mp3txt=$row['mp3txt'];
$mp4=$row['mp4'];
$mp4txt=$row['mp4txt'];
$bc=$row['bc'];
$bctxt=$row['bctxt'];
$rm=$row['rm'];
$rmtxt=$row['rmtxt'];
$vm=$row['vm'];
$vmtxt=$row['vmtxt'];
$yt=$row['yt'];
$yttxt=$row['yttxt'];
$pn=$row['pn'];
$pntxt=$row['pntxt'];
$sl=$row['sl'];
$sltxt=$row['sltxt'];
$tl=$row['tl'];
$tltxt=$row['tltxt'];
$tx=$row['tx'];
$txtxt=$row['txtxt'];
$zm=$row['zm'];
$zmtxt=$row['zmtxt'];
$hostid=$row['hostid'];
$host=$row['host'];
$home=$row['home'];
$name=$row['name'];
$email=$row['email'];
$phn=$row['phn'];
$fab=$row['fab'];
$gab=$row['gab'];
$li=$row['li'];
$pl=$row['pl'];
$pt=$row['pt'];
$ss=$row['ss'];
$ts=$row['ts'];
$tw=$row['tw'];
$jitsi=$row['jitsi'];
$chat=$row['chat'];
$dm=$row['dm'];
$dmtxt=$row['dmtxt'];
$dr=$row['dr'];
$drtxt=$row['drtxt'];
$gp=$row['gp'];
$gbtxt=$row['gbtxt'];
$js=$row['js'];
$jstxt=$row['jstxt'];
$wm=$row['wm'];
$wmtxt=$row['wmtxt'];
$zh=$row['zh'];
$zhtxt=$row['zhtxt'];
$itm=$row['itm'];
$cnt=$row['cnt'];
$amt=$row['amt'];
$note=$row['note'];
$psvdta .= "$rowno|";
$psvdta .= "$ord|";
$psvdta .= "$no|";
$psvdta .= "$id|";
$psvdta .= "$status|";
$psvdta .= "$dttm|";
$psvdta .= "$grp|";
$psvdta .= "$item|";
$psvdta .= "$logo|";
$psvdta .= "$coffee_id|";
$psvdta .= "$coffee_url|";
$psvdta .= "$coffee_tn|";
$psvdta .= "$fb|";
$psvdta .= "$fbtxt|";
$psvdta .= "$pdf|";
$psvdta .= "$pdftxt|";
$psvdta .= "$gif|";
$psvdta .= "$giftxt|";
$psvdta .= "$mp3|";
$psvdta .= "$mp3txt|";
$psvdta .= "$mp4|";
$psvdta .= "$mp4txt|";
$psvdta .= "$bc|";
$psvdta .= "$bctxt|";
$psvdta .= "$rm|";
$psvdta .= "$rmtxt|";
$psvdta .= "$vm|";
$psvdta .= "$vmtxt|";
$psvdta .= "$yt|";
$psvdta .= "$yttxt|";
$psvdta .= "$pn|";
$psvdta .= "$pntxt|";
$psvdta .= "$sl|";
$psvdta .= "$sltxt|";
$psvdta .= "$tl|";
$psvdta .= "$tltxt|";
$psvdta .= "$tx|";
$psvdta .= "$txtxt|";
$psvdta .= "$zm|";
$psvdta .= "$zmtxt|";
$psvdta .= "$hostid|";
$psvdta .= "$host|";
$psvdta .= "$home|";
$psvdta .= "$name|";
$psvdta .= "$email|";
$psvdta .= "$phn|";
$psvdta .= "$fab|";
$psvdta .= "$gab|";
$psvdta .= "$li|";
$psvdta .= "$pl|";
$psvdta .= "$pt|";
$psvdta .= "$ss|";
$psvdta .= "$ts|";
$psvdta .= "$tw|";
$psvdta .= "$jitsi|";
$psvdta .= "$chat|";
$psvdta .= "$bitchute|";
$psvdta .= "$bitchutetxt|";
$psvdta .= "$shopify|";
$psvdta .= "$shopifytxt|";
$psvdta .= "$squareup|";
$psvdta .= "$squareuptxt|";
$psvdta .= "$stripe|";
$psvdta .= "$stripetxt|";
$psvdta .= "$dm|";
$psvdta .= "$dmtxt|";
$psvdta .= "$dr|";
$psvdta .= "$drtxt|";
$psvdta .= "$gp|";
$psvdta .= "$gptxt|";
$psvdta .= "$js|";
$psvdta .= "$jstxt|";
$psvdta .= "$wm|";
$psvdta .= "$wmtxt|";
$psvdta .= "$zh|";
$psvdta .= "$zhtxt|";
$psvdta .= "$itm|";
$psvdta .= "$cnt|";
$psvdta .= "$amt|";
$psvdta .= "$note<br>\n";
$json .= "{\n";
$json .= "\"rowno\":\"$rowno\",\n";
$json .= "\"ord\":\"$ord\",\n";
$json .= "\"no\":\"$no\",\n";
$json .= "\"id\":\"$id\",\n";
$json .= "\"status\":\"$status\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"grp\":\"$grp\",\n";
$json .= "\"item\":\"$item\",\n";
$json .= "\"logo\":\"$host\",\n";
$json .= "\"coffee_id\":\"$coffee_id\",\n";
$json .= "\"coffee_url\":\"$coffee_url\",\n";
$json .= "\"coffee_tn\":\"$coffee_tn\",\n";
$json .= "\"fb\":\"$fb\",\n";
$json .= "\"fbtxt\":\"$fbtxt\",\n";
$json .= "\"pdf\":\"$pdf\",\n";
$json .= "\"pdftxt\":\"$pdftxt\",\n";
$json .= "\"gif\":\"$gif\",\n";
$json .= "\"giftxt\":\"$giftxt\",\n";
$json .= "\"mp3\":\"$mp3\",\n";
$json .= "\"mp3txt\":\"$mp3txt\",\n";
$json .= "\"mp4\":\"$mp4\",\n";
$json .= "\"mp4txt\":\"$mp4txt\",\n";
$json .= "\"bc\":\"$bc\",\n";
$json .= "\"bctxt\":\"$bctxt\",\n";
$json .= "\"rm\":\"$rm\",\n";
$json .= "\"rmtxt\":\"$rmtxt\",\n";
$json .= "\"vm\":\"$vm\",\n";
$json .= "\"vmtxt\":\"$vmtxt\",\n";
$json .= "\"yt\":\"$yt\",\n";
$json .= "\"yttxt\":\"$yttxt\",\n";
$json .= "\"pn\":\"$pn\",\n";
$json .= "\"pntxt\":\"$pntxt\",\n";
$json .= "\"sl\":\"$sl\",\n";
$json .= "\"sltxt\":\"$sltxt\",\n";
$json .= "\"tl\":\"$tl\",\n";
$json .= "\"tltxt\":\"$tltxt\",\n";
$json .= "\"tx\":\"$tx\",\n";
$json .= "\"txtxt\":\"$txtxt\",\n";
$json .= "\"zm\":\"$zm\",\n";
$json .= "\"zmtxt\":\"$zmtxt\",\n";
$json .= "\"hostid\":\"$hostid\",\n";
$json .= "\"host\":\"$host\",\n";
$json .= "\"home\":\"$home\",\n";
$json .= "\"name\":\"$name\",\n";
$json .= "\"email\":\"$email\",\n";
$json .= "\"phn\":\"$phn\",\n";
$json .= "\"fab\":\"$fab\",\n";
$json .= "\"gab\":\"$gab\",\n";
$json .= "\"pl\":\"$pl\",\n";
$json .= "\"pt\":\"$pt\",\n";
$json .= "\"ss\":\"$ss\",\n";
$json .= "\"ts\":\"$ts\",\n";
$json .= "\"tw\":\"$tw\",\n";
$json .= "\"jitsi\":\"$jitsi\",\n";
$json .= "\"chat\":\"$chat\",\n";
$json .= "\"dm\":\"$dm\",\n";
$json .= "\"dmtxt\":\"$dmtxt\",\n";
$json .= "\"dr\":\"$dr\",\n";
$json .= "\"drtxt\":\"$drtxt\",\n";
$json .= "\"gp\":\"$gp\",\n";
$json .= "\"gptxt\":\"$gptxt\",\n";
$json .= "\"js\":\"$js\",\n";
$json .= "\"jstxt\":\"$jstxt\",\n";
$json .= "\"wm\":\"$wm\",\n";
$json .= "\"wmtxt\":\"$wmtxt\",\n";
$json .= "\"zh\":\"$zh\",\n";
$json .= "\"zhtxt\":\"$zhtxt\",\n";
$json .= "\"itm\":\"$itm\",\n";
$json .= "\"cnt\":\"$cnt\",\n";
$json .= "\"amt\":\"$amt\",\n";
$json .= "\"note\":\"$note\"\n";
$json .= "},\n";
$htmout_table_body .= "<tr>";
$htmout_table_body .= "<td>".$row['rowno']."</td>";
$htmout_table_body .= "<td>".$row['ord']."</td>";
$htmout_table_body .= "<td>".$row['no']."</td>";
$htmout_table_body .= "<td>".$row['id']."</td>";
$htmout_table_body .= "<td>".$row['status']."</td>";
$htmout_table_body .= "<td>".$row['dttm']."</td>";
$htmout_table_body .= "<td>".$row['grp']."</td>";
$htmout_table_body .= "<td>".$row['item']."</td>";
$htmout_table_body .= "<td>".$row['logo']."</td>";
$htmout_table_body .= "<td>".$row['coffee_id']."</td>";
$htmout_table_body .= "<td>".$row['coffee_url']."</td>";
$htmout_table_body .= "<td>".$row['coffee_tn']."</td>";
$htmout_table_body .= "<td>".$row['fb']."</td>";
$htmout_table_body .= "<td>".$row['fbtxt']."</td>";
$htmout_table_body .= "<td>".$row['pdf']."</td>";
$htmout_table_body .= "<td>".$row['pdftxt']."</td>";
$htmout_table_body .= "<td>".$row['gif']."</td>";
$htmout_table_body .= "<td>".$row['giftxt']."</td>";
$htmout_table_body .= "<td>".$row['mp3']."</td>";
$htmout_table_body .= "<td>".$row['mp3txt']."</td>";
$htmout_table_body .= "<td>".$row['mp4']."</td>";
$htmout_table_body .= "<td>".$row['mp4txt']."</td>";
$htmout_table_body .= "<td>".$row['bc']."</td>";
$htmout_table_body .= "<td>".$row['bctxt']."</td>";
$htmout_table_body .= "<td>".$row['rm']."</td>";
$htmout_table_body .= "<td>".$row['rmtxt']."</td>";
$htmout_table_body .= "<td>".$row['vm']."</td>";
$htmout_table_body .= "<td>".$row['vmtxt']."</td>";
$htmout_table_body .= "<td>".$row['yt']."</td>";
$htmout_table_body .= "<td>".$row['yttxt']."</td>";
$htmout_table_body .= "<td>".$row['pn']."</td>";
$htmout_table_body .= "<td>".$row['pntxt']."</td>";
$htmout_table_body .= "<td>".$row['sl']."</td>";
$htmout_table_body .= "<td>".$row['sltxt']."</td>";
$htmout_table_body .= "<td>".$row['tl']."</td>";
$htmout_table_body .= "<td>".$row['tltxt']."</td>";
$htmout_table_body .= "<td>".$row['tx']."</td>";
$htmout_table_body .= "<td>".$row['txtxt']."</td>";
$htmout_table_body .= "<td>".$row['zm']."</td>";
$htmout_table_body .= "<td>".$row['zmtxt']."</td>";
$htmout_table_body .= "<td>".$row['hostid']."</td>";
$htmout_table_body .= "<td>".$row['host']."</td>";
$htmout_table_body .= "<td>".$row['home']."</td>";
$htmout_table_body .= "<td>".$row['name']."</td>";
$htmout_table_body .= "<td>".$row['email']."</td>";
$htmout_table_body .= "<td>".$row['phn']."</td>";
$htmout_table_body .= "<td>".$row['fab']."</td>";
$htmout_table_body .= "<td>".$row['gab']."</td>";
$htmout_table_body .= "<td>".$row['li']."</td>";
$htmout_table_body .= "<td>".$row['pl']."</td>";
$htmout_table_body .= "<td>".$row['pt']."</td>";
$htmout_table_body .= "<td>".$row['ss']."</td>";
$htmout_table_body .= "<td>".$row['ts']."</td>";
$htmout_table_body .= "<td>".$row['tw']."</td>";
$htmout_table_body .= "<td>".$row['jitsi']."</td>";
$htmout_table_body .= "<td>".$row['dm']."</td>";
$htmout_table_body .= "<td>".$row['dmtxt']."</td>";
$htmout_table_body .= "<td>".$row['dr']."</td>";
$htmout_table_body .= "<td>".$row['drtxt']."</td>";
$htmout_table_body .= "<td>".$row['gp']."</td>";
$htmout_table_body .= "<td>".$row['gptxt']."</td>";
$htmout_table_body .= "<td>".$row['js']."</td>";
$htmout_table_body .= "<td>".$row['jstxt']."</td>";
$htmout_table_body .= "<td>".$row['wm']."</td>";
$htmout_table_body .= "<td>".$row['wmtxt']."</td>";
$htmout_table_body .= "<td>".$row['zh']."</td>";
$htmout_table_body .= "<td>".$row['zhtxt']."</td>";
$htmout_table_body .= "<td>".$row['itm']."</td>";
$htmout_table_body .= "<td>".$row['cnt']."</td>";
$htmout_table_body .= "<td>".$row['amt']."</td>";
$htmout_table_body .= "<td>".$row['note']."</td>";
$htmout_table_body .= "</tr>\n";
}
$psv = $psvhdr . $psvdta;
$csv=str_replace("|",",",$psv);
$txt=str_replace("|"," ",$psv);
$json .= "{\n";
$json .= "\"rowno\":\"$rowno\",\n";
$json .= "\"ord\":\"$ord\",\n";
$json .= "\"no\":\"$no\",\n";
$json .= "\"id\":\"$id\",\n";
$json .= "\"status\":\"$status\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"grp\":\"$grp\",\n";
$json .= "\"item\":\"$item\",\n";
$json .= "\"logo\":\"$logo\",\n";
$json .= "\"coffee_id\":\"$coffee_id\",\n";
$json .= "\"coffee_url\":\"$coffee_url\",\n";
$json .= "\"coffee_tn\":\"$coffee_tn\",\n";
$json .= "\"fb\":\"$fb\",\n";
$json .= "\"fbtxt\":\"$fbtxt\",\n";
$json .= "\"pdf\":\"$pdf\",\n";
$json .= "\"pdftxt\":\"$pdftxt\",\n";
$json .= "\"gif\":\"$gif\",\n";
$json .= "\"giftxt\":\"$giftxt\",\n";
$json .= "\"mp3\":\"$mp3\",\n";
$json .= "\"mp3txt\":\"$mp3txt\",\n";
$json .= "\"mp4\":\"$mp4\",\n";
$json .= "\"mp4txt\":\"$mp4txt\",\n";
$json .= "\"bc\":\"$bc\",\n";
$json .= "\"bctxt\":\"$bctxt\",\n";
$json .= "\"rm\":\"$rm\",\n";
$json .= "\"rmtxt\":\"$rmtxt\",\n";
$json .= "\"vm\":\"$vm\",\n";
$json .= "\"vmtxt\":\"$vmtxt\",\n";
$json .= "\"yt\":\"$yt\",\n";
$json .= "\"yttxt\":\"$yttxt\",\n";
$json .= "\"pn\":\"$pn\",\n";
$json .= "\"pntxt\":\"$pntxt\",\n";
$json .= "\"sl\":\"$sl\",\n";
$json .= "\"sltxt\":\"$sltxt\",\n";
$json .= "\"tl\":\"$tl\",\n";
$json .= "\"tltxt\":\"$tltxt\",\n";
$json .= "\"tx\":\"$tx\",\n";
$json .= "\"txtxt\":\"$txtxt\",\n";
$json .= "\"zm\":\"$zm\",\n";
$json .= "\"zmtxt\":\"$zmtxt\",\n";
$json .= "\"fab\":\"$fab\",\n";
$json .= "\"gab\":\"$gab\",\n";
$json .= "\"pl\":\"$pl\",\n";
$json .= "\"pt\":\"$pt\",\n";
$json .= "\"ss\":\"$ss\",\n";
$json .= "\"ts\":\"$ts\",\n";
$json .= "\"tw\":\"$tw\",\n";
$json .= "\"jitsi\":\"$jitsi\",\n";
$json .= "\"chat\":\"$chat\",\n";
$json .= "\"btc\":\"$btc\",\n";
$json .= "\"btctxt\":\"$btctxt\",\n";
$json .= "\"eth\":\"$eth\",\n";
$json .= "\"ethtxt\":\"$ethtxt\",\n";
$json .= "\"shopify\":\"$shopify\",\n";
$json .= "\"shopifytxt\":\"$shopifytxt\",\n";
$json .= "\"squareup\":\"$squareup\",\n";
$json .= "\"squareuptxt\":\"$squareuptxt\",\n";
$json .= "\"stripe\":\"$stripe\",\n";
$json .= "\"stripetxt\":\"$stripetxt\",\n";
$json .= "\"dm\":\"$dm\",\n";
$json .= "\"dmtxt\":\"$dmtxt\",\n";
$json .= "\"dr\":\"$dr\",\n";
$json .= "\"drtxt\":\"$drtxt\",\n";
$json .= "\"gp\":\"$gp\",\n";
$json .= "\"gptxt\":\"$gptxt\",\n";
$json .= "\"js\":\"$js\",\n";
$json .= "\"jstxt\":\"$jstxt\",\n";
$json .= "\"wm\":\"$wm\",\n";
$json .= "\"wmtxt\":\"$wmtxt\",\n";
$json .= "\"zh\":\"$zh\",\n";
$json .= "\"zhtxt\":\"$zhtxt\",\n";
$json .= "\"itm\":\"$itm\",\n";
$json .= "\"cnt\":\"$cnt\",\n";
$json .= "\"amt\":\"$amt\",\n";
$json .= "\"note\":\"$note\"\n";
$json .= "}\n";
$json .= "]}";
$htmout .= $htmout_table_head;
$htmout .= $htmout_table_body;
$htmout .= " </table>\n";
# printf( "BUGS_2390: val=[$val] fld=[$fld] row=[$row]<br>\n" );
if( $fmt == "psv" ) { print($psv); exit; }
if( $fmt == "csv" ) { print($csv); exit; }
if( $fmt == "json" ) {
header('Content-type: application/json');
print($json); exit;
}
if( $fmt == "txt" ) { print($txt); exit; }
if( $fmt == "html" ) { print($htmout); exit; }
print( $psv );
# main rowno|ord|no|id|status|dttm|grp|item|logo|
# coffee coffee_id|coffee_url|coffee_tn|
# books fb|fbtxt|pdf|pdftxt|gif|giftxt|
# media mp3|mp3txt|mp4|mp4txt|bc|bctxt|rm|rmtxt|vm|vmtxt|yt|yttxt|
# views pn|pntxt|sl|sltxt|tl|tltxt|tx|txtxt|zm|zmtxt|
# contacts hostid|host|home|name|email|phn|
# smedia fab|gab|li|pl|ss|ts|tw|jitsi|chat|
# biz btc|btctxt|eth|ethtxt|shopify|shopifytxt|squareup|squareuptxt|stripe|stripetxt|
# amedia dm|dmtxt|dr|drtxt|gp|gptxt|js|jstxt|wm|wmtxt|zh|zhtxt|
# notes itm|cnt|amt|note
exit;
}
if( isset($_REQUEST['kogo_db3']) || isset($_REQUEST['kogo_db3'] )) {
$gid=""; $fmt="";
if( isset( $_REQUEST['kogo_db3'] )) { $gid=$_REQUEST['kogo_db3']; }
if( isset( $_REQUEST['fmt'] )) { $fmt=$_REQUEST['fmt']; }
$txt=""; $csv=""; $psv="";
$htmout=""; $htmout_table_head=""; $htmout_table_body="";
# print( "<h1>BUGS_400 gid=$gid fmt=$fmt</h1>" );
$json="{ \"kogo\": [\n";
$htmout_table_head = "<table id=table_$gid>\n";
$htmout_table_head .= "<tr><td style='text-align:center' colspan=14>gameid: $gid</td></tr>\n";
$htmout_table_head .= "<tr>";
$htmout_table_head .= "<td>gid</td>";
$htmout_table_head .= "<td>dttm</td>";
$htmout_table_head .= "<td>pb</td>";
$htmout_table_head .= "<td>pw</td>";
$htmout_table_head .= "<td>bxlim</td>";
$htmout_table_head .= "<td>bylim</td>";
$htmout_table_head .= "<td>bhandi</td>";
$htmout_table_head .= "<td>t</td>";
$htmout_table_head .= "<td>x</td>";
$htmout_table_head .= "<td>y</td>";
$htmout_table_head .= "<td>td</td>";
$htmout_table_head .= "<td>tdx</td>";
$htmout_table_head .= "<td>tdy</td>";
$htmout_table_head .= "<td>note</td>";
$htmout_table_head .= "</tr>\n";
$db3fil="kogo.db3"; $fld=""; $output = "";
$sql="select * from games where gid='$gid'";
# $bxbys = sqlq( $db3fil, $sql, $fld );
$pdo = newpdo($db3fil);
foreach( $pdo->query($sql) as $row ) {
$dttm=$row['dttm'];
$pb=$row['pb'];
$pw=$row['pw'];
$bxlim=$row['bxlim'];
$bylim=$row['bylim'];
$bhandi=$row['bhandi'];
$bhandi=$row['bhandi'];
$t=$row['t'];
$x=$row['x'];
$y=$row['y'];
$td=$row['td'];
$tdx=$row['tdx'];
$tdy=$row['tdy'];
$note=$row['note'];
$psv .= "$gid|";
$psv .= "$dttm|";
$psv .= "$pb|";
$psv .= "$pw|";
$psv .= "$bxlim|";
$psv .= "$bylim|";
$psv .= "$bhandi|";
$psv .= "$t|";
$psv .= "$x|";
$psv .= "$y|";
$psv .= "$td|";
$psv .= "$tdx|";
$psv .= "$tdy|";
$psv .= "$note<br>\n";
$json .= "{\n";
$json .= "\"gid\":\"$gid\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"pb\":\"$pb\",\n";
$json .= "\"pw\":\"$pw\",\n";
$json .= "\"bxlim\":\"$bxlim\",\n";
$json .= "\"bylim\":\"$bylim\",\n";
$json .= "\"bhandi\":\"$bhandi\",\n";
$json .= "\"t\":\"$t\",\n";
$json .= "\"x\":\"$x\",\n";
$json .= "\"y\":\"$y\",\n";
$json .= "\"td\":\"$td\",\n";
$json .= "\"tdx\":\"$tdx\",\n";
$json .= "\"tdy\":\"$tdy\",\n";
$json .= "\"note\":\"$note\"\n";
$json .= "},\n";
$htmout_table_body .= "<tr>";
$htmout_table_body .= "<td>".$row['gid']."</td>";
$htmout_table_body .= "<td>".$row['dttm']."</td>";
$htmout_table_body .= "<td>".$row['pb']."</td>";
$htmout_table_body .= "<td>".$row['pw']."</td>";
$htmout_table_body .= "<td>".$row['bxlim']."</td>";
$htmout_table_body .= "<td>".$row['bylim']."</td>";
$htmout_table_body .= "<td>".$row['bhandi']."</td>";
$htmout_table_body .= "<td>".$row['t']."</td>";
$htmout_table_body .= "<td>".$row['x']."</td>";
$htmout_table_body .= "<td>".$row['y']."</td>";
$htmout_table_body .= "<td>".$row['td']."</td>";
$htmout_table_body .= "<td>".$row['tdx']."</td>";
$htmout_table_body .= "<td>".$row['tdy']."</td>";
$htmout_table_body .= "<td>".$row['note']."</td>";
$htmout_table_body .= "</tr>\n";
}
$csv=str_replace("|",",",$psv);
$txt=str_replace("|"," ",$psv);
$json .= "{\n";
$json .= "\"gid\":\"$gid\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"pb\":\"$pb\",\n";
$json .= "\"pw\":\"$pw\",\n";
$json .= "\"bxlim\":\"$bxlim\",\n";
$json .= "\"bylim\":\"$bylim\",\n";
$json .= "\"bhandi\":\"$bhandi\",\n";
$json .= "\"t\":\"$t\",\n";
$json .= "\"x\":\"\",\n";
$json .= "\"y\":\"\",\n";
$json .= "\"td\":\"\",\n";
$json .= "\"tdx\":\"$tdx\",\n";
$json .= "\"tdy\":\"$tdy\",\n";
$json .= "\"note\":\"nextmove\"\n";
$json .= "}\n";
$json .= "]}";
$htmout .= $htmout_table_head;
$htmout .= $htmout_table_body;
$htmout .= " </table>\n";
# printf( "BUGS_2390: val=[$val] fld=[$fld] row=[$row]<br>\n" );
if( $fmt == "psv" ) { print($psv); exit; }
if( $fmt == "csv" ) { print($csv); exit; }
if( $fmt == "json" ) {
header('Content-type: application/json');
print($json); exit;
}
if( $fmt == "txt" ) { print($txt); exit; }
if( $fmt == "html" ) { print($htmout); exit; }
print( $psv );
exit;
}
if( isset($_REQUEST['kogo_bxbys']) || isset($_REQUEST['kogo_bxbys'] )) {
$bxbyid=$_REQUEST['kogo_bxbys'];
$htmout = "";
$bxbys=""; $t=1; $bxlim=19; $bylim=19;
$bxbyss = array();
$bxbyss['a'] = "1,1 1,2 1,3 1,4";
$bxbyss['b'] = "10,1 10,2 10,3 10,4";
$bxbyss['c'] = "19,1 19,2 19,3 19,4";
$bxbyss['ko'] = "1,2 3,2 2,1 2,3 2,3 3,4";
$bxbys=""; $bxbys_head=""; $bxbys_body="";$pb="pd"; $pw="pw";
$bxlim=19; $bylim=19; $bhandi=9;$t=0;$x=0;$y=0;$td=0;$tlim=0;$tdx=0;$tdy=0;
$dttm="20211203_1830";
if( $bxbyid == "" ) {
$htmout = "<h1>MSG_421 KOGO_BXBYS=$bxbyid $progid?kogo_bxbys=$bxbyid<h1>\n";
$tlim=$bxlim*$bylim;
for( $bx=1; $bx<$bxlim; $bx++ ) {
for( $by=1; $by<$bylim; $by++ ) {
$bxbys_body .= "$bxbyid,$t,$bx,$by,$td,$tdx,$tdy<br>\n";
$t=$t+1;
}
}
$bxbys_head="$bxbyid,$dttm,$pb,$pw,$bxlim,$bylim,$bhandi,$tlim,$tdx,$tdy<br>\n";
}
else {
$bxbys_body="";
if( ! isset( $bxbyss[$bxbyid] )) { print( "<h1>ERR_420 NOTFOUND bxbyid=$bxbyid</h1>"); exit;}
$bxbys = $bxbyss[$bxbyid]; $xyd="";
$tlim = count(explode(" ",$bxbys));
for( $t=0; $t<$tlim; $t++ ) {
$bx=""; $by=""; $td="";
$xyd=explode(" ",$bxbys);
$commas=count(explode(",",$xyd[$t]));
$bx = explode(",",$xyd[$t])[0];
if( $commas>1 ) {
$by = explode(",",$xyd[$t])[1];
}
if( $commas>2 ) {
$td = explode(",",$xyd[$t])[2];
if( isOdd($td)) { $tdx=$tdx+1; } else { $tdy=$tdx+1; }
}
$t1=$t+1;
$bxbys_body .= "$bxbyid,$t1,$bx,$by,$td<br>\n";
}
$bxbys_head="$bxbyid,$dttm,$pb,$pw,$bxlim,$bylim,$bhandi,$tlim,$tdx,$tdy<br>\n";
}
$bxbys = "";
$bxbys .= $bxbys_head . $bxbys_body;
# $htmout = "<h1>MSG_412 KOGO_BXBYS= $progid?todo=$kogo_bxbys<h1>\n";
print($bxbys);
exit;
}
if( isset($_REQUEST['kogo']) || isset($_REQUEST['kogo'] )) {
$kogo=$_REQUEST['kogo'];
if( $kogo == "" ) {
$htmout = "<h1>MSG_411 TODO=KOGO $progid?todo=$todo<h1>\n";
}
$htmout = "<h1>MSG_412 TODO=KOGO $progid?todo=$todo<h1>\n";
print($htmout);
exit;
}
if( isset($_REQUEST['todo']) || isset($_REQUEST['todo'] )) {
$todo="";
# if( isset($_REQUEST['todo'] )) {
# $request=$_REQUEST['todo'];
# if( $request != "" ) { $todo=$request; }
# print( "\n<h1>MSG_130 FINDIDS todo=$todo request=$request</h1><br>\n");
# }
if( isset($_REQUEST['fmt'] )) {$fmt=$_REQUEST['fmt'];}
$idfinds_ko='mp3s mp4s pdfs fbs zms yts bcs txts htmls';
# yts|find yt/txt -type f -maxdepth 1 -name "ytlist_202111*.txt" -exec cat {} \; | grep "youtube" | head -100
# bcs|find yt/txt -type f -maxdepth 1 -name "ytlist_202111*.txt" -exec cat {} \; | grep "bitchute" | head -100
# htmls|find yt/txt -type f -maxdepth 1 -name "ytlist_202111*.txt" -exec cat {} \; | grep ".html" | head -100
$idfinds='
mp4s_root|find /kb/vid -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp4s_dotdot|find ../kb/vid -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp4s|find ./mp4 -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp3s|find ../kb/aud/mp3 -type f -name "*.mp3"
pdfs|find pdf -type f -name "*.pdf"
fbs|find fb -type d -name "pages" # fb
zms|find zm -type f -name "0-0-0.jpg" # zm
ka_mp4s|find ka/vid -type f -name "*.mp4" -o -name "*.webm"
ka_mp3s|find ka/aud -type f -name "*.mp3"
ka_pdfs|find ka/pdf -type f -name "*.pdf"
ka_fbs|find ka/fb -type d -name "pages" # fb
ka_zms|find ka/zm -type f -name "0-0-0.jpg" # zm
';
# ka_fbs|find fb -type f -name "index.html" # fb
# ka_zms|find zm -type f -name "zm*.htm*" # zm
# fbs|find ../zm -type f -name "zm*.htm*" # fb
# zms|find ../zm -type f -name "zm*.htm*" # zm
$idfinds_big='
mp4s|find /kb/vid -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp3s|find /kb/aud/mp3 -type f -name "*.mp3"
pdfs|find /pdf -type f -name "*.pdf"
ka_pdfs|find pdf -type f -name "*.pdf"
ko|find pdf -type f -maxdepth 1 -name "*.pdf"
kups|find ./kups -type f -name "*.*"
imgs|find ./imgs -type f -name "*.*"
jsons|find pdf -type f -name "*.json"
host_list|cat ./kb/media/host_list.psv
host_list_ka|cat ./kb/media/host_list_ka.psv
media_list|cat ./kb/media/media_list.psv
media_list_ka|cat ./kb/media/media_list_ka.psv
coffeec_list|cat ./kb/media/coffeec_list.psv
coffeec_list_ka|cat /kb/media/coffeec_list_ka.psv
coffee_list|cat /kb/media/coffee_list.psv
cat_ko_coffeeshop_psv|cat ko_coffeeshop.psv
cat_ko_coffeeshop_csv|cat ko_coffeeshop.csv
sql3_kups|select * from kups
sql3_ko_coffeeshop|select * from ko_coffeeshop
sql3_host_list|select * from host_list
sql3_host_list_ka|select * from host_list_ka
sql3_media_list|select * from media_list
sql3_media_list_ka|select * from media_list_ka
sql3_coffeec_list|select * from coffeec_list
sql3_coffeec_list_ka|select * from coffeec_list_ka
sql3_coffee_list|select * from coffee_list
sql3_coffee_list_ka|select * from coffee_list_ka
txts|find txt -type f -name "*.txt"
pns|find pn/imgs -type f -maxdepth 1 -name "*.jpg"
pdf_ko|find pdf -type f -name "*ko*.pdf"
pdf_iperms|find pdf -type f -name "*iperms*.pdf"
pdf_jtfdc|find pdf -type f -name "*jtfdc*.pdf"
pdf1|find pdf -type f -maxdepth 1 -name "*.pdf"
mp3s1|find kb/aud/mp3 -type f -maxdepth 1 -name "*.mp3"
yts|find kb/media/ -type f -maxdepth 1 -name "ko_media_yt.txt" -exec cat {} \; | grep "youtube" | head -100
bcs|find kb/media -type f -maxdepth 1 -name "ko_media_bc.txt" -exec cat {} \; | grep "bitchute" | head -100
htmls|find kb/media -type f -maxdepth 1 -name "ko_media_ht.txt" -exec cat {} \; | grep ".html" | head -100
pagesimgs|find ./pages -type f -maxdepth 1 -name "*.jpg"; find ./imgs -type f -maxdepth 1 -name "*.jpg" | grep -v "tn/";
pages|find fb/pages -type f -maxdepth 1 -name "*.jpg"
pdfs1|find pdf -type f -maxdepth 1 -name "*.pdf"
fbd1|find fb -type d -maxdepth 1 -name "*"
txts|find txt -type f -maxdepth 2 -name "*.txt"
htms|find . -type f -maxdepth 1 -name "??.html"
dirs_mp3|find kb/aud -type d -maxdepth 3 -name "*"
dirs_mp4|find kb/vid -type d -maxdepth 3 -name "*"
dirs_pdf|find pdf -type d -maxdepth 3 -name "*"
dirs_yts|find yt/txt -type d -maxdepth 3 -name "ytlist_*.txt"
dirs_fb|find fb -type d -maxdepth 1 -name "*"
dirs_pn|find pn -type d -maxdepth 3 -name "*"
dirs_tl|find tl -type d -maxdepth 3 -name "*"
dirs_zn|find tl -type d -maxdepth 3 -name "*"
';
$idfinds_tests='
mp3_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
mp4_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
pdf_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
txt_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
htm_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
yt_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
fb_today|fb/mars
pn_today|pn/imgs/pano_creek.jpg
tl_todatoday|
zm_todatoday|
mp3s_n|find kb/aud/mp3 -type f -name "<n>.mp3"
mp4s2|find kb/vid/jkwii -type f -maxdepth <d> f -name "<n>.mp4"
mp4s_p|find kb/vid/<p> -type f -maxdepth <d> -name "<n>.mp4"
mp4s_n|find kb/vid/<p> -type f -maxdepth <d> -name "<n>.mp4"
mp4_p|find kb/vid -type d -maxdepth <d> -name "<n>"
yts|cat /yt/txt/ytlist.txt | grep "<n>" | head -100
yts_lim|cat /yt/txt/ytlist.txt | grep "<n>" | head -<lim>
ht_mp3|kb/aud/mp3/library_of_congress.mp3
ht_mp4|kb/vid/jkwii/dutch_jackson_weightup.mp4
ht_yt||https:#www.youtube.com/watch?v=wQz5aG2tnd4|vladvt_megalithic_inca
ht_png|imgs/btn/koeye.png
ht_jpg|imgs/bg/bg_newton05b.jpg
ht_gif|imgs/gif/gifset_knots/knot1.gif
ht_zm|/index_zm.html
ht_zmd|/zm
ht_tl|/index_tl.html
ht_tld|/tl
find|find <p> -type f -maxdepth <lim> -name "<n>"
mp4s_jtfdc|find kb/vid -type f -name "jtfdc*.mp4"
gifd1|find imgs/gif -type d -maxdepth 2 -name "*"
gifs|find imgs/gif -type f -maxdepth 2 -name "*.gif"
pdfs|find pdf -type f -name "*.pdf"
pdfs2|find pdf/pdf -type f -maxdepth 1 -name "*.pdf"
fbd1|find fb -type d -maxdepth 1 -name "*"
fbds|find fb -type d -name "*"
pages|find fb/pages -type f -maxdepth 1 -name "*.jpg" \| head -5
pages_fb|find fb/pages -type f -maxdepth 1 -name "*.jpg"
pagesimgs|find ./pages -type f -maxdepth 1 -name "*.jpg"; find ./imgs -type f -maxdepth 1 -name "*.jpg";
topdirs|find / -type d -maxdepth 1 -name "??";
sh_ka1|./ka1.sh
sh_cp|find ./pages -type f -maxdepth 1 -name "*.jpg" | awk \'{ print "convert "$0" -resize 200x tn/tn_"$0" # "NF }\' | sed "s/jpg /png /"
sql3_sel_db3tbllim|sqlite3 <db3> "sel * from <tbl> limit <lim>";
sql3_sel_tbllim|sqlite3 ko.db3 "sel * from <tbl> limit <lim>";
sql3_tables|sqlite3 ko.db3 .tables
sql3_schema|sqlite3 ko.db3 .schema
sql3_files|sqlite3 ko.db3 "select * from files"
sql3_ko_coffee|sqlite3 ko.db3 "select * from coffee_list"
sql3_ko_media|sqlite3 ko.db3 "select * from media_list"
sql3_mp3|sqlite3 ko.db3 "select * from mp3"
sql3_mp4|sqlite3 ko.db3 "select * from mp4"
sql3_mp3|sqlite3 ko.db3 "select * from jpg"
sql3_books|sqlite3 ko.db3 "select * from books"
fb/iperms/pages|find fb/iperms/pages -type f -maxdepth 1 -name "*.jpg"
fb/konet/pages|find fb/konet/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdc/pages|find fb/jtfdc_pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdcr/pages|find fb/jtfdcr/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfinc/pages|find fb/jtfinc/pages -type f -maxdepth 1 -name "*.jpg"
fb/kt/pages|find fb/kt/pages -type f -maxdepth 1 -name "*.jpg"
fb/iperms/pages|find fb/iperms/pages -type f -maxdepth 1 -name "*.jpg"
fb/konet/pages|find fb/konet/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdc/pages|find fb/jtfdc_pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdcr/pages|find fb/jtfdcr/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfinc/pages|find fb/jtfinc/pages -type f -maxdepth 1 -name "*.jpg"
fb/kt/pages|find fb/kt/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/go/pages|find fb/go/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/kou/pages|find fb/kou/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/royal1/pages|find fb/royal1/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/iperms/imgs|find fb/iperms/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/konet/imgs|find fb/konet/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/jtfdc/imgs|find fb/jtfdc_imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/jtfdcr/imgs|find fb/jtfdcr/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/jtfinc/imgs|find fb/jtfinc/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/kt/imgs|find fb/kt/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/go/imgs|find fb/go/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/kou/imgs|find fb/kou/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/royal1/imgs|find fb/royal1/imgs -type f -maxdepth 1 -name "<n>.jpg"
tls|find tl -type f -maxdepth 1 -name "<*>.json"
zms|find zm -type f -name "0-0-0.jpg"
pns|find pn -type f -name "*.jpg"
du|du -h -d 1 .
du_dp|du -h -d <d>
';
# du -h --max-depth 1 . # bh
# du -h -d 1 . # depth 1
# du -h -depth . # depthtot
# print( "BUGS_26500 todo=$todo idfinds=$idfinds<br>\n" );
$ids=explode("\n",$idfinds);
$htmout="";
$list="";
$todo="";
if( isset($_REQUEST['todo'])) { $todo=$_REQUEST['todo']; }
$db2=""; if( isset($_REQUEST['db2'])) { $db3=$_REQUEST['db2']; }
$db3=""; if( isset($_REQUEST['db3'])) { $db3=$_REQUEST['db3']; }
$tbl=""; if( isset($_REQUEST['tbl'])) { $tbl=$_REQUEST['tbl']; }
$sel=""; if( isset($_REQUEST['sel'])) { $sel=$_REQUEST['sel']; }
$fld=""; if( isset($_REQUEST['fld'])) { $fld=$_REQUEST['fld']; }
$val=""; if( isset($_REQUEST['val'])) { $val=$_REQUEST['val']; }
$fmt=""; if( isset($_REQUEST['fmt'])) { $fmt=$_REQUEST['fmt']; }
$lim=""; if( isset($_REQUEST['lim'])) { $lim=$_REQUEST['lim']; }
$a=""; if( isset($_REQUEST['a'])) { $a=$_REQUEST['a']; }
$b=""; if( isset($_REQUEST['b'])) { $b=$_REQUEST['b']; }
$c=""; if( isset($_REQUEST['c'])) { $c=$_REQUEST['c']; }
$d=""; if( isset($_REQUEST['d'])) { $d=$_REQUEST['d']; }
$d=""; if( isset($_REQUEST['d'])) { $d=$_REQUEST['d']; }
$e=""; if( isset($_REQUEST['e'])) { $e=$_REQUEST['e']; }
$f=""; if( isset($_REQUEST['f'])) { $f=$_REQUEST['f']; }
$g=""; if( isset($_REQUEST['g'])) { $g=$_REQUEST['g']; }
$h=""; if( isset($_REQUEST['h'])) { $h=$_REQUEST['h']; }
$i=""; if( isset($_REQUEST['i'])) { $i=$_REQUEST['i']; }
$j=""; if( isset($_REQUEST['j'])) { $j=$_REQUEST['j']; }
$k=""; if( isset($_REQUEST['k'])) { $k=$_REQUEST['k']; }
$l=""; if( isset($_REQUEST['l'])) { $l=$_REQUEST['l']; }
$m=""; if( isset($_REQUEST['m'])) { $m=$_REQUEST['m']; }
$n=""; if( isset($_REQUEST['n'])) { $n=$_REQUEST['n']; }
$o=""; if( isset($_REQUEST['o'])) { $o=$_REQUEST['o']; }
$p=""; if( isset($_REQUEST['p'])) { $p=$_REQUEST['p']; }
$q=""; if( isset($_REQUEST['q'])) { $q=$_REQUEST['q']; }
$r=""; if( isset($_REQUEST['r'])) { $r=$_REQUEST['r']; }
$s=""; if( isset($_REQUEST['s'])) { $s=$_REQUEST['s']; }
$t=""; if( isset($_REQUEST['t'])) { $t=$_REQUEST['t']; }
$u=""; if( isset($_REQUEST['u'])) { $u=$_REQUEST['u']; }
$v=""; if( isset($_REQUEST['v'])) { $v=$_REQUEST['v']; }
$w=""; if( isset($_REQUEST['w'])) { $w=$_REQUEST['w']; }
$x=""; if( isset($_REQUEST['x'])) { $x=$_REQUEST['x']; }
$y=""; if( isset($_REQUEST['y'])) { $y=$_REQUEST['y']; }
$z=""; if( isset($_REQUEST['z'])) { $z=$_REQUEST['z']; }
$ids=explode("\n",$idfinds);
$htmout="";
$list="";
$fmt="";
# if( $todo == "" ) { print("<h1>BUGS_811 TODO=BLANK todo=$todo</h1>" ); }
# if( $todo == 0 ) { print("<h1>BUGS_812 TODO=NUM0 todo=$todo</h1>" ); }
# if( $todo == "0" ) { print("<h1>BUGS_813 TODO=NUMCHR todo=$todo</h1>" ); }
# if( $todo == "menu" ) { print("<h1>BUGS_814 TODO=MENU todo=$todo</h1>" ); }
# print("<h1>BUGS_1840 TODO todo=$todo</h1>" );
if( isset($_REQUEST['fmt'])) { $fmt=$_REQUEST['fmt']; }
if(( $todo == "" )
|| ( $todo == "0" )
|| ( $todo == "list" )
|| ( $todo == "menu" )) {
print( "<h1>BUGS_815 MENU todo=$todo</h1><br>\n" );
$htmout .= "<html>\n";
$htmout .= "<head>\n";
$htmout .= " <title>$progid $dttm todo</title>\n";
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen>\n";
# $htmout .= "<h1>todo</h1>\n";
$htmout .= "<a href=/index.html target=_blank>";
$htmout .= "<img src=ko.png height=20>";
$htmout .= "</a>\n";
$htmout .= "       ";
$htmout .= "$progid $dttm";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<table id=table_todo>";
$htmout .= "<tr><td>j</td><td width=100 >url</td><td width=125>id</td><td width=400>find</td></tr>\n";
for( $j=0; $j<count($ids); $j++ ) {
$line=$ids[$j];
$list .= $line;
if( $line === "" ) { continue; }
if( preg_match("/^#/", $line, $matches )) { continue; }
if( preg_match("/^</", $line, $matches)) {
# $list .= $line;
# $htmout .= $line;
# print( "<h2>MSG_385 HTMFMT line=$line</h2><br>\n" );
continue;
}
$id=explode("|",$line)[0];
if( $id === "" ) { continue; }
$find=""; $findtype="";
if( count(explode("|", $line)) > 1 ) {
$idpipe=$id."|";
$find=str_replace($idpipe,"",$line);
}
else {
$find=explode("|",$line)[1];
}
$matches2="";
# print( "<h1>BUGS_680 todo=$todo j=$j id=$id line=$line</h1><br>\n" );
# if( str_contains( $find, "# fb" )) { $findtype="fb"; }
# if( str_contains( $find, "# zm" )) { $findtype="zm"; }
$find=str_replace('<fmt>',$fmt, $find, $matches2);
$find=str_replace('<lim>',$lim, $find, $matches2);
$find=str_replace('<db3>',$db3, $find, $matches2);
$find=str_replace('<tbl>',$tbl, $find, $matches2);
$find=str_replace('<sel>',$sel, $find, $matches2);
$find=str_replace('<fld>',$fld, $find, $matches2);
$find=str_replace('<a>',$a, $find, $matches2);
$find=str_replace('<b>',$b, $find, $matches2);
$find=str_replace('<c>',$c, $find, $matches2);
$find=str_replace('<d>',$d, $find, $matches2);
$find=str_replace('<e>',$e, $find, $matches2);
$find=str_replace('<f>',$f, $find, $matches2);
$find=str_replace('<g>',$g, $find, $matches2);
$find=str_replace('<h>',$h, $find, $matches2);
$find=str_replace('<i>',$i, $find, $matches2);
$find=str_replace('<j>',$j, $find, $matches2);
$find=str_replace('<k>',$k, $find, $matches2);
$find=str_replace('<l>',$l, $find, $matches2);
$find=str_replace('<m>',$m, $find, $matches2);
$find=str_replace('<n>',$n, $find, $matches2);
$find=str_replace('<o>',$o, $find, $matches2);
$find=str_replace('<p>',$p, $find, $matches2);
$find=str_replace('<q>',$q, $find, $matches2);
$find=str_replace('<r>',$r, $find, $matches2);
$find=str_replace('<s>',$s, $find, $matches2);
$find=str_replace('<t>',$t, $find, $matches2);
$find=str_replace('<u>',$u, $find, $matches2);
$find=str_replace('<v>',$v, $find, $matches2);
$find=str_replace('<w>',$w, $find, $matches2);
$find=str_replace('<x>',$x, $find, $matches2);
$find=str_replace('<y>',$y, $find, $matches2);
$find=str_replace('<x>',$z, $find, $matches2);
# print( "<h3>BUGS_460 j=$j id=$id p=$p find=$find</h3>\n") ;
$k=$j+1;
$htmout .= "<tr>";
$htmout .= "<td>$k</td>";
$htmout .= "<td width=100>";
# $htmout .= "<a href=/ko.php?todo=$id target=_blank>\n";
$htmout .= "<a href=./ko_todo.php?todo=$id target=_blank>\n";
$htmout .= "<img src=/imgs/btn/koeye.png height=25>";
$htmout .= "</a>";
$htmout .= "</td>\n";
$htmout .= "<td width=125><b>$id</b></td>";
$htmout .= "<td width=470>$find</td>";
$htmout .= "</tr>";
}
$htmout .= " </table>";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
if( $fmt == "list" ) { print( $list ); }
else { print( $htmout ); }
exit;
}
if( isset( $_REQUEST['todo'] )) {
$todo=$_REQUEST['todo'];
}
if( $todo == "ko_coffeeshop" ) {
$output=ko_coffeeshop('');
header('Content-type: text/plain');
print( $output );
}
if( $todo == "ko_coffeeshop_psv" ) {
$psvfil="ko_coffeeshop.psv";
$fmt="psv";
$options=array($psvfil,$fmt);
if( file_exists( $psvfil )) {
$psv=psv_ko_coffeeshop($options);
}
else {
$psv="ERR_2011 NOTFOUND psvfil=$psvfil fmt=$fmt";
}
print($psv);
exit;
}
if( $todo == "ko_coffeeshop_csv" ) {
$csvfil="ko_coffeeshop.csv";
$fmt="csv";
$options=array($csvfil,$fmt);
if( file_exists( $csvfil )) {
$csv=csv_ko_coffeeshop($options);
}
else {
$psv="ERR_2011 NOTFOUND csvfil=$csvfil fmt=$fmt";
}
print($psv);
exit;
}
if( $todo == "ko_media_psv" ) {
$psvfil="ko_media.psv";
$fmt="psv";
$options=array($psvfil,$fmt);
if( file_exists( $psvfil )) {
$psv=psv_ko_media($options);
}
else {
$psv="ERR_2021 NOTFOUND psvfil=$psvfil fmt=$fmt";
}
print($psv);
exit;
}
if( $todo == "ko_coffeeshop_sql3" ) {
$db3fil="ko.db3";
$fmt="html";
$options=array($db3fil,$fmt);
$sqlout=sql3_ko_coffeeshop($options);
print_r($sqlout);
exit;
}
if( $todo == "sql3_ko_media" ) {
$db3fil="ko.db3";
$fmt="html";
$options=array($db3fil,$fmt);
$sqlout=sql3_ko_media($options);
print($sqlout);
exit;
}
$min=1; $max=3;
if( $todo == "ko" ) {
$id=$todo;
$min=0;$max=0;
$min=1; $max=count(explode(" ",$idfinds_ko))-1;
$random=random_int($min,$max);
$todo=explode(" ",$idfinds_ko)[$random];
}
for( $j=0; $j<count($ids); $j++) {
$line=$ids[$j];
$id=explode("|",$line)[0];
# print( "<h1>BUGS_871 j=$j id=$id line=$line todo=$todo</h1><br>\n" );
if( $id === "" ) { continue; }
if( $id != $todo ) {continue; }
# print( "<h1>BUGS_873 MATCH j=$j id=$id= todo=$todo= line=$line todo=$todo</h1><br>\n" );
# $find=explode("|",$line)[1];
$find=str_replace("$id|","", $line);
# print( "<h1>BUGS_675 id=$id find=$find line=$line</h1>" );
$list="";
$url=$find;
$url = urlcheck($url);
# print( "<h1>MSG_661 query_string=$query_string name=name id=$id find=$find</h1><br>\n" );
$find=str_replace_all($find);
# $find=str_replace("<n>", "$name", $find );
# print( "<h1>MSG_900 j=$j k=$k todo=$todo id=$id find=$find</h1><br>\n" );
# $out = "";
# print( "BUGS_26775 find=$find<br>\n" );
# pqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpq
# $out=array(); $err=array();
exec( $find, $out, $err );
# bdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbd
$outcnt=count($out);
# printf( "BUGS_26781 find=$find outcnt=$outcnt<br>\n" );
for( $j=0; $j<$outcnt; $j++) {
# print( "BUGS_2079 find=$find outcnt=$outcnt out=[$j]".$out[$j]."<br>\n" );
}
$script_filename=$_SERVER['SCRIPT_FILENAME']; # /Volumes/ka1tbr2/ht/ka/ko.php
$request_uri=$_SERVER['REQUEST_URI']; # /ka/ko.php?todo=ka_zms
$php_self=$_SERVER['PHP_SELF']; # /ka/ko.php
$query_string=$_SERVER['QUERY_STRING']; # todo=ka_zms
# if( $outcnt == 0 ) {
# $htmout = "";
# $htmout .= "<html><head><title>$request_uri NOTFOUND</title></head>\n";
# $htmout .= "<body bgcolor=wheat>\n";
# $htmout .= "<a href=$php_self target=_blank>";
# $htmout .= "<img src=/imgs/btn/ko.png height=50 border=0>$php_self</a>\n";
# $htmout .= "<h2>ERR_2080 NOTFOUND find=$find</h2>\n";
# $htmout .= "<h3>request_uri=$request_uri</h3>\n";
# $htmout .= "</body></html>\n";
# print( $htmout );
# phpinfo();
# $errtxt="<h2>ERR_2070 NOTFOUND find=$find</h2>\n";
# return($errtxt);
# }
# print( "<h1>BUGS_2100 outcnt=$outcnt fmt=$fmt out=".$out[0]."</h1>" );
$psv="";
$csv="";
$txt="";
$json="";
$json.="{\"todo\": [\n";
$dttm=date('Ymd_His');
$htmout = "";
$htmout .= "<html>\n";
$htmout .= "<head>\n";
$htmout .= " <title>todo=$todo $dttm</title>\n";
$icon="./favicon_ko64.ico";
# $htmout .= "<link rel=\"icon\" href=\"$icon\" type=\"image/icon\">\n";
$icon_png="koeye.png";
$icon_png="ko.png";
$icon_gif="koeye_handhither.gif";
# $htmout .= "<link rel=\"icon\" href=\"$icon_png\" type=\"image/png\">\n";
$htmout .= "<link rel=\"icon\" href=\"$icon_gif\" type=\"image/gif\">\n";
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen>\n";
$htmout .= " <div id=div_todo_$todo>\n";
$htmout .= " <h1>div_todo_$todo</h1>\n";
$htmout .= " <hr color=goldenrod>\n";
for( $j=0; $j< count($out); $j++ ) {
$line= $out[$j];
$txt .= $line."\n";
$psv .= $line."|\n";
$csv .= $line.",";
$json .= "{ \"j\":\"".$j."\", \"line\":\"".$line."\" },\n";
}
$psv .= preg_replace("/|$/", "", $psv );
$csv .= preg_replace("/|/", ",", $psv );
# $json .= preg_replace("/},$/", "}", $json );
# $json .= str_lreplace( ",$", "", $json );
$j=""; $line="";
$json .= "{ \"j\":\"".$j."\", \"line\":\"".$line."\" }\n";
# $json .= str_replace_last( ",", "" , $json );
$json .="]}\n\n";
$fmt="";
if( isset( $_REQUEST['fmt'] )) {$fmt=$_REQUEST['fmt']; }
# print( "<h1>BUGS_925 fmt=$fmt</h1>\n" );
if( $fmt == "txt" ) {
header('Content-type: text/plain');
print($txt); exit();
}
if( $fmt == "list" ) { print($txt);exit(); }
if( $fmt == "psv" ) { print($psv); exit(); }
if( $fmt == "csv" ) {
header('Content-type: text/csv');
print($csv); exit();
}
if( $fmt == "json" ) {
header('Content-type: application/json');
print( $json );
exit();
}
$k=1;
# if(! isset( $out[$k] )) {
# print( "<h1>MSG_2100 k=$k NOTFOUND \$out</h1>\n" );
# $url="./index.html?err=out";
# header('Location: '.$url);
# die();
# print( "<h1>MSG_2100 k=$k NOTFOUND \$out</h1>\n" );
# return($k);
# exit();
# }
$line="";
# $out = [];
if( count($out) > 0 ) { $line=$out[$k]; }
# print( "<h1>MSG_2110 k=$k line=$line</h1>" );
# print( "<h1>MSG_2111 k=$k id=$id find=$find outcnt=$outcnt out0=".$out[0]." </h1><br>\n" );
# print( "<h2>MSG_704 out4=".$out[4]."</h2>" );
# print( "<h2>MSG_705 out5=".$out[5]."</h2>" );
# print( "<h2>MSG_706 out6=".$out[6]."</h2>" );
# print( "<h2>MSG_707 out7=".$out[7]."</h2>" );
$htmout_table = "";
$htmout_table .= "<table id=table_media>\n";
$htmout_table .= "<tr>";
$htmout_table .= "<td>j</td>";
$htmout_table .= "<td>k</td>";
$htmout_table .= "<td>tot</td>";
$htmout_table .= "<td>link</td>";
$htmout_table .= "<td>group</td>";
$htmout_table .= "<td width=400>base bugs_700</td>";
$htmout_table .= "</tr>";
# $htmout_table .= "</table>";
$txt = "";
$psv = "";
$csv = "";
$sql = "";
$sql .= "insert into table files (\n";
$json = "";
$json .= "{\n";
# print( "<h1>BUGS_710 skiplist $htmout_table</table></h1>" );
# $out_skiplist = skiplist($out);
# $out=$out_skiplist;
$cntout=count($out);
# print_r($out);
# print( "BUGS_26920 count(out)=".count($out)."<br>\n" );
$j=0; $k=0;
for( $j=0; $j<count($out); $j++ ) {
# for( $j=0; $j<$cntout; $j++ ) {
$k=$j+1;
$line = $out[$j]."\n";
$list .= $line."\n";
$pathfile = $line;
# print( "BUGS_27930 j=$j k=$k line=$line<br>\n" );
# $extension = pathinfo($pathfile, PATHINFO_EXTENSION);
$dirname=dirname($pathfile);
$group = str_replace("/","_", $dirname );
$temp= explode('.',$pathfile);
$ext = end($temp);
$base=basename($pathfile,".$ext");
$link = htmout_link($pathfile,'',$find);
# $url=$pathfile;
# $tn="/imgs/btn/koeye.png";
# print( "BUGS_26940 j=$j k=$k link=$link line=$line<br>\n" );
$txt .= "$line\n";
$psv .= "$j|$k|$outcnt|$pathfile|$link|$group|$base\n";
$csv .= "$j,$k,$outcnt,$pathfile,$link,$group,$base\n";
$sql .= "( 'j','k','outcnt',pathfile,'link','group','base' ),";
$json .= "{\n";
$json .= "'j':'$k', ";
$json .= " 'k':'$k', ";
$json .= "'outcnt':'$outcnt', ";
$json .= "'pathfile':'$pathfile', ";
$json .= "'link':'$link', ";
$json .= "'group':'$group', ";
$json .= "'base':'$base' ";
$json .= "},\n";
$htmout_table .= "<tr>";
$htmout_table .= "<td>$j</td>";
$htmout_table .= "<td>$k</td>";
$htmout_table .= "<td>$outcnt</td>";
$htmout_table .= "<td>".htmout_link($pathfile,'',$find)."</td>";
# $htmout_table .= "<td><img src=/imgs/btn/koeye_handhither.gif height=100></td>";
$htmout_table .= "<td>$group</td>";
$htmout_table .= "<td>$base</td>";
$htmout_table .= "</tr>\n";
# print( "<h3>BUGS_740 j=$j k=$k outcnt=$outcnt group=$group base=$base ext=$ext </h3>" );
$htmout_link=htmout_link($pathfile,'',$find);
# print( "<h3>BUGS_2020 j=$j k=$k pathfile=<$pathfile></h3>" );
# print( "<h3>BUGS_2021 j=$j k=$k htmout_link=<$htmout_link> find=$find</h3>" );
}
$json .= " }\n";
$matches = "";
$json = preg_replace( "/,}$/", "}", $matches );
$sql = preg_replace( "/,\)$/", ")", $matches );
$psv = preg_replace( "/|$/", "", $matches );
$csv = preg_replace( "/,$/", "", $matches );
$htmout_table .= " </table>";
$htmout .= "<hr color=goldenrod>";
$htmout .= $htmout_table;
$htmout .= "<hr color=goldenrod>";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
$fmt="";
if( isset($_REQUEST['fmt'])) { $fmt=$_REQUEST['fmt']; }
# print( "<h1>BUGS_1000 find=$find fmt=$fmt</h1>" );
if( $fmt == "txt" ) { print( $txt ); exit; }
if( $fmt == "psv" ) { print( $psv ); exit; }
if( $fmt == "csv" ) { print( $csv ); exit; }
if( $fmt == "sql" ) { print( $sql ); exit; }
if( $fmt == "json" ) {
header('Content-type: application/json');
print( $json );
exit;
}
if( $fmt == "html" ) { print( $htmout ); exit; }
print($htmout); exit;
print( "<h3>BUGS_1021 j=$j k=$k outcnt=$outcnt group=$group base=$base ext=$ext </h3>" );
}
# if( count($out) < 1 ) { print( "<h2>ERR_2160 NOTFOUND find=$find</h2>\n" ); }
$outcnt="";
$group="";
$base="";
$ext="";
# print( "<h3>BUGS_1022 j=$j k=$k outcnt=$outcnt group=$group base=$base ext=$ext </h3>" );
return($htmout);
exit;
}
if( isset($_REQUEST['ls-lat']) || isset($_REQUEST['ls'] )) {
if( isset($_REQUEST['ls-lat'])) {
$request_path=$_REQUEST['ls-lat'];
}
else {
$request_path=$_REQUEST['ls'];
}
# print( "<h1>BUGS_183 request_path=$request_path</h1><br>\n" );
if( $request_path === "" ) { exit; }
$pathparts = pathinfo($request_path);
$dirname=$pathparts['dirname'];
$basename=$pathparts['basename'];
$ext="";
if( isset($pathparts['extension'])) {
$ext=$pathparts['extension'];
}
$path=$dirname;
if( ! is_dir($path)) {
print( "\n<h1>ERR_122 LSLAT NOTFOUND path=$path</h1><br>\n");
exit;
}
$lscmd="ls $request_path";
if( isset($_SERVER['ls-lat'])) {
$lscmd="ls -lat $request_path";
}
# print( "\n<h1>MSG_199 LSLAT lscmd=$lscmd</h1><br>\n");
$htmout = "";
exec( $lscmd, $out, $err );
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
exit;
}
if( isset($_REQUEST['find'])) {
# 1 ?find=/fb/zc/pages/*.jpg
# 4 ?find=find $path -name $names
# 6 ?find=find $path -type d -name $names
# 6 ?find=find $path -maxdepth 2 -name $names
# 8 ?find=find $path -type d -maxdepth 2 -name $names
# 4 ?find=find $path -type d
# 6 ?find=find $path -type d -maxdepth $maxdepth
$request_find=""; $findargs=""; $findargs_len=0;
$request_find=$_REQUEST['find'];
$findargs = explode( " ", $request_find );
$findargs_len=count($findargs);
for( $j=0; $j<count($findargs); $j++ ) {
$findargs[$j]=str_replace("\"","",$findargs[$j]);
$findargs[$j]=str_replace("'","",$findargs[$j]);
}
# print( "<h1>BUGS_140 findargs_len=$findargs_len request_find=$request_find</h1><br>\n" );
$path="";
if( count($findargs) === 1 ) {
# print( "<h1>BUGS_141 findargs_len=$findargs_len request_find=$request_find</h1><br>\n" );
# $pathparts = pathinfo($request_find);
# $dirname=$pathparts['dirname'];
# $basename=$pathparts['basename'];
# $ext="";
# if( isset($pathparts['extension'])) {
# $ext=$pathparts['extension'];
# }
# print( "<h1>BUGS_161 dirname=$dirname basename=$basename request_find=$request_find</h1><br>\n" );
# $path=$dirname;
# $name=$basename;
$path="fb";
$type="d";
$maxdepth="1";
$name="??";
if( ! is_dir($path)) {
print( "<h1>ERR_163 NOTFOUND path=$path</h1><br>\n" );
exit;
}
$find="find $path -type $type -maxdepth $maxdepth -name \"$name\"";
# print( "<h1>MSG_164 FOUND path=$path name=$name</h1><br>\n" );
print( "<h1>MSG_2340 FOUND find=$find </h1><br>\n" );
exec( $find, $out, $err );
$htmout="";
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
# print( "<h1>MSG_161 find=$find htmout=$htmout</h1><br>\n" );
print( $htmout );
exit;
}
# print( "<h1>BUGS_150 path=$path request_find=$request_find</h1><br>\n" );
$path="";
$maxdepth="";
$type="";
$names="";
$query_string="";
if( isset( $_SERVER['QUERY_STRING'])) {
$query_string=$_SERVER['QUERY_STRING'];
}
# print( "<h1>BUGS_300 findargs_len=$findargs_len request_find=$request_find query_string=$query_string</h1><br>\n" );
if( $findargs_len === 2 ) {
print( "<h1>BUGS_142 findargs_len=$findargs_len request_find=$request_find</h1><br>\n" );
$path=$findargs[1];
$path=str_replace("\"","",$path );
if( ! is_dir($path)) {
print( "<h1>ERR_143 NOTFOUND path=$path=- request_find=$request_find</h1><br>\n" );
exit;
}
$path="fb"; $type="d"; $maxdepth="1"; $names="??";
$find="find $path -type $type -maxdepth $maxdepth -name \"$names\"";
exec($find,$out,$err);
print( "<h1>BUGS_2380 find=$find</h1><br>\n" );
$htmout="";
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
# phpinfo();
# $request_find=str_replace("%20"," ",$request_find);
exit;
}
if( $findargs_len === 3 ) {
print( "<h1>BUGS_303 findargs_len=$findargs_len $request_find=$request_find query_string=$query_string</h1><br>\n" );
exit;
}
# if( $findargs_len === 4 ) {
# print( "<h1>BUGS_304 findargs_len=$findargs_len $request_find=$request_find query_string=$query_string</h1><br>\n" );
# }
if( $findargs_len === 1 ) {
$path="fb";
$type="d";
$maxdepth="1";
$names="??";
$find="find $path -type $type -maxdepth $maxdepth -name \"$names\"";
exec( $find, $out, $err );
print( "BUGS_311 find=$find<br>\n" );
$htmout="";
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
# print_r($out);
exit;
}
# if( $findargs_len === 2 ) { exit; }
# if( $findargs_len === 3 ) { exit; }
# if( $findargs_len === 5 ) { exit; }
# if( $findargs_len === 7 ) { exit; }
if( $findargs_len > 8 ) { exit; }
# print( "<h1>BUGS_350 findargs_len=$findargs_len query_string=$query_string</h1>\n" );
if( $findargs_len === 1 ) {
# if( is_file($request_find)) {
# print( "<h1>BUGS_101 is_file FOUND request_find=$request_find</h1>");
# }
# else {
# print( "<h1>BUGS_102 is_file NOTFOUND request_find=$request_find</h1>");
# }
if( $request_find != "" ) {
$pathparts = pathinfo($request_find);
$dirname=$pathparts['dirname'];
$basename=$pathparts['basename'];
$ext="";
if( isset($pathparts['extension'])) {
$ext=$pathparts['extension'];
}
$path=$dirname;
$names=$basename;
$type="f";
if( $ext === "" ) {
$path=$request_find;
$type="";
$names="";
}
# print( "BUGS_150 dirname=$dirname names=$names ext=$ext<br>\n" );
# if( $basename === "" ) { $names=""; }
}
}
# ?find=find $path -name $names
# ?find=find $path -type $type
if( $findargs_len === 4 ) {
$path = $findargs[1];
if ($findargs[2] === "-type" ) { $type=$findargs[3]; }
if ($findargs[2] === "-maxdepth" ) { $maxdepth=$findargs[3]; }
if ($findargs[2] === "-name" ) { $names=$findargs[3]; }
# print( "<h1>BUGS_240 findargs3=".$findargs[3]." request_find=$request_find</h1><br>\n") ;
if( ! is_dir($path)) {
print( "<h1>BUGS_241 NOTFOUND path=$path request_find=$request_find</h1><br>\n") ;
exit;
}
# print( "<h1>BUGS_242 FOUND path=$path request_find=$request_find</h1><br>\n") ;
$find="find $path";
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) { $find .= " -name \"$names\""; }
# print( "<h1>BUGS_243 type=$type find=$find request_find=$request_find</h1><br>\n") ;
$htmout="";
exec($find, $out, $err );
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
# print( "<h1>BUGS_249 find=$find htmout=$htmout</h1><br>\n") ;
print( $htmout );
exit;
}
# ?find=find $path -type f -name $names
# ?find=find $path -maxdepth $maxdepth -name $names
# ?find=find $path -type d -maxdepth 1
if( $findargs_len === 6 ) {
# print( "<h1>BUGS_601 request_find=$request_find</h1><br>\n" );
$path="";
$type="";
$maxdepth="";
$names="";
$path = $findargs[1];
if( $findargs[2] === "-type" ) { $type=$findargs[3]; }
if( $findargs[2] === "-maxdepth" ) { $maxdepth=$findargs[3]; }
if( $findargs[2] === "-name" ) { $names=$findargs[3]; }
if( $findargs[4] === "-type" ) { $type=$findargs[5]; }
if( $findargs[4] === "-maxdepth" ) { $maxdepth=$findargs[5]; }
if( $findargs[4] === "-name" ) { $names=$findargs[5]; }
$find="find $path";
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) { $find .= " -name \"$names\""; }
$htmout="";
exec( $find, $out, $err );
for($j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
exit;
}
# ?find=find $path -type f -maxdepth $maxdepth -name $names
if( $findargs_len === 8 ) {
$path = $findargs[1];
if( ! is_dir($path)) { print( "<h1>NOTFOUND path=$path</h1><br>\n" ); exit; }
$find = "find $path";
if( $findargs[2] === "-type" ) { $type=$findargs[3]; }
if( $findargs[2] === "-maxdepth" ) { $maxdepth=$findargs[3]; }
if( $findargs[2] === "-name" ) { $names=$findargs[3]; }
if( $findargs[4] === "-type" ) { $type=$findargs[5]; }
if( $findargs[4] === "-maxdepth" ) { $maxdepth=$findargs[5]; }
if( $findargs[4] === "-name" ) { $names=$findargs[5]; }
if( $findargs[6] === "-type" ) { $type=$findargs[7]; }
if( $findargs[6] === "-maxdepth" ) { $maxdepth=$findargs[7]; }
if( $findargs[6] === "-name" ) { $names=$findargs[7]; }
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) { $find .= " -name \"$names\""; }
$htmout="";
# print( "<h1>BUGS_800 find=$find request_find=$request_find</h1><br>\n" );
exec( $find, $out, $err );
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
exit;
}
$find="find $path";
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) {
$names=str_replace("\"","",$names);
$names=str_replace("'","",$names);
$find .= " -name \"$names\"";
}
# $find="find $path -type $type -maxdepth $maxdepth -name \"$names\"";
# if( $names === "" ) {
# $find="find $path -type $type -maxdepth $maxdepth";
# }
# print( "<h1>BUGS_101 find=$find</h1>\n");
$htmout="";
$types="http html htm php mp4 mp3 jps png gif";
$l=0;
foreach( $types as $types ) {
if( preg_match( "/$type/", $find, $matches )) {
print( "MSG_680 l=$l type=$type find=$find<br>\n");
window.location($find);
exit;
}
$l++;
}
$url=$find;
# print( "MSG_681 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.http/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_682 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.html/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_683 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.htm/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_684 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.php/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_685 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.mp4/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_686 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.mp3/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_687 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.gif/", $url, $matches )) { window.open($url); exit; }
if( preg_match( "/.jpg/", $url, $matches )) { window.open($url); exit; }
if( preg_match( "/.png/", $url, $matches )) { window.open($url); exit; }
## $path="fb";
## $find="find $path -type f -maxdepth 1 -name \"*.*\"";
# if( is_dir($path)) {
## print( "<h1>MSG_271 find=$find</h1>\n" );
# exec( $find, $out, $err );
#
## print( "<h1>MSG_272 OUT find=$find</h1>\n" );
# $query_string="";
# if( isset($_SERVER['QUERY_STRING'] )) {
# $query_string=$_SERVER['QUERY_STRING'];
# }
## print( "<h1>MSG_273 OUT query_string=$query_string</h1>\n" );
## print_r($out);
# print_r($err);
# $outlen=count($out);
# $htmout="";
# $htmout .= "<hr color=goldenrod>\n";
# $list="";
# for( $j=0; $j<$outlen; $j++ ) {
# $htmout .= $out[$j]."<br>\n";
# $list .= $out[$j]."\n";
# }
# $htmout .= "<hr color=goldenrod>\n";
## print( "<h1>MSG_104 ERR</h1>\n" );
## print_r($err);
# $process = proc_open( $cmd, $descriptorspec, $pipes, $cwd_process );
# print( "<h1>MSG_250 LS DONE find=$find outlen=$outlen</h1>" );
# }
# else {
# print( "<h1>ERR_500 NOTFOUND path=$path request_find=$request_find query_string=$query_string</h1>\n" );
# exit();
# }
print( "<h1>MSG_900 LS DONE find=$find</h1>\n" );
if( $fmt == "list" ) { print ( $list ); return($list); }
if( $fmt == "list" ) { print ( $list ); return($list); }
print( $list );
return( $list );
# exit;
# }
# $path="fb";
# $find="find $path -type f -maxdepth 1 -name \"*.*\"";
if( is_dir($path)) {
# print( "<h1>MSG_271 find=$find</h1>\n" );
exec( $find, $out, $err );
# print( "<h1>MSG_272 OUT find=$find</h1>\n" );
$query_string="";
if( isset($_SERVER['QUERY_STRING'] )) {
$query_string=$_SERVER['QUERY_STRING'];
}
# print( "<h1>MSG_273 OUT query_string=$query_string</h1>\n" );
# print_r($out);
print_r($err);
$outlen=count($out);
$htmout="";
$htmout .= "<hr color=goldenrod>\n";
$list="";
for( $j=0; $j<$outlen; $j++ ) {
$htmout .= $out[$j]."<br>\n";
$list .= $out[$j]."\n";
}
$htmout .= "<hr color=goldenrod>\n";
# print( "<h1>MSG_104 ERR</h1>\n" );
# print_r($err);
# $process = proc_open( $cmd, $descriptorspec, $pipes, $cwd_process );
print( "<h1>MSG_250 LS DONE find=$find outlen=$outlen</h1>" );
}
else {
print( "<h1>ERR_500 NOTFOUND path=$path request_find=$request_find query_string=$query_string</h1>\n" );
exit();
}
# print( "<h1>MSG_109 LS DONE find=$find</h1>\n" );
# print( $htmout );
print( $list );
exit;
}
if( isset($_REQUEST['kolog'])) {
$db3file="ko.db3"; $tblname="kologs";
$todo=$_REQUEST['kolog'];
if( $todo == "" ) {$htmout=kolog($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "new" ) {$htmout=kolog_new($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "add" ) {$htmout=kolog_add($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "del" ) {$htmout=kolog_del($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "upd" ) {$htmout=kolog_upd($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "sel" ) {$htmout=kolog_sel($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "create" ) {$htmout=kolog_create($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "form" ) {$htmout=kolog_form($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "submit" ) {$htmout=kolog_submit($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "list" ) {$htmout=kolog_list($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "bugs" ) {$htmout=kolog_bugs($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "logs" ) {$htmout=kologs($db3file, $tblname, $args); print( $htmout ); exit; }
exit;
}
if( isset($_REQUEST['id'])) {
$id=$_REQUEST['id'];
if( $id == "bookmarkusb" ) {
$htmout=bookmarkusb();
# $htmout=bookmarkusb_form();
exit;
}
if( $id == "bookmarkusb_list" ) {
$htmout=bookmarkusb_list();
exit;
}
if( $id == "bookmarkusb_select" ) {
$htmout=bookmarkusb_select();
exit;
}
if( $id == "bookmarkusb_form" ) {
$htmout=bookmarkusb_form();
exit;
}
# print( "<h1>BUGS_100c REQUEST_id id=$id REQ=".$_REQUEST['id']."</h1><br>" );
}
# startup_ls();
# main_ka1();
# main_tl();
$htmlfile="index.html";
$htmout=read_htmlfile($htmlfile);
print( $htmout );
exit;
}
function pdo_leds() {
global $dbfile;
global $path_imgs;
global $path_leds;
global $path_tn;
global $htmout_hdr;
global $htmout_style;
global $htmout_script;
global $htmout_body;
global $htmout_ftr;
global $leds_count;
global $leds_collim;
global $set_dhtml;
global $leds_content;
global $rollover_content;
$pdo = newpdo($dbfile);
$sqlctx= "select val from cfg where fld=\"leds_context\"";
foreach( $pdo->query($sqlctx) as $row ) {
$leds_context=$row['val'];
}
$pdo=null;
$ctx = $leds_context;
switch( $ctx ) {
case 'ai': $tblname = 'leds_ai'; $tblimg = 'imgs/btn/leds_ai.png'; break;
case 'cab': $tblname = 'leds_cab'; $tblimg = 'imgs/btn/leds_cab.png'; break;
case 'doc': $tblname = 'leds_doc'; $tblimg = 'imgs/btn/leds_doc.png'; break;
case 'us': $tblname = 'leds_us'; $tblimg = 'imgs/btn/leds_us.png'; break;
default: $tblname = 'leds'; $tblimg = 'imgs/btn/leds.png'; break;
}
# bugs("","bugs_80 pdo_leds ctx=$ctx tblname=$tblname tblimg=$tblimg<br>\n" );
$set_dhtml="";
$set_dhtml .= "\"div_squares\"+SCALABLE,\n";
$set_dhtml .= "\"div_leds\"+SCALABLE,\n";
$set_dhtml .= "\"div_ctx\"+SCALABLE,\n";
$set_dhtml .= "\"div_links\"+SCALABLE,\n";
$set_dhtml .= "\"div_rollover\"+SCALABLE,\n";
$leds_content = "";
$rollover_content = "";
$rollover_content .= "<script id=script_rollover_content>\n";
$rollover_content .= "content = new Array();\n";
$j=0;
$led_type="manual";
$leds_count=0;
$leds_cols=0;
$limit=10;
# $path_tn="imgs/$ctx/tn/tn_";
$path_tn="imgs/$ctx/tn";
bugs( "", "BUGS_5070 pdo_leds ctx=$ctx tblname=$tblname<br>\n" );
$pdo = newpdo($dbfile);
$sql = "select * from $tblname where led_dttm == 'current' and led_type == '$led_type' limit $limit";
foreach( $pdo->query($sql) as $row ) {
$leds_count=$leds_count+1;
$led_name=$row['led_name'];
$led_id=$row['led_id'];
$led_color=$row['led_color'];
$led_speed=$row['led_speed'];
$led_type=$row['led_type'];
$led_dttm=$row['led_dttm'];
$led_date=$row['led_date'];
$led_cmd=$row['led_cmd'];
$led_desc=$row['led_desc'];
$led_misc=$row['led_misc'];
$led_id="led_$j";
$set_dhtml .= "\"img_$led_id\"+SCALABLE,\n";
$tn="$path_tn/tn_$led_name.png";
$led_output = "";
$led_output .= "<div id=div_rollover name=div_rollover>\n";
$led_output .= "<hr color=goldenrod>\n";
$led_output .= "<img src=$path_tn/tn_$led_name.png height=300 border=0>\n";
$led_output .= "<hr color=goldenrod>\n";
$led_output .= "$led_id - ";
$led_output .= "$led_name - ";
$led_output .= "$led_dttm - ";
$led_output .= "$led_color - ";
$led_output .= "$led_speed - ";
$led_output .= "$led_type - ";
$led_output .= "$led_date - ";
$led_output .= "$led_cmd - ";
$led_output .= "$led_desc ";
$led_output .= "tn=$tn\n";
$led_output .= "path_fpb=$path_tn/tn_$led_name";
$led_output .= "<br>\n";
$led_output .= " </div id=div_rollover_end name=div_rollover_end>\n";
$leds_content .= "<a href=ko.php?q=detail/$led_name ";
$leds_content .= " class=\"screenshot\" ";
$leds_content .= " rel=\"$path_tn$led_name.png\" ";
$leds_content .= " title=\"$led_output\" ";
$leds_content .= " width=100 > \n";
$leds_content .= " <img src=\"$path_leds$led_color$led_speed.gif\" ";
$leds_content .= " alt=\"$path_leds$led_color$led_speed.gif\" ";
$leds_content .= " border=0 height=\"15\" width=\"15\" /> \n";
$leds_content .= " </a>\n";
$leds_content .= "\n";
## $leds_content .= "<img src=$path_leds$led_color$led_speed.gif ";
## $leds_content .= " id=img_$led_id name=img_$led_id height=25 width=25 ";
# $leds_content .= " onmouseover=\"tip(content[$j])\" ";
# $leds_content .= " onmouseout=\"untip()\" ";
## $leds_content .= " class=\"screenshot\" title=\"$led_output\" ";
## $leds_content .= " onclick=\"window.open('ko.php?detail/$led_name');\" ";
## $leds_content .= " border=0>";
$rollover_img="<img src=$path_tn$led_name.png alt=$path_tn/$led_name>";
$rollover_content .= "content[$j]=';";
$rollover_content .= "$rollover_img <br>$led_output';\n";
if( $leds_cols > $leds_collim ) { $leds_cols=1; } else { $leds_cols=$leds_cols+1; }
$j=$j+1;
}
$pdo=null;
$leds_count=$j+1;
$rollover_content .= " </script id=script_rollover_content_end>\n";
$rollover_content .= "\n";
$set_dhtml .= "\"img_reports\"+SCALABLE,\n";
$set_dhtml .= "\"img_ko\"+RESIZABLE,\n";
$set_dhtml .= "\"img_koeye\"+RESIZABLE,\n";
$set_dhtml .= "\"img_koeyeb\"+RESIZABLE,\n";
$set_dhtml .= "\"img_koeyew\"+RESIZABLE,\n";
$set_dhtml .= "\"img_handhither\"+RESIZABLE,\n";
$set_dhtml .= "\"img_handhi\"+RESIZABLE";
$htmout = "";
$htmout .= html_header();
$htmout .= html_body();
$htmout .= html_footer();
print( $htmout );
exit;
}
function html_hangmanwz() {
$htmout = "";
$htmout .= "<!DOCTYPE html>\n";
$htmout .= "<html>\n";
$htmout .= "<head>\n";
$htmout .= " <title>Hangmanwz</title>\n";
$htmout .= "<!--\n";
$htmout .= " <script language=\"JavaScript\" src=\"dhtml/list23-3.js\"></script>\n";
$htmout .= " <script language=\"JavaScript\" src=\"dhtml/list23-2.js\"></script>\n";
$htmout .= " <link rel=\"stylesheet\" href=\"dhtml/list23-4.css\">\n";
$htmout .= " -->\n";
$htmout .= "<!-- <script language=\"JavaScript\" src=\"hangmanwz_orig.js\"></script> -->\n";
$htmout .= "<!-- <script language=\"JavaScript\" src=\"hangmanwz_words.js\"></script> -->\n";
$htmout .= "<!-- <link rel=\"stylesheet\" href=\"hangmanwz.css\"> -->\n";
$htmout .= "\n";
$htmout .= "<!-- <script language=\"JavaScript\" src=\"hangmanwz.js\"></script> -->\n";
$htmout .= "\n";
$htmout .= " <script id=script_hangmanwz_js >\n";
$htmout .= "\n";
$htmout .= "let imgnum=0;\n";
$htmout .= "const b64imgs = [\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhYQBiAPcAAAEBAQkGBQoJBwYGCQoHCgwLCxAODRMRDxQSERkWFRoYFh0bGiEeHCQhHyUjIigmJCwoJy4rKTEsKjMxLjY1Mzk3NDs5Nj48OkE9O0VCPklDPkE/QEZEQElGQk5KRk5LSFBLR1NOSlRRS1hTTldTUllVUV1ZVV9dWWRfV2NeWmZiXGtkXmxnYm1pZHJtZXJuanVxbHl0bnt2cX56c4N8doF/eoeAe4qEfIaEgYyGgY+KiZONhZOMiJmQh5WSjpqUjJ6blKOdlaWfm6Whl6ainKulnq2on7CnnLConquloa6qo7KrpLWuqbewpLixprWyqbu1rby3sb25tcC2rcG5rsS9tMm/tMW/ucnBtcbCuczEu87JvtDHvtLKvc/Lw9PNxdDNyNXRxtnSxtfSytzVytza0+DWy+Xczubd0ujf0ubhzebg0+7k1u/l1+7k1eri1OXh2u3l2+/p3fDm1/Dl1/Dm2fDl2vHn2vDn2vLn2/Hn2/Ho2/Lo2/Hq2/Pp3fHq3PLq3PPq3fTt3fbt3fTs3/bt3/Pq3e3n4fbv4fTs4fru4/nv4/bx4/nw4/vx4/vx5fvz5fzx5P7x5v7x5/v05fv05vz05vz15/705v715v715/725/zz5fbx6f7y6P726/706Pv16f777v//9v//+gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAYQBiAAAI/gDfCBxIsKDBgWkOvkmosKHDhxAjSpyIkKLFixgjMszIsaPHjyBDihxJsqTJkyhTqlxpcGPFlWlipkEjsybLjAllntnJE82ZnGl+Bj1YpxCdokcLFapTR6BPmiRdtpzJkyfDpkULYdrKNRGmQm+Ufq2D6elONGSqVOlSBUmXLk6wvO1yJlEoTE1zokQDVezWu6Hq+OwiRgsUKDluyGDxYsSFEBEcQIjQIQIEDAsUZNaMgACBAgIAFCgAQMBoAwgwwNihpc6iN2hKxtb69UyVJjtcqGCRIoQEBQoKHCBNAIDx48iTK1/O/HgBBzPCxl74cuLGNF+pxOAQQUHx5skF/pge7fn7d/DGzacvz/54AydlRWK6EYF0cgKm0esHgMCAaPsAeGZfAcV5Bl5xBexQSGx6aVQQGpiscBwBAzQHoHETWJABBh2YoAIMOexQQxFB/MAEE2OA8QQYVzwRBRRZXKHFEkK0WEQUVeygmAsodBCCCxcQB4ACDDZoERqLHKFcAQxgAAILM8TwhBQbGBdaBJ149Vcod22VyCKYJJJIHHEkwpSZS525SFGL+MUVV6LcMOEUCx6k10xSFeTAcQu8UIQXb3BVyChkXJAeAA+AEUdVjJ7BF005QVpTTHxRGlOjO6VBxgHHIVEnQXk2BOEPxyEAhiiFxPHGTmYsUgSn/gZSgEYcDMJEnRkKHAfFpxhBqEGAAJggChl8LQQhDaF9F4IcsAkU6kgMQbWAlVU0K1GeZ+RqXBCJSIqdCocCAAMjxd500bMGoVHIEscRSR1Ni5iAXAFAYKLGGgqhay5FZ2AiA7AVkNtsIh4gt4AUmJzh7L4n9dsBsCSEUmwcBX8HwRiJKMxwSmnU8cBxM2BihmASICdrIRpTpC/HECV0BgLHJZGqGBAEWFwGZK68sUP4QqQuFqEZF0UoYDCAnAqJWLtzrxGpy65xBZSxxbTftSBKTEtzlLJDZywSxHEOgEF1aTdI7BHWDE/3UL80tNsAsAUUYfbCKltq5Epqcx3h/nIFKJGwszrnG/jS/Y6wpBEJ391y1hj1m0F4QSSu+EMuob1xzw7NtEgF89arcKiWMx6SujUbh8ATf1Mnukox0fG2cS+MsvXqLGV7HA7xqU47Rysn1IV/xvmQunW791qIFUEDkMPw1RU/eiFUnPdD4s6n5DRyRSySd/Uldf31cUWgzP1emJAaM68MPzv4uf32gNyu248vUr9yGjfAFYWsLz+/mMyAXBWCEZ3+PNKvGvwvf/uLSr9ecMAB4qQhDtQaJsBlvyrkL4IJtNOqMCEvqF0hgLZaXb9K4BwtyCF+GexIv0JQwjpg8CMvlOAHSojAjcUQJxB6GNRac8MUEsRx/s7hggtL0sOGYQIDE7JgEX0YFExwbodDjAoEnQUV3aHEZUcsIa2WtsRrbbBg6QFgF1PYtScGyIIofCConDeTQkyggVesXtcsgJwloM+HKsxiGO+Ix8WlS4/GsWMaq1dECNHxODdgXh+n2BCHISeRs1ukyjbYQePsQJHyK2K/KgmAF2BSkvwj4XFY8ElQaqRfKThaKXfXw2ihEjkmWCXtpDI4WjYxlccpgSxNybVF5AA5IaAeLxlZkH7ZADkZECYT81g/40iAj8OEiPeQEwHxRdM61zsOA+h2TcrBphBQQA4CzLC6MVKuEFU4DwLEsBBzTvImaKhDOo9jAHZ281od2btC8grQhXYWz50IqUMW9gkGpd0zc3XQAoAWMLmDFiQmCQVQAbRAB4AWzywKmycUz+IoDfIyDVoB01Y6sSfjLGANctCKXV7j0HhOIQdFoEEMWmACCkyoAQ/AgAdGcIIkxKEpVpTkTOR5Hv14RgALGEK3rqmuI8BsP8kDQBGWek2XuWABCDgNAhxwgQcwwAEPaEAFUmCCFgABLA4N1BrIoAUtgGEMcOjEIWZFK7twiaX3jNQbyMRX2EwnIWt4lNosysVJpVWNhwUJYRM7zMXi0bE7KyJkWWaQgAAAOw==\",\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhYQBiAPcAAAEBAQkGBQoJBwYGCQoHCgwLCxAODRMRDxQSERkWFRoYFh0bGiEeHCQhHyUjIigmJCwoJy4rKTEsKjMxLjY1Mzk3NDs5Nj48OkE9O0VCPklDPkE/QEZEQElGQk5KRk5LSFBLR1NOSlRRS1hTTldTUllVUV1ZVV9dWWRfV2NeWmZiXGtkXmxnYm1pZHJtZXJuanVxbHl0bnt2cX56c4N8doF/eoeAe4qEfIaEgYyGgY+KiZONhZOMiJmQh5WSjpqUjJ6blKOdlaWfm6Whl6ainKulnq2on7CnnLConquloa6qo7KrpLWuqbewpLixprWyqbu1rby3sb25tcC2rcG5rsS9tMm/tMW/ucnBtcbCuczEu87JvtDHvtLKvc/Lw9PNxdDNyNXRxtnSxtfSytzVytza0+DWy+Xczubd0ujf0ubhzebg0+7k1u/l1+7k1eri1OXh2u3l2+/p3fDm1/Dl1/Dm2fDl2vHn2vDn2vLn2/Hn2/Ho2/Lo2/Hq2/Pp3fHq3PLq3PPq3fTt3fbt3fTs3/bt3/Pq3e3n4fbv4fTs4fru4/nv4/bx4/nw4/vx4/vx5fvz5fzx5P7x5v7x5/v05fv05vz05vz15/705v715v715/725/zz5fbx6f7y6P726/706Pv16f777v//9v//+gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABhAGIAAAj/AN8IHEiwoMGBaQ6+SaiwocOHECNKnIiQosWLGCMyzMixo8ePIEOKHEmypMmTKFOqXGlwY8WVaWKmQSOzJsuMCWWe2ckTzZmcaX4GPVinEJ2iRwsVqlNHoE+aJF22nMmTJ8OmRQth2so1EaZCb5R+rYPp6U40ZKpU6VIFSZcuTrC87XImUShMTXOiRANV7Na7oer47CJGCxQoOW7IYPFixIUQERxAiNAhAgQMCxRk1oyAAIECAgAUKABAwGgDCDDA2KGlzqI3aErG1vr1TJUmO1yoYJEihAQFCgocIE0AgPHjyJMrX878eAEHM8LGXvhy4sY0X6nE4BBBQfHmyQWY/x7t+ft38MbNpy/P/ngDJ2VFYroRgXRyAqbR6weAwIBo+wB4Zl8BxXkGXnEF7FBIbHppVBAamKxwHAEDNAegcRNYkAEGHZigAgw57FBDEUH8wAQTY4DxBBhXPBEFFFlcocUSQrRYRBRV7KCYCyh0EIILFxAHgAIMNmgRGoscoVwBDGAAAgszxPCEFBsYF1oEnXj1Vyh3bZXIIpgkkkgccSTClJlLnblIUYv4xRVXotww4RQLHqTXTFIV5MBxC7xQhBdvcFXIKGRckB4AD4ARR1WMnsEXTTlBWlNMfFEaU6M7pUHGAcchUSdBeTYE4Q/HIQCGKIXE8cZOZixSBKcGUv+ARhwMwkSdGQocB8WnGEGoQYAAmCAKGXwtBCENoX0XghywCRTqSAxBtYCVVTQrUZ5n5GpcEIlIip0KhwIAAyPF3iTQGYUsAoa2BXiByU6gSoRGIUscRyR1NC1iAnIFAIGJGmso9OxHZ2BSBQYIIBeBEkpNR1HBMgBbAbnNJuIBcgtI8a6z5hbMw4XIXfBEIWdQJ1HBHQBLQijFxnHxdxCMkUjJ5p47n34zbGxdHQ8cl7MZgkmAnKwkXzSwvHVUERp6BUDRrckOJXRGwsYlkaoYEARYXAZkHo1SwRIqhxrVxi0QW8AQzYvF0gBEEQoYDCCnQiLW1uxUHUJbSYIOK3r/AQcGyO3qsEPz1mtcAWVsMe13LYgSk90DzVsFch2QsgjdgSqBnBIzR3TGIkEc5wAYi5d2A8sePZ5RwTkg98Mijj4ehn/GLfE0RAXTYG8DwBZQBOocUyQTpFBfC3apZNDhEhlUE3CFYJ5HuFwBSuisutFeP1RwCMdRwMh1dWxhXwSHDO5QwSMsacS7Rjo40vbHcWB9XaEXp0IoNOOOSQbhBcF++xBxyfVWhwlwGacDOlsVJvZVHMGhLWpIqgC//FWyUA1wJfNygn0m8KnYMM84F2BE/tJWiKwZBwFPsB7kREU1AWRhZrMSBfeMIwVePSQmdOCdcV4wihGu8CBIcoFo/wDQgS6RoQTASoEIH+g5bQEAB/Ep3g+pE5M68M84EPgAwo6TgUSs4YvBa0hCukA7APgggddiSULqIIO43acFzGIiCa3AthygMYxTXAh23pACBIgHARxIIRgpMi8qnOcH7MvjQ2KDCTIchgxtOgPashc5eiGnCIswnyLtlIY4KMVYqwPdJYu2SY1QknCYINVxrKbJmzzrlEYrWA8CZ8NSpqRgcjLOAK5QCFjasiMFmwFyqgC9PPrSIwWrwTB7+UuVBAUTL1jmMXEixo4V8DgDqEIvp9nMNBZsX4d7XitLws2SFAyJh9OCHMbZzZDAL511KOdH5MmRgn3AOVpgJuToif8TCKUMnvxs5/n25xwuxJOcAlUg4NKjzYAmtCUFkyBAESowZ0FFiiaRGiYWKhot0OqHDrWOAi/G0IM+lCSfk2iAtMlOoxUkpCGZSSEmIE2UwNSdi7AAcpZQy5MSbKMTYqlPqWkQCHEUADxt6S8dCiGdHucGdxzqDQf6T+NA1YdSxYhGwWmcHURVoA79JnJe8NWsXuScyGFBWc1qnYKlQG5rLWVAo+VW5JggrpuUyin1+sy3HqcEeGUr7hbRuuOEIJGCDeBBCmYD5GQAsVKlJy6RI4GeJnYinwvdcSJAystaRKaGMw4D8OhZxc4LCshBgBnyaq40FKIK50GAGPQ4xZviLjJp5zHAbEv72TTU4QpsK0AXaGtL24KqDlkILhjqxluN1EELAFoAAJsrRt9CF5/Koy7hHAUv2OKzDmdxlJ1K61pMgGkrndhT2dYgB63Y5TXavdsUclAEGsSgBSagwIQa8AAMeGAEJ0hCHJqCUbPOBLf7WY8AFjCE25V2XkcgG3rYBoAiOJi8q3LBAhBwGgQ44AIPYIADHtCACqTABC0AAljiKxBMrIEMWtACGMYAh06Uj0xosAuX4KvdSL2BTECGzXQSsoZHOcy4xpwUizmC5B4v+ckiaTJbpVxbkFDZVgYJCAA7\",\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhWgBmAPexAAEBAQkEBQsJBwYGCQkHCQwLCxAODREQDhMSERkWFRoYFh0cGyAeHCQhHyQjIiomJCspJi8tKzApJjEuKzUxLjk2LzY1NDk2NDc4NT05Nj07OUI+O0VBPklFP0dFQ0pGQE9KRk9MSlBLR1JOS1VRTVpUT1VTUFtWU11ZVV5cWGJdV2JdWWdiXmlkXmZkYmpmYW1qZXJtZnNuanRxbHp1bn55b3VzcXt2cX56dIF9doJ/eoWCeoqEfYqKf4uGgo2Jg5KNhpSPiZaSi5uUi5eVkJyWkZ2Zk5+cmKOdlKKenKOgl6qilqWim62km6yonqqmoq2oo7Sto7CvqLawp7ixpbeyqbu0rL65rb66s8G3rMO7rsO8tcm/tce/u8fBtsnCt8XCu8zGvdDHu9HKv8nHws7KxdTNxdjPwtbPydnOyNfTx9rSxdbTytzVy9/Zzd7b1ODWzOXczundzuDX0ebd0ejf0uXf2ebh1Ori1Obj2+3l2u3q3PDl1/Ln3PHm2vLo2/Pq3PLp3/Tp3fPs3/bt3fbs3fTs3/ft3/Tr3ffx3+3n4e7o4PLp4Pbt4Pfu4ffv4fTt4PXu4vjv4Pnv4fju4fnv4vbx5Prw4/vx4/nw5frx5Prw5fvz5/zz5fzz5P7z5fzz5v705f715fz05/705v715v705/715/zz5fXy6fr16fz16f326fz16f787v738f799P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABaAGYAAAj/APEIHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNqzFhno0eOCDt+HBmSpMmTeEQOVIkSZcc6MFsuhFmHjs04OHPipNORJx6edHTa9KmQZkqWBZE+rBlUKE48h/z4mTQJ0qmrWK8eOoRnUtRThyZlPQUpasqgKl+KfGmx5s6BWw+NFXuqjpYxYpYgWeIjB48YJEaw6IDhgYMNER5kiICBwwkTMoIwsRIGDyRVp/QQPRgTYp04Av1gPfQ5zpYoUYLQgAF4w4gRCwIYMACgtu3buHPnLsCAAggcY079DIlUKUHQddtkCQLjxIQFCRIE0K07gPUABAgUIABgwADq4G8f/1DBNiVB4wnjQKKzowGC6eADFJgPP/zu+fMXLEDgfn51+BQQx9lBcUzSBAO4ZWdfbvIt4MEGHLDAwgxCSMEEFGRkmGEeb7CRBxtkgLHFE08kMQMJDtg23Q2qgHbeQ3Ec0kR9uyGAAAMYaOCBCy7YoAICt/lgRhuYnVIkWZBA4oceTOrBkh5SbWWVKnow4YAABQAAQR53VNQRgvUVEIEOPhQRBhseQpLKmrFAwQB8BQQhHB5ODcUTTXjCBFQcN9FxhyphKHAAAAuwgccd6CkUxyk43FbADmwsghkkewz0lB8s3AbBFqfEkeiLRXWm3gYAHICAGU5SpEcDtx3hyk870f9hnnpmZFCbAAA48AYkoKW10SkjABBAoZpJRIeMt3nwSq8GLcrFAsLWNoEafshqHkNGOXQKCLguIKu1EC36wm1JTKLUZ6cEQRt8IzDp4kilTUKqlosQ9WlBBdpa2wFq4CGHQGvRcQoNuLkgHLgfIXcKLBzUtgEsbnhq1L0vIVgbBIfI0dlRp2SKJQAF/KCKvR51dIoZOqggQpYARGCGVT9tXJQfYrAMgAedEsTTJCiADKQBTLQos0ay6sECkLtpoEOM1t57bBS3pZCzQLJCokJtQC7A6bsfdeQHBipS54AW62G7aBC3wTC1rH6A4DMAGLjBq0noloAbAif8IMQE4l3/cQjCnC16w21FWAKaixQAgECWINyxR9MjqYcEbh60cZVYmdqGQBvXpnfKuLYhYYlNftRRwdsoWFLsSccmbpsGltCJUx2qzFvbDlN73nPoh8ThRxx8+zeDKzahdKwWYZLR+0DHdmEz7FwnRecpDds2hR94wPEAyAUEgLufK5G0KA+3aZB7R4uCXdsCejCknuu1WbFe8AUcUMTIXYYf+Sl22/ZDpyxZ1O5y1b5Q6WF7tSlAGPQQAQBg6QBDcEUc8teSAqmvNlj4G75OMcAFOKQOFlMcHWw1HwVYIXcyocMkLgiADAJuUdWDWyKiByo8hBABJASAAsYwOv2hZFHB8t/5/wTChxTVRm00fNEakBY2CHihbDI5ziSEcJsGHGUlfAiDzZygwYTQwQ9fsBnI4HYsyEXRPHWAlm1iAAs6uQUWM7BNA1KVEJj4YQuOAgAH9rC6zkXxaWJ8AR5OIZZJFCFL0+kBCg9yrCxgDWQwYBIFz3ie8SGyNgzAQRGEoL7pkMBwDDkWFbBWAAekYjh+pKRACvQFVoWHBJC4Q5cSVZNDRGE6tMFAH1VJoEPAQQWDuhsEhHAKWTZElAYoAJAisB7A8VJneIhFo7BGIc4l4l8AK8qxmoAfuEHxmQZB3yQGVxsHwCJ2n4GIwIaguNpgYG7gREgcVAE6Hc5hMx8cH/fg1v/DeBKInprjXHkccrbbYOAUzvQnnVQBA9sYwAypbIg+bYOBSSTUn+KK1kN3SdBTNBQ+B72oZzYyz6tNR4Gliwi6ZBAtuCGUJPdKjypIYBsBeCGlERGcsKaTAYTGlJIwbGkGf7rBcVkHABmYRBJVKj2KCIxU8LECaSSyqBPsFKkv7VpFFmU7AEhVpJ6z6lE3AECF4muFt/kqVU9B06NyYJEjLRkdIAG2qE7VM4sSwVU/ANelNNUiBYJqbarQxXBR76ojKKtZLbWtlk5Bg0Sl2img6sm+1rEoGMlXS786tKJw9aokUOxif3IKDWz2ruGahK2OGtqlxlOFprXNFqoVUYX/HItv0Uqsa/2qkc+eNAw4Vech+MZay8bTtyAzQ3CXcggETgeJtKQk+lQh1uRqJrID8YNzAYAC44JznsHCJUSxSxBWHfUF3n0meKOFgDXUtiEWe256o6gSOqiiZ9PZ3FYTUJvpoHe36lWFSQGQADhkMyJL7C8AaDBfVdp3wAqQFXk7soZgTmcGDQYqdceIMfIOpMIKlkGG4cVIRtmmtRLpyBksvOARU5IOUShCCLZwiEk65ItaVDAOXEzJsGRmlio9BBdwFS0d8JhuBWmKlw6xBfhMxwdHxoiHjXWILNCoCBad8mhta0vcIEGpvNRyTiexBNwQE6xbVmlNJjE5wlk0/80eWRQ7b6OEN8O5t6cg322a8Dcx3/k4p6gBbqCwPH/6WVEmvk0UChtmJC+qobchLD418qmYHBrR9cQgaS7950VdzTYFAANt/9yW6fUvgWSg001ixWmZGAcmi6KpbRaQh0OUJStWWS6pz0MUPkgFFpB25yK+gIQoDOEHNIgBEnwgPzQrNC1bwR4dzCCGLDQhhiBbgBireOA71xcSQ3iABCDAgP0sbtu4+c5taNxq1tnyAclckG6USQKO7vpYk0iDFZDAAhWoYAIOWEAyEWDuCGxgAy8gghDIwAau7JozX5ySVjRjhjC0wQ5oaINVsiLtP6OHJUyRGB6YpDM72aTdZh5dy8NX7nGUx9PlLMdszFvS2ZnDfOY4z7nOd06SgAAAOw==\",\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhXABiAPepAAEBAQkGBQYIBgkJBwcGCQkGCQwLCxAODREQDxEPEBQTEhkWFRoYFhYVGBwbGiEeHCEhHyUjIikmJCopJi0sKjAtKy8wLDIyLjY0Mjo2NDo5NT07OUE9Oz9APERCPkpDP0ZEQUtFQk1JRU5NSVJOSlNSTVlVT1ZUUVpVU1tZVV9cWWFbVmFeWWRiXGhhWGdkYGxnYmxoZG9taHNrZHNvanZxbHt0bXV0cHl3dH15dH98eIJ3coJ7dYd/eYSAeoyEfoWDgIqGgY6Jg5GMhpOPipiQhpaSi5uUjZyVkJ6ak6CXkqOelaifmaKglKmil6WjnKulnbCnnaynoa6qpLOrpLivp7KvqrmvqLmwpbSyqruzq7y6r7u3sb67tMG3rsK6r8G3scS9tMi/uMXBt8nBtcXCu8zEu87JvtPKvszJwtTMw9nPw9XSxdnTxtzVy97Zy97c1eLXzOXczunczubd0enf0+bhzebg0uri1O/q1uTh2u3l2u3r2/Dl1/Hs1/Hm2vPs3fnu3uzn4O3s4PPv4Pbt4PTu5PXt4fnv4fju5Pnv4vPw4PTz4/by5fbx4/rw4/vx5frx5Pvz5/nx5fzz5Pzy5vj05Pn15fr25v705f705v715v715/z05vvy5Pr65/775/Xy7Pn16fn16/z06Pz06fz76P777/788////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABcAGIAAAj/APEIHEiwoMGDCBMqXMjwYJ2GECNKnGjwIcWLGBfW2WgRT0eMH0E6pENSjsmTKE9uJHmwD6A/fQb2iSmQDsqPITMqrCOHjkBAihRVGkq0aFFAlRQBonNHjps2cvCgCYMGDdQ2atSY3EPoqM2cOQs+3NiQJx6klQSSceLkyAwXM3KsqFEjBYkRIkh4oIDhAgUHDhYoQMDggYEABgwoYIDAwAEGDCRU8OABhpEwXf+w1JlQzh9Sbr702CDBgQEAqFOrXs26tWvXBijEOPOSTliHHm8L3FjpTAoFrQkUMFBg+GnViQsAIPC6+eoAqhWUUFPJJ+eBD//EOL5cufPvrLkD/0iceLxrBNAd0CCkW+JGQB9gO5BA4UQKECVO1HCQWsGIEjHI0EIOOQgRhBBJPPFEFmlkIcUUU5SRRhlldFEGF1xMIUUNPpQgAQPjndZDdR7pJEclMAAAHWoKiEAEg3oIIggppCxCSipEHAAdBWycUsknRlWyyJCAAMIHIIQUyceSTC5ZpJCL8MGGCANAh4Ab19HxRxgDpGaADm0sUgkge+BR0ht34FGCigBIQAcgKaVEEkl3zMnUHXjmWadNctTZG3dQEOITWe2JhYccpKzgJRSoHNqTbRvJAecF5kngBh9RXYfQmxWkdgSJhSZUxx4PpMbCKXEYKmkbEpiHgZaZav960IkipCZEJVGFWtGbXqwIwBZ7QLobT4ScUeppJQxyqKydkVIrdEPgWiJFJ/qQmgRmhkSHImAswCYNpJjJrENyxFFJCGwuIShZ7h1aCQkACAAAB9ISJIciVQCHWhCkbDbuQLYJpQgqHKSmBa4c5QZRHdtSiloL9Qp07xUHoGbAEqT09K+9SE4BwwcZVIxaCGqEqytCpaJ2a6wnQrEAdApYkfHG9ioSRgavKVCDG5pNW9YeaIgMABRwSlxJFAqkV4YisdJ84hJCs7biA2v8wW5Db2KhWhd+RHWiFvo6oAYhclz9Lx2EQNFllwB48MQUIwSwInQaWE1ooSce4eUZeTT/VUkYYdNW9t3jPiSHtyxCQUpXhHgBtmpeWB3RiT/0x8YeJ3rBHwAKnEH2bjS7W8Ny402R8aN/nDK6rREzdOIO/aEJSBiIK7DF5ydjxCnpJXyS6UNansE2ACW0DvqslcwQLwAOvIlGygqEsUjToT+kRgKpZbEUQQ+5oW/bxiNkeCWKoiYBIG2kvMAYn4dO0JtUpNYAHBWNmjLx4d92IryJYSBHp8wTnM/c9zTSUWBd3BvV5gAQg/CJ70ToAo4CHOYA2ljHfTVbAuk0ML2ElYgOCzRCvQrFk0rUqjGJCUAFi5YmDAIMEFpIjQU6+L4tHScBbFAYoRKyrRAIgDxtEqAL/yvyB4d1rg8cAV4lhMAmESCMIRapQyUwwDkADEADbijaELnnrh6YpwSkSNVA4uAsNlFhewOsSE0UUbDTMABWZtviB1NmgDDg6iSk0MJxQkCiiZzrWsEaixwLgrYsHEcCZSDFUAiRBH0pwA17yN1AKoEz1EAgjYMcyImosDkDaKAEKXAYABBABUVcMCJ1UAQVUfOAhEnyX5KiQw5AxBoMhMGUUDQI2kTpgDnsMJPH8wkp1ACEVqXHCoSQ3EUkJUoG5AqY4rNNKlSgGiHM7CIMI4QoFdAGTLbrOhZB2waQ0wQHYg0QojyAGrwpR0HWhBAUWI0BqNC+ichBm15SQx9Oyf+ZVw4rN6SyWH8sOBGGVWKcFtOnP6uHB++hZgMpYJMD2oDGyVWiA/lEYkF3kpE6/CENx6lAI1p1GkuxEyH31ICXxNAzaB5ES1xIDQZQEYbTQCcFqKDeTtC2StR4ARDudCnACDEFNnmAEIw8jgGOoMWGzAGdqtFCRTWiRmZtS2/QGQEp3nCKIfQnKnfQ1ZtECYAz6lSo1WJTCvr1JpV2iQXm1CU+UyOFqQpVYqSgAZtiwNZDAScAB0DDSbkH1dRAIRCDuqsmSRFR6NxgZicSgrcCcAY8hJUhY1UNExDb0XFBkE0+uGYsTVADu/KQED0FwBJwqViAqZJNRJBWpPBQCUL/tBBrqFWNEjjb2tz8oVWoIRo//YXb1CIhEGcVnwvrcD/t8ZMimfUUb7kITOAhLgBhMK0954qaIzCttyVqA/bGs87nTuRN8UxNtJq2UE15VA0ie6R7AQFc1PygdWAZIsP+gIZD7iGs7SVIfQEwouRW9w9nOA4GFmEHcOIBAqop8GA3BhYEH4deBi7LQCCcGgkHWFbBO04K4joRDqMmB9/9MCpFZWHUNDDDC3twhEk8yDeFYUU5eKJIBGJiAtPYwaKqyezU+2OILNDHMAayQ3ZIBxFApwt8MC90jyxhaEbxyqSAAhEE5WAQzjjJnbUnUKR8ES+nxgdFziRxdfKQNnwP/wBoBjOFt+gTNYjnvnIGL0XeKx4hIDeTKt6onVVz3DzHOMiDtJ54jvBnPReuRIMmctkczayx9CHSqImtoSmNNTxgGgB45vSj4VvNNIs6Im1AgGo+telTB1kOb5bCnz+cX0ffr6zTdTU2h0XfqPbBJDZxdUdq/VKTEAKhnKMDURS5LF1DJNhdUUQqcpAaB3QhCUYwAl3oEC5K6yYsdegKHagghBeQIL2ukUAMsDRhVwPiCBy49WvkhpozklnXyl4daopTHOdwILG9BTd22FUHQBSBAr5qjQM08EkhIIGe7RY2Up+QgyAEwQg+8EEOjiCFLtChEWJKClADHWY2o20oNC5S5CIJESw+CUvUkmTYo+Y0c3bd29k4z7nOd65hRPP850APutDZPPSiG/3o4woIADs=\",\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhYABkAPeyAAIBAQkFBQUIBQkJBgcGCQoHCQwLCxEODQ8QDxEQDhAPEBMSEhkWFRkYFhcWGBwbGiEeHB8gHyQiHyUjIikmJS4qJionKC4sKjEuLDUyLjY0Mjk2Mzw5Nj47OUE6NkE+O0VBPkhAO0VDQUlGQ0dIRE5LRk5LSlJOSlVRTVdWUVlWU1xZVF5cWmBbVWFeWWRiXWhkXmpnY2tpY3JsZXNuaXVybHp1b3l4bnZ0cnt2cn15c4N9d4N/eoSCe4qEfIOBgIyGg42Jg5OMhZONiZaRh5iQhZWRi5yUjJyXkp2alJ+dmaCXkKOclaielKOemaqfmKehl6mjl6ajm6yknK2onqeloqymoa6po7Oso7ivpLOvqLSxprmyp7Wyqru1rL66r723sr26ssG3rcK7rsO8tMW/usbCtsrCtsbCu8vEu83JvdDGu9PKvs3Hw8/KwtTNxNjNxtPNyNfSxtrTx9vVy97azN7b0uHWzOXczujcz+bd0ejf0+bizungz+bh0+ri1Ovp1e3l2+7q3PLl1/Pn3PHm2vLo2/Po3PXp3Pbr3/Ht3/Ds3fTs3fft3/Pq3fnr3Pfr4PLu4PPv4ffu4Pfv4fbt4/Xt4fjv4Pnv4fju4frv4fnu5Pru4/Tw4/by5PXx5Prw4frw4/vw4/nw5fvx5fvz5Pzx5fzx5fzx5v7y5/3z5v715vzz5fXy6/7y6Pz16v767P/+9P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABgAGQAAAj/AP8IHEiwoMGDCBMS3KOwocOHECM6ZPhnD0WKAi1a1KNnD8ePeD6K5GixosSTCTd25IinpUuRAzEODFSopiFDmG6a2rkTEyZTlHz6pGSoUMWWMlE+1BPyTyFDlEz95GlqVU+glGo6Fch0zxw2bNakIYOlSZYpR9IKEZJ2yRQmTKIwmeIlDZ1AUQvpUfoQz5+eeNiMQcvkiBAfNnTQaFHiwwkQHTRgoDAZQoMGEBYcOGDAQAAAoEOLHi3aAAMKI4ykMbWXL0KPpugcsfEBwoHPpHMD8Ky7N+gAwAHg9g3ggA9Tfl0XZGioRgPiowl0XtBZgQHhv0N/Hg68u3fh3sMH/wegg3VSpQzxgIBOWgH1zp3Zy+89nAam1sr1mDoxP/R1AAsssFsB4AXgmYEGbBZggKdRQFkFGFywwQUcZIBBBh1cINkFDfwXWnl4nPcQQ3pQcgRpBlCgwQcwoMDDETUAoUMPRiQxhBJVPPeZCGmEQYYZY3xhhhlvqCEHHUjiEciShgBClCdOUiIllFIaUocaPjwHWgP48YWHKSGI1oERajhJ1ZmmGBILHRdgNwJeTz11kyE0IeTHH3r4sddIenIkUCxS+EeGISKOWMgZB4R2gSemAMIHUy0xRZJHqySR6GcrePJHiBtpVJJyHv3BRqKgYWFIlxF5hAkTovWAXEYxxf9qCg2iyWCKH3xkxNCnysG6RyAU/DbGqV6aMoN/apiEEB41oSDaEKvkeWevKVVkSAXYTUEJqhHhsQp/n0HQEB6G3MEBAAPslsQqIf4xLbUHMXWHKSmAZsCg3EK0hyEZYAfCqwd9KQYE2DXwBXK7FtprSIZIFcsHoB3whrInMTRHAti1gLBB3mKRKIEUqEFJcvAeZFGaYtAwAgb/HUDHtugd6iGIy31JxHUEauBHIckpPFFCehgyiA8YDCeaCXf55bNBQXPxLMBc6bcDaOl28EcgrfFaMp6YkNEm1bklwAQsJEP05YmhmYrfXpi0kB0IgOBZ0tJKkUuGgKNpAAPB2C3/oLZEX/ogmqnt7hVICdmdoOledPNFopb2pvAFJasEcq52hHdrigzahUGsX4Wci1sKnvjx7tYFfelsaA10AYsheNwRyBwleNgB1A59CQMAAuzWRtzM4rEBdgDAcOu0jf+8kB6FpOGhAWEg19EeePgRC+KhMXHfiF+uwHtxcWy6KQbE2xDt6agT5K0OosFAtq6bmihaDew2/uUIoS1Ax67k4waEeRRznEKoZ4rL7SYNhUhK0MIgGiGwZkR7MAXEQLOAOJyqf8IxAsKSRy1ghYYCgYiVQMi1BdFIYXsTKZEG/BOHQAzvMwZYl9JKpjCN/EEC2LkAJU6XHlMYIX93Sd6X/7AHoEBADIZRABgH0RMTQwQLNBaghNY2ZYrdEUgE7ApgQr7EH9AwQHS7ocKrTJc+heCBEj0IDQa2NTeuODE0SXjgiPRjwOwsYAueqB7yyhgrmfiBAaChQEV45S0gKIqNu8qdKTogms8swAt5dBf6+Mg0fu0GADNYxR1AYgo14A0AVyCW5vAnmgaQIZKgYmJFAuEGLS3ADbAgyk+wADkdoFJfX2KkokRWPVhRsiEl+oKWGtADKExBCF0EjQ6yeJIvTRA0aLglHzn4JTJ4iDQLiCOnmmkKG/hnYr+s26F0KZoFsIAO0gRcFf2TBkItMZweeUoSrhkDWfipWN4LjRcIVf9GjCyxhzcrTRVG5svlmHGd+hRlOCUStDNck4J0SOBrxoVQ0GxBoQuFoCG+RhoTUMJkfTFFDURz0Xxl1CDpWQX7cnOdFUSrbqZwW2imgImynRRohgDDQ8sJgBjgzmybE40VYPZOPn5pePZyQGhgQAIAGUALsOPmSEPjBBTedIumWCloUgA5HLSCAteBQAh9lpQvyRQ0cTTpVfFUCDZgDDQYoIOHYACo0Li0XRDRz1RBc4SfrnUgQxQNGN7gSADQwBSFWOkByKCXRIqwIHr1Txkk+lfIUgILoklBLLhgINC4KoL9AkAF7pM8PazirAAYKuMqOxA9eCK0AGiAHShRQgT/7EZ7eWgeqYDw0r6sIp9orSlrAWuKIpiQKFIYgAGsc8KTGRIADICDFpf1W9FUVa0nDRq2PnMCTfowAAsgkBAwsStKrO4JVi2o+uglmi7AbLhnxKy93sCzVYz0P0Mgr0kwMZs7aC6ZANDmcPFkiHOlSwaroNQNRKO9Lu1kussyBSlBwwRTFJWGewgdaCLQGtPuLjRXeIRjmaJOIgbYr1dlSCAaEACakqiiAPCCiCEcUhPTFLsZDdoUhkoRD7NzEH1YCAcJaOIrvHfAQSNWSjkHmgTIYRAXJq6J3Yvj7M4QTxXlEo19lZI3hkYLRx4wx2LKuklWTCA4TGiVK6u7DwYi/w/qRQnfAFCAQUU5nF9iMgA0kMc7P06yehFzhPWMRZueGQ+QA4CdB8jaL9EKNCNgpgARzc5AC3rMaQSNCSSNkniOYTgGQOCdp7nKNJCveJxGSdDGUBoEGvTSeAqEKTJggJLmxxDyjRh9YY3SWLPBDIYwM0MpwSog8jolNFlztc5Wyjks5NhChteXngsaCDj7sdDe2vrsBQAKGDrbqPNWDHYTXgwYAtvglvYqEPcfDQRi1Jem5n4ABNcEwjvdBuWigRQAgA6g8N6V/SclyPcfE8gR4OCWSSCwFRoUyBHfDXknpUPDgodDHF4ZfsM1K/7ti6tSD4AMTQ0s7nFQFeINb/8FzQ9IXnK+BM0Lo8EBy1PV63TrARNTGE15stZy15Qo16D5X0dA2ml874sM6QqNFMLc805n2Hn+CcOmXkLzmkObei1pq4cWIGueECXORPc483piCDKQajcsWEEKSgACDmyAAmYQbtGPfXM27KAFHqBAyn3zATo0fYuYEMJOR2OgAfSudwGuKcKtTJCgPWHwvjHACrD27IvvyxSpMwUTLsAAzmjHAAugQAdMwAIc9CAJZtDU3zOMhRowTUp0eEMZrNAFL4ABDXdpxSp2b5Vg//3ln+mjR+4UiCjdZEl9gsljF5++ktBBQAMcyfSErTxYf0kIgvw76vYVQhqu/qTM174L+MdvdHST//wSCQgAOw==\",\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhWgBqAPcAAAIBAQkEBQoJBwYGCQoHCQwLCxAODhIQDxEPERUTEhkWFRsYFh0bGiIeHCMhHiUjIiomJCwpJi0rKTEuKzQxLjY0MTo2Mz05Nj47OUE7NkM+Oj9APUZBPEpEPkVEQktHQ01JRUxJSlFMR1JNSlVRTFpVT1VTUVpWUV5ZVV5dW2FcVmJdWmZiXWhjXmZkYmpmYW1pZHBrZHJtaXVxbHlzbH54b3ZzcXt2cX55c3t6eYJ7dYF/eYaCfIqFfoWEgomGgI6KhJSNhZKNiZSRhpqRhpaSjp2VjJeTkJqWkZ6alKKclKGdm6iemKahlaWgmqukmq+pnbOpnq2noq2porOspLOuqrSxprayqbu0qb66rr23sb+7scG3q8O6r8S9tMm+s8W/ucXCt8rCtsbCvMrEu8/IvdXLvs/KwNPLw9jNwtXOydfSxdzTx9bTyd3Vy93YzOLXy+XczuLX0ubd0unf0+bh1Ori1Obi2u3n2e/m2u3l2u7p2/Dm1/Dm2fHn2fHn2vHm3PLl3PHn2vLo2/Lo2vPo3PPq3PXp3PTs3fTt3fft3/fu3/Pr3e/p5O7t6PPr4/Xu4vXt4vnv4fjv4Prv4frq5Pvt5fnv4vXx5frw4/vx4/rw4fvx5Pzz5f7z5fzz5v3x5v705v715/715/705fvz5fbz6Pfz6/zw6P727/z16f767P788/7++gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABaAGoAAAj/AO0IHEiwoMGDCBMqXMiwocOHA+kUlBiRIsSLGBfSmROn45yPGymKtBOSzsaPHDuqXBknpceUKOeYNJmRIZ2WdhBN+sSzJyJIgggiGipI0FCdQ3f2XMp0qVKkiIoGJclRosWMHxF9QuTGi5IZLURo4KBhAocIEiY4mEBhQgQIECJEmHCBgoULGkCMGHFiRAsYOFbIKIIDMA4hSYAUkYKEShUwZLygcZMH0idBMmletTlnEiIsMS4oEACgtOnTAEijXs26tevSAgQEMJCggQUZXiDNwWoHkpIKAVgHGB5cQAIEBhCsHg6AOfHn0KM3Dx7ctYAin+KQfLjbzgjUA1yH/3/9Orr589RNBzfgBVH3hhLzXHgtQAEDCBUshNCAIYQE0wIwMEEDCiRgQHXkJUheAmvwsVlCcXyiQnOnQbACEFNIBocdgkyy005u/EcAACCckkcdbqyBhhdYWAHFE080QQQRQdQQQwwwvMCCCiegsAJfJZBAlgVkMZCAaqeNkF1DcyCSBZIAbGBFHjxFNRVJdMAhiBkOmKZAGHtoN9BRQ0GiVFNoLqXVJ3OwQQYWRRxgGgMPRQjCaS5sdVNVBc3xiRcMmJbAFpjsZtVMJ6HE0qIsxdSdIJDkoYCgaGynkERuJGCaBKeANFNBEVqhKWxXFCrQgzUdFJIbk5amgHaoEv/UJBOn+cDmqQb5SYUBAIyYQBVLpgqRRGjIWZoD28UqUIQ6AOgFZqj66QSvpiURrLAO3WSHGEhGgAhNCkVIgmnIWnqVnzycNgB2YmKrUUccfkIGghqwqSy4gQbnQXbgDuTnDKVRxy6u7iKk3SeTuMEFFTicBsKtlk4kERyThpfCtVb5+QJqPKzSbsGq0pFdEBqMihoM1yLUpBcI5pDyTZ9sfNoMKYMcMUU6BOqaCWy+d1CTVNSacoQAI0izmMpeapMdeWigIAqNZGawb6c5MUm7RKO2Q80YJS3QHJBwQKFpDbxQhBMVnCaDvQ/CXHRpSkDMLGo4cG3zQHFMkm6FSVD/uVPTp+EwidSgfhJE1brZEWHDpwnR6d0RESQRG8aWJoGfHHHU23ywuWGHz3h/0nBxZAgC8+Gn8QBxxJDDzHhpCZyBSEsU5f1Eku4dFGEJAIIhCByfGAFlD3a7uxlNEKSO8XZoUAtAAp4/GOEJp1EhyCdKIAiA6qDXdLxBdAjiBZIClMH6qZBgAOAY34I+PYUBaPEJFVAOXLDXnyNyu2kUzA5+3ncqDQPqkIebXGV38EODGUwGACEUz3j/+8TeSnOCJR0PEhOY0x1M4r5POI06TmgAgJDwwGEh5FOh64HDuCaROOgMABzgVwc/QCHj1JCEH4NcQohlsn3B6lQb+cxp/7BjKMlFKANjO421cqjD40kEbP8RIEoOKDoKKaCIrPMTErUnABzqkDuQ2MEQWZEHxankE2iYVHDqFofvHTGJABgY/k6ILZNg0DQGYMEW3rCmRjghUKShwB7eYxUsNckCYzPAEoI1x9ZRJQ9tiABqEjABD3wgeakBAATmkAeZnE9xn0DB2I7ACiZepJEMAdsZ5MSc1mCgDZgJlwdr6IVO1hF8JjRJHHzDQNQwgAeQ+NylOoPI6qiujY58yKE+BwkyACFtp3EAEjBXyISArZjBOeYt79fCT6jhhaWBACZsaYc6LOSNzGHjF1MlETmIEEAjMsHjGhKhCTGHeKZcJz0/Mf+u6ghgALERgDa99r7qeFGfF9klFFCDgNg0VABX8N85P/Gd6hwNoRdpUgZNA9BRaSoBbSCn5HAVoQ5MBwAsKCFGCyeD05hAUwEFQHgwkDhZmpQ5D8vnSvvkJCSZYAwCMMCIdmADCm3NZ5sp6UnrhcydKgRsFLCiI5zgUABYgBUfFEDcdBqhigZHSTp1KihVWC1WGAEABwJABbKDyQRUqnvL+gQNmRPDsO50ciZLKSRQF5wLRKoMrRKBxwz2iZuG81uo/GJXN9VJCQYMABfARISCVhoi3KqaoLwTc7wlVoNN4nDBcasgIhSDx1aQI58A2PPe8LmRbGQSHwwOZ/vVWVD/vs4IPYvZY0mwJHGVBmU4IYhSqwOBMn5SrH6agACAcCs/lZZCL7Dg55KHAuniDbYnncC3ags+RHiBCp+giJ++Q6EfBGtlLwhpHQaXLI2Orbi07axFhtKdm2CXQsxt4xOpVM6JKA671WkAXLmLJZJOIoClcQIkYMXBdvXrJoiYD3O0O+C77lAQG31e9EYKoU+IjbgiJbA1EZFhAZAhdw7J24dL4634ipjDmFztcXHpW+Z0QKXcpQnFyNVf7iACm5Bd3YsRsuPSVMB/czSJIGKsScQOWVV2MEPlwIpK91Zntk+WGCK+QJrgpNSu4HtnOLMcMjukAUkXvYiYNVnhIWfN/zRKYG+Sw4dJ0jgAi4nVp+20R4WaQiTGAdhkgcm8mzl0ST1eGCRE7NQrBATgcijM8i6ddpoJdBKVLZyUAWKjAd2MxM2pnWR76otL3QVqVBLArJshgQUoAWCJnmybyiRQ1SvO2MIWYTIAgCvMhCogAA0FQAMK+GkC1xM1nfakf3eY6eeRRgEbvjVGmxQF1Ai6zQtxQwOqCj1z5XggTE4AGGanGYxQjAAJCE+3i91Z0qLGfjVBBLdOs+482wyvp4nuD+P9Be11e8gSSUOXgoMBiNn7VFuGEgQIJuI5COINgCxd9xIrkQWehgFgxmg3ZfBLu8Xqe03CgvYWTuavNQnb2f8SxLw35eSSMzxV1EbNC/zs8oJF6KynuYCiTcjhmoOSCL7Eos+xFSHQmqa4KB86kyaB86Mbd2l0HHrMH+uApyudnXRABGWdfvCrSw4RXdCeBEzndWFlnQvao/C9ys7sKBsrOBPwNNtTFYdWleYDD3Tx3IX7zuDwTL8wKXbXa+sSeB06OBXUToeqpPeX1zzrTGHFDLoMABu0AkVecIIOUEACpg1exIKgwgxYsAIUnOAELhAzBDAAgSOpzZzS9rnIFbQcaD9d1UrPlHoCShzXSOAKZEdUuZVuuNa7+jRBZQAFSMADKlSG3WzPeh7cQIavtGAFKwBMEqhwBjXcwTI8EeYr55+8eKZAAihljEnkxt9wl2SuJcpeNkLZv/f638/++qQ//vfPTv6bHaEBAQA7\",\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhWwBlAPcAAAIBAQkEBAoJBwcHCQkGCQwLCxAODhEQDw4OEBAPEBQTEhkWFRoYFxoXGB0bGiEeHCMhHyMfICUjIikmJSspJywnKC4rKjArJzEuKzMxLzAtMDY1Mjk1Mzs5Nj47OkI+PERCPkdFQEpGQ01JRUlGSE9MSFFLR1JMSldRTVlTT1dWUlpVUV5ZVF9dXGBbVmJdWWVhXGpkXmVjY2tmYm5qZHNtZnJuaXZxa3l0bnt4b3d2dHp2c316c4F9doJ/eIWCfYmDfYqIf4yGgY2Kg5CHgZKNhZOOiZSQh5mRh5WRi5qTjZ2WkZ2ak6CXjqKclaOemaWilqmhl6aim6qjm62on62noa6porKspLCvq7Wxprqyp7ayqru1rb25rby2sr67tMG2rsK7r8S9tMm+tcW/u8XBt8vCt8XCu8zFvM7JvtDHv9LJv83HwM7KwtPNw9TNytnSx9bTytvUyt7Yzd3X0t7a0uHWzeXczuzfz+bd0enf0+Tf2ebh0+ri1Obj3Ozl2u7q3fDm1/Hm2/Ps3PTs3/Tt3vPr3fXw3+7q4O7r4/Tr4PPu4/Ds4Pfu4Pfu4fft4/bt4PPu5PXv5fXu4fjv4Pnv4frv4frv4/nu4/Xw5fbx5vbx5Prw4/vw4/vx4/nw4/vx5Pvw5/zz5Pzz5f3y5vv05v705vvz5ffy7vzx6P3x6f7y6Pz16f767fz38v799AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABbAGUAAAj/APsIHEiwoMGDCBMqXMiwocOHBPVAnEixokWJFfVgtMgR4saOBTFqHJnnTp6SJ/OMBEkxpR6VLzWmPPkSZU2XBAMFIsTzEaFHlkgFFUrKJ6FAffSYzMPSoFKVAglZmkqUlNWrWK2y2rpV6KM/YP+4cWOGi5grWbgsSQLlyBAnSaZwKXNmTqKthF42TXonkNU+cu6EsXLFiZMoSYAkKQJECBAeQoY8rjFjxosVL0584CBBwgQKAg4IABAAgOnTqE0LENCgAgkeVPQQYvqxYh5SZnqMqODAwYLRo1MLH05ceOkAyAMQWE6AeAUwhO6A1POIR3ACApavDl68+wAC37uL/zetHcCCNbM55nn0AsDyBQAEwBdQerx91PIXLHjQoQKFDBls8MEGG/D2G3emMWBGILU5dIclSZj3W3PCCWDAavqJdpoAEjDgwAMOSNCBgCuwAAMOcUHBhRlxzDEHH5k8AsgjNMaYCSB8yJHGGUuoIAFpAGzwCFMtEYJBfKtpIAMPT2xxhRdenPFGG2a0kUgS9AHgwBl/mMQHH39kQkgmWfF0FEEwzUSTQDoFxcoKqi3Y4EJ5EMKFaKu1gIolrFgClJk6BcJKFfAB8IAbQwrERx98pHTHo0vB5NFLd5BixGlfpAdRpTwEcKEETC010kiVLhHcBHJEpyiRexV0xyNPnP/GhaYPVTqCeQCMQModGgkk0m1OBFdBHoFIx9BHczL04BKnXTFbsgjVSUF8AOSw60q9VlpEfRXUUWyrCpVUaYSmOctqQxLJUSgAUDzC60eVOnGaBHX8QZtEvYLbh0mEkNLvEKdtsatHfbhxwGld0CrQbVUEB4Ec9vqq70BK8aSFDR1IcLBpDmzBirHH6hGIGMEtIEdSBD0oxsYOsOFuvhPv2wcpUWRQn3ALODHwsQ8iMe8fiw50ByFmFGqAGNf2Cm1C0EpErB23mnYzggJkoenS2p7mwKIYEQvHA6pVQcq9Me9LiBhgAwmABDZscQYMI2SJQSZEKt1gpTWcNoG9Tgv/VAGQSbByLtMcOZ22aQv0AIi/gVjyCsCm/UB3H4NTvC8pMbgHQAV5JaWHJR5Qe4PgC5d9eQqoZRCH4JHWeWSQk1eeMuaaS/CHQJXCQG0JY5s+UJ1g3LwBWCDjTkoPqpURMbSVsgAk54+S8gO1G+Aou76VurChGaqGFIgZBpi2xWx54RvR5SgAiUF0j0ABJAShSly2RoH8XVoJH0f7yJEBzJrHHzCzXKVOAKQI9CEQbiiUALpwiDsEbWl7OdwQBjYnPYBNAGlYXkIq1Z7SeOARfeAfAJaQP99FJBATOA0Uuue9MYxmAul5F0IqlT4PviJqAPgB6QjHw4cohRUEbE4Q/xqIstnlDQA9GBir7kYKApaGAjOgFgwEJxITLuwRVwDSCPKHrH0xIEjlK+IMSQGnm5XmA9cSo+/wtZ7pAYABcYgYxe7QiswtMFFqNEilTICa0lTAD5S7SEdewooOmGaL+4JUH1pBhNIUoXcLkUilbpCaCTDlemtcmFIMCYAZ/OERVnmEHDIHABvszHJj1N1pKpAq6SQLghfB10sCkYcNcOwDJzhBBkbjACFkwoF5HOOt6iOw4lnxIH37AwsQpCUW5OGXX+IDLC+nu/pkKoDHjBYfWGFLIHWAFY/ggwOD5iAyqm18mMxm1yCkmtPAYFdfCuYGSaG9+izhl9mMpEYuAP+AASRAagCgwdjIWc4OmmYJQ5qmCW8DsAT8MzVD4GKt6Km2e6bTihupX3ZOswAHnIaExlwIB9X2g1Pm0ymWyKLaDPWGCKjGCu4aCEEPkjvSlIYHaTwpSvmYmgX8IQ4eNY8b0jNTmh4PoDgN6Unpt4bgOCB8WqLDI9YQVA7wTZ5oIgW5SjNBpZ60Ujg4jQ6CIwAy9CETXcjSCSTKtEoJwaYA6KpOERLUDXgBNVCwRKWgUBoBFCGmCnkJKYqAmiWYdK63IRe7tgBQI+yqUkB4ImAVAlaAvtOr2bwNB0xTgVfE6qMxHVeuYprOStkArioooTojcrbgJMEVXghOAMQACCL/rWcJbrhd38ZISeQAYAWqnesdWEFK2z2iCscBwCNBth6CHHZ2UfRtCJ672jykzQiWIMRWAeADk56Lra6inW9BkFOdEksMpXHASTKx3SRiFmgIUQopgICa6WK2KUurU1iT+gh5ASmpCSnq7Ch5Gl3d14QS+cMVFrUeKwB0uRSRpHhNQ94DTwxZssHdIxwMJLlORMIGBUAHqMsSCOZLLxohxF0Bh8+KmBY1HiDxXCk3sptZ9MMLI0V7TiMkXs04JEn5HneS0GKKVAp19cFAQn/slD7s4XBJUBhEbqO906zvoqsV2Rm4M4RXWDhapCCwaWL85WwOt4yIMyzIFHq5054G/41ltmKduMBM5eo1kga5jfNOQwEAMlmArMBhHz3mSoVmT217Y7PpZulC42jJf9iU3+wy51sI+PnPxksfj68An75y4c6eE6k566NeVM74vNwRwBdewWkgLeDTtIlkpaLLsSUyebglQI0MWCEHUnABAjZ1gBgsQbZ5hpXUsWayyOj8M40M7Q+GhI8D5BTMjVSKBmpjQN1uXcfC6lWSxTpBAEbTgSXH93RqW0Ccy0Ysqr45aX0zJ32mQOwmo+zF9VnAHEKtU0kS9zQGUAODgKzMAFDADpc+n9BIcWzT9BnL8yOWGbhTg48lixRQ6MIjYFlT32agcz+ukxYKVepI88Un6P9qXrpPZvJjSmQOMXgATC8KlYYcOd1wwOpqw8k38zFtI8mqFJrNw3JMv6RR2DqWqOuJuJwrOmYS4drTKUsKbNfH0i3HdFMGqDYBuAFlU9e6rEnBx/oIYA20DLvYRb1n0xwgt2pfO9UJyNGiB1buE6EhfgTuc2Tifcqk0HSc0h73v2fVB6gxWahrU3ixCz3xbmBQ1g3vEPnSXWpiKF/jxf4Uk0Sv7abxAuE3/2eJEIVGhHiFYuOTh1dYQie6pXwkvUaDD3ygA7cfQQbwM4MfLMEMb4BYsZQm+ya/7j76YcADmtCKbRc/In+AwWiS49ubSQgB25GPEy5N+mPeZgvr6s5WRks2cJ3j3dlTncJigACEJwghCU9IQhKMYIQkOGEKS6gBC5ZAy+cn5H9AcRVDMRSsYBV+IoD+N3viohI0wYAM6HkmIWkJOIEUWIEWeIEYmIGcd24mFBAAOw==\",\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhVgBoAPcAAAIBAQkFBQUIBQoJBwcGCQoHCQwMCxEODRIQDxQSERkWFBoYFhoXGBwbGiEeHCMhHiAeISUkIikmJCooJi0rKTEtKzQxLzY1Mjo2Mjw5Njc2OD48OUI+O0RBPklFP0pGQ0xJRE5LSVBMRlJOS1RSTVlVT1pXUlxaVV5dXWFcVmFeWWRiXWllX2pmYm1qZHFsZnNuaXVybXp0bnd1cnt3c316dH5+eoJ9doJ/eIWBd4WCe4qEfYuHgo6Jg5KNhZSPiZOQh5WSjJmUjJyYj5eTkJuWkZ6Zk6GclKOemKailqmilaWhmqulnKypnqSkoaumoa6qpLOrorGuqbWyp7iyp7ayqrq1q765r7+7tcC2rMK6rsO9tMm/tMW/uMXBtsnCt8fFusrGvM3JvtDHvNLJvs7HwMzKx9LNxNTSx9zUx9bTyd3VzN3ZzeHWzOXczujez+HX0ebd0ujf0+Pd2eXhz+jjzebh0+ri1O7p1uXh2uzl2u3s2/Dl1/Dp1/Hm2vPr3e7o4PLn4fXt5PXu4fjv4Prv4fnv4/nu5Pnv4vPw4/Xx5/bz5vbx5Prw4/vw4/vx4/jw5frw5Pvx5fvz5Pvx5/vz5vzx5Pzz5Pzz5f7z5fzx5v7y5/7z5v705v705/715vvz5fbz6v7x6P3y6f7y6Pr16/v27fz37vz16P777v//9f7+9/798////QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABWAGgAAAj/AO8IHEiwoMGDCBMqXMiw4UI5DiNKnEiRIMSKGDNq3Mixo8SLA0F6bAhRjsiRCE+iVImypck4MOO0mUmzDcQ4AkGafEkTpsmQLQtelAOzpsk2d/z4IVSIUKWnUCsR8qOHEEw/bWISquq0EqpCTfUQjTN0o0qZSPn4KRS1kJ9KcchoicJEiQ8fMly8CNEhQ4UIFho0oKBggWAMEy5sMGEiBpElVuDokXoH58o4b5/eGUPliI4bLkRgwBDCwYEAAFKrXs26tWvVCyaYWJKmEFKKLDFXItOjRYgHBl4LH05ceIMjlW5vjFPpS4jgxaNLl14kOUOWA5n3gD69u3fXOggp/xfKsE2lGt9dG2jwwMKGDR9asNBhxAcTK0eQ5DcSBEeRFy2MkEEEhLFmwBh+YLdQHIVEIdx6EFCgAQkknBCDDU40sNoEZsRhByGMMILKiFBN1RQhTEU1olt+rIEfBarJYF1FbTjAWgMnBHGFFx7uISIqIrZCwmoNnEGIHXbQUVNMTDbp5E96sHKEahzMKJF5OrC2gh1P+dGHQHSQhVQcG6wWARpYHaRgTjntdNQdYUBXgR9kTdSGHxasFkIqdcwUBx0EYdZGBas9cEaaGpUkE056rKFAahMkOBFmXKCWmgFi4DHeQHeuMYGZbNB5B0slrZmTboHAsQYhnwIwp2URmf/nAwABoJYBI7ASdGcbrUKKpmWkjmoqUn5EkUIFDShQwQGpdcCKTVdWkgKtqcWACrS6YkWoag2ogehGd8YRgmuoHSepQ0RVwsFqSIgnUrjbptaAGIiautCdXzywmgIWmGBjAam9kKa9JvnxKWoGlCHpRTjJES8ADhgJq4KmyuEHGQsAMAAACgyxhh6pcPGoaj1YWd7IADSQ66gC5cntoStr1Ia+qFFwRiVJ3cHIFBa0EFwEbFpkkBx8kMFdBGINhZkHRIbxrb0KxUHIuqk5kAdWhBwRRVWptDIuACTYxhBmWgig2gVWnVqJCdRyDAYjm2ZkXg7UDvDEGQKd8cAAanT/sQETRVTtEGYOUomKZW2g4sK+VlgH9UN3tJExai/oYMAZJDgwLgePSmFEagogNWwhSuh5beSVLK6aAo3H/bhB5g0BGyEypAzAElKopgMrgdOqhahAhUQU6autkJx56KlmABQmB0+RedNuvEIrS6QWBCsqVMuKHWogAIABXJybUBuElK6atWygkqXyTcz4ekIQmVcCtUGsAV0PgQfHASF7LIFa6A1hjuxUUwOn3GA1BmBC8zrCHKoBAAtc6IARDHAAGnAACgowQBhY0QLQiW5NslpNDVrBAwS2L25mQZ0DmVcIKTUAC3qYwwkAUARWbCsDwFNICFVjhCek5n9TWKBH/8xTu9QcoRBruAIPNkAYA9xAB2iwAsmEWBDm/GA1H2BWuVrHsqBQSjXX60FqmGWAyz3lAvKaWNQqUULW1GxXQSmIeb7mrDMUgQt6QCMMUBSDKaIQdmx0IwAsEAc9/BElmDnDyGCQClToQQ9nYEIeUjErgJGAioDs3WpGoIfKxFFolSEEE1QzgjCAiBGsIITlCACACXSSYHJoQyE+tzod4CxmnxQI9GgVgAN8IAhQ4EGeykWGHJanEkFYTRFSga1cHoQ5MkAAd1hDAQQd8iA7TI0RjOlMg8QBFVyIgAFGhhoEsEAP33KIecQIRrh1MyFSs8IBNvbDGcSBEZ78SDYBAP+FtL0TIXHo1dm4cDg7dFGdyFzNEvz5T12hYlqW2pcRCJHPWFViVqphAkPf+ROpRYE73LHUCHCCy/FVYn2p6WfDGkqQgwGAAihYjaUoQFKLopSfG/3ku1ABA2oZwAwxpRUDfgiAD/jhoPBD3U2HgCuOhsQPWeDODFpRptRYYVy1AgAHrinHShxQNdUpqU4LMUytToVQqFGCIqiGmirV6V4nXY0RmtpQ5nw1ZWtIkI1QM1c9lCCiOHAfdszTxtQElquJMoijVPMEq8RBQ6g5glUqwQTuHJGr5rkrAGqAyZZ8M3oAaMG1TAJZAADheKjAKMfSgFRAapaziI0IxUSZVQv/JOgnewXAENImSxxQKwSdNU8fCdhZ3AC0EhhIDQKKaZk4TA4Ac4VWG1hRVQcEjTzm6en5iusROajSiI6rzKNQUzJoQWQNEQBAB7jZ1eGmBrYs1YMJkKMczKAVAD6wktSm0AEviA+bldButbg7Ei4Z02K9moIxdXMHg+qwEh1UjQtO193y5OolGkopN4nSEOStxpaxrcjj5KAHl2pUrHBNnvUIHMdS6UFftLICexGqutSsgMIsHRoh4qVgFD+4xgBgQXhzzCbzjAB0Z0gajVCRPdWogMW5ZNC2FMAG48ZvbasxAZTjeKfKkoyZXXydeYbk5C170Q8PQ4AV4ObgaB1Z/zUtGDKRZTkl1aAmAD0As50q0YHVpMDMiPQDjGSqMR9Y5SUI7TOcAT3EQozyUjxAGQBwwIq3dlhdqxFyiM+MRrO5oBVh6JUBVvBIggnEYKtxAaM5EjsAmO0BeWgDI8LwqHGCrRI/IY9KbKQaTRM5J35IrzbhcicxwMjWJ2CxHDL83lVj5Moo3UBybuIHNvS5jACwpY8hkgZJw8DZzxZIhhFAL5AwqkwGqJUCL9zabq8mBuCmUVwBBuJcj0oPcXBgA0R3r4wRd9MewUwWvNcBuOgkJ+gkMwCUUAixWqxSH443jVIhAwx8TCS5xkklWKDVlQIUqqyB768hctQ1kVwLd/+iGGYe/e9fC+86FquommRpvpa7fCJQk1rNU1Pem3P5oqwxQiXe4PMzF041CyX60Iout7jKVYjvY7quKlFE1UDBD0qXekc8rFBCZF3r4KrEC1jDhHSCXW6omOFqVHp2VldC4alZaNTbLrQ5ssYKh6a7iGdSCLgrAI+LmvvZdVOIVqjYABRQBCqeUojK2FvvHw9DDGIAg0GX8QAdUMENblC/vEM+JZXx9+rKKGkAREDGAJf6eR34vdbzEoEy9jHdC5n2CSygMAiIwIAucAEOcGAC3jtxST4/tHs26gxqWIMdAIFOp6DICjp45fCJLzRGUaWTBrUDWnQzfepHTSGx9P4Z0sXPkVIJnvygRD/1D57j86uf6e5/P5EDAgA7\",\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhUABpAPMAAAAAAA4ODhUVFTMzMzg4OEZGRmtra5SUlLm5ucfHx8zMzNra2vHx8f///wAAAAAAACH5BAQAAAAAIf8LSW1hZ2VNYWdpY2sOZ2FtbWE9MC40NTQ1NDUALAAAAABQAGkAAAT+sMlJq7046827/2AojmRpbsagrmzrvoMgDMlpJgGg73zv/zyErYQAGo8+4XBUBBAU0Kh0SqUSdMplqFnQFrBaEdcLDoPGyy8ga+6gh2p2e/O2xeee+umO5+hNfH0afyWBghiEJIaHFokji4wUjiKQkRKTIZWWDFALZGuWlpqhZqOkn3KnbaaqdmWtc6ywha+zYbK2lLW5cLu8e76/tKDCvcTFwMfIw6nLmcHOH7jRGNPUFtbXFNnaEtzd39rh1+PU5dHnzunL68jtxe/C8b/zvPW597b5s/uw/a3/VAU8NZBUwVAHRUHrliFhJIeMIB6SKIhiH4t4MMZayPCCxlVvHDtW+FgqpMgJJG+ZPNkgJSqWHFymWXlSprFmMLfRFGnTlbKc2HZ27JkMJ9CWQhkSBZQUXFNxT8lFNTcVXVV1VxssqMK1q9evVnQcAFuFgU4kaNOqXQuEjRq2cOPKrZUCht27ePPqvVvjqN+/giIAADs=\",\n";
$htmout .= "\"data:image/gif;base64,R0lGODlhVABdAPetAAEBAQkFBQoJBwYGCQkHCQwLCxEPDREQDhAPEBQSEhgWFRsYFh0bGiIeHCMhHyEfICUkIykmJCwpJi4sKjEtKzQxLjU0Mjo2Mzs4Njc1OD07OEI9OkRBPklDPkdDQklEQkxJRk9MSlFLRlNOTFVRTVlUTlJPUFdTUVlVU11ZVV5cWWJcVmNeW2ZhXGlkX2pmYm1qZW9ta3JsZXJuaXZybXl0b314b3JvcHp2cn56dH99eYJ7dIh/d4F/eoSBe4mDfYWEgYqGg42JhI2KiZOMhJWRipuUjZaTkZuWkp6ZkaKclKOfm6Wgl6Wim6ukm6inpK+porKro7KuqbWxprmyp7Wyqbu0q764qrq2sr65s8C2r8G7rsO8tMi/tsa/usq/uMbEt8rDt8bCusvFvc7JvtLKvs/JwNPNxdjOw9fPyNPRx9vTxtfSydzUyt3Zzd3Z0eHZx+HXzeXczubd0ujf0+niz+bg1Ori1O/p1+Tg2e7m2u/p3PDm1/Hn2/Pq3fjv3vfy3+zn4O7o4fTr4PLt4Pfu4Pfv4fLp5Pbv5PTt4vnv4fju4Pnv4/nv4vTw5vbx5Pvx4/vz5Pvx5vzz5fzz5P7z5fzz5vv05fv05vr05v705f705v715v715/725v735/vz5f765/Xx6/f07fby6Pnz6Pn06/716Pz16f756/757v777v/+9v///////QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABUAF0AAAj/AO8IHEiwoEGBdA4qXMiwocOHEA8mjEixosWLGDNq3Mixo0eLdELOkUOypMmSc0bOmfhRosKEIemkPMlyoJ9FlHLq3IkqJyGchPzckVOz5Z2adEjOsemH0M6cfvrcibNmDRouSnLMeMGiBYoZKEh4ReECihIfSrjMWdRHjtGCSe/48emHzpowVJwY2eFihAgSFCI0UJAggYEAABIrXsxYcQAFHLik8rP07VpKa6LsKHEhAoMEBRqLHk1adAEVUwhV9rh0kRMPCkrLTox4tmwZqVZ2nFNXRGjGAwbYHk4cQAvVHOf0WXMBQIHfxQM8L8CAgwcPIUigaNECho4eM3Dg/5jRwkePCaBF46C0OmOf5gigAzDAIIKGFjFoBJmwmIMXLmKQcUYeqPT0VIE7paITIW+IsQQOMDBAGwBCEOIWRnJQIgMABCimwRFZqGGHII+QQkorOEDHASFB9dGHHneolNJIKNWYkkBNUZKKGxIAgBgEqhXFEEsJrbHAYj70JFSMc7hByguLaUDIUDdqJBNJlEzhGBNBwhRRhjskJhwKrMwY0lCo5LAYBHPo0V5HCZFhgGI7UELUkAfxRsFiWfSx0kQZGrEYA2f44ZaQG9mhBwQcAjCDnUctJCQdfJQBHQNLsSTHIlZAl4AYhr4lkByPsNBonRdGlNQiSkyoAaQCKf93xpGJFWAFrKLKgYoKjSKB65eUEDFhCHYmVFmPiAngBKSIdqQrCYpFQZlFGW4YAGIwsCeQHYtssFgRv+aKSgi1jtFHswxl6G1tQUCaYQuL4RDKhehaORQlPiRGAXIUGbtIc7Ut8chIlAiqGAq41pscJTkkwMQiqapKRx8RLNbEI3Isl4CPAFxAiB12vCRyRnqsUVdGc9CamBSGUuKtcAy84aaoeCos6R1rbKxYFXgwrFgBWUxLM83KWfozF5RcAR0RqKRq89D9KsdFbQAk8IYfFQsAAAlNQz30xGFordgZG2o9wblPE5QUTCN5rRBvXIjtnBAFIJbAGX5O9HTGlPj/oWhOQ6XtkRx+OLFYARsjdvGfkTqUYRkuSMAABBzgcAYlMrkd6VpNNIZYDV0/BBMdi/yg82IJ0CDVm0Ov1WpjJ5DCOkISzUHJConJvZgFbszs9qYGLwbCxyE3frPtNDQ2OQQHJDYB7V67zlgGU86+0Fq4KwbBC0aMGMgZOcTGwSLWfyQTq4z5eidEtvMAgHAAwKAHJX8clRAqZTQAABHhvrVp54sRQrHO5JA+nKF5iclBblJypqRQolUQgJHgLsKbKjBGB8XaVkMyZIP3bS0VdxKSHDbmhCANbVNJYEwO+icpP1SgVmDwnUEmxh+ERcx/6FtMttb3kBEmRgMQIyBc//zAn1cdSlSrep1iVJDBh/QhDL/BQdMQlZA4xCYCMhQV5xhDAhZKxA9WUEwTumS8GPkhColxgP1OWDjGgMCLB+mD0QAQNCESpFr64tfIUOYHLS1mA3BUiAMAIIA6UtEPjAIABwJpJZmAkTEWGFhEbOctALDshqNCRQ0U8yhMesRYZ2TMBITWQ3wlxgd2qkNNMhSF3xSAC6TUoh+ywJgI9msosbkACOUwI5Kgwgqns4Ae1WY+P3CBMQygFiXgFYAV9s0PcyHED+STBPJB7y10MCYyQya4hMhBQgCYQA6cQAXN8Kc/1oxeH8SgOwZ4siFzIEQrZ+POMtoTTnc4g3wSsP+Ge47MdfJpDATwVr63sOF0zimDHiboTU4lsjEaIFxBDYrQAiiUobHqAymg5ZgQKKF6cPmaHvS5mABs4WQWkRpCAQCEVtBLc5E6A0JNilKJ0UEPFaMNOI8wQJgehRDnVMwVYik6XYGAMUNgVALGQFSoFWmlJXynSzKkJqRiITHCrINP51CpgCpBW19aRBSophgYtMJU8fvVBCtCqTkqxgiMJOYc9NcYhOkBA85Rn+YmNoaAgkuqBslQCVBngsS8EWc9WmpTsdmHvjKmXYC9YygDqIPELFIOhPiC/rA4kLX2q7EBXWFkO0ux/rQCSh0jhEwoEYU57ZAjzTLWOgNKA2b/3UxXMFjMA9yACo4K05uUgEICIqDajDztqYzpQVx5owXoFAAMfvgDB3y0geLGiBJjiAKMMJK2iZkhoOsZ7R30sCfaKAEQcHAZISegWr1Bs7OteyRjWhC6m6EBOknC0nQLsK83TfSTxiSrceKaIREkhmuZWoSBU1slnx5lnbobMGBhooc4VAADUomJegvA3jkUz8F8DSjXxHtTF0UqJOoFgARMSDMqTixubmxiQ2JCpEV0IDERQJuXYJrNYzLmssZNMRbtyOM+eCHCQBad2kKCigUP2bPwvUiIGQNI8b4EFWiVQF2gvBHlODZKcY3yQDL0g8RggMVIFNkBGfOq/xJz/yBz6G1iQoAK3YB4ymC2slyDpRgLkI/IX7NfgBmjZTfPUGNICjOeIMISP4ghoBDwp+NszBh+nviW11TVLBvTAAw98HCJeYGizZfPlTpgu5h+aAKeEBoDXNTBQyFEeT1kIV6mDUyLuUErOFqCQOptI0kpCSVQwJiWOoUSfPivsWKTGAnoAQ9ycg4X/OS1bEKFcDNgjA+a8AMfFKFQCstQ8mpVhZYRGwAoqK8WCcEFGazgAg1ggIArvR485YyTIARbaA6Atx23JJ5KCKhoEnCAwtRtBHiwXoaghBhnVyZDHGWBukOakU3tADrz/tmEInCzexPSCqGKUR+6sO8zLFTSVrFq7CAVAxrEQWACGBgBCkYgcxaYHFEZcgHHXhupDJ0bBl07LlsJcYYmJKEISjgDGczQOzwQAhWkeESBUHHyGeJMZwtYip0FYsA5JSAO9gO0cWM1P53o4ex3ANmM1s5Ng/AmjIiBa6YIGOfcGqfOXBYdjZZiB76DpA978kCdF+IGnYHL0LB2+yw3YC6FU6KyAFCA9fLukjdXpE2UqDqieINXAMB1Uol3iEgcovXplpDyAQEAOw==\"\n";
$htmout .= " ];\n";
$htmout .= "\n";
$htmout .= "var answer=\"\",currentword=\"\";\n";
$htmout .= "var gamestatus=0;\n";
$htmout .= "function Setup(){\n";
$htmout .= " if(!document.getElementById)return;\n";
$htmout .= "\n";
$htmout .= " document.getElementById(\"hangman\").src = b64imgs[0];\n";
$htmout .= " DrawAlphabet();\n";
$htmout .= " ChooseWord();\n";
$htmout .= " dispword=document.getElementById(\"theword\");\n";
$htmout .= " for(i=0; i<answer.length; i++){\n";
$htmout .= " currentword+=\"_\"\n";
$htmout .= " }\n";
$htmout .= " dispword.innerHTML=currentword\n";
$htmout .= " }function \n";
$htmout .= "\n";
$htmout .= "DrawAlphabet(){\n";
$htmout .= " alpha=document.getElementById(\"alphabet\");\n";
$htmout .= " for(i=65; i<91; i++){\n";
$htmout .= " letter=String.fromCharCode(i);\n";
$htmout .= " node=document.createElement(\"A\");\n";
$htmout .= " node.id=letter;\n";
$htmout .= " quoted='\"'+letter+'\"';\n";
$htmout .= " node.setAttribute( \"href\",\"javascript:Guess(\"+quoted+\"); \");\n";
$htmout .= " node.className=\"letter\";\n";
$htmout .= " node.innerHTML=letter;\n";
$htmout .= " alpha.appendChild(node)\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function ChooseWord(){\n";
$htmout .= " num=Math.floor(Math.random()*words.length);\n";
$htmout .= " answer=words[num].toUpperCase()\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function Guess(letter){\n";
$htmout .= " stat=document.getElementById(\"status\");\n";
$htmout .= " alpha=document.getElementById(\"alphabet\");\n";
$htmout .= " displetter=document.getElementById(letter);\n";
$htmout .= " node=document.createElement(\"span\");\n";
$htmout .= " node.innerHTML=letter;\n";
$htmout .= " node.id=letter;\n";
$htmout .= " if(answer.indexOf(letter)!=-1){\n";
$htmout .= " AddLetter(letter);\n";
$htmout .= " stat.innerHTML=\"Correct! Guess another letter.\";\n";
$htmout .= " node.style.color=\"green\";\n";
$htmout .= " alpha.replaceChild(node,displetter);\n";
$htmout .= " if(currentword==answer)GameOver(\"You Win! \")\n";
$htmout .= " }\n";
$htmout .= " else{\n";
$htmout .= " stat.innerHTML=\"Incorrect! Guess again!\";\n";
$htmout .= " node.style.color=\"red\";\n";
$htmout .= " alpha.replaceChild(node,displetter);\n";
$htmout .= " Hang()\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function AddLetter(letter){\n";
$htmout .= " dispword=document.getElementById(\"theword\");\n";
$htmout .= " newword=\"\";\n";
$htmout .= " for(i=0; i<answer.length; i++){\n";
$htmout .= " if(answer.charAt(i)==letter)newword+=letter;\n";
$htmout .= " else newword+=currentword.charAt(i)\n";
$htmout .= " }\n";
$htmout .= " currentword=newword;\n";
$htmout .= " dispword.innerHTML=currentword\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function Hang(){\n";
$htmout .= " gamestatus++;\n";
$htmout .= "// newsrc=\"hangman\"+gamestatus+\".gif\";\n";
$htmout .= " newsrc=b64imgs[gamestatus];\n";
$htmout .= " document.images[\"hangman\"].src=newsrc;\n";
$htmout .= " if(gamestatus==7) GameOver(\"Sorry! \")\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= "function GameOver(text){\n";
$htmout .= " stat=document.getElementById(\"status\");\n";
$htmout .= " alpha=document.getElementById(\"alphabet\");\n";
$htmout .= " dispword=document.getElementById(\"theword\");\n";
$htmout .= " newlink=\" <a href='javascript:location.reload();'> Click Here </a>\";\n";
$htmout .= " newlink+=\" to start a new game.\";\n";
$htmout .= " stat.innerHTML=\"<b ID='gameover' name='gameover'>GAME OVER</b> - \"+text+newlink;\n";
$htmout .= " dispword.innerHTML=answer;\n";
$htmout .= " for(i=65; i<91; i++){\n";
$htmout .= " letter=String.fromCharCode(i);\n";
$htmout .= " oldnode=document.getElementById(letter);\n";
$htmout .= " if(oldnode.nodeName==\"A\"){\n";
$htmout .= " node=document.createElement(\"span\");\n";
$htmout .= " node.innerHTML=letter;\n";
$htmout .= " node.className=\"letter\";\n";
$htmout .= " alpha.replaceChild(node,oldnode)\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " </script id=script_hangmanwz_end>\n";
$htmout .= "\n";
$htmout .= "<!-- <script language=\"JavaScript\" src=\"hangmanwz_words.js\"></script> -->\n";
$htmout .= "\n";
$htmout .= " <script id=script_hangmanwz_words_js>\n";
$htmout .= "\n";
$htmout .= "var words=new \n";
$htmout .= "Array(\n";
$htmout .= "\n";
$htmout .= " \"procurement\", \"sourcing\", \"purchasing\", \"suppliers\", \"vendors\",\n";
$htmout .= " \"contracts\", \"tenders\", \"bidding\", \"quotations\", \"negotiation\",\n";
$htmout .= " \"spend\", \"budget\", \"requisition\", \"purchaseorder\", \"invoice\",\n";
$htmout .= " \"receipt\", \"delivery\", \"logistics\", \"inventory\", \"supplies\",\n";
$htmout .= " \"materials\", \"goods\", \"services\", \"compliance\", \"approval\",\n";
$htmout .= " \"authorization\", \"evaluation\", \"selection\", \"qualification\", \"onboarding\",\n";
$htmout .= " \"due diligence\", \"riskmanagement\", \"costsavings\", \"forecasting\", \"planning\",\n";
$htmout .= " \"specifications\", \"requirements\", \"leadtime\", \"fulfillment\", \"warehousing\",\n";
$htmout .= " \"distribution\", \"qualitycontrol\", \"performance\", \"renewal\", \"termination\",\n";
$htmout .= " \"puck\", \"stick\", \"skates\", \"rink\", \"goal\", \"goalie\",\n";
$htmout .= " \"forward\", \"defenseman\", \"center\", \"winger\", \"referee\",\n";
$htmout .= " \"linesman\", \"helmet\", \"gloves\", \"pads\", \"jersey\", \"faceoff\",\n";
$htmout .= " \"slapshot\", \"wristshot\", \"backhand\", \"checking\", \"passing\",\n";
$htmout .= " \"dribbling\", \"shooting\", \"skating\", \"overtime\", \"penalty\",\n";
$htmout .= " \"powerplay\", \"shorthanded\", \"icing\", \"offside\", \"boarding\", \"tripping\",\n";
$htmout .= " \"hooking\", \"fighting\", \"bench\", \"crease\", \"hattrick\", \"assist\", \"save\",\n";
$htmout .= " \"rebound\", \"breakaway\", \"zamboni\", \"playoffs\", \"mascot\", \"scoreboard\",\n";
$htmout .= " \"accept\",\"account\",\"achieve\",\"across\",\"action\",\"actually\",\"addition\",\n";
$htmout .= " \"analysis\",\"animal\",\"announce\",\"another\",\"answer\",\"anyone\",\"anything\",\"audience\",\n";
$htmout .= "\n";
$htmout .= " \"because\",\"become\",\"before\",\"behind\",\"believe\",\"better\"\n";
$htmout .= " \n";
$htmout .= " ,\"central\",\"century\",\"certain\",\"chance\",\"change\",\"charge\",\"choice\",\n";
$htmout .= " \"complete\",\"concern\",\"congress\",\"consider\",\"contain\",\"continue\",\"control\",\n";
$htmout .= "\n";
$htmout .= " \"defense\",\"demand\",\"describe\",\"design\",\"detail\",\"develop\",\"direct\",\"division\",\"doctor\",\"dollar\",\"during\",\n";
$htmout .= " \n";
$htmout .= " \"economic\",\"effect\",\"effort\",\"either\",\"evidence\",\"example\",\"except\",\"expect\",\"explain\",\"express\",\"extend\",\n";
$htmout .= "\n";
$htmout .= " \"finger\",\"finish\",\"fiscal\",\"follow\",\"foreign\",\"forget\",\"former\",\"freedom\",\n";
$htmout .= "\n";
$htmout .= " \"happen\",\"herself\",\"higher\",\"himself\",\"history\",\"hospital\",\"however\",\n";
$htmout .= "\n";
$htmout .= " \"instance\",\"instead\",\"interact\",\"interest\",\"involve\",\n";
$htmout .= "\n";
$htmout .= " \"language\",\"larger\",\n";
$htmout .= "\n";
$htmout .= " \"maintain\",\"manager\",\"manner\",\"market\",\"marriage\",\"material\",\"matter\",\n";
$htmout .= " \"method\",\"military\",\"million\",\"minute\",\"modern\",\"moment\",\"morning\",\n";
$htmout .= "\n";
$htmout .= " \"nearly\",\"normal\",\"nothing\",\"number\",\n";
$htmout .= "\n";
$htmout .= " \"object\",\"obtain\",\"office\",\"officer\",\n";
$htmout .= "\n";
$htmout .= " \"period\",\"permit\",\"person\",\"personal\",\"physical\",\"picture\",\n";
$htmout .= " \"police\",\"prevent\",\"private\",\"probably\",\"problem\",\"process\",\"produce\",\"product\",\n";
$htmout .= "\n";
$htmout .= " \"question\",\n";
$htmout .= "\n";
$htmout .= " \"rather\",\"reaction\",\"realize\",\"really\",\"reason\",\"receive\",\"religion\",\n";
$htmout .= " \"remain\",\"remember\",\"remove\",\"report\",\"require\",\"research\",\n";
$htmout .= "\n";
$htmout .= " \"section\",\"select\",\"series\",\"serious\",\"service\",\"settle\",\"several\",\n";
$htmout .= " \"source\",\"southern\",\"special\",\"specific\",\"spring\",\"square\",\n";
$htmout .= " \"station\",\"suddenly\",\"suffer\",\"suggest\",\"summer\",\"supply\",\"support\",\"suppose\",\n";
$htmout .= "\n";
$htmout .= " \"toward\",\"trouble\",\n";
$htmout .= "\n";
$htmout .= " \"usually\",\"various\",\"volume\",\n";
$htmout .= "\n";
$htmout .= " \"weapon\",\"western\",\"whether\",\"window\",\"within\",\"without\",\"wonder\",\"worker\",\"writer\"\n";
$htmout .= " );\n";
$htmout .= " </script id=script_hangmanwz_words_js_end>\n";
$htmout .= "\n";
$htmout .= "<!-- <link rel=\"stylesheet\" href=\"hangmanwz.css\"> -->\n";
$htmout .= " <style id=style_hangmanwz>\n";
$htmout .= "\n";
$htmout .= " #div_hangman{\n";
$htmout .= " position:absolute\n";
$htmout .= " top:100; left:100;\n";
$htmout .= " width:100; height:100;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " #div_alphabet{\n";
$htmout .= " position:absolute\n";
$htmout .= " top:100; left:300;\n";
$htmout .= " width:400; height:100;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " #div_status{\n";
$htmout .= " position:absolute\n";
$htmout .= " top:100; left:400;\n";
$htmout .= " width:400; height:100;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " #div_theword{\n";
$htmout .= " position:absolute\n";
$htmout .= " top:100; left:400;\n";
$htmout .= " width:400; height:100;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " #div_gameover{\n";
$htmout .= " position:absolute\n";
$htmout .= " top:100; left:400;\n";
$htmout .= " width:400; height:100;\n";
$htmout .= " border:2px outset black;\n";
$htmout .= " background:wheat;\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " #theword{\n";
$htmout .= " font-size:60px;\n";
$htmout .= " font-family:monospace;\n";
$htmout .= " font-weight:700;\n";
$htmout .= " letter-spacing:12px\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " #alphabet{\n";
$htmout .= " font-size:19px;\n";
$htmout .= " font-weight:700;\n";
$htmout .= " letter-spacing:5px;\n";
$htmout .= " text-decoration:none\n";
$htmout .= " }\n";
$htmout .= " #gameover{\n";
$htmout .= " color:red\n";
$htmout .= " }\n";
$htmout .= " A.letter{\n";
$htmout .= " text-decoration:none;\n";
$htmout .= " color:#00f\n";
$htmout .= " }.letter{\n";
$htmout .= " color:silver\n";
$htmout .= " }\n";
$htmout .= "\n";
$htmout .= " </style id=style_hangmanwz_end>\n";
$htmout .= "\n";
$htmout .= " <script id=script_imginit >\n";
$htmout .= "// document.querySelector(\"hangman\").src = b64imgs[0];\n";
$htmout .= " document.getElementById(\"hangman\").src = b64imgs[0];\n";
$htmout .= " </script id=script_imginit_end >\n";
$htmout .= "\n";
$htmout .= " </head>\n";
$htmout .= "\n";
$htmout .= "<body bgcolor=linen onload=\"Setup();\">\n";
$htmout .= " <script type=\"text/javascript\" src=\"js/wz/wz_dragdrop.js\"></script>\n";
$htmout .= "\n";
$htmout .= " <h1>Hangman</h1>\n";
$htmout .= "<!--\n";
$htmout .= " <p>This is a simple Hangman game that uses DHTML and JavaScript. Click on a blue letter to guess that letter. If your guess is correct, the letter turns green and you're closer to winning - but if your guess is wrong, the letter turns red and you're closer to hanging. You're allowed a total of seven incorrect guesses.</p>\n";
$htmout .= " -->\n";
$htmout .= " <div id=\"div_table\" name=\"div_table\" style='display:inline'>\n";
$htmout .= " <table id=table_hangman name=table_hangman>\n";
$htmout .= " <tr>\n";
$htmout .= " <td rowspan=\"3\">\n";
$htmout .= " <div id=\"div_hangman\" name=\"div_hangman\" style='display:inline'>\n";
$htmout .= " <img id=\"hangman\" name=\"hangman\" src=\"hangman0.gif\" width=\"80\" height=\"105\">\n";
$htmout .= " </div id=\"div_hangman_end\">\n";
$htmout .= " </td>\n";
$htmout .= " <td> \n";
$htmout .= " <div id=\"div_status\" name=\"div_status\" style='display:inline'>\n";
$htmout .= " <b id=\"status\" name=\"status\" >Guess a Letter Below.</b>\n";
$htmout .= " </div id=\"div_status_end\">\n";
$htmout .= " </td>\n";
$htmout .= " </tr>\n";
$htmout .= " <tr>\n";
$htmout .= " <td valign=\"top\">\n";
$htmout .= " <div id=\"div_alphabet\" name=\"div_alphabet\" style='display:inline'>\n";
$htmout .= " <span id=\"alphabet\" name=\"alphabet\"></span>\n";
$htmout .= " </div id=\"div_alphabet_end\">\n";
$htmout .= " </td>\n";
$htmout .= " </tr>\n";
$htmout .= " <tr>\n";
$htmout .= " <td align=\"center\" id=\"theword\"> </td>\n";
$htmout .= " </tr>\n";
$htmout .= " </table>\n";
$htmout .= " </div id=\"div_table_end\">\n";
$htmout .= "\n";
$htmout .= "<script type=\"text/javascript\">\n";
$htmout .= "<!--\n";
$htmout .= "\n";
$htmout .= "SET_DHTML(\n";
$htmout .= " \"div_theword\"+RESIZABLE,\n";
$htmout .= " \"div_gameover\"+RESIZABLE,\n";
$htmout .= " \"div_status\"+RESIZABLE,\n";
$htmout .= " \"div_hangman\"+RESIZABLE,\n";
$htmout .= " \"div_alphabet\"+RESIZABLE\n";
# $htmout .= " \"hangman\"+RESIZABLE,\n";
# $htmout .= " \"status\"+RESIZABLE,\n";
# $htmout .= " \"table_hangman\"+RESIZABLE,\n";
# $htmout .= " \"gameover\"+RESIZABLE,\n";
# $htmout .= " \"theword\"+RESIZABLE,\n";
# $htmout .= " \"alaphabet\"+RESIZABLE\n";
# $htmout .= " \"A\"+RESIZABLE\n";
$htmout .= " );\n";
$htmout .= "\n";
$htmout .= "//-->\n";
$htmout .= " </script>\n";
$htmout .= "\n";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
$htmout .= "\n";
return($htmout);
}
function html_header() {
global $htmout_hdr;
global $htmout_style;
global $htmout_js;
global $htmout_body;
global $htmout_ftr;
$htmout = "";
$htmout .= "<!DOCTYPE html PUBLIC \"-#W3C#DTD XHTML 1.0 Strict#EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
$htmout .= "<html xmlns=\"http:#www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
$htmout .= "<head>\n";
$htmout .= html_js();
$htmout .= html_styles();
$htmout .= html_scripts();
return( $htmout );
}
function html_js() {
$http_host=$_SERVER['HTTP_HOST'];
$php_self=$_SERVER['PHP_SELF'];
# expand collapse toggle
$output_css = "<style type=\"text/css\">\n";
$output_css .= ".layer1 {margin: 0; padding: 0; }\n";
$output_css .= ".heading { \n";
$output_css .= " margin: 1px; color: white; padding: 3px 10px; cursor: pointer;\n";
$output_css .= " position: relative; background-color:grey;\n";
$output_css .= " }\n";
$output_css .= ".content {padding: 5px 10px; background-color:white;}\n";
$output_css .= "p { padding: 5px 0; }\n";
$output_css .= "</style>\n";
$output_css .= "\n";
$jq_includes_list = array(
"js/jquery-1.8.3.js",
"js/jquery-ui-1.9.2.custom.js",
"js/jqgrid-4.4.0/js/i18n/grid.locale-en.js",
"js/jqgrid-4.4.0/js/jquery.jqGrid.min.js",
"js/tooltip/tooltip_main_tooltip.js",
"tooltip_main_screenshot.js",
"js/tooltip/tooltip_image_preview.js"
);
$htmout = "";
foreach( $jq_includes_list as $jq_include ) {
if(! file_exists( $jq_include )) {
$htmout .= "<!-- pdo_grid ERR_2455: NOTFOUND jq_include=[$jq_include]<br> -->\n";
}
else {
$htmout .= "<script src=\"$jq_include\" type=\"text/javascript\"></script>\n";
}
}
$htmout .= "\n";
return( $htmout );
}
function html_styles() {
global $leds_context;
global $leds_count;
global $leds_collim;
global $leds_width;
global $div_leds_height;
global $div_leds_top;
global $div_leds_left;
$leds_ai_count=262;
$leds_cab_count=262;
$leds_doc_count=78;
$leds_us_count=167;
$leds_count=261;
$leds_cols=$leds_collim;
$leds_rows=25;
# $leds_rows=$leds_count / $leds_collim;
$leds_rows=20;
$dx=50;
$dy=10;
$div_leds_width=$leds_collim * $leds_width;
$div_leds_height=$leds_rows * $leds_width;
$div_squares_left=10;
$div_squares_top=10;
$div_squares_width=70;
$div_squares_height=25;
$div_leds_left=10;
$div_leds_top=50;
$div_leds_width=500;
$div_leds_height=400;
$div_ctx_top=475;
$div_ctx_left=10;
$div_ctx_width=500;
$div_ctx_height=110;
$div_links_top=610;
$div_links_left=10;
$div_links_width=500;
$div_links_height=60;
$div_rollover_top=50;
$div_rollover_left=600;
$div_rollover_height=400;
$div_rollover_width=500;
$htmout = "";
$htmout .= "<style id=style_squares_leds >\n";
$htmout .= " #div_squares {\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:$div_squares_left"."px;\n";
$htmout .= " top:$div_squares_top"."px;\n";
$htmout .= " width:$div_squares_width"."px;\n";
$htmout .= " height:$div_squares_height"."px;\n";
$htmout .= " border:1px solid #000099;\n";
$htmout .= " background:#eeeeee;\n";
$htmout .= " layer-background-color:#eeeeee;\n";
$htmout .= " overflow:hidden;\n";
$htmout .= "// visibility:hidden;\n";
$htmout .= " }\n";
$htmout .= " </style id=style_div_squares_end >\n";
$htmout .= "<style id=style_div_leds >\n";
$htmout .= " #div_leds {\n";
$htmout .= " position:absolute;\n";
$htmout .= " left:$div_leds_left"."px;\n";
$htmout .= " top:$div_leds_top"."px;\n";
$htmout .= " width:$div_leds_width"."px;\n";
$htmout .= " height:$div_leds_height"."px;\n";
$htmout .= " border:1px solid #000099;\n";
$htmout .= " background:#eeeeee;\n";
$htmout .= " layer-background-color:#eeeeee;\n";
$htmout .= " overflow:hidden;\n";
$htmout .= "// visibility:hidden;\n";
$htmout .= " }\n";
$htmout .= " </style id=style_div_leds_end >\n";
$htmout .= "\n";
$htmout .= "<style id=style_div_ctx >\n";
$htmout .= " #div_ctx {\n";
$htmout .= " position:absolute;\n";
$htmout .= " top:$div_ctx_top"."px;\n";
$htmout .= " left:$div_ctx_left"."px;\n";
$htmout .= " width:$div_ctx_width"."px;\n";
$htmout .= " height:$div_ctx_height"."px;\n";
$htmout .= " border:1px solid #000099;\n";
$htmout .= " background:#eeeeee;\n";
$htmout .= " layer-background-color:#eeeeee;\n";
$htmout .= " overflow:hidden;\n";
$htmout .= "// visibility:hidden;\n";
$htmout .= " }\n";
$htmout .= " </style id=style_div_ctx_end >\n";
$htmout .= "\n";
$htmout .= "<style id=style_div_links >\n";
$htmout .= " #div_links {\n";
$htmout .= " position:absolute;\n";
$htmout .= " top:$div_links_top"."px;\n";
$htmout .= " left:$div_links_left"."px;\n";
$htmout .= " width:$div_links_width"."px;\n";
$htmout .= " height:$div_links_height"."px;\n";
$htmout .= " border:1px solid #000099;\n";
$htmout .= " background:#eeeeee;\n";
$htmout .= " layer-background-color:#eeeeee;\n";
$htmout .= " overflow:hidden;\n";
$htmout .= "// visibility:hidden;\n";
$htmout .= " }\n";
$htmout .= " </style id=style_div_links_end >\n";
$htmout .= "\n";
$htmout .= "<style id=style_div_rollover >\n";
$htmout .= " #div_rollover {\n";
$htmout .= " position:absolute;\n";
$htmout .= " top:$div_rollover_top"."px;\n";
$htmout .= " left:$div_rollover_left"."px;\n";
$htmout .= " width:$div_rollover_width"."px;\n";
$htmout .= " height:$div_rollover_height"."px;\n";
$htmout .= " border:1px solid #000099;\n";
$htmout .= " background:#eeeeee;\n";
$htmout .= " layer-background-color:#eeeeee;\n";
$htmout .= " overflow:hidden;\n";
$htmout .= "// visibility:hidden;\n";
$htmout .= " }\n";
$htmout .= " </style id=style_div_rollover_end >\n";
$htmout .= "\n";
return($htmout);
}
function html_scripts() {
global $rollover_content;
$htmout = "";
$htmout .= "<script id=script_startup >\n";
$htmout .= " function startup(msg) {\n";
$htmout .= " alert( \"startup msg=\"+msg );\n";
$htmout .= " }\n";
$htmout .= " </script id=script_startup_end>\n";
$htmout .= "\n";
$htmout .= "<script id=script_changetext >\n";
$htmout .= " function changetext(text) {\n";
$htmout .= " divbeg=\"<div id=div_rollover name=div_rollover>\";\n";
$htmout .= " divend=\"</div id=div_rollover_end name=div_rollover_end>\";\n";
$htmout .= " rollover_text=divbeg+text+divend;\n";
$htmout .= " document.Byid(\"div_rollover\").innerHTML=rollover_test;\n";
$htmout .= " alert( \"startup msg=\"+msg );\n";
$htmout .= " }\n";
$htmout .= " </script id=script_changetext_end>\n";
$htmout .= "\n";
$htmout .= $rollover_content;
return($htmout);
}
function html_body() {
global $leds_content;
$options=array();
$htmout = "";
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen onstartup=\"startup('startup'); return false;\" >\n";
$htmout .= "<script id=script_wzjs type=\"text/javascript\" ";
$htmout .= " src=\"js/wz/wz_tooltip.js\">";
$htmout .= " </script id=script_wzjs_end>\n";
$htmout .= "\n";
$htmout .= html_btn_squares($options);
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<div id=div_leds name=div_leds >\n";
# $htmout .= " <h1>div_leds</h1>\n";
$htmout .= $leds_content;
$htmout .= " </div id=div_leds_end name=div_leds_end >\n";
$htmout .= "\n";
$htmout .= "<div id=div_ctx name=div_ctx >\n";
# $htmout .= " <h1>div_ctx</h1>\n";
$htmout .= " <img src=imgs/btn/leds_ai.png id=img_led_ai name=img_led_ai height=100 width=100 border=0>\n";
$htmout .= "     \n";
$htmout .= " <img src=imgs/btn/leds_cab.png id=img_led_cab name=img_led_cab height=100 width=100 border=0>\n";
$htmout .= "    \n";
$htmout .= " <img src=imgs/btn/leds_doc.png id=img_led_doc name=img_led_doc height=100 width=100 border=0>\n";
$htmout .= "    \n";
$htmout .= " <img src=imgs/btn/leds_us.png id=img_led_us name=img_led_us height=100 width=100 border=0>\n";
$htmout .= " </div id=div_ctx_end name=div_ctx_end >\n";
$htmout .= "<div id=div_links name=div_links >\n";
# $htmout .= " <h1>div_links</h1>\n";
$htmout .= " <img src=imgs/btn/ko.png id=img_ko height=25 width=50 border=0>\n";
$htmout .= "     ";
$htmout .= " <img src=imgs/btn/reports.png id=img_reports height=50 width=50 border=0>\n";
$htmout .= "     ";
$htmout .= " <img src=imgs/btn/koeye.png id=img_koeye name=img_koeye height=25 width=50 border=0>\n";
$htmout .= "     ";
$htmout .= " <img src=imgs/btn/koeyeb.png id=img_koeyeb name=img_koeyeb height=25 width=50 border=0>\n";
$htmout .= "     ";
$htmout .= " <img src=imgs/btn/koeyew.png id=img_koeyew name=img_koeyew height=25 width=50 border=0>\n";
$htmout .= "     ";
$htmout .= " <img src=imgs/btn/handhither.gif id=img_handhither name=img_handhither height=50 width=50 border=0>\n";
$htmout .= "     ";
$htmout .= " <img src=imgs/btn/handhi.gif id=img_handhi name=img_handhi height=50 width=50 border=0>\n";
$htmout .= " </div id=div_links_end name=div_links_end >\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<div id=div_rollover name=div_rollover >\n";
$htmout .= "<h1>div_rollover</h1>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= " </div id=div_rollover_end name=rollover_end >\n";
return($htmout);
}
function html_footer() {
global $set_dhtml;
$htmout="";
$htmout .= "<br><br><br><br><br><br><br><br><br><br>\n";
$htmout .= "<br><br><br><br><br><br><br><br><br><br>\n";
$htmout .= "<br><br><br><br><br><br><br><br><br><br>\n";
$htmout .= "<br><br><br><br><br><br><br><br><br><br>\n";
$htmout .= "<br><br><br><br><br><br><br><br><br><br>\n";
$htmout .= "<br><br><br><br><br><br><br><br><br><br>\n";
$htmout .= "<br><br><br><br><br><br><br><br><br><br>\n";
$htmout .= "<br><br><br><br><br><br><br><br><br><br>\n";
$htmout .= "<br><br><br><br><br><br><br><br><br><br>\n";
$htmout .= "<script id=script_set_dhtml type=\"text/javascript\">\n";
$htmout .= "<!--\n";
$htmout .= " SET_DHTML(\n";
$htmout .= "$set_dhtml";
$htmout .= " );\n";
$htmout .= "//-->\n";
$htmout .= " </script id=script_set_dhtml_end>\n";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
return($htmout);
}
function logwrite( $logfil, $logrec ) {
$fh = fopen( $logfil, 'a+');
# print( "<hr>$progid $dttm BUGS_4660: logfil=[$logfil] fh=[$fh] status=[$status] logrec=[$logrec] logfil=[$logfil]<hr>\n" );
if( $fh != "" ) {
$status = fwrite( $fh, $logrec );
fclose($fh);
}
}
function logdump( $logfil ) {
$fh = fopen( $logfil, 'r' );
# $contents = fread( $fh, filesize($filename));
if( $fh ) {
$icnt=0;
while (( $irec = fgets( $fh, 4096)) !== false) {
$icnt++;
print( "$icnt $irec<br>\n" );
}
if(!feof($fh)){
print( "<hr>$progid ERR_140: reading $logfil<hr>\n" );
}
}
fclose($fh);
# print( "<hr>BUGS_145 contents=[$contents]<hr>\n" );
}
function leds_show( $options ) {
# $output = html_header();
global $progid;
global $dbfile;
global $leds_context;
global $path_leds;
global $path_imgs;
global $path_btn;
$dttm=date("Ymd_His");
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
$preview=$_SESSION['preview'];
$option1=$options[1];
$option2=$options[2];
$option3=$options[3];
$option4=$options[4];
$option5=$options[5];
if( ! file_exists( $dbfile )) {
$output .= "<hr>$progid $dttm ERR_50490 NOTFOUND dbfile=$dbfile<hr>\n";
return;
}
$dttm=date( "Ymd_His" );
$today = mktime( 0,0,0, date("m"), date("d"), date("y"));
$pdo = newpdo($dbfile);
# Determine the table based on leds_context
$ctx = $leds_context;
switch( $ctx ) {
case 'ai': $tblname = 'leds_ai'; $tblimg = 'imgs/btn/leds_ai.png'; break;
case 'cab': $tblname = 'leds_cab'; $tblimg = 'imgs/btn/leds_cab.png'; break;
case 'doc': $tblname = 'leds_doc'; $tblimg = 'imgs/btn/leds_doc.png'; break;
case 'us': $tblname = 'leds_us'; $tblimg = 'imgs/btn/leds_us.png'; break;
default: $tblname = 'leds'; $tblimg = 'imgs/btn/leds.png'; break;
}
# bugs("","5070 leds_show path_imgs=$path_imgs<br>\n" );
# bugs("","5071 leds_show ctx=$ctx leds_context=$leds_context<br>\n" );
$sql = "select * from $tblname where led_dttm == 'current'";
# bugs("","5070 ctx=$ctx tblname=$tblname tblimg=$tblimg sql=$sql<br>\n" );
if(( isset( $_REQUEST['led_type'] )) && ( ! $_REQUEST['led_type'] == "" )) {
$led_type = $_REQUEST['led_type'];
$sql = "select * from $tblname where led_dttm == 'current' and led_type == '$led_type'";
}
$collim=8;
$collim=24;
$colnum=1;
$ctxdta = "";
$j=1;
$dhtml_leds="";
$colnum=1;
foreach( $pdo->query($sql) as $row ) {
$led_namnum="led_$j";
$dhtml_leds .= "\"div_$led_namnum\"+SCALABLE,";
$dhtml_leds .= "\"$led_namnum\"+SCALABLE,";
$led_output =
$row['led_name'] . ' - ' .
$row['led_dttm'] . ' - ' .
$row['led_color' ] . ' - ' .
$row['led_speed' ] . ' - ' .
$row['led_type' ] . ' - ' .
$row['led_date' ] . ' - ' .
$row['led_cmd' ] . ' - ' .
$row['led_desc' ] . ' - ' .
$row['led_misc' ] . ' - ' .
' <br />';
if( $row['led_type'] == "date" ) {
$mydt_yyyymd=$row['led_date'];
if( $mydt_yyyymd == "current" ) {
$mydt=$today;
$mydt_yyyy=date("Y");
$mydt_m=date("m");
$mydt_d=date("d");
}
else {
$mydt_yyyy=substr( $mydt_yyyymd, 0, 4 );
$mydt_m=substr( $mydt_yyyymd, 4, 2 );
$mydt_d=substr( $mydt_yyyymd, 6, 2 );
}
$mydt=mktime( 0,0,0, $mydt_m, $mydt_d, $mydt_yyyy );
$diffdays=datediff( 'd', $today, $mydt );
$leds_properties=datediff_leds( $diffdays);
$diffdays=$leds_properties[0];
$color=$leds_properties[1];
$speed=$leds_properties[2];
# $ledimg = "$path_ani/ani_" . $color . $speed . ".gif";
$ledimg = "$path_leds" . $color . $speed . ".gif";
}
else {
if( $row['led_type'] == "cmd" ) {
# $ledimg = "$path_leds" . $row['led_color'] . $row['led_speed'] . ".gif";
# $ledimg = "$path_ani/hal_" . $row['led_color'] . $row['led_speed'] . ".gif";
$ledimg = "$path_leds" . $row['led_color'] . $row['led_speed'] . ".gif";
$cmd_code=$row['led_cmd'];
$led_cmd="";
$cmdout[0]="";
if( $cmd_code == "pwd" ) { $led_cmd = "pwd"; }
if( $cmd_code == "date" ) { $led_cmd = "date"; }
if( $cmd_code == "dir" ) { $led_cmd = "ls"; }
if( $cmd_code == "dir" ) { $led_cmd = "ps -W | grep SSH "; }
if( $cmd_code == "pwd" ) { $led_cmd = "ps -W | grep ssh "; }
if( $cmd_code == "ls" ) { $led_cmd = "ls"; }
if( $led_cmd != "" ) {
$cmdout=leds_process_value( "", $led_cmd, $cmd_process );
};
if( $cmdout[0] == "" ) {
$color="red"; $speed="90";
}
else {
$color="grn"; $speed="90";
}
# $ledimg = "$path_ani/ani_$color$speed.gif";
# $ledimg = "$path_ani/hal_$color$speed.gif";
$ledimg = "$path_leds$color$speed.gif";
}
else {
# $ledimg = "$path_ani/ani_" . $row['led_color'] . $row['led_speed'] . ".gif";
$ledimg = "$path_leds" . $row['led_color'] . $row['led_speed'] . ".gif";
# $ledimg = "$path_ani/crome_" . $row['led_color'] . $row['led_speed'] . ".gif";
}
}
$rollover_nam = $row['led_name'];
$rollover_name = str_replace( "fp", "fpb", $rollover_nam );
$rollover_img = "$path_imgs/" . $rollover_name . ".png";
$rollover_img = "$path_imgs/tn/tn_" . $rollover_name . ".png";
$rollover_img_default = "$path_imgs/preview_default.png";
$rollover_img_default_cmd = "$path_imgs/preview_default_cmd.png";
$rollover_img_default_date = "$path_imgs/preview_default_date.png";
$rollover_title = $row['led_name'] . "(";
$rollover_title .= $row['led_title'] .") ";
if(( $row['led_type'] == "manual" ) | ( $row['led_type'] == "" )) {
$rollover_title .= " (" . $row['led_color'] . $row['led_speed'] . ")(";
$rollover_title .= " bldg(";
$rollover_title .= $row['led_bldg'] .") floor(";
$rollover_title .= $row['led_floor'].")";
$rollover_title .= " path_imgs=$path_fpb ";
$rollover_title .= " fpbimg=$rollover_img ";
}
if( $row['led_type'] == "date" ) {
$rollover_img_default = $rollover_img_default_date;
$rollover_title .= "($color$speed)";
$rollover_title .= " date(";
$rollover_title .= $row['led_date'] .") diffdays($diffdays)";
}
if( $row['led_type'] == "cmd" ) {
$rollover_img_default = $rollover_img_default_cmd;
$rollover_title .= "($color$speed)";
$rollover_title .= " cmd(";
$rollover_title .= $row['led_cmd'] .")($led_cmd) cmdout(". $cmdout[0]. ")";
}
if( $row['led_type'] == "null" ) {
$ledimg="led_null.png";
$ledimg = "$path_leds"."0.gif";
}
$output .= "<div div_id=\"div_id_$led_namnum\" name=\"div_$led_namnum\" ";
$output .= "style=\"display: inline\" >\n";
$output .= "<a href=$php_self?q=detail/".$row['led_name']." ";
$output .= " name=\"href_$led_namnum\" ";
if( $preview == "on" ) {
if( $GLOBALS['screenshots_pcharts'] != "" ) {
$host="l1033"; $path="/var"; $used=rand(1,100); $free=rand(1,900);
$pchart_title="$dttm p=$path u=$used f=$free";
$pchart_url="/ko_center/ko_pcharts_pie.php?q=df/$host/$host/$used/$free";
$output .= " class=\"screenshot\" rel=\"$pchart_url\" title=\"$pchart_title\" ";
}
else {
if( file_exists( $rollover_img )) {
$output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" width=100 ";
}
else {
$output .= " name=\"led_rollover\" class=\"screenshot\" rel=\"$rollover_img_default\" title=\"$rollover_title\" ";
}
}
}
$output .= ">\n";
if( preg_match( "/ko_center/", $rollover_name, $matches )) {
$output .= "<img src=\"$ledimg\" name=\"$led_namnum\" alt=\"$ledimg\" border=0 height=\"20\" width=\"20\" />";
$output .= "</a>\n";
}
else {
$output .= "<img src=\"$ledimg\" name=\"$led_namnum\" alt=\"$ledimg\" border=0 height=\"15\" width=\"15\" />";
$output .= "</a>\n";
}
$output .= " </div id=\"div_id=div_id_$led_namnum\""."_end\">\n";
if(( preg_match( "/ko_centert/", $rollover_name, $matches ))
|| ( preg_match( "/nl/", $rollover_name, $matches ))
|| ( preg_match( "/pl/", $rollover_name, $matches ))
|| ( preg_match( "/ql/", $rollover_name, $matches ))
|| ( preg_match( "/tl/", $rollover_name, $matches ))
|| ( preg_match( "/vl/", $rollover_name, $matches ))
|| ( preg_match( "/xl/", $rollover_name, $matches ))
|| ( preg_match( "/vio/", $rollover_name, $matches ))
|| ( preg_match( "/data/", $rollover_name, $matches ))) {
$output .= "<br />\n";
$colnum=1;
}
else {
if(( preg_match( "/al/", $rollover_name, $matches ))
|| ( preg_match( "/cl/", $rollover_name, $matches ))
|| ( preg_match( "/el/", $rollover_name, $matches ))
|| ( preg_match( "/gl/", $rollover_name, $matches ))
|| ( preg_match( "/il/", $rollover_name, $matches ))
|| ( preg_match( "/kl/", $rollover_name, $matches ))
|| ( preg_match( "/ml/", $rollover_name, $matches ))
|| ( preg_match( "/ol/", $rollover_name, $matches ))
|| ( preg_match( "/ql/", $rollover_name, $matches ))
|| ( preg_match( "/sl/", $rollover_name, $matches ))
|| ( preg_match( "/ul/", $rollover_name, $matches ))) {
$output .= "  -   \n";
}
$colnum=$colnum+1;
if( $colnum > $collim ) {
$output .= "<br />\n";
$colnum=1;
}
}
# Display custom fields for the appropriate leds_ table when context is set
if( $ctx == 'ai' && isset( $row['id'] ) && $row['id'] != '' ) {
$ctxdta .= " <small>AI: ";
$ctxdta .= htmlspecialchars($row['id']);
$ctxdta .= " | " . htmlspecialchars($row['name']);
$ctxdta .= " | " . htmlspecialchars($row['vendor']);
$ctxdta .= " | " . htmlspecialchars($row['type']);
$ctxdta .= " | " . htmlspecialchars($row['status']);
$ctxdta .= "</small><br>\n";
}
if( $ctx == 'cab' && isset( $row['id'] ) && $row['id'] != '' ) {
$ctxdta .= " <small>CAB: ";
$ctxdta .= htmlspecialchars($row['id']);
$ctxdta .= " | " . htmlspecialchars($row['name']);
$ctxdta .= " | " . htmlspecialchars($row['vendor']);
$ctxdta .= " | " . htmlspecialchars($row['type']);
$ctxdta .= " | " . htmlspecialchars($row['status']);
$ctxdta .= "</small><br>\n";
}
if( $ctx == 'doc' && isset( $row['id'] ) && $row['id'] != '' ) {
$ctxdta .= " <small>DOC: ";
$ctxdta .= htmlspecialchars($row['id']);
$ctxdta .= " | " . htmlspecialchars($row['name']);
$ctxdta .= " | " . htmlspecialchars($row['vendor']);
$ctxdta .= " | " . htmlspecialchars($row['type']);
$ctxdta .= " | " . htmlspecialchars($row['status']);
$ctxdta .= "</small><br>\n";
}
if( $ctx == 'us' && isset( $row['gender'] ) && $row['gender'] != '' ) {
$ctxdta .= " <small>US: " . htmlspecialchars($row['title']);
$ctxdta .= " " . htmlspecialchars($row['fname']);
$ctxdta .= " " . htmlspecialchars($row['lname']);
$ctxdta .= " | " . htmlspecialchars($row['city']);
$ctxdta .= " | " . htmlspecialchars($row['country']);
$ctxdta .= " | " . htmlspecialchars($row['email']);
$ctxdta .= "</small><br>\n";
}
$j=$j+1;
}
$output .= "<br>\n";
$output .= html_leds_context();
$output .= "<br>\n";
# $output .= "<a href=$php_self?q=kb target=_blank>\n";
# $output .= "<img src=\"$path_btn/kbbooks.png\" alt=\"kb\" border=0 height=\"50\" width=\"50\" />";
# $output .= "</a>\n";
# $output .= "      \n";
$output .= "<a href=/ko/ko.php?q=reports><img src=imgs/btn/reports.png name=\"reports\" border=0 height=50 width=50 alt=reports></a>\n";
$output .= "      \n";
$output .= "<a href=/ko/ko.php?q=reports><img src=imgs/btn/koeye.png name=koeye border=0 height=25 width=50 alt=koeye></a>\n";
$output .= "      \n";
$output .= "<a href=/ko/ko.php?q=reports><img src=imgs/btn/koeyeb.png name=koeyeb border=0 height=25 width=50 alt=koeyeb></a>\n";
$output .= "      \n";
$output .= "<a href=/ko/ko.php?q=reports><img src=imgs/btn/koeyew.png name=koeyew border=0 height=25 width=50 alt=koeyeb></a>\n";
$output .= "      \n";
$output .= "<a href=/ko/ko.php?q=reports><img src=imgs/btn/handhither.gif name=\"handhither\" border=0 height=50 width=50 alt=koeye></a>\n";
$output .= "      \n";
# $output .= "<a href=$php_self?q=hosts><img src=./imgs/btn/datacall.png border=0 height=50 width=50 alt=datacall></a>\n";
#
# $output .= "<a href=$php_self?q=ko_plans><img src=./imgs/btn/whatsyourplan.png border=0 height=50 width=50 alt=plans></a>\n";
$outout .= "<hr color=goldenrod>\n";
$outout .= "<hr color=goldenrod>\n";
$output .= "</div id=led_context_end>\n";
$output .= "<hr>\n";
$pdo = null;
if(! isset($_SESSION['hs_type'] )) { $hs_type="default"; }
else {$hs_type=$_SESSION['hs_type'];}
if(! isset($_SESSION['org_type'] )) { $org_type="p"; }
else {$org_type=$_SESSION['org_type'];}
$options[0]=$dhtml_leds;
$output .= html_footer($options);
return( $output );
}
function leds_detail($options ) {
# print( "BUGS_3100 leds_detail options=$options<br>\n" );
bugs("","5335 leds_detail options1=".$options[1]."<br>\n" );
bugs("","5335 leds_detail options2=".$options[2]."<br>\n" );
bugs("","5335 leds_detail options3=".$options[2]."<br>\n" );
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
global $dbfile;
global $tblname;
global $media_path;
$pdo = newpdo($dbfile);
$tblname=$tblname;
$media_path=$media_path;
# $path_ani="./imgs/ani";
global $path_leds;
global $path_imgs;
bugs("","5350 leds_detail path_imgs=$path_imgs option1=".$options[1]."<br>\n" );
$output = "";
$output .= "<head>\n";
# $output .= " <script src=\"js/jqgrid.3.5.3/js/jquery-1.3.2.min.js\" type=\"text/javascript\"></script>\n";
$output .= " <script src=\"js/jqgrid-4.4.0/js/jquery-1.7.2.min.js\" type=\"text/javascript\"></script>\n";
$output .= "<!-- ============================================ -->\n";
$output .= " <script src=\"tooltip.js\" type=\"text/javascript\"></script>\n";
# $output .= " <script src=\"./tooltip_main_screenshot.js\" type=\"text/javascript\"></script>\n";
$output .= "<!-- ============================================ -->\n";
# $output .= " <script src=\"js/tooltip/tooltip_main_screenshot.js\" type=\"text/javascript\"></script>\n";
# $output .= " <script src=\"js/wz/wz_library.js\" type=\"text/javascript\"></script>\n";
# $output .= " <script src=\"js/wz/wz_dragdrop.js\" type=\"text/javascript\"></script>\n";
# $output .= " <script src=\"tooltip_main_screenshot.js\" type=\"text/javascript\"></script>\n";
$output .= " </head>\n";
$output .= html_btn_squares( $options, "" );
# $output .= "leds_detail MSG_3545: name=[$led_name] title=[$led_title] led_loc_code=[$led_loc_code] led_comment=[$led_comment]<br>\n";
# leds_show();
$cab=$options[1];
$led_name=$options[1];
$os=$options[1];
$osimg= sprintf("./imgs/btn/$os.png");
# $output .= "<br><img src=$osimg width=10% height=6%><br>\n";
$cabimg= sprintf("./imgs/cab/$cab.png");
# $output .= "<br><img src=$cabimg width=10% height=6%><br>\n";
$output .= "<br><img src=$cabimg height=50%><br>\n";
# $tblname="ko_hw";
$ctx="cab";
$tblname=$ctx;
$sql = "select * from $tblname";
$sql = "select * from $tblname where led_name == '$led_name' and led_published == '1' and led_dttm == 'current'";
$sql = "select * from $tblname where led_name == '$led_name'";
# $sql = "select * from $tblname where cab == '$cab' and model != ''";
$sql = "select * from $tblname where cab == '$cab' and item != ''";
bugs("","5380 leds_detail ctx=$ctx tblname=$tblname<br>\n" );
bugs( "","5381 leds_detail sql=$sql<br>\n" );
$j=0;
$samps=0;
$output .= "<table>\n";
$tblhdr = "";
$tblhdr .= "<tr>\n";
$tblhdr .= "<td>jhdr</td>";
$tblhdr .= "<td>item_img jk</td>";
$tblhdr .= "<td>item</td>";
$tblhdr .= "<td>amps</td>";
$tblhdr .= "<td>ip</td>";
$tblhdr .= "<td>sn</td>";
$tblhdr .= "<td>hrctag</td>";
$tblhdr .= "<td>hostname</td>";
$tblhdr .= "<td>machinename</td>";
$tblhdr .= "</tr>\n";
$output .= $tblhdr;
foreach( $pdo->query($sql) as $row ) {
$j++;
# printf( "BUGS_6160: sql=[$sql]<br>\n" );
$led_name = $row['led_name'];
$led_dttm = $row['led_dttm'];
$led_cab = $row['cab'];
$btu = $row['btu'];
$os = $row['os'];
$item = $row['item'];
$model = $row['model'];
$sn = $row['sn'];
$btu = $row['btu'];
$amps = $row['amps'];
$switch = $row['switch'];
$hrctag = $row['hrctag'];
$hostname = $row['hostname'];
$machinename = $row['machinename'];
$ip = $row['ip'];
# $led_amps = $row['amps'];
$led_sn = $row['sn'];
$led_title = $row['led_title'];
$led_comment = $row['led_comment'];
$led_loc_code = $row['led_loc_code'];
$led_published = $row['led_published'];
$led_group = $row['led_group'];
$led_orgs = $row['led_orgs'];
$led_filename = $row['led_filename'];
$samps=$samps+$amps;
$item_img= sprintf("./imgs/cab/$item.png" );
# $output_detail="<hr>";
bugs("","5430 leds_detail item_img=$item_img<br>\n" );
if( file_exists( $item_img )) {
$item_imgurl = "";
$item_imgurl .= "<a href=https:#$http_host$php_self?q=hw/$item&hrctag=$hrctag>";
$item_imgurl .= "<img src=$item_img border=0 ></a>\n";
$tbldtl = "<tr>\n";
$tbldtl .= "<td>$j   </td>\n";
$tbldtl .= "<td>$item_imgurl   </td>\n";
$tbldtl .= "<td>$item   </td>\n";
$tbldtl .= "<td>$amps   </td>\n";
$tbldtl .= "<td>$ip   </td>\n";
$tbldtl .= "<td>$sn   </td>\n";
$tbldtl .= "<td>$hrctag   </td>\n";
$tbldtl .= "<td>$hostname   </td>\n";
$tbldtl .= "<td>$machinename   </td>\n";
$tbldtl .= "</tr>\n";
}
else {
#/ $output_detail .= "$item_img     \n";
$tbldtl .= "<tr>\n";
$tbldtl .= "<td>$j   </td>";
$tbldtl .= "<td>$item_img   </td>";
$tbldtl .= "<td>$item   </td>";
$tbldtl .= "<td>$amps   </td>";
$tbldtl .= "<td>$ip   </td>";
$tbldtl .= "<td>$sn   </td>";
$tbldtl .= "<td>$hrctag   </td>";
$tbldtl .= "<td>$hostname   </td>";
$tbldtl .= "<td>$machinename   </td>";
$tbldtl .= "</tr>\n";
}
$output .= $tbldtl;
if( $led_filename != "" ) {
# $led_pathfile="$media_path/$led_filename";
# $led_pathfile="$media_path/$led_filename";
$led_pathfile="$path_ani/$led_filename";
if( file_exists( $led_pathfile)) {
$output .= "<img src=\"$led_pathfile\"><br/>\n";
}
}
# print( $output );
}
bugs("","5480 leds_detail output=$output<br>\n" );
$tbltot = "";
$tbltot .= "<tr>\n";
$tbltot .= "<td>   </td>\n";
$tbltot .= "<td><b>totals $dttm: $cab</b></td>\n";
$tbltot .= "<td> $j </td>\n";
$tbltot .= "<td><b>$samps</b></td>\n";
$tbltot .= "<td>   </td>\n";
$tbltot .= "</tr>\n";
$output .= "$tbltot";
$output .= "</table>\n";
$output .= "<hr>\n";
print( "<br/>\n" );
if(! isset($_SESSION['hs_type'] )) { $hs_type="default"; }
else {$hs_type=$_SESSION['hs_type'];}
if(! isset($_SESSION['org_type'] )) { $org_type="p"; }
else {$org_type=$_SESSION['org_type'];}
$os=$options[1];
if( preg_match( "/ko1/", $os, $matches )) {
$output .= "<h3>System Management Branch</h3>\n";
$output .= "<a href=$php_self?q=ko1/about>about</a>       \n";
$output .= "<a href=/itil>itil</a><br>\n";
$output .= "<hr>\n";
}
$tbllist="kb hs us sw vg hw dp bp";
$tbls=explode( " ",$tbllist );
$rollover_title="$os $tbl";
foreach( $tbls as $tbl ) {
$rollover_img= sprintf("./imgs/fpb/$tbl.png");
$output .= "<a href=\"$php_self?q=detail/$os/$op"."_$tbl\" ";
$output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
$output .= "><img src=$rollover_img border=0 height=40></a>     \n";
}
$led_name=$options[1];
# printf( "BUGS_5300 o1=$option1 o2=$option2 options=$options<hr>\n" );
if(( isset( $_SESSION['role'] )) && ( ! $_SESSION['role'] == "" )) {
$output .= "<hr>role: ". $_SESSION['role'] . "<hr>\n";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>\n";
# $output .= "update $led_name</a>\n";
$output .= "<img src=./imgs/btn/postit.png height=20 border=0>";
$output .= "</a>\n";
$output .= "        ";
$output .= "<a href=$php_self?q=rpts/$led_name>";
#/ $output .= "rpts $led_name</a><br/>\n";
$output .= "<img src=./imgs/btn/postits.png height=20 border=0>\n";
$output .= "</a><br/>\n";
}
else {
$output .= "<hr>role: ". $_SESSION['role'] . " guest<hr>\n";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>";
$output .= "<img src=./imgs/btn/postit.png height=20></a>";
$output .= "        ";
$output .= "<a href=$php_self?q=rpts/$led_name>";
$output .= "<img src=./imgs/btn/postits.png height=20>";
$output .= "</a><br/>\n";
}
$output .= "<hr><a href=$php_self?q=scrub_upload_form/$led_name>scrub_upload_form $led_name</a><br/><hr>\n";
print( $output );
return( $output );
}
function leds_show_doc($options) {
$output="";
# $output = html_header();
$dttm=date("Ymd_His");
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
$preview=$_SESSION['preview'];
$path_btn="/kosaic/imgs/btn";
$path_leds="/kosaic/imgs/gif/leds";
$path_rollover="/kosaic/imgs";
$path_leds="imgs/leds/crome_";
# $path_rollover="/kosaic/imgs";
$path_rollover="imgs/tn";
if( ! file_exists( $GLOBALS['dbfile'] )) {
# printf( "<hr>$php_self $dttm ERR: UNAVAILABLE dbfile=[".$GLOBALS['dbfile']."]<hr>\n");
$output .= "<hr>$php_self $dttm ERR: UNAVAILABLE dbfile=[".$GLOBALS['dbfile']."]<hr>\n";
return;
}
# $output .= "<hr>leds_show<hr>\n";
# printf( "<hr>leds_show<hr>\n" );
$dttm=date( "Ymd_His" );
$today = mktime( 0,0,0, date("m"), date("d"), date("y"));
# $tomorrow = mktime( 0,0,0, date("m"), date("d")+1, date("y"));
# $yesterday = mktime( 0,0,0, date("m"), date("d")-1, date("y"));
$pdo = newpdo($GLOBALS['dbfile']);
$tblname=$GLOBALS['tblname'];
$sql = "select * from $tblname";
if( ! isset( $options[1] )) { $options[1]=""; }
if( ! isset( $options[2] )) { $options[2]=""; }
$option1=$options[1]; $option2=$options[2];
if (( $option1 == "leds" ) && ( $option2 != "" )) {
printf( "BUGS_4225 sql=[$sql]<br>\n" );
$sql = "select * from $tblname where led_dttm == 'current' and led_type like '%$option2%'";
}
else {
$sql = "select * from $tblname where led_dttm == 'current'";
}
# print( "$php_self MSG: tblname=[$tblname] sql=[$sql]<br>\n");
# return;
# $collim=8;
$collim=13;
$colnum=1;
foreach( $pdo->query($sql) as $row ) {
$led_output =
$row['led_name'] . ' - ' .
$row['led_dttm'] . ' - ' .
$row['led_color' ] . ' - ' .
$row['led_speed' ] . ' - ' .
$row['led_type' ] . ' - ' .
$row['led_date' ] . ' - ' .
$row['led_cmd' ] . ' - ' .
$row['led_desc' ] . ' - ' .
$row['led_misc' ] . ' - ' .
' <br />';
# print( "BUGS_5130: colnum=$colnum collim=$collim<br>led_output=[$led_output]<hr>\n" );
if( $row['led_type'] == "date" ) {
$mydt_yyyymd=$row['led_date'];
if( $mydt_yyyymd == "current" ) {
$mydt=$today;
$mydt_yyyy=date("Y");
$mydt_m=date("m");
$mydt_d=date("d");
}
else {
$mydt_yyyy=substr( $mydt_yyyymd, 0, 4 );
$mydt_m=substr( $mydt_yyyymd, 4, 2 );
$mydt_d=substr( $mydt_yyyymd, 6, 2 );
}
# print( "BUGS mydt_yyyymd=[$mydt_yyyymd] mydt_m=[$mydt_m][$mydt_d][$mydt_yyyy]<br>\n" );
$mydt=mktime( 0,0,0, $mydt_m, $mydt_d, $mydt_yyyy );
$diffdays=datediff( 'd', $today, $mydt );
$leds_properties=datediff_leds( $diffdays);
$diffdays=$leds_properties[0];
$color=$leds_properties[1];
$speed=$leds_properties[2];
$ledimg = "$path_leds/ani_" . $color . $speed . ".gif";
}
else {
if( $row['led_type'] == "cmd" ) {
$ledimg = "$path_leds/ani_" . $row['led_color'] . $row['led_speed'] . ".gif";
#// if( $row['led_cmd'] == "pwd" ) { $cmdout= system( "pwd" ); }
#// $cmdout=system( $row['led_cmd'] );
$cmd_code=$row['led_cmd'];
$led_cmd="";
$cmdout[0]="";
if( $cmd_code == "pwd" ) { $led_cmd = "pwd"; }
if( $cmd_code == "date" ) { $led_cmd = "date"; }
# if( $cmd_code == "dir" ) { $led_cmd = "ls -lat c:/xampp/htdocs/hrc/fp/fp*.php"; }
if( $cmd_code == "dir" ) { $led_cmd = "ls"; }
if( $cmd_code == "dir" ) { $led_cmd = "ps -W | grep SSH "; }
if( $cmd_code == "pwd" ) { $led_cmd = "ps -W | grep ssh "; }
if( $cmd_code == "ls" ) { $led_cmd = "ls"; }
# $led_cmd=$row['led_cmd'];
if( $led_cmd != "" ) {
$cmdout=leds_process_value( "", $led_cmd, $cmd_process );
};
if( $cmdout[0] == "" ) {
$color="red"; $speed="90";
}
else {
$color="grn"; $speed="90";
}
$ledimg = "$path_leds/ani_$color$speed.gif";
}
else {
$ledimg = "$path_leds/ani_" . $row['led_color'] . $row['led_speed'] . ".gif";
}
}
$rollover_nam = $row['led_name'];
$rollover_name = str_replace( "fp", "fpb", $rollover_nam );
# $rollover_img = "$path_rollover/" . $rollover_name . ".png";
$rollover_img = "$path_rollover/" . $rollover_nam . ".jpg";
$rollover_img = "$path_rollover/tn_" . $rollover_nam . ".png";
# $rollover_img_default = "$path_rollover/fpb00.png";
$rollover_img_default = "$path_rollover/preview_default.png";
$rollover_img_default_cmd = "$path_rollover/preview_default_cmd.png";
$rollover_img_default_date = "$path_rollover/preview_default_date.png";
$rollover_title = $row['led_name'] . "(";
$rollover_title .= $row['led_title'] .") ";
# printf( "BUGS_5200 fpbimg=$rollover_img rollover_title=$rollover_title<br>" );
# print( "<hr>BUGS_1101 preview=[$preview][". $_SESSION['preview'] . "]<hr>\n" );
$row['rowid']="0";
$row['describ']="bugs_describ";
if(( $row['led_type'] == "manual" ) | ( $row['led_type'] == "" )) {
$rollover_title .= " (" . $row['rowid'] . "-" . $row['led_color'] . "-" . $row['led_speed'] . ") ";
$rollover_title .= "\n";
$rollover_title .= "led_id=" . $row['led_id'] . " ";
$rollover_title .= "led_status=" . $row['led_status'] . " ";
$rollover_title .= "led_dttm=" . $row['led_dttm'] . " ";
$rollover_title .= "\n\n";
$rollover_title .= "led_group=" . $row['led_group'] . " ";
$rollover_title .= "led_orgs=" . $row['led_orgs'] . " ";
$rollover_title .= "\n\n";
$rollover_title .= "<br>\n";
$rollover_title .= "<b>\n";
$rollover_title .= "inv=" . $row['inv'] . " ";
$rollover_title .= "amt=" . $row['amt'] . " ";
$rollover_title .= "</b>\n";
$rollover_title .= "\n";
$rollover_title .= "status=" . $row['status'];
$rollover_title .= "<br>\n";
$rollover_title .= "yyyy_f_p_wk_oy=";
$rollover_title .= $row['yyyy'] .= "_";
$rollover_title .= $row['fy'] .= "_";
$rollover_title .= $row['p'] .= "_";
$rollover_title .= $row['wk'] .= "_";
$rollover_title .= $row['oy'];
$rollover_title .= "<br>\n";
$rollover_title .= "begdt=" . $row['begdt'] . " ";
$rollover_title .= "enddt=" . $row['enddt'] . " ";
$rollover_title .= "<br>\n";
$rollover_title .= "senddt=" . $row['senddt'] . " ";
$rollover_title .= "recvdt=" . $row['recvdt'] . " ";
$rollover_title .= "<br>\n";
$rollover_title .= "rate=" . $row['rate'] . " ";
$rollover_title .= "hrs=" . $row['hrs'] . " ";
$rollover_title .= "est=" . $row['est'] . " ";
$rollover_title .= "<br>\n";
$rollover_title .= "cid=" . $row['cid'] . " ";
$rollover_title .= "describ=" . $row['describ'] . "";
$rollover_title .= " fpbimg=$rollover_img ";
# $rollover_title .= "<hr color=linen>";
# $rollover_title .= " bldg(";
# $rollover_title .= $row['led_bldg'] .") floor(";
# $rollover_title .= $row['led_floor'].")";
}
if( $row['led_type'] == "date" ) {
$rollover_img_default = $rollover_img_default_date;
$rollover_title .= "($color$speed)";
$rollover_title .= " date(";
$rollover_title .= $row['led_date'] .") diffdays($diffdays)";
}
if( $row['led_type'] == "cmd" ) {
$rollover_img_default = $rollover_img_default_cmd;
$rollover_title .= "($color$speed)";
$rollover_title .= " cmd(";
$rollover_title .= $row['led_cmd'] .")($led_cmd) cmdout(". $cmdout[0]. ")";
#/ $rollover_title .= $row['led_cmd'] .") cmdout(" ;
#/ print( "BUGS_1125 [$cmd_code][$led_cmd]<br>\n" );
#/ print( "BUGS_1125 cmdout0=[$cmdout[0]]<br>\n" );
#/ print( "BUGS_1125 cmdout1=[$cmdout[1]]<br>\n" );
#/ print( "BUGS_1125 cmdout2=[$cmdout[2]]<br>\n" );
#/ foreach( $cmdout as $cmdline ) {
#/ print( "BUGS_1129 cmdline=[$cmdline][$fbp_title]<br>\n" );
#/ $rollover_title .= $cmdline ."<br>\n";
#/ }
#/ $rollover_title .= ")<hr>";
# $rollover_title .= $row['led_cmd'] .") cmdout(". $row['led_cmdout'] . ")";
}
$output .= "<a href=$php_self?q=detail/".$row['led_name']." ";
# $preview = "off";
if( $preview == "on" ) {
if( $GLOBALS['screenshots_pcharts'] != "" ) {
$host="l1033"; $path="/var"; $used=rand(1,100); $free=rand(1,900);
$pchart_title="$dttm p=$path u=$used f=$free";
$pchart_url="/saic/saic_pcharts_pie.php?q=df/$host/$host/$used/$free";
$output .= " class=\"screenshot\" rel=\"$pchart_url\" title=\"$pchart_title\" ";
}
else {
if( file_exists( $rollover_img )) {
$output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
# $output .= " class=\"preview\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
}
else {
$output .= " class=\"screenshot\" rel=\"$rollover_img_default\" title=\"$rollover_title\" ";
}
}
}
$output .= ">\n";
if( preg_match( "/saic/", $rollover_name, $matches )) {
$output .= "<img src=\"$ledimg\" alt=\"$ledimg\" border=0 height=\"20\" width=\"20\" />";
$output .= "</a>\n";
}
else {
$output .= "<img src=\"$ledimg\" alt=\"$ledimg\" border=0 height=\"15\" width=\"15\" />";
$output .= "</a>\n";
}
# $output .= "<!-- fpbimg=$rollover_img fpbnam=[$rollover_name]-->\n";
# $output .= "<a href=$rollover_img>$rollover_img<img src=$rollover_img></a>\n";
if(( preg_match( "/saict/", $rollover_name, $matches ))
|| ( preg_match( "/vio/", $rollover_name, $matches ))
|| ( preg_match( "/data/", $rollover_name, $matches ))) {
$output .= "<br />\n";
$colnum=1;
}
else {
$colnum=$colnum+1;
if( $colnum > $collim ) {
$output .= "<br />\n";
$colnum=1;
}
}
}
$output .= "</div>\n";
# $output .= "<hr>\n";
# $output .= html_reports($options);
# $output .= "<hr>\n";
# $output .= html_jitsi($options);
# $output .= "<hr>\n";
# $output .= html_emails($options);
$pdo = null;
if(! isset($_SESSION['hs_type'] )) { $hs_type="default"; }
else {$hs_type=$_SESSION['hs_type'];}
if(! isset($_SESSION['org_type'] )) { $org_type="p"; }
else {$org_type=$_SESSION['org_type'];}
# $output .= "<hr><a href=/es/scrub.php target=_blank><img src=/kosaic/imgs/btn/scrubbrush01.jpg width=100 height=100 border=0></a><hr>\n";
# $output .= "<hr><a href=/es/scrub.php target=_blank><img src=/kosaic/imgs/scrubbrush02.jpg width=100 height=100 border=0></a><hr>\n";
# $output .= "<a href=$php_self?q=scrub_upload_form/$led_name>scrub_upload_form $led_name</a><br/>\n";
#/ $output .= "<a href=https://147.238.94.126/saic/saic.php?q=scrub_upload_form target=_blank>\n";
#/ $output .= "<img src=\"/ko_saic/imgs/btn/scrubbrush.png\" alt=\"btn_black_scrub scrub_upload_form\" border=0 height=\"40\" width=\"40\" />";
#/ $output .= "</a><hr>\n";
#/ $output .= "<br>0.2 tests<br>\n";
#/
#/ $output .= "<a href=/biupload/index.html target=_blank><img src=/kosaic/imgs/btn/scrubbrush01.png width=30 height=30 border=0> biupload </a>\n";
#/ $output .= "       ";
#/ $output .= "<a href=/h5upload/index.html target=_blank><img src=/kosaic/imgs/btn/scrubbrush01.png width=30 height=30 border=0> h5upload</a>\n";
#/ $output .= "       ";
#/ $output .= "<a href=/plupload/examples/scrub.html target=_blank><img src=./images/scrubbrush01.png width=30 height=30 border=0> plupload</a>\n";
#/ $osteams="hpx aix sol rhe win uss ioc aac"
#/ foreach( $osteams as $osteam ) {
#/ $output .= "<a href=\"$php_self?q=detail/$os/vg\" ";
#/ $output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
#/ $output .= ">\n";
#/
#/ $output .= "<a href=\"$php_self?q=detail/$os/us\" ";
#/ $output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
#/ $output .= ">\n";
#/
#/ $output .= "<a href=\"$php_self?q=detail/$os/sw\" ";
#/ $output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
#/ $output .= ">\n";
#/
#/ $output .= "<a href=\"$php_self?q=detail/$os/hw\" ";
#/ $output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
#/ $output .= ">\n";
#/
#/ $output .= "<a href=\"$php_self?q=detail/$os/dp\" ";
#/ $output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
#/ $output .= ">\n";
#/
#/ $output .= "<a href=\"$php_self?q=detail/$os/bp\" ";
#/ $output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
#/ $output .= ">\n";
$output .= "<br>\n";
# $output .= "<hr><img src=/ko_saic/images/saic_construction.gif border=0 alt=saic_construction rel=\"\"><hr>\n";
# $output .= "<hr><img src=/ko_saic/images/saic_construction.gif width=50 height=50><hr>\n";
# $output .= "<hr><img src=/ko_saic/images/warning.gif width=100 height=100><hr>\n";
# js_rollover( $options );
# css_rollovers_href( $options );
# js_fgmenu( $options );
# print( $output );
# $output .= html_btn_footer($options);
$output .= html_footer($options);
return( $output );
}
function pdfs_show($div,$match) {
# $div=$options[0];
# $match=$options[1];
if( $match == "" ) { $match="iperm"; }
$dttm=date("Ymd_His");
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
# printf( "BUGS_5400 div=$div match=$match php_self=$php_self http_host=$http_host" );
$db3file="kosaic.db3";
$db3tbl="pdfs";
$sql_select_pdfs = "select * from $db3tbl where pathfile like '%".$match."%'";
printf( "BUGS_5430 sql3_select_pdfs db3file=%s db3tbl=%s match=%s sql_select_pdfs=%s<br>", $db3file,$db3tbl,$match, $sql_select_pdfs );
$output = "";
$j=0;
$pdo = newpdo($db3file);
foreach( $pdo->query($sql_select_pdfs) as $row ) {
$j=$j+1;
$pathfile = $row['pathfile'];
# printf( "BUGS_5440 sql3_select_pdfs j=%s pathfile=%s<br>",$j,$pathfile );
# $url = '<a href="/pdf/viewer.html?file='.$path.'/'.$base.'.'.$ext.'" target=_blank>';
$url = '<a href="/pdf/web/viewer.html?file='.$pathfile.'" target=_blank>';
$url .= ' <img src="/imgs/btn/btn_pdf.png" height=25 border=0>';
$url .= ' </a>';
$output .= $j." ".$url."   ".$pathfile."<br>";
# $output .= $url." ".$j." ".$base;
}
# sqlite_close($pdo);
return( $output );
}
function leds_detail_doc( $options ) {
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
#/ printf( "$progid $dttm MSG_3515: o0=[$options[0]] o1=[$options[1]] o2=[$options[2]]<hr>" );
leds_show($options);
#/ return;
$pdo = newpdo($GLOBALS['dbfile']);
$tblname=$GLOBALS['tblname'];
$media_path=$GLOBALS['media_path'];
$path_leds="/kosaic/imgs/gif/leds";
$path_rollover="/kosaic/imgs";
$output = "";
$output .= "<head>";
# $output .= " <script src=\"/js/jqgrid.3.5.3/js/jquery-1.3.2.min.js\" type=\"text/javascript\"></script>";
$output .= " <script src=\"/js/jqgrid-4.4.0/js/jquery-1.7.2.min.js\" type=\"text/javascript\"></script>";
$output .= " <script src=\"/js/tooltip/tooltip_main_screenshot.js\" type=\"text/javascript\"></script>";
$output .= " </head>";
$output .= html_btn_squares( $options, "" );
# $output .= "leds_detail MSG_3545: name=[$led_name] title=[$led_title] led_loc_code=[$led_loc_code] led_comment=[$led_comment]<br>";
# leds_show();
$led_name=$options[1];
$os=$options[1];
# $osimg= sprintf("./images/fpb/$os.png");
#// $osimg= sprintf("./images/fpb/$os.png");
# $osimg= sprintf("./imgs/$os.png");
# $led_url= sprintf("/ko_saic/imgs/$led_name.png");
$led_url= sprintf("/kosaic/imgs/$led_name.jpg");
# $output .= "<br><img src=$osimg width=10% height=6%><br>";
$output .= "<br>";
$output .= "<a href='$led_url' target=_blank >";
$output .= "<img src=$led_url width=10%>";
$output .= "</a>";
$sql = "select * from $tblname";
$sql = "select * from $tblname where led_name == '$led_name' and led_published == '1' and led_dttm == 'current'";
$sql_select_leds = "select * from $tblname where led_name == '$led_name'";
# printf( "BUGS_5700 led_name=[$led_name] sql=[$sql]<br>" );
foreach( $pdo->query($sql_select_leds) as $row ) {
$led_name = $row['led_name'];
$led_dttm = $row['led_dttm'];
$led_title = $row['led_title'];
$led_comment = $row['led_comment'];
$led_loc_code = $row['led_loc_code'];
$led_published = $row['led_published'];
$led_group = $row['led_group'];
$led_orgs = $row['led_orgs'];
$led_filename = $row['led_filename'];
$output .= '<hr color=linen>';
$output .= '<div id="div_ol">';
$output .= ' <h1>ol: '.$led_name.'</h1>';
$output .= sql3_select_ol($led_name);
$output .= ' </div>';
$output .= '<hr color=linen>';
$output .= '<hr color=linen>';
$output .= '<div id="div_emails">';
$output .= ' <h1>emails: '.$led_name.'</h1>';
$output .= sql3_select_emails($led_name);
$output .= ' </div>';
$output .= '<hr color=linen>';
$output .= '<hr color=linen>';
$output .= '<div id="div_sw">';
$output .= ' <h1>sw: '.$led_name.'</h1>';
$output .= sql3_select_sw($led_name);
$output .= ' </div>';
$output .= '<hr color=linen>';
$output .= '<hr color=linen>';
$output .= '<div id="div_aors">';
$output .= ' <h1>aors: '.$led_name.'</h1>';
$output .= sql3_select_aors($led_name);
$output .= ' </div>';
$output .= '<hr color=linen>';
$output .= '<br><br>';
$output .= "<table>";
$output .= "<tr><td>code: </td><td><b>$led_name</b></td></tr>";
if( $led_title != "" ) {$output .= "<tr><td>title:</td><td><b>$led_title</b></td></tr>";}
if( $led_loc_code != "" ) {$output .= "<tr><td>loc_code:</td><td><b>$led_loc_code</b></td></tr>";}
if( $led_orgs != "" ) {$output .= "<tr><td>org:</td><td><b>$led_orgs</b></td></tr>";}
if( $led_group != "" ) {$output .= "<tr><td>group:</td><td><b>$led_group</b></td></tr>";}
if( $led_comment != "" ) {$output .= "<tr><td>comment:</td><td><b>$led_comment</b></td></tr>";}
$output .= "</table><hr>\n";
# printf( "BUGS_5830 led_pathfile=%s<br>", $led_pathfile );
if( $led_filename != "" ) {
# $led_pathfile="$media_path/$led_filename";
# $led_pathfile="$media_path/$led_filename";
$led_pathfile="$path_leds/$led_filename";
if( file_exists( $led_pathfile)) {
$output .= "<img src=\"$led_pathfile\"><br/>\n";
}
}
# print( $output );
}
$pdo = null;
# leds_show();
# print( "<a href=\"./fp_zviewer.php?file=$led_name&path=/images/\" target=_blank>$led_name</a><br>\n" );
# $fp_url="./fp_zviewer.php?file=$led_name&path=/images/";
# header( 'Location:'.$fp_url );
print( "<br/>\n" );
if(! isset($_SESSION['hs_type'] )) { $hs_type="default"; }
else {$hs_type=$_SESSION['hs_type'];}
if(! isset($_SESSION['org_type'] )) { $org_type="p"; }
else {$org_type=$_SESSION['org_type'];}
$os=$options[1];
if( preg_match( "/saic/", $os, $matches )) {
$output .= "<h3>System Management Branch</h3>\n";
$output .= "<a href=$php_self?q=saic/about>about</a>       \n";
$output .= "<a href=/itil>itil</a><br>\n";
$output .= "<hr>\n";
}
if( preg_match( "/saice/", $os, $matches )) {
$output .= "<h3>System Management Branch: Engineering</h3>\n";
}
if( preg_match( "/saicd/", $os, $matches )) {
$output .= "<h3>System Management Branch: Deployment</h3>\n";
}
if( preg_match( "/saict/", $os, $matches )) {
$output .= "<h3>System Management Branch: Training</h3>\n";
}
# printf( "$progid $dttm MSG_3600: os=[$os] o0=[$options[0]] o1=[$options[1]] o2=[$options[2]]<hr>\n" );
$tbllist="kb hs us sw vg hw dp bp";
# bugs("","6350 tbllist=$tbllist<br>" );
# $tbls=split( " ",$tbllist );
$tbls=explode( " ",$tbllist );
# bugs("","6371 tbls0=".$tbls[0]."<br>" );
# bugs("","6372 tbls1=".$tbls[1]."<br>" );
# bugs("","6373 tbls2=".$tbls[2]."<br>" );
foreach( $tbls as $tbl ) {
$rollover_title="$os $tbl";
# $rollover_img= sprintf("/ko_saic/imgs/btn/$tbl.png");
$rollover_img= sprintf("/kosaic/imgs/btn/$tbl.jpg");
# printf( "BUGS_6070 fpbimg=[$rollover_img] tbl=[$tbl]<br>\n" );
# printf( "$progid $dttm BUGS_1414: os=[$os] tbl=[$tbl] <hr>$php_self?q=detail/$os/$tbl<hr>\n" );
# $output .= "<a href=\"$php_self?q=grid/$os/$tbl\" ";
# $output .= "<a href=\"$php_self?q=db/grid/saic$os"."_$tbl\" ";
# $output .= "<a href=\"$php_self?q=detail/$os/$op"."_$tbl\" ";
# $output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
# jk 20200921_1005 $output .= "><img src=$rollover_img border=0 height=40></a>     \n";
# $output .= "><img src=$rollover_img border=0 height=100></a>     \n";
}
# $path_tn="./media/zoom";
# sprintf( $xmlfile, "%s_%s_hotspots.xml", $option[1], $hs_type );
# $xmlfile=$led_name . "_" . $hs_type . "_hotspots.xml";
# $fpbfile="$path_rollover/fpb".substr( $led_name, 2 ) .".png";
# $zoom_file=$led_name;
# $zoom_code=$led_name;
# $zoomxml_code=$hs_type;
# $zoom_path="/zm/imgs/";
# $zoom_xml=$led_name . "_" . $hs_type . "_hotspots.xml";
# $zview_xml=$led_name . "_" . $hs_type . "_hotspots.xml";
# $zview_xml=$led_name . "_hotspots.xml";
# $zview_file=$led_name;
# $tn_zview_file="$path_tn/$led_name/Tilegroup0/0-0-0.jpg";
# $output = "<hr>no show_leds<hr>\n";
# $output .= "<hr>\n";
# $output .= "<hr>\n";
# print( "<img src=$tn_zview_file><br>\n" );
# print( "<img src=$fpbfile><br>\n" );
# if( file_exists( $tn_zview_file )) {
# $output .= "<a href=\"$php_self?q=zview/$zview_file/$zview_xml\" target=_blank><img src=$tn_zview_file border=0></a><br><br>\n";
#// $output .= "<a href=\"$php_self?q=zoom/$zoom_code/$zoomxml_code\" target=_blank><img src=$tn_zview_file border=0></a><br><br>\n";
#/ $path_rollover = "/kosaic/imgs/fpb";
# $rollover_name = str_replace( "fp", "fpb", $led_name );
# $rollover_img = "$path_rollover/" . $rollover_name . ".png";
# $rollover_title = $led_name . "(";
# $rollover_title .= $led_title . ")";
# $rollover_title .= " bldg(". $row['led_bldg'];
# $rollover_title .= " floor(". $row['led_floor'];
# $rollover_title .= ")";
#
# $output .= "<a href=\"$php_self?q=zoom/$zoom_code/$zoomxml_code\" ";
# $output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
# $output .= ">\n";
#
# $output .= "<img src=$tn_zview_file border=0></a><br><br>\n";
# }
# else {
#// $output .= "<a href=\"$php_self?q=zview/$zview_file/$zview_xml\" target=_blank><img src=$fpbfile border=0></a><br><br>\n";
# $output .= "<a href=\"$php_self?q=zview/$zoom_code/$zoomxml_code\" target=_blank><img src=$fpbfile border=0></a><br><br>\n";
# }
#
# leds_zviewer( $zoom_file, $zoom_path, $zoom_xml );
# print( "<a href=\"$php_self?q=zview/$zview_file/$zview_xml\" target=_blank>zview $led_name</a><br><br>\n" );
# print( "<a href=\"./fp_zviewer.php?file=$led_name&path=images/&xml=$zoom_xml\" target=_blank>zviewer $led_name</a><br>\n" );
if(( isset( $_SESSION['role'] )) && ( ! $_SESSION['role'] == "" )) {
$output .= "<hr>role: ". $_SESSION['role'] . "<hr>\n";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>update $led_name</a><br/>\n";
}
else {
$output .= "<hr>role: ". $_SESSION['role'] . " guest<hr>";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>update $led_name</a><br/>";
}
#/ $output .= "<br>";
$output .= "<hr><a href=$php_self?q=scrub_upload_form/$led_name>scrub_upload_form $led_name</a><br/><hr>";
# printf( "BUGS_5970 =============== <br>" );
print( $output );
}
function leds_detail_ai($options ) {
print( "BUGS_3100 leds_detail options=$options<br>\n" );
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
global $dbfile;
# global $tblname;
$tblname="ai";
global $media_path;
$pdo = newpdo($dbfile);
$media_path=$media_path;
$path_ani="./imgs/ani";
$path_imgs="./imgs/$tblname";
$output = "";
$output .= "<head>\n";
# $output .= " <script src=\"js/jqgrid.3.5.3/js/jquery-1.3.2.min.js\" type=\"text/javascript\"></script>\n";
$output .= " <script src=\"js/jqgrid-4.4.0/js/jquery-1.7.2.min.js\" type=\"text/javascript\"></script>\n";
$output .= " <script src=\"js/tooltip/tooltip_main_screenshot.js\" type=\"text/javascript\"></script>\n";
$output .= " </head>\n";
$output .= html_btn_squares( $options, "" );
# $output .= "leds_detail MSG_3545: name=[$led_name] title=[$led_title] led_loc_code=[$led_loc_code] led_comment=[$led_comment]<br>\n";
# leds_show();
$cab=$options[1];
$led_name=$options[1];
$os=$options[1];
$osimg= sprintf("./imgs/btn/$os.png");
# $output .= "<br><img src=$osimg width=10% height=6%><br>\n";
$cabimg= sprintf("./imgs/cab/$cab.png");
# $output .= "<br><img src=$cabimg width=10% height=6%><br>\n";
$output .= "<br><img src=$cabimg height=50%><br>\n";
$tblname="ko_hw";
$sql = "select * from $tblname";
$sql = "select * from $tblname where led_name == '$led_name' and led_published == '1' and led_dttm == 'current'";
$sql = "select * from $tblname where led_name == '$led_name'";
# $sql = "select * from $tblname where cab == '$cab' and model != ''";
$sql = "select * from $tblname where cab == '$cab' and item != ''";
$j=0;
$samps=0;
$output .= "<table>\n";
$tblhdr = "";
$tblhdr .= "<tr>\n";
$tblhdr .= "<td>jhdr</td>";
$tblhdr .= "<td>item_img jk</td>";
$tblhdr .= "<td>item</td>";
$tblhdr .= "<td>amps</td>";
$tblhdr .= "<td>ip</td>";
$tblhdr .= "<td>sn</td>";
$tblhdr .= "<td>hrctag</td>";
$tblhdr .= "<td>hostname</td>";
$tblhdr .= "<td>machinename</td>";
$tblhdr .= "</tr>\n";
$output .= $tblhdr;
foreach( $pdo->query($sql) as $row ) {
$j++;
# printf( "BUGS_6160: sql=[$sql]<br>\n" );
$led_name = $row['led_name'];
$led_dttm = $row['led_dttm'];
$led_cab = $row['cab'];
$btu = $row['btu'];
$os = $row['os'];
$item = $row['item'];
$model = $row['model'];
$sn = $row['sn'];
$btu = $row['btu'];
$amps = $row['amps'];
$switch = $row['switch'];
$hrctag = $row['hrctag'];
$hostname = $row['hostname'];
$machinename = $row['machinename'];
$ip = $row['ip'];
# $led_amps = $row['amps'];
$led_sn = $row['sn'];
$led_title = $row['led_title'];
$led_comment = $row['led_comment'];
$led_loc_code = $row['led_loc_code'];
$led_published = $row['led_published'];
$led_group = $row['led_group'];
$led_orgs = $row['led_orgs'];
$led_filename = $row['led_filename'];
$samps=$samps+$amps;
$item_img= sprintf("./imgs/cab/$item.png" );
# $output_detail="<hr>";
if( file_exists( $item_img )) {
$item_imgurl = "";
$item_imgurl .= "<a href=https:#$http_host$php_self?q=hw/$item&hrctag=$hrctag>";
$item_imgurl .= "<img src=$item_img border=0 ></a>\n";
$tbldtl = "<tr>\n";
$tbldtl .= "<td>$j   </td>\n";
$tbldtl .= "<td>$item_imgurl   </td>\n";
$tbldtl .= "<td>$item   </td>\n";
$tbldtl .= "<td>$amps   </td>\n";
$tbldtl .= "<td>$ip   </td>\n";
$tbldtl .= "<td>$sn   </td>\n";
$tbldtl .= "<td>$hrctag   </td>\n";
$tbldtl .= "<td>$hostname   </td>\n";
$tbldtl .= "<td>$machinename   </td>\n";
$tbldtl .= "</tr>\n";
}
else {
#/ $output_detail .= "$item_img     \n";
$tbldtl .= "<tr>\n";
$tbldtl .= "<td>$j   </td>";
$tbldtl .= "<td>$item_img   </td>";
$tbldtl .= "<td>$item   </td>";
$tbldtl .= "<td>$amps   </td>";
$tbldtl .= "<td>$ip   </td>";
$tbldtl .= "<td>$sn   </td>";
$tbldtl .= "<td>$hrctag   </td>";
$tbldtl .= "<td>$hostname   </td>";
$tbldtl .= "<td>$machinename   </td>";
$tbldtl .= "</tr>\n";
}
$output .= $tbldtl;
if( $led_filename != "" ) {
# $led_pathfile="$media_path/$led_filename";
# $led_pathfile="$media_path/$led_filename";
$led_pathfile="$path_ani/$led_filename";
if( file_exists( $led_pathfile)) {
$output .= "<img src=\"$led_pathfile\"><br/>\n";
}
}
# print( $output );
}
$tbltot = "";
$tbltot .= "<tr>\n";
$tbltot .= "<td>   </td>\n";
$tbltot .= "<td><b>totals $dttm: $cab</b></td>\n";
$tbltot .= "<td> $j </td>\n";
$tbltot .= "<td><b>$samps</b></td>\n";
$tbltot .= "<td>   </td>\n";
$tbltot .= "</tr>\n";
$output .= "$tbltot";
$output .= "</table>\n";
$output .= "<hr>\n";
print( "<br/>\n" );
if(! isset($_SESSION['hs_type'] )) { $hs_type="default"; }
else {$hs_type=$_SESSION['hs_type'];}
if(! isset($_SESSION['org_type'] )) { $org_type="p"; }
else {$org_type=$_SESSION['org_type'];}
$os=$options[1];
if( preg_match( "/ko1/", $os, $matches )) {
$output .= "<h3>System Management Branch</h3>\n";
$output .= "<a href=$php_self?q=ko1/about>about</a>       \n";
$output .= "<a href=/itil>itil</a><br>\n";
$output .= "<hr>\n";
}
$tbllist="kb hs us sw vg hw dp bp";
$tbls=explode( " ",$tbllist );
$rollover_title="$os $tbl";
foreach( $tbls as $tbl ) {
$rollover_img= sprintf("./imgs/fpb/$tbl.png");
$output .= "<a href=\"$php_self?q=detail/$os/$op"."_$tbl\" ";
$output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
$output .= "><img src=$rollover_img border=0 height=40></a>     \n";
}
$led_name=$options[1];
# printf( "BUGS_5300 o1=$option1 o2=$option2 options=$options<hr>\n" );
if(( isset( $_SESSION['role'] )) && ( ! $_SESSION['role'] == "" )) {
$output .= "<hr>role: ". $_SESSION['role'] . "<hr>\n";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>\n";
# $output .= "update $led_name</a>\n";
$output .= "<img src=./imgs/btn/postit.png height=20 border=0>";
$output .= "</a>\n";
$output .= "        ";
$output .= "<a href=$php_self?q=rpts/$led_name>";
#/ $output .= "rpts $led_name</a><br/>\n";
$output .= "<img src=./imgs/btn/postits.png height=20 border=0>\n";
$output .= "</a><br/>\n";
}
else {
$output .= "<hr>role: ". $_SESSION['role'] . " guest<hr>\n";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>";
$output .= "<img src=./imgs/btn/postit.png height=20></a>";
$output .= "        ";
$output .= "<a href=$php_self?q=rpts/$led_name>";
$output .= "<img src=./imgs/btn/postits.png height=20>";
$output .= "</a><br/>\n";
}
$output .= "<hr><a href=$php_self?q=scrub_upload_form/$led_name>scrub_upload_form $led_name</a><br/><hr>\n";
print( $output );
return( $output );
}
function leds_detail_cab($options ) {
print( "BUGS_3100 leds_detail options=$options<br>\n" );
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
global $dbfile;
# global $tblname;
$tblname = "cab";
global $media_path;
$pdo = newpdo($dbfile);
$media_path=$media_path;
$path_ani="./imgs/ani";
$path_imgs="./imgs/$tblname";
$output = "";
$output .= "<head>\n";
# $output .= " <script src=\"js/jqgrid.3.5.3/js/jquery-1.3.2.min.js\" type=\"text/javascript\"></script>\n";
$output .= " <script src=\"js/jqgrid-4.4.0/js/jquery-1.7.2.min.js\" type=\"text/javascript\"></script>\n";
$output .= " <script src=\"js/tooltip/tooltip_main_screenshot.js\" type=\"text/javascript\"></script>\n";
$output .= " </head>\n";
$output .= html_btn_squares( $options, "" );
# $output .= "leds_detail MSG_3545: name=[$led_name] title=[$led_title] led_loc_code=[$led_loc_code] led_comment=[$led_comment]<br>\n";
# leds_show();
$cab=$options[1];
$led_name=$options[1];
$os=$options[1];
$osimg= sprintf("./imgs/btn/$os.png");
# $output .= "<br><img src=$osimg width=10% height=6%><br>\n";
$cabimg= sprintf("./imgs/cab/$cab.png");
# $output .= "<br><img src=$cabimg width=10% height=6%><br>\n";
$output .= "<br><img src=$cabimg height=50%><br>\n";
$tblname="ko_hw";
$sql = "select * from $tblname";
$sql = "select * from $tblname where led_name == '$led_name' and led_published == '1' and led_dttm == 'current'";
$sql = "select * from $tblname where led_name == '$led_name'";
# $sql = "select * from $tblname where cab == '$cab' and model != ''";
$sql = "select * from $tblname where cab == '$cab' and item != ''";
$j=0;
$samps=0;
$output .= "<table>\n";
$tblhdr = "";
$tblhdr .= "<tr>\n";
$tblhdr .= "<td>jhdr</td>";
$tblhdr .= "<td>item_img jk</td>";
$tblhdr .= "<td>item</td>";
$tblhdr .= "<td>amps</td>";
$tblhdr .= "<td>ip</td>";
$tblhdr .= "<td>sn</td>";
$tblhdr .= "<td>hrctag</td>";
$tblhdr .= "<td>hostname</td>";
$tblhdr .= "<td>machinename</td>";
$tblhdr .= "</tr>\n";
$output .= $tblhdr;
foreach( $pdo->query($sql) as $row ) {
$j++;
# printf( "BUGS_6160: sql=[$sql]<br>\n" );
$led_name = $row['led_name'];
$led_dttm = $row['led_dttm'];
$led_cab = $row['cab'];
$btu = $row['btu'];
$os = $row['os'];
$item = $row['item'];
$model = $row['model'];
$sn = $row['sn'];
$btu = $row['btu'];
$amps = $row['amps'];
$switch = $row['switch'];
$hrctag = $row['hrctag'];
$hostname = $row['hostname'];
$machinename = $row['machinename'];
$ip = $row['ip'];
# $led_amps = $row['amps'];
$led_sn = $row['sn'];
$led_title = $row['led_title'];
$led_comment = $row['led_comment'];
$led_loc_code = $row['led_loc_code'];
$led_published = $row['led_published'];
$led_group = $row['led_group'];
$led_orgs = $row['led_orgs'];
$led_filename = $row['led_filename'];
$samps=$samps+$amps;
$item_img= sprintf("./imgs/cab/$item.png" );
# $output_detail="<hr>";
if( file_exists( $item_img )) {
$item_imgurl = "";
$item_imgurl .= "<a href=https:#$http_host$php_self?q=hw/$item&hrctag=$hrctag>";
$item_imgurl .= "<img src=$item_img border=0 ></a>\n";
$tbldtl = "<tr>\n";
$tbldtl .= "<td>$j   </td>\n";
$tbldtl .= "<td>$item_imgurl   </td>\n";
$tbldtl .= "<td>$item   </td>\n";
$tbldtl .= "<td>$amps   </td>\n";
$tbldtl .= "<td>$ip   </td>\n";
$tbldtl .= "<td>$sn   </td>\n";
$tbldtl .= "<td>$hrctag   </td>\n";
$tbldtl .= "<td>$hostname   </td>\n";
$tbldtl .= "<td>$machinename   </td>\n";
$tbldtl .= "</tr>\n";
}
else {
#/ $output_detail .= "$item_img     \n";
$tbldtl .= "<tr>\n";
$tbldtl .= "<td>$j   </td>";
$tbldtl .= "<td>$item_img   </td>";
$tbldtl .= "<td>$item   </td>";
$tbldtl .= "<td>$amps   </td>";
$tbldtl .= "<td>$ip   </td>";
$tbldtl .= "<td>$sn   </td>";
$tbldtl .= "<td>$hrctag   </td>";
$tbldtl .= "<td>$hostname   </td>";
$tbldtl .= "<td>$machinename   </td>";
$tbldtl .= "</tr>\n";
}
$output .= $tbldtl;
if( $led_filename != "" ) {
# $led_pathfile="$media_path/$led_filename";
# $led_pathfile="$media_path/$led_filename";
$led_pathfile="$path_ani/$led_filename";
if( file_exists( $led_pathfile)) {
$output .= "<img src=\"$led_pathfile\"><br/>\n";
}
}
# print( $output );
}
$tbltot = "";
$tbltot .= "<tr>\n";
$tbltot .= "<td>   </td>\n";
$tbltot .= "<td><b>totals $dttm: $cab</b></td>\n";
$tbltot .= "<td> $j </td>\n";
$tbltot .= "<td><b>$samps</b></td>\n";
$tbltot .= "<td>   </td>\n";
$tbltot .= "</tr>\n";
$output .= "$tbltot";
$output .= "</table>\n";
$output .= "<hr>\n";
print( "<br/>\n" );
if(! isset($_SESSION['hs_type'] )) { $hs_type="default"; }
else {$hs_type=$_SESSION['hs_type'];}
if(! isset($_SESSION['org_type'] )) { $org_type="p"; }
else {$org_type=$_SESSION['org_type'];}
$os=$options[1];
if( preg_match( "/ko1/", $os, $matches )) {
$output .= "<h3>System Management Branch</h3>\n";
$output .= "<a href=$php_self?q=ko1/about>about</a>       \n";
$output .= "<a href=/itil>itil</a><br>\n";
$output .= "<hr>\n";
}
$tbllist="kb hs us sw vg hw dp bp";
$tbls=explode( " ",$tbllist );
$rollover_title="$os $tbl";
foreach( $tbls as $tbl ) {
$rollover_img= sprintf("./imgs/fpb/$tbl.png");
$output .= "<a href=\"$php_self?q=detail/$os/$op"."_$tbl\" ";
$output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
$output .= "><img src=$rollover_img border=0 height=40></a>     \n";
}
$led_name=$options[1];
# printf( "BUGS_5300 o1=$option1 o2=$option2 options=$options<hr>\n" );
if(( isset( $_SESSION['role'] )) && ( ! $_SESSION['role'] == "" )) {
$output .= "<hr>role: ". $_SESSION['role'] . "<hr>\n";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>\n";
# $output .= "update $led_name</a>\n";
$output .= "<img src=./imgs/btn/postit.png height=20 border=0>";
$output .= "</a>\n";
$output .= "        ";
$output .= "<a href=$php_self?q=rpts/$led_name>";
#/ $output .= "rpts $led_name</a><br/>\n";
$output .= "<img src=./imgs/btn/postits.png height=20 border=0>\n";
$output .= "</a><br/>\n";
}
else {
$output .= "<hr>role: ". $_SESSION['role'] . " guest<hr>\n";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>";
$output .= "<img src=./imgs/btn/postit.png height=20></a>";
$output .= "        ";
$output .= "<a href=$php_self?q=rpts/$led_name>";
$output .= "<img src=./imgs/btn/postits.png height=20>";
$output .= "</a><br/>\n";
}
$output .= "<hr><a href=$php_self?q=scrub_upload_form/$led_name>scrub_upload_form $led_name</a><br/><hr>\n";
print( $output );
return( $output );
}
function leds_detail_us($options ) {
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
global $dbfile;
global $tblname;
$tblname="us";
global $media_path;
$pdo = newpdo($dbfile);
$media_path=$media_path;
$path_ani="./imgs/ani";
$path_imgs="./imgs/$tblname";
$output = "";
$output .= "<head>\n";
# $output .= " <script src=\"js/jqgrid.3.5.3/js/jquery-1.3.2.min.js\" type=\"text/javascript\"></script>\n";
$output .= " <script src=\"js/jqgrid-4.4.0/js/jquery-1.7.2.min.js\" type=\"text/javascript\"></script>\n";
$output .= " <script src=\"js/tooltip/tooltip_main_screenshot.js\" type=\"text/javascript\"></script>\n";
$output .= " </head>\n";
$output .= html_btn_squares( $options, "" );
# $output .= "leds_detail MSG_3545: name=[$led_name] title=[$led_title] led_loc_code=[$led_loc_code] led_comment=[$led_comment]<br>\n";
# leds_show();
$cab=$options[1];
$led_name=$options[1];
$os=$options[1];
$osimg= sprintf("./imgs/btn/$os.png");
# $output .= "<br><img src=$osimg width=10% height=6%><br>\n";
$cabimg= sprintf("./imgs/cab/$cab.png");
# $output .= "<br><img src=$cabimg width=10% height=6%><br>\n";
$output .= "<br><img src=$cabimg height=50%><br>\n";
$tblname="ko_hw";
$sql = "select * from $tblname";
$sql = "select * from $tblname where led_name == '$led_name' and led_published == '1' and led_dttm == 'current'";
$sql = "select * from $tblname where led_name == '$led_name'";
# $sql = "select * from $tblname where cab == '$cab' and model != ''";
$sql = "select * from $tblname where cab == '$cab' and item != ''";
$j=0;
$samps=0;
$output .= "<table>\n";
$tblhdr = "";
$tblhdr .= "<tr>\n";
$tblhdr .= "<td>jhdr</td>";
$tblhdr .= "<td>item_img jk</td>";
$tblhdr .= "<td>item</td>";
$tblhdr .= "<td>amps</td>";
$tblhdr .= "<td>ip</td>";
$tblhdr .= "<td>sn</td>";
$tblhdr .= "<td>hrctag</td>";
$tblhdr .= "<td>hostname</td>";
$tblhdr .= "<td>machinename</td>";
$tblhdr .= "</tr>\n";
$output .= $tblhdr;
foreach( $pdo->query($sql) as $row ) {
$j++;
# printf( "BUGS_6160: sql=[$sql]<br>\n" );
$led_name = $row['led_name'];
$led_dttm = $row['led_dttm'];
$led_cab = $row['cab'];
$btu = $row['btu'];
$os = $row['os'];
$item = $row['item'];
$model = $row['model'];
$sn = $row['sn'];
$btu = $row['btu'];
$amps = $row['amps'];
$switch = $row['switch'];
$hrctag = $row['hrctag'];
$hostname = $row['hostname'];
$machinename = $row['machinename'];
$ip = $row['ip'];
# $led_amps = $row['amps'];
$led_sn = $row['sn'];
$led_title = $row['led_title'];
$led_comment = $row['led_comment'];
$led_loc_code = $row['led_loc_code'];
$led_published = $row['led_published'];
$led_group = $row['led_group'];
$led_orgs = $row['led_orgs'];
$led_filename = $row['led_filename'];
$samps=$samps+$amps;
$item_img= sprintf("./imgs/cab/$item.png" );
# $output_detail="<hr>";
if( file_exists( $item_img )) {
$item_imgurl = "";
$item_imgurl .= "<a href=https:#$http_host$php_self?q=hw/$item&hrctag=$hrctag>";
$item_imgurl .= "<img src=$item_img border=0 ></a>\n";
$tbldtl = "<tr>\n";
$tbldtl .= "<td>$j   </td>\n";
$tbldtl .= "<td>$item_imgurl   </td>\n";
$tbldtl .= "<td>$item   </td>\n";
$tbldtl .= "<td>$amps   </td>\n";
$tbldtl .= "<td>$ip   </td>\n";
$tbldtl .= "<td>$sn   </td>\n";
$tbldtl .= "<td>$hrctag   </td>\n";
$tbldtl .= "<td>$hostname   </td>\n";
$tbldtl .= "<td>$machinename   </td>\n";
$tbldtl .= "</tr>\n";
}
else {
#/ $output_detail .= "$item_img     \n";
$tbldtl .= "<tr>\n";
$tbldtl .= "<td>$j   </td>";
$tbldtl .= "<td>$item_img   </td>";
$tbldtl .= "<td>$item   </td>";
$tbldtl .= "<td>$amps   </td>";
$tbldtl .= "<td>$ip   </td>";
$tbldtl .= "<td>$sn   </td>";
$tbldtl .= "<td>$hrctag   </td>";
$tbldtl .= "<td>$hostname   </td>";
$tbldtl .= "<td>$machinename   </td>";
$tbldtl .= "</tr>\n";
}
$output .= $tbldtl;
if( $led_filename != "" ) {
# $led_pathfile="$media_path/$led_filename";
# $led_pathfile="$media_path/$led_filename";
$led_pathfile="$path_ani/$led_filename";
if( file_exists( $led_pathfile)) {
$output .= "<img src=\"$led_pathfile\"><br/>\n";
}
}
# print( $output );
}
$tbltot = "";
$tbltot .= "<tr>\n";
$tbltot .= "<td>   </td>\n";
$tbltot .= "<td><b>totals $dttm: $cab</b></td>\n";
$tbltot .= "<td> $j </td>\n";
$tbltot .= "<td><b>$samps</b></td>\n";
$tbltot .= "<td>   </td>\n";
$tbltot .= "</tr>\n";
$output .= "$tbltot";
$output .= "</table>\n";
$output .= "<hr>\n";
print( "<br/>\n" );
if(! isset($_SESSION['hs_type'] )) { $hs_type="default"; }
else {$hs_type=$_SESSION['hs_type'];}
if(! isset($_SESSION['org_type'] )) { $org_type="p"; }
else {$org_type=$_SESSION['org_type'];}
$os=$options[1];
if( preg_match( "/ko1/", $os, $matches )) {
$output .= "<h3>System Management Branch</h3>\n";
$output .= "<a href=$php_self?q=ko1/about>about</a>       \n";
$output .= "<a href=/itil>itil</a><br>\n";
$output .= "<hr>\n";
}
$tbllist="kb hs us sw vg hw dp bp";
$tbls=explode( " ",$tbllist );
$rollover_title="$os $tbl";
foreach( $tbls as $tbl ) {
$rollover_img= sprintf("./imgs/fpb/$tbl.png");
$output .= "<a href=\"$php_self?q=detail/$os/$op"."_$tbl\" ";
$output .= " class=\"screenshot\" rel=\"$rollover_img\" title=\"$rollover_title\" ";
$output .= "><img src=$rollover_img border=0 height=40></a>     \n";
}
$led_name=$options[1];
# printf( "BUGS_5300 o1=$option1 o2=$option2 options=$options<hr>\n" );
if(( isset( $_SESSION['role'] )) && ( ! $_SESSION['role'] == "" )) {
$output .= "<hr>role: ". $_SESSION['role'] . "<hr>\n";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>\n";
# $output .= "update $led_name</a>\n";
$output .= "<img src=./imgs/btn/postit.png height=20 border=0>";
$output .= "</a>\n";
$output .= "        ";
$output .= "<a href=$php_self?q=rpts/$led_name>";
#/ $output .= "rpts $led_name</a><br/>\n";
$output .= "<img src=./imgs/btn/postits.png height=20 border=0>\n";
$output .= "</a><br/>\n";
}
else {
$output .= "<hr>role: ". $_SESSION['role'] . " guest<hr>\n";
$output .= "<a href=$php_self?q=leds_update_form/$led_name>";
$output .= "<img src=./imgs/btn/postit.png height=20></a>";
$output .= "        ";
$output .= "<a href=$php_self?q=rpts/$led_name>";
$output .= "<img src=./imgs/btn/postits.png height=20>";
$output .= "</a><br/>\n";
}
$output .= "<hr><a href=$php_self?q=scrub_upload_form/$led_name>scrub_upload_form $led_name</a><br/><hr>\n";
print( $output );
return( $output );
}
function leds_install($install_mode ) {
# print( "BUGS_5460 leds_install install_mode=$install_mode<br>\n" );
$dttm=date("Ymd_His");
$GLOBALS['install'] = true;
$dbfile=$GLOBALS['dbfile'];
$dbfile_dttm = $dbfile;
$dbfile_dttm = str_replace( ".db3", "_$dttm.db3", $dbfile );
if(( "$install_mode" == "new" ) && file_exists( $dbfile )) {
print( "$php_self leds_install $install_mode ERR: already installed [$dbfile]\n" );
return;
}
if(( "$install_mode" == "old" ) && file_exists( $dbfile )) {
print( "$php_self leds_install $install_mode MSG: already installed [$dbfile]\n" );
if( file_exists( $dbfile )) {
print( "$php_self leds_install MSG: rename( $dbfile, $dbfile_dttm<br/>\n" );
rename( $dbfile, $dbfile_dttm );
# copy( $dbfile, $dbfile_dttm );
if( file_exists( $dbfile_dttm )) {
# unlink( $dbfile );
print( "$php_self leds_install MSG: unlink $dbfile<br/>\n" );
}
}
}
print( "<h2>BUGS_7320 pdo_cr_cfg</h2><br>\n" );
pdo_cr_cfg();
print( "<h2>BUGS_7330 pdo_cr_leds</h2><br>\n" );
pdo_cr_leds();
print( "<h2>BUGS_7341 pdo_cr_ai</h2><br>\n" );
pdo_cr_ai();
print( "<h2>BUGS_7342 pdo_cr_cab</h2><br>\n" );
pdo_cr_cab();
print( "<h2>BUGS_7343 pdo_cr_doc</h2><br>\n" );
pdo_cr_doc();
print( "<h2>BUGS_7344 pdo_cr_us</h2><br>\n" );
pdo_cr_us();
print( "<h2>BUGS_7331 pdo_cr_leds_ai</h2><br>\n" );
pdo_cr_leds_ai();
print( "<h2>BUGS_7332 pdo_cr_leds_cab</h2><br>\n" );
pdo_cr_leds_cab();
print( "<h2>BUGS_7333 pdo_cr_leds_doc</h2><br>\n" );
pdo_cr_leds_doc();
print( "<h2>BUGS_7334 pdo_cr_leds_us</h2><br>\n" );
pdo_cr_leds_us();
pdo_cr_menus();
pdo_cr_nodes();
pdo_cr_roles();
pdo_cr_users();
pdo_cr_fp();
pdo_cr_grid();
pdo_cr_hw();
pdo_cr_n11();
pdo_cr_dbs();
pdo_cr_kb();
pdo_cr_flds();
print( "<h2>BUGS_7310 pdo_insert_cfg</h2><br>\n" );
pdo_insert_cfg();
print( "<h2>BUGS_7320 pdo_insert_leds</h2><br>\n" );
pdo_insert_leds();
print( "<h2>BUGS_7321 pdo_insert_leds_ai</h2><br>\n" );
pdo_insert_leds_ai();
print( "<h2>BUGS_7322 pdo_insert_leds_cab</h2><br>\n" );
pdo_insert_leds_cab();
print( "<h2>BUGS_7323 pdo_insert_leds_doc</h2><br>\n" );
pdo_insert_leds_doc();
print( "<h2>BUGS_7324 pdo_insert_leds_us</h2><br>\n" );
pdo_insert_leds_us();
print( "<h2>BUGS_7331 pdo_insert_ai</h2><br>\n" );
pdo_insert_leds_ai();
print( "<h2>BUGS_7332 pdo_insert_cab</h2><br>\n" );
pdo_insert_leds_cab();
print( "<h2>BUGS_7333 pdo_insert_doc</h2><br>\n" );
pdo_insert_leds_doc();
print( "<h2>BUGS_7334 pdo_insert_us</h2><br>\n" );
pdo_insert_leds_us();
$options=array();
pdo_insert_menus( $options );
pdo_insert_nodes();
pdo_insert_roles();
pdo_insert_users();
pdo_insert_fp();
pdo_insert_grid();
pdo_insert_hw();
pdo_insert_n11();
pdo_insert_obj();
pdo_insert_pano();
pdo_insert_dbs( $options );
}
function leds_login_form($options) {
print( "BUGS_3310 leds_login_form options=$options<br>\n" );
$html = html_header($options);
$html .= html_btn_squares($options);
$php_self = $_SERVER['PHP_SELF'];
$query_string = $_SERVER['QUERY_STRING'];
$user = "";
$role = "";
$sid = "";
$step = "";
if( isset($_POST['user']) ) { $user = $_POST['user']; }
if( isset($_POST['role']) ) { $role = $_POST['role']; }
if( isset($_POST['sid']) ) { $sid = $_POST['sid']; }
if( isset($_POST['step']) ) { $step = $_POST['step']; }
$allowflag = $GLOBALS['allowflag'];
$html .= "<h2>ko_center_login_form</h2>\n";
$html .= "<form method=\"post\" action=\"$php_self?q=login_validate\">\n";
$html .= "user: <input type=\"text\" name=\"user\" value=\"$user\" /><br/>\n";
$html .= "_pin: <input type=\"password\" name=\"pass\" /><br/>\n";
$html .= "<br>\n";
$html .= "<font size=1>\n";
$html .= "newpass1: <input type=\"password\" name=\"newpass1\" /><br/>\n";
$html .= "newpass2: <input type=\"password\" name=\"newpass2\" /><br/>\n";
$html .= "<input type=\"hidden\" name=\"role\" value=\"$role\"/>\n";
$html .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>\n";
$html .= "<input type=\"hidden\" name=\"step\" value=\"login\"/>\n";
$html .= "<input type=\"hidden\" name=\"query_string\" value=\"$query_string\"/>\n";
$html .= "</font>\n";
$html .= "<p>\n";
$html .= "<input type=\"submit\"/>\n";
$html .= "<input type=\"reset\"/>\n";
$html .= "</p>\n";
$html .= "</form>\n";
$html .= html_footer($options);
print( $html );
}
function leds_login_validate( $options ) {
$dbfile = $GLOBALS['dbfile'];
$tbl = "users";
$progid = $GLOBALS['progid'];
$dttm = $GLOBALS['dttm'];
$logfil = $GLOBALS['logfil'];
$php_self = $_SERVER['PHP_SELF'];
$remote_addr = $_SERVER['REMOTE_ADDR'];
$user = "";
$pass = "";
$role = "";
$sid = "";
$step = "";
$newpass1 = "";
$newpass2 = "";
if( isset($_POST['user']) ) { $user = $_POST['user']; }
if( isset($_POST['pass']) ) { $pass = $_POST['pass']; }
if( isset($_POST['role']) ) { $role = $_POST['role']; }
if( isset($_POST['sid']) ) { $sid = $_POST['sid']; }
if( isset($_POST['step']) ) { $step = $_POST['step']; }
if( isset($_POST['newpass1']) ) { $newpass1 = $_POST['newpass1']; }
if( isset($_POST['newpass2']) ) { $newpass2 = $_POST['newpass2']; }
$user_code = strtolower($user);
$user_pass = strtolower($pass);
$validate = "0";
$row = login_validate_exec( $dbfile, $tbl, $user, $pass );
if( ! empty( $row ) ) {
$validate = 1;
$user = $row['user_code'];
$role = $row['user_role'];
}
if( $validate == 1 ) {
ko_sessions_start();
$_SESSION['user'] = $user;
$_SESSION['role'] = $role;
$_SESSION['id'] = session_id();
$_SESSION['logged_in'] = true;
$session_user=$_SESSION['user'];
$session_role=$_SESSION['role'];
$session_id=$_SESSION['id'];
$session_logged_in=$_SESSION['logged_in'];
html_protected();
}
else {
print( "$php_self leds_login_validate MSG: LOGIN FAILED for user=[$user]<br>\n" );
leds_login_form( $options );
}
}
function login_validate_exec( $dbfile, $tbl, $user, $pass ) {
# $pwstatus=password_verify($user_pass,$user_name);
# $user_hash=password_hash($user_pass,PASSWORD_DEFAULT);
# print( "BUGS_8940 login_validate_exec $dbfile $tbl $user $pass <br>\n" );
if( ! file_exists( $dbfile )) { return array(); }
$user_code = strtolower( $user );
$user_pass = strtolower( $pass );
# Escape single quotes to prevent SQL injection via exec()
$user_code = str_replace( "'", "''", $user_code );
$user_pass = str_replace( "'", "''", $user_pass );
# Use sqlite3 CLI to query the database
# The -separator option sets the column separator to |
# We query for user_code, user_pass, user_status matching our criteria
$cmd = sprintf(
"sqlite3 -separator '|' %s \"SELECT user_code, user_pass, user_status, user_role FROM %s WHERE user_code='%s' AND user_pass='%s' AND user_status='a';\" 2>/dev/null",
escapeshellarg( $dbfile ),
escapeshellarg( $tbl ),
$user_code,
$user_pass
);
$output = "";
$retval = 0;
exec( $cmd, $output, $retval );
# Filter out empty lines and trim whitespace from each line
$lines = array_filter( array_map( 'trim', $output ));
# Parse the pipe-separated result from the first non-empty line:
# user_code|user_pass|user_status|user_role
if( $retval === 0 && count( $lines ) > 0 ) {
$fields = explode( "|", $lines[0] );
if( count( $fields ) >= 4 ) {
return array(
'user_code' => trim( $fields[0] ),
'user_pass' => trim( $fields[1] ),
'user_status' => trim( $fields[2] ),
'user_role' => trim( $fields[3] ),
);
}
}
return array();
}
function leds_logout($options) {
$_SESSION = array();
if( isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');
}
session_destroy();
$htmout = "";
$htmout .= "<html><body bgcolor=linen>\n";
$htmout .= "<h1>Logged out</h1>\n";
$htmout .= "<p><a href='?q=login'>Login again</a></p>\n";
$htmout .= "</body></html>\n";
print( $htmout );
}
function leds_update_form( $options ) {
$html = "";
$html .= html_header();
$php_self=$_SERVER['PHP_SELF'];
$query_string=$_SERVER['QUERY_STRING'];
$user=$_POST['user'];
$pass=$_POST['pass'];
$step=$_POST['step'];
$tblname=$GLOBALS['tblname'];
$led_name=$options[1];
# disable 20250507_0230
$html .= html_btn_squares($options);
# $html .= leds_show();
$dbfile=$GLOBALS['dbfile'];
$pdo = newpdo($dbfile);
$sql = "select * from $tblname where led_dttm='current' and led_name == '$led_name'";
foreach( $pdo->query($sql) as $row ) {
$led_name = $row['led_name'];
$led_color = $row['led_color'];
$led_speed = $row['led_speed'];
$led_type = $row['led_type'];
$led_date = $row['led_date'];
$led_cmd = $row['led_cmd'];
$led_cmdout = $row['led_cmdout'];
$led_desc = $row['led_desc'];
$led_misc = $row['led_misc'];
$led_err = $row['led_err'];
$led_fix = $row['led_fix'];
$led_os = $row['led_os'];
$led_comment = $row['led_comment'];
}
$pdo = null;
$dttm=date("Ymd_His");
$html .= "<hr>leds_admin<hr>\n";
$html .= "<head><title>leds_update_form $dttm</title></head>\n";
# $html .= "<body bgcolor=\"lightblue\">\n";
$html .= "<body bgcolor=\"linen\">\n";
$html .= "<b>leds_update_form</b>\n";
$html .= "<h2>$query_string [$user][$pass][$step][$options[0][$options[1]]</h2>\n";
$html .= "<h4>dbfile=[$dbfile] <br>sql=[$sql]</h4>\n";
$html .= "<form method=\"post\" action=\"$php_self?q=leds_update/$led_name\" enctype=\"multipart/form-data\">\n";
# $html .= "user: <input name=\"user\"/><br/>\n";
# $html .= "pass: <input type=\"pass\" name=\"pass\"/><br/>\n";
$html .= "<br/>\n";
# $html .= "led:\n";
# $html .= "<select name=\"led\">\n";
# $html .= "<option value=\"led1\" >led1</option>\n";
# $html .= "<option value=\"led2\">led2</option>\n";
# $html .= "<option value=\"led3\">led3</option>\n";
# $html .= "</select><br/>\n";
# $html .= "led_name=[$led_name][$led_color][$led_speed][$led_type]<br>\n";
# $html .= "[$led_date][$led_cmd][$led_desc][$led_misc]<br>\n";
# $html .= "[$led_comment][$led_filename]<br /><br />\n";
$type_manual_checked = "";
$type_date_checked = "";
$type_cmd_checked = "";
if(( $led_type == "manual" ) || ( $led_type == "" )) { $type_manual_checked = "checked"; }
if( $led_type == "date" ) { $type_date_checked = "checked"; }
if( $led_type == "cmd" ) { $type_cmd_checked = "checked"; }
$html .= "<table>\n";
$html .= "<tr>\n";
$html .= "<td>type: </td>";
$html .= "<td>\n";
$html .= "<input type=\"radio\" name=\"type\" value=\"manual\" $type_manual_checked />manual";
$html .= "<input type=\"radio\" name=\"type\" value=\"date\" $type_date_checked />date";
$html .= "<input type=\"radio\" name=\"type\" value=\"cmd\" $type_cmd_checked />cmd";
$html .= "</td>\n";
$html .= "</tr>\n";
# $html .= "<br>\n";
$red_checked = "";
$blu_checked = "";
$grn_checked = "";
if( $led_color == "red" ) { $red_checked = "checked"; }
if( $led_color == "blu" ) { $blu_checked = "checked"; }
if( $led_color == "grn" ) { $grn_checked = "checked"; }
$html .= "<tr>\n";
$html .= "<td>color: </td>";
$html .= "<td>\n";
$html .= "<input type=\"radio\" name=\"color\" value=\"red\" $red_checked />red";
$html .= "<input type=\"radio\" name=\"color\" value=\"blu\" $blu_checked />blue";
$html .= "<input type=\"radio\" name=\"color\" value=\"grn\" $grn_checked />green";
$html .= "</td>\n";
$html .= "</tr>\n";
$os_aac_checked="";
$os_aix_checked="";
$os_hpx_checked="";
$os_ios_checked="";
$os_sol_checked="";
$os_uss_checked="";
$os_win_checked="";
if( $led_os == "aac" ) { $os_aac_checked = "checked"; }
if( $led_os == "aix" ) { $os_aix_checked = "checked"; }
if( $led_os == "hpx" ) { $os_hpx_checked = "checked"; }
if( $led_os == "ios" ) { $os_ios_checked = "checked"; }
if( $led_os == "sol" ) { $os_sol_checked = "checked"; }
if( $led_os == "uss" ) { $os_uss_checked = "checked"; }
if( $led_os == "win" ) { $os_win_checked = "checked"; }
if( $led_os == "" ) { $os_aac_checked = "checked"; }
# $html .= "<br/>\n";
$html .= "<tr>\n";
$html .= "<td>os: </td>";
$html .= "<td>\n";
$html .= "<input type=\"radio\" name=\"led_os\" value=\"aac\" $os_aac_checked />aac";
$html .= "<input type=\"radio\" name=\"led_os\" value=\"aix\" $os_aix_checked />ai\n";
$html .= "<input type=\"radio\" name=\"led_os\" value=\"hpx\" $os_hpx_checked />hp\n";
$html .= "<input type=\"radio\" name=\"led_os\" value=\"ios\" $os_ios_checked />ios";
$html .= "<input type=\"radio\" name=\"led_os\" value=\"sol\" $os_sol_checked />sol";
$html .= "<input type=\"radio\" name=\"led_os\" value=\"uss\" $os_uss_checked />uss";
$html .= "<input type=\"radio\" name=\"led_os\" value=\"win\" $os_win_checked />win";
$html .= "</td>\n";
$html .= "</tr>\n";
if( $led_speed == "0" ) { $select_speed_0 = "selected"; }
if( $led_speed == "1" ) { $select_speed_1 = "selected"; }
if( $led_speed == "2" ) { $select_speed_2 = "selected"; }
if( $led_speed == "3" ) { $select_speed_3 = "selected"; }
# $html .= "<br/>\n";
$html .= "<tr>\n";
$html .= "<td>speed: </td>\n";
$html .= "<td>\n";
$html .= "<select name=\"speed\">\n";
$html .= "<option $select_speed_0 value=\"0\" >0</option>\n";
$html .= "<option $select_speed_1 value=\"1\">1</option>\n";
$html .= "<option $select_speed_2 value=\"2\">2</option>\n";
$html .= "<option $select_speed_3 value=\"3\">3</option>\n";
$html .= "</select><br/>\n";
$html .= "</td>\n";
$html .= "</tr>\n";
# $html .= "<br />\n";
# $html .= "led_err: <input size=\"256\" type=\"text\" name=\"led_err\" value=\"$led_err\"/><br/>\n";
$html .= "<tr><td>led_err: </td><td><textarea rows=\"2\" cols=\"40\" name=\"led_err\">$led_err</textarea><br/></td></tr>\n";
$html .= "<tr><td>led_fix: </td><td><textarea rows=\"2\" cols=\"40\" name=\"led_fix\">$led_fix</textarea><br/></td></tr>\n";
$html .= "<tr><td>date: </td><td><input type=\"text\" name=\"date\" value=\"$led_date\"/><br/></td></tr>\n";
$html .= "<tr><td>cmd: </td><td><input type=\"text\" name=\"cmd\" value=\"$led_cmd\"/></td></tr>\n";
$html .= "<tr><td>cmdout: </td><td><input type=\"text\" name=\"cmdout\" value=\"$led_cmdout\"/></td></tr>\n";
$html .= "<tr><td>desc: </td><td><input type=\"text\" name=\"desc\" value=\"$led_desc\"/></td></tr>\n";
$html .= "<tr><td>misc: </td><td><input type=\"text\" name=\"misc\" value=\"$led_misc\"/></td></tr>\n";
# $html .= "<tr><td>status: </td><td>\n";
# $html .= "<input type=\"checkbox\" name=\"status\" value=\"0\"/>0\n";
# $html .= "<input type=\"checkbox\" name=\"status\" value=\"1\"/>1\n";
# $html .= "<input type=\"checkbox\" name=\"status\" value=\"2\"/>2\n";
# $html .= "<input type=\"checkbox\" name=\"status\" value=\"3\"/>3\n";
# $html .= "</td></tr>\n";
$html .= "<tr><td>publish: </td><td>";
$html .= "<input type=\"radio\" name=\"published\" value=\"1\" \"checked\" />true";
$html .= "<input type=\"radio\" name=\"published\" value=\"0\" />false";
$html .= "</td></tr>\n";
$html .= "<tr><td>comment: </td><td><input type=\"text\" name=\"comment\" value=\"$led_comment\"/></td></tr>\n";
$html .= "<tr><td>upload: </td><td><input type=\"file\" name=\"uploaded\" /></td></tr>\n";
$html .= "<tr><td>   </td><td><input type=\"hidden\" name=\"user\" value=\"$user\"/></td></tr>\n";
$html .= "<tr><td>   </td><td><input type=\"hidden\" name=\"pass\" value=\"$pass\"/></td></tr>\n";
$html .= "<tr><td>   </td><td><input type=\"hidden\" name=\"step\" value=\"update\"/></td></tr>\n";
$html .= "<tr><td>   </td><td><input type=\"hidden\" name=\"query_string\" value=\"$query_string\"/></td></tr>\n";
$html .= "<tr><td>   </td><td><input type=\"hidden\" name=\"uploaded_loos\" value=\"'". $globals['uploaded']."'\"/></td></tr></td></tr>\n";
$html .= "</table>\n";
$html .= "<hr/>\n";
$html .= "<p>\n";
$html .= "<input type=\"submit\" name=\"update\" value=\"update\"/>\n";
$html .= "<input type=\"reset\"/>\n";
$html .= "</p>\n";
$html .= "</form>\n";
$html .= "</body>\n";
$html .= "<html>\n";
print( $html );
}
function leds_update($options) {
print( "BUGS_3420 leds_update options=$options <br>\n" );
html_header();
$php_self=$_SERVER['PHP_SELF'];
$led_name=$options[1];
$led_dttm=date("Y-m-d H:i:s");
$led_user_ip=$_SERVER['REMOTE_ADDR'];
$led_referer=$_SERVER['REFERER'];
$led_remote_port=$_SERVER['REMOTE_PORT'];
$query_string=$_SERVER['QUERY_STRING'];
$user=$_POST['user'];
$pass=$_POST['pass'];
$step=$_POST['step'];
$led_user=$_POST['user'];
$led_color=$_POST['color'];
$led_speed=$_POST['speed'];
$led_err=$_POST['led_err'];
$led_fix=$_POST['led_fix'];
$led_os=$_POST['led_os'];
$led_type=$_POST['type'];
$led_date=$_POST['date'];
$led_cmd=$_POST['cmd'];
$led_cmdout=$_POST['cmdout'];
$led_desc=$_POST['desc'];
$led_misc=$_POST['misc'];
$led_comment=$_POST['comment'];
$led_filename=$_POST['filename'];
$led_published=$_POST['published'];
if(isset($_FILES['uploaded']) && !empty($_FILES['uploaded']['name'])) {
# print_r($_FILES);
# $led_filename = ko_upload( $led_user );
$html_scrub = ko_upload( $led_user );
#/ print( "$php_self leds_update MSG_2333: led_user=[$led_user] led_filename=[$led_filename]<br>\n" );
# ko_upload2();
}
$sqlupd = "update leds set ";
$sqlupd .= "led_color='$led_color', led_speed='$led_speed', ";
$sqlupd .= "led_err='$led_err', ";
$sqlupd .= "led_fix='$led_fix', ";
$sqlupd .= "led_os='$led_os', ";
$sqlupd .= "led_type='$led_type', ";
$sqlupd .= "led_date='$led_date', ";
$sqlupd .= "led_cmd='$led_cmd', ";
$sqlupd .= "led_cmdout='$led_cmdout', ";
$sqlupd .= "led_desc='$led_desc', ";
$sqlupd .= "led_misc='$led_misc', ";
$sqlupd .= "led_comment='$led_comment', ";
$sqlupd .= "led_user='$led_user', led_user_ip='$led_user_ip', led_referer='$led_referer', ";
$sqlupd .= "led_filename='$led_filename', led_published='$led_published' ";
$sqlupd .= "where led_dttm='current' and led_name == '$led_name'";
$option0=$options[0];
$option1=$options[1];
$option2=$options[2];
print( "<hr>MSG_6280 o0=$option0 o1=$options1 $options2 sqlupd=[$sqlupd]<br />\n" );
$sqladd = "insert or replace into nodes (";
$sqladd .= "node_name, node_dttm, node_color, node_speed, ";
$sqladd .= "node_comment, node_user, node_user_ip, node_referer, ";
$sqladd .= "node_filename, node_published ";
$sqladd .= ") ";
$sqladd .= " values ( ";
$sqladd .= "\"$led_name\", \"$led_dttm\", \"$led_color\", \"$led_speed\", ";
$sqladd .= "\"$led_comment\", \"$led_user\", \"$led_user_ip\", \"$led_referer\", ";
$sqladd .= "\"$led_filename\", \"$led_published\" ) ";
$pdo = newpdo($GLOBALS['dbfile']);
$pdo->exec($sqlupd);
$pdo->exec($sqladd);
$pdo = null;
$html_btn_squares = html_btn_squares($options);
$html_head .= html_header($options);
$html_body = leds_show();
$html_footer = html_footer( $options );
$html = $html_head . $html_btn_squares . $html_body . $html_scrub . $html_foot;
print( $html );
}
function leds_menu( $options ) {
print( "BUGS_10020 leds_menu options=$options <br>\n" );
$dttm=date("Ymd_His");
$php_self = $_SERVER['PHP_SELF'];
leds_show();
print( "leds_menu: u: " . $_SESSION['user'] . " r: " . $_SESSION['role'] . " - " . $dttm . "<br\>\n" );
$dbfiles = $GLOBALS['dbs'];
if(( $_SESSION['role'] == "" ) || ( $_SESSION['role'] == "anonymous" )) {
print( "<hr>\n" );
print( "<a href=$php_self?q=run/anonymous_option1>anonymous_option1</a><br />\n" );
print( "<a href=$php_self?q=run/anonymous_option2>anonymous_option2</a><br />\n" );
print( "<a href=$php_self?q=run/anonymous_option3>anonymous_option3</a><br />\n" );
}
if( $_SESSION['role'] == "guest" ) {
print( "<hr>\n" );
print( "<a href=$php_self?q=run/guest_option1>guest_option1</a><br />\n" );
print( "<a href=$php_self?q=run/guest_option2>guest_option1</a><br />\n" );
print( "<a href=$php_self?q=run/guest_option3>guest_option1</a><br />\n" );
}
if( $_SESSION['role'] == "user" ) {
print( "<hr>\n" );
print( "<a href=$php_self?q=run/user_option1>user_option1</a><br />\n" );
print( "<a href=$php_self?q=run/user_option2>user_option2</a><br />\n" );
print( "<a href=$php_self?q=run/user_option3>user_option3</a><br />\n" );
}
if( $_SESSION['role'] == "qc" ) {
print( "<hr>\n" );
print( "<a href=$php_self?q=run/qc_option1>qc_option1</a><br />\n" );
print( "<a href=$php_self?q=run/qc_option2>qc_option2</a><br />\n" );
print( "<a href=$php_self?q=run/qc_option3>qc_option3</a><br />\n" );
}
if( $_SESSION['role'] == "tester" ) {
print( "<hr>\n" );
print( "<a href=$php_self?q=run/tester_option1>tester_option1</a><br />\n" );
print( "<a href=$php_self?q=run/tester_option2>tester_option2</a><br />\n" );
print( "<a href=$php_self?q=run/tester_option3>tester_option3</a><br />\n" );
}
if( $_SESSION['role'] == "manager" ) {
print( "<hr>\n" );
print( "<a href=$php_self?q=run/manager_option1>manager_option1</a><br />\n" );
print( "<a href=$php_self?q=run/manager_option2>manager_option2</a><br />\n" );
print( "<a href=$php_self?q=run/manager_option3>manager_option3</a><br />\n" );
}
if( $_SESSION['role'] == "operator" ) {
print( "<hr>\n" );
print( "<a href=$php_self?q=run/operator_option1>operator_option1</a><br />\n" );
print( "<a href=$php_self?q=run/operator_option2>operator_option2</a><br />\n" );
print( "<a href=$php_self?q=run/operator_option3>operator_option3</a><br />\n" );
}
if( $_SESSION['role'] == "admin" ) {
print( "<hr>\n" );
print( "<a href=$php_self?q=run/admin_option1>admin_option1</a><br />\n" );
print( "<a href=$php_self?q=run/admin_option2>admin_option2</a><br />\n" );
print( "<a href=$php_self?q=run/admin_option3>admin_option3</a><br />\n" );
print( "<br\>\n" );
# print( "<a href=$php_self?q=aors>aors</a><br />\n" );
# print( "<a href=$php_self?q=ltrs>ltrs</a><br />\n" );
# print( "<a href=$php_self?q=iperms>iperms</a><br />\n" );
print( "<hr>admin:".$_SESSION['user'] . " ". $_SESSION['user'] . "<hr>\n" );
# select database
$url_dbcode=$options[1];
$url_table=$options[2];
if( $url_dbcode == "" ) {
if( $dbfiles[0] != "" ) {
foreach( $dbfiles as $dbcode => $dbinfo ) {
$dbfile=$dbfiles[$dbcode]['dbfile'];
$tblcnt=count( $dbfiles[$dbcode]['tables']);
$path_parts = pathinfo($dbfile);
$dbfile_filename=$path_parts['filename'];
print( "<a href=$php_self?q=menu/$dbfile_filename>$dbfile_filename $tblcnt</a><br />\n" );
}
}
}
# select database/tables
if(( $url_dbcode != "" ) && ( $url_table == "" )) {
foreach( $dbfiles[$url_dbcode]['tables'] as $table => $tableinfo ) {
print( "<a href=$php_self?q=menu/$url_dbcode/$tableinfo>$tableinfo </a><br />\n" );
}
}
if(( $url_dbcode != "" ) && ( $url_table != "" )) {
# print( "leds_menu BUGS_1021: url_dbcode=[$url_dbcode] url_table=[$url_table]<br/>\n" );
sql_view( $options );
}
else {
# print( "leds_menu BUGS_1022: url_dbcode=[$url_dbcode] url_table=[$url_table]<br/>\n" );
return;
}
}
if( $_SESSION['role'] == "" ) {
print( "<hr>public:".$_SESSION['user'] . " ". $_SESSION['user'] . "<hr>\n" );
}
print( "<hr>\n" );
print( "<a href=$php_self?q=unload>dbs unload<a><br>\n" );
print( "<a href=$php_self?q=load>dbs load<a><br>\n" );
print( "<hr>\n" );
print( "<a href=$php_self?q=ptviewer>panos<a><br>\n" );
print( "<a href=$php_self?q=ptobject>objects<a><br>\n" );
print( "<hr>\n" );
return;
leds_show();
print( "<hr>leds_menu o=$options[0] o1=$options[1]<hr>\n" );
$pdo = newpdo($GLOBALS['dbfile']);
if( $options[1] == "" ) {
$sql = "SELECT * from sqlite_master WHERE type='table'";
foreach( $pdo->query($sql) as $row ) {
print( "<a href=$php_self?q=menu/".$row['tbl_name'].">".$row['tbl_name'] );
print( "</a><br />\n" );
}
}
if( $options[1] != "" ) {
$sql = "SELECT * from $option1";
foreach( $pdo->query($sql) as $row ) {
print( "<a href=$php_self?q=menu/".$row['tbl_name'].">".$row['tbl_name'] );
print( "</a><br />\n" );
}
}
$pdo = null;
}
function scrub_upload_form( $options ) {
# return;
$html_head = html_header($options);
$php_self=$_SERVER['PHP_SELF'];
$query_string=$_SERVER['QUERY_STRING'];
$user=$_POST['user'];
$pass=$_POST['pass'];
$step=$_POST['step'];
$tblname=$GLOBALS['tblname'];
$led_name=$options[1];
# leds_show();
$pdo = newpdo($GLOBALS['dbfile']);
$sql = "select * from $tblname where led_dttm='current' and led_name == '$led_name'";
echo "dbfile=".$GLOBALS['dbfile']." sql=$sql <br><hr>";
foreach( $pdo->query($sql) as $row ) {
$led_name = $row['led_name'];
$led_color = $row['led_color'];
$led_speed = $row['led_speed'];
$led_type = $row['led_type'];
$led_date = $row['led_date'];
$led_cmd = $row['led_cmd'];
$led_cmdout = $row['led_cmdout'];
$led_desc = $row['led_desc'];
$led_misc = $row['led_misc'];
$led_comment = $row['led_comment'];
}
$pdo = null;
$html_btn_squares = html_btn_squares($option);
$html_scrub_form = "<b>scrub_upload_form</b>\n";
$html_scrub_form .= "<form method=\"post\" action=\"$php_self?q=scrub_upload\" enctype=\"multipart/form-data\">\n";
$html_scrub_form.= "<br/>\n";
$html_scrub_form .= "upload: <input type=\"file\" name=\"uploaded\" /><br />\n";
$html_scrub_form .= "<input type=\"hidden\" name=\"user\" value=\"$user\"/>\n";
$html_scrub_form .= "<input type=\"hidden\" name=\"pass\" value=\"$pass\"/>\n";
$html_scrub_form .= "<input type=\"hidden\" name=\"step\" value=\"update\"/>\n";
$html_scrub_form .= "<input type=\"hidden\" name=\"query_string\" value=\"$query_string\"/>\n";
$html_scrub_form .= "<input type=\"hidden\" name=\"uploaded_loos\" value=\"'". $globals['uploaded']."'\"/>\n";
$html_scrub_form .= "<hr/>\n";
$html_scrub_form .= "<p>\n";
$html_scrub_form .= "<input type=\"submit\" name=\"update\" value=\"scrub\"/>\n";
$html_scrub_form .= "<input type=\"reset\"/>\n";
$html_scrub_form .= "</p>\n";
$html_scrub_form .= "</form>\n";
$html_foot=html_footer();
$html = $html_head . $html_btn_squares . $html_scrub_form . $html_foot;
print( $html );
}
function ko_uploads() {
$uploads_dir = '/inbox';
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["pictures"]["tmp_name"][$key];
$name = $_FILES["pictures"]["name"][$key];
move_uploaded_file($tmp_name, "$uploads_dir/$name");
}
}
}
function html_header_orig() {
$output = "";
$output .= "<!DOCTYPE html PUBLIC \"-#W3C#DTD XHTML 1.0 Strict#EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
# $output .= "<!DOCTYPE html PUBLIC \"-#W3C#DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
$output .= "<html xmlns=\"http:#www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
$output .= "<head>\n";
$output .= js_scripts();
# $output .= css_rollovers_head( $options );
$output .= "</head>\n";
return( $output );
}
function jqgrid_login_form( $options ) {
print( "BUGS_8740 jqgrid_login_form options=$options <br>\n" );
$output = "";
$output .= "<table id=\"login_form\" class=\"scroll\" cellpadding=\"0\" cellspacing=\"0\">\n";
$output .= "</table>\n";
$output .= "<script type=\"text/javascript\">\n";
# $output .= "var gridimgpath = 'js/jqgrid-3.5.3/themes/redmond/imgs';\n";
$output .= "var gridimgpath = 'js/jqgrid-4.4.0/themes/redmond/imgs';\n";
$output .= "jQuery(\"#login_form\").jqGrid({\n";
$output .= " datatype: \"xml\",\n";
# $output .= " datatype: \"local\",\n";
$output .= " url:'http:#$http_host$php_self?q=login_validate'\n";
$output .= " urledit:'http:#$http_host$php_self?q=login_validate'\n";
$output .= " height: 250,\n";
$output .= " colNames:['user','pass'],\n";
$output .= " colModel:[ \n";
$output .= " {name:'user',index:'user', width:60 },\n";
$output .= " {name:'pass',index:'user', width:60 }\n";
$output .= " {name:'sid',index:'sid', width:60 },\n";
$output .= " ], \n";
$output .= "imgpath: gridimgpath,\n";
$output .= "multiselect: true,\n";
$output .= "caption: \"login\"\n";
$output .= "});\n";
$output .= "</script>\n";
return( $output );
}
function html_style_leds_context() {
# print( "BUGS_4110 html_style_leds_context <br>\n" );
$htmout = "";
$htmout .= " <style type=\"text/css\">\n";
$htmout .= " .leds_context {\n";
$htmout .= " -moz-box-shadow:inset 0px 1px 0px 0px #fcf8f2;\n";
$htmout .= " -webkit-box-shadow:inset 0px 1px 0px 0px #fcf8f2;\n";
$htmout .= " box-shadow:inset 0px 1px 0px 0px #fcf8f2;\n";
$htmout .= " background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #fae4bd), color-stop(1, #eac380) );\n";
$htmout .= " background:-moz-linear-gradient( center top, #fae4bd 5%, #eac380 100% );\n";
$htmout .= " filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fae4bd', endColorstr='#eac380');\n";
$htmout .= " background-color:#fae4bd;\n";
$htmout .= " -webkit-border-top-left-radius:0px;\n";
$htmout .= " -moz-border-radius-topleft:0px;\n";
$htmout .= " border-top-left-radius:0px;\n";
$htmout .= " -webkit-border-top-right-radius:0px;\n";
$htmout .= " -moz-border-radius-topright:0px;\n";
$htmout .= " border-top-right-radius:0px;\n";
$htmout .= " -webkit-border-bottom-right-radius:0px;\n";
$htmout .= " -moz-border-radius-bottomright:0px;\n";
$htmout .= " border-bottom-right-radius:0px;\n";
$htmout .= " -webkit-border-bottom-left-radius:0px;\n";
$htmout .= " -moz-border-radius-bottomleft:0px;\n";
$htmout .= " border-bottom-left-radius:0px;\n";
$htmout .= " text-indent:0;\n";
$htmout .= " border:1px solid #eeb44f;\n";
$htmout .= " display:inline-block;\n";
$htmout .= " color:#ffffff;\n";
$htmout .= " font-family:Arial;\n";
$htmout .= " font-size:15px;\n";
$htmout .= " font-weight:bold;\n";
$htmout .= " font-style:normal;\n";
$htmout .= " height:40px;\n";
$htmout .= " line-height:40px;\n";
$htmout .= " width:100px;\n";
$htmout .= " text-decoration:none;\n";
$htmout .= " text-align:center;\n";
$htmout .= " text-shadow:1px -21px 0px #cc9f52;\n";
$htmout .= " }\n";
$htmout .= " .leds_context:hover {\n";
$htmout .= " background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #eac380), color-stop(1, #fae4bd) );\n";
$htmout .= " background:-moz-linear-gradient( center top, #eac380 5%, #fae4bd 100% );\n";
$htmout .= " filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eac380', endColorstr='#fae4bd');\n";
$htmout .= " background-color:#eac380;\n";
$htmout .= " }\n";
$htmout .= " .leds_context:active {\n";
$htmout .= " position:relative;\n";
$htmout .= " top:1px;\n";
$htmout .= " }\n";
$htmout .= " .leds_context_img {\n";
$htmout .= " border:0;\n";
$htmout .= " cursor:pointer;\n";
$htmout .= " }\n";
$htmout .= " </style>\n";
return( $htmout );
}
function html_btn_squares($options) {
$dttm=date("Ymd_His");
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
$path_btn="imgs/btn";
$htmout = "";
$htmout .= "<div id=div_squares name=div_squares>\n";
$htmout .= " <a href=$php_self>\n";
$htmout .= " <img src=\"$path_btn/giphy_box_spinners.gif\" alt=\"btn_black\" border=0 height=\"20\" width=\"20\" />";
$htmout .= " </a>\n";
$session_role="";
if( isset($_SESSION['role'] )) {
$session_role=$_SESSION['role'];
}
# print( "BUGS_7610 login session_role=$session_role<br>\n" );
if(( ! isset( $_SESSION['role'] )) || ( $_SESSION['role'] == "" )) {
$htmout .= "<a href=$php_self?q=login>\n";
$htmout .= " <img src=\"$path_btn/giphy_box_spinners.gif\" alt=\"btn_black\" border=0 height=\"20\" width=\"20\" />";
$htmout .= " </a>\n";
}
if(( isset( $_SESSION['role'] )) && ( ! $_SESSION['role'] == "" )) {
$htmout .= " <a href=$php_self?q=logout>\n";
$htmout .= " <img src=\"$path_btn/btn_white.gif\" alt=\"btn_white\" border=0 height=\"20\" width=\"20\" />";
$htmout .= " </a>\n";
$squares = array( 'config', 'db/grid' );
foreach( $squares as $square ) {
$htmout .= " <a href=$php_self?q=$square>\n";
$htmout .= " <img src=\"$path_btn/giphy_box_spinners.gif\" alt=\"btn_black\" border=0 height=\"20\" width=\"20\" />";
$htmout .= " </a>\n";
}
}
$htmout .= " <a href=$php_self?q=tools>\n";
$htmout .= " <img src=\"$path_btn/giphy_box_spinners.gif\" alt=\"tools\" border=0 height=\"20\" width=\"20\" />";
$htmout .= " </a>\n";
$htmout .= " </div id=div_squares_end name=div_squares_end>\n";
$htmout .= "\n";
return( $htmout );
}
function html_btn_squares_orig($options) {
$dttm=date("Ymd_His");
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
$path_btn="imgs/btn";
$path_ani="imgs/ani";
# $output .= "<body bgimage=imgs/chalk.gif>\n";
# $output .= "<body bgcolor=lightblue>\n";
$output .= "<body bgcolor=linen>\n";
$output .= "<script type=\"text/javascript\" src=\"js/wz/wz_dragdrop.js\"></script>\n";
$output .= "<script type=\"text/javascript\" src=\"js/wz/wz_library.js\"></script>\n";
$output .= "<hr>\n";
$output .= "<div class=\"layer1\" id=\"leds_show\" >\n";
# $output .= " <p class=\"heading\">leds_show</p>\n";
# $output .= " <div class=\"content\">\n";
$output .= "<a href=$php_self>\n";
# $output .= "<img src=\"$path_btn/btn_black.gif\" alt=\"btn_black\" border=0 height=\"20\" width=\"20\" />";
$output .= "<img src=\"$path_btn/giphy_box_spinners.gif\" alt=\"btn_black\" border=0 height=\"20\" width=\"20\" />";
$output .= "</a>\n";
$session_role="";
if( isset($_SESSION['role'] )) {
$session_role=$_SESSION['role'];
}
# print( "BUGS_7610 login session_role=$session_role<br>\n" );
if(( ! isset( $_SESSION['role'] )) || ( $_SESSION['role'] == "" )) {
$output .= "<a href=$php_self?q=login>\n";
# $output .= "<img src=\"$path_btn/btn_black.gif\" alt=\"btn_black\" border=0 height=\"20\" width=\"20\" />";
$output .= "<img src=\"$path_btn/giphy_box_spinners.gif\" alt=\"btn_black\" border=0 height=\"20\" width=\"20\" />";
$output .= "</a>\n";
}
if(( isset( $_SESSION['role'] )) && ( ! $_SESSION['role'] == "" )) {
$output .= "<a href=$php_self?q=logout>\n";
$output .= "<img src=\"$path_btn/btn_white.gif\" alt=\"btn_white\" border=0 height=\"20\" width=\"20\" />";
$output .= "</a>\n";
$squares = array( 'config', 'db/grid' );
foreach( $squares as $square ) {
$output .= "<a href=$php_self?q=$square>\n";
# $output .= "<img src=\"$path_btn/btn_black.gif\" alt=\"btn_black\" border=0 height=\"20\" width=\"20\" />";
$output .= "<img src=\"$path_btn/giphy_box_spinners.gif\" alt=\"btn_black\" border=0 height=\"20\" width=\"20\" />";
$output .= "</a>\n";
}
}
$output .= "<a href=$php_self?q=tools>\n";
$output .= "<img src=\"$path_btn/giphy_box_spinners.gif\" alt=\"tools\" border=0 height=\"20\" width=\"20\" />";
$output .= "</a>\n";
$output .= "<br>\n";
# $output .= " </div>\n";
return( $output );
}
function html_page($options) {
$html = "";
$html .= html_header($options);
$html .= html_btn_squares($options);
pdo_leds(); exit;
$html .= leds_show( $options );
# $html .= html_btn_themes($options,"");
# $html .= html_btn_roles($options,"");
# $html .= html_btn_orgs($options,"");
# $html .= html_btn_hotspots($options,"");
# $html .= html_footer($options,"");
print( $html );
}
function html_btn_footer( $options ) {
$path_btn="./imgs/btn";
$path_ani="./imgs/ani";
$http_host=$_SERVER['HTTP_HOST'];
$server_name=$_SERVER['SERVER_NAME'];
$server_addr=$_SERVER['SERVER_ADDR'];
$html_btn_footer = "";
$html_btn_footer .= "<hr>\n";
pdo_leds();
exit;
$html_btn_footer .= leds_show($options);
$html_btn_footer .= "<a href=https:#us.army.mil target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/ako.png\" alt=\"us.army.mil\" border=0 height=\"30\" width=\"50\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "         ";
$html_btn_footer .= "<a href=https:#atc.us.army.mil/iastar/ target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/iastar.png\" alt=\"atc.us.army.mil/iastar\" border=0 height=\"30\" width=\"60\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "         ";
$html_btn_footer .= "<a href=https:#ia.signal.army.mil target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/iasignal.png\" alt=\"ia.signal.army.mil\" border=0 height=\"30\" width=\"30\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "         ";
$html_btn_footer .= "<a href=https:#www.iad.gov target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/iad.png\" alt=\"iad.gov\" border=0 height=\"30\" width=\"30\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "         ";
$html_btn_footer .= "<a href=https:#www.iad.gov/ioss/index.cfm target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/ioss.png\" alt=\"iad.gov/ioss\" border=0 height=\"30\" width=\"30\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "<a href=https:#www.hrc.army.mil target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/btn_hrc.png\" alt=\"hrc.army.mil\" border=0 height=\"30\" width=\"30\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "         ";
$html_btn_footer .= "<hr>\n";
$html_btn_footer .= "<table>\n";
$html_btn_footer .= "<tr>\n";
$html_btn_footer .= "<td>\n";
$html_btn_footer .= "ko_center<br>\n";
$html_btn_footer .= "<a href=$php_self?q=ko1/about target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/ko_center.png\" alt=\"ko_center\" border=0 height=\"35\" width=\"35\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "</td>\n";
$html_btn_footer .= "<td width=15>   </td>\n";
$html_btn_footer .= "<td>\n";
$html_btn_footer .= "ko_centere<br>\n";
$html_btn_footer .= "<a href=$php_self?q=ko_centere target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/ko_centere.png\" alt=\"ko_centere\" border=0 height=\"30\" width=\"30\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "</td>\n";
$html_btn_footer .= "<td width=15>   </td>\n";
$html_btn_footer .= "<td>\n";
$html_btn_footer .= "ko_centerd<br>\n";
$html_btn_footer .= "<a href=$php_self?q=ko_centerd target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/ko_centerd.png\" alt=\"ko_centerd\" border=0 height=\"30\" width=\"30\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "</td>\n";
$html_btn_footer .= "<td width=15>   </td>\n";
$html_btn_footer .= "<td>\n";
$html_btn_footer .= "ko_centert<br>\n";
$html_btn_footer .= "<a href=$php_self?q=ko_centert target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/ko_centert.png\" alt=\"ko_centert\" border=0 height=\"30\" width=\"30\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "</td>\n";
$html_btn_footer .= "<td width=15>   </td>\n";
$html_btn_footer .= "<td width=15>   </td>\n";
$html_btn_footer .= "<td>\n";
$html_btn_footer .= "itil<br>\n";
$html_btn_footer .= "<a href=/itil/index.html target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/itil.png\" alt=\"itil\" border=0 height=\"30\" width=\"30\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "</td>\n";
$html_btn_footer .= "<td width=15>   </td>\n";
$html_btn_footer .= "</tr>\n";
$html_btn_footer .= "</table>\n";
$html_btn_footer .= "<a href=http:#arcsight.com target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/arcsight.png\" alt=\"arcsight\" border=0 height=\"30\" width=\"40\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "         ";
$html_btn_footer .= "<a href=https:#147.238.94.170/console/app.showApp.cmd target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/tripwire.png\" alt=\"tripwire\" border=0 height=\"30\" width=\"40\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "         ";
$html_btn_footer .= "<a href=https:#147.238.94.105/zabbix target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/zabbix.gif\" alt=\"zabbix\" border=0 height=\"30\" width=\"50\" />";
$html_btn_footer .= "</a>\n";
$html_btn_footer .= "         ";
$html_btn_footer .= "<a href=https:#sbm.usarec.army.mil target=_blank>\n";
$html_btn_footer .= "<img src=\"$path_btn/serena.png\" alt=\"serena\" border=0 height=\"30\" width=\"60\" />";
$html_btn_footer .= "</a>\n";
return( $html_btn_footer );
}
function html_leds_context() {
$htmout = "";
global $leds_context;
$ctximg = "/imgs/btn/leds.png";
$htmout .= "<div id=\"div_leds_context\" name=\"div_leds_context\" >\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
$contexts = array( "ai", "cab", "doc", "us" );
foreach( $contexts as $ctx ) {
# bugs("","7926 html_leds_context ctx=$ctx<br>\n" );
$ctximg = "imgs/btn/leds_$ctx.png";
$label = ( $ctx === "" ) ? "blank" : strtoupper( $ctx );
if( $GLOBALS['leds_context'] === $ctx ) { $height = 150; } else { $height = 100; }
$htmout .= " <form method=\"post\" action=\"\" style=\"display:inline;margin:0;padding:0;\">\n";
$htmout .= " <input type=\"hidden\" name=\"set_leds_context\" value=\"$ctx\" />\n";
$htmout .= " <button type=\"submit\" name=\"leds_context\" class=\"leds_context\" value=\"$ctx\">\n";
$htmout .= " <img class=\"leds_context_img\" src=\"$ctximg\" height=\"$height\" alt=\"$label\" />\n";
$htmout .= " </button>\n";
$htmout .= " </form>\n";
$htmout .= " \n";
# bugs("","7940 html_ctx ctx=$ctx ctximg=$ctximg output=<br>$outout<br>\n" );
}
$htmout .= "</div>\n";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<hr color=goldenrod>\n";
return( $htmout );
}
function html_protected() {
if( ! isset($_SESSION['logged_in']) || $_SESSION['logged_in'] !== true ) {
print( "Access denied. Please <a href='?q=login'>login</a> first." );
return;
}
$options="";
$htmout = "";
$htmout .= "<html><head><title>html_protected</title></head>\n";
$htmout .= "<body bgcolor=linen>\n";
$htmout .= html_btn_squares($options);
$htmout .= "<h1>html_protected</h1>\n";
$htmout .= "<p>Welcome, " . htmlentities($_SESSION['user']) . "! You are logged in.</p>\n";
$htmout .= "<p><a href='?q=logout'>Logout</a></p>\n";
$htmout .= "</body></html>\n";
print( $htmout );
}
function html_footer_orig($options) {
global $set_dhtml;
$set_dhtml .= "$\"div_leds_context\"+RESIZABLE, ";
$set_dhtml .= "\"reports\"+RESIZABLE, \"koeye\"+RESIZABLE, \"koeyeb\"+RESIZABLE, \"koeyew\"+RESIZABLE, ";
$output .= "\n";
$output .= "<script id=script_dhtml type=\"text/javascript\">\n";
$output .= "<!--\n";
$output .= "SET_DHTML(\n";
$output .= "$set_dhtml\n";
$output .= " );\n";
$output .= "//-->\n";
$output .= " </script> \n";
$output .= "</body>\n";
$output .= "</html>\n";
return( $output );
}
function newpdo( $dbfile ) {
# print( "BUGS_6580 newpdo dbfile=$dbfile <br>\n" );
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$request_uri=$_SERVER['REQUEST_URI'];
# if( ! file_exists( $dbfile )) {
# print( "$php_self newpdo ERR_5000: NOT_EXISTS dbfile=[$dbfile]<br>\n" );
## if( $GLOBALS['install'] != true ) {
# print( "$php_self newpdo ERR: NOT_INSTALL dbfile=[$dbfile]<br>\n" );
# return;
## }
# else {
# print( "$php_self newpdo MSG: CREATE dbfile=[$dbfile]<br>\n" );
# }
# }
try {
$pdo = null;
$pdo = new PDO("sqlite:$dbfile" );
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
# $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
# $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
if( $pdo == null ) {
print( "$php_self newpdo ERR: dbfile=[$dbfile]<br>\n" );
return $pdo;
}
return $pdo;
}
catch(PDOException $e ) {
$errmsg = $e->getMessage();
print( "$php_self newpdo ERR: pdo=[$pdo] dbfile=[$dbfile] errmsg=[$errmsg]<br>\n" );
$pdo = null;
return $pdo;
}
}
function pdo_create( $dbfile, $tblname, $sql ) {
print( "BUGS_10287 pdo_create dbfile=$dbfile tblname=$tblname sql=$sql<br>\n" );
$php_self=$_SERVER['PHP_SELF'];
$pdo = newpdo( $dbfile );
if( $pdo != null ) {
$sqldrop="DROP TABLE IF EXISTS $tblname";
printf( "<hr>BUGS_5100 $php_self pdo_create DROP: dbfile=[$dbfile] tblfile=[$tblname] [$sqldrop]<br>\n" );
global $sqlfile;
# print( "BUGS_5101 pdo_create sqlfile=$sql_bugsfile<br>\n" );
if( "$sqlfile" != "" ) {
# print( "BUGS_5102 pdo_create sqlfile=$sql_bugsfile<br>\n" );
$f=fopen($sqlfile, "a");
# fwrite($f,"$sqldrop -- BUGS_5103 pdo_create sqldrop=\n");
fwrite($f,"$sqldrop\n");
fclose($f);
}
$pdo->exec($sqldrop);
printf( "BUGS_5103 pdo_create CREATE: dbfile=[$dbfile] tblfile=[$tblname] [$sql]<br>\n" );
global $sqlfile;
# print( "BUGS_5120 pdo_create sqlfile=$sql_bugsfile<br>\n" );
if ( "$sqlfile" != "" ) {
# print( "BUGS_5121 pdo_create sqlfile=$sql_bugsfile<br>\n" );
$f=fopen($sqlfile, "a");
# fwrite($f,"$sql -- BUGS_5122 pdo_create sql=\n");
fwrite($f,"$sql\n");
fclose($f);
}
$pdo->exec($sql);
$pdo = null;
}
}
function pdo_insert( $dbfile, $tblname, $data ) {
$csvfile = "$tblname.csv";
$psvfile = "$tblname.psv";
$php_self=$_SERVER['PHP_SELF'];
# print_r($data);
print( "BUGS_5200 pdo_insert dbfile=$dbfile tblname=$tblname <br>\n" );
# print( "BUGS1535_PDO_INSERT_beg: dbfile=[$dbfile] tblname=[$tblname]<br>\n" );
# print_r($data);
if( file_exists( $csvfile )) {
$filedata= array();
print( "BUGS_5210 pdo_insert CSV: FOUND csvfile=[$csvfile]<br>\n" );
$rownum=0;
$fp = fopen( $csvfile, "r" );
while(( $filetext = fgets($fp)) !== false ) {
$filedata[] = $filetext;
print( "BUGS_5211 pdo_insert CSV: rownum=$rownum filedata=[".$filedata[$rownum]. "]<br>\n" );
$rownum++;
}
fclose($fp);
$data = $filedata;
}
else {
print( "pdo_insert CSV_ERR: NOTFOUND csvfile=[$csvfile]<br>\n" );
}
if( file_exists( $psvfile )) {
print( "BUGS_5212 pdo_insert PSV: FOUND psvfile=[$psvfile]<br>\n" );
$rownum=0;
$filedata=array();
$fp = fopen( $psvfile, "r" );
while(( $filetext = fgets($fp)) !== false ) {
$filedata[] = str_replace( "|", ",", $filetext);
# print( "BUGS_5213 pdo_insert PSV: rownum=$rownum filedata=[".$filedata[$rownum]. "]<br>\n" );
bugs("", "BUGS_9790 pdo_insert PSV: rownum=$rownum filedata=[".$filedata[$rownum]. "]<br>\n" );
$rownum++;
}
fclose($fp);
$data = $filedata;
}
# foreach( $data_leds as $data_led ) {
# print( "BUGS_5215 pdo_insert_leds MSG: data_led=[$data_led]<br>\n" );
# }
if( $data == "" ) {
print( "<hr>BUGS_5216 $php_self pdo_insert ERR: DATA_NOTFOUND tblname=[$tblname]<hr>\n" );
return;
}
set_time_limit(0); # 30 seconds
$pdo = newpdo( $dbfile );
$rownum=0;
foreach( $data as $row ) {
$cols = explode( ",", $row );
if( $rownum == 0 ) {
# print( "BUGS_5220 pdo_insert ROW_$rownum: dbfile=[$dbfile] tblname=[$tblname] row=[$row]<br>\n" );
$colnum=0;
$collim=count($cols);
$sql_cr = " CREATE TABLE IF NOT EXISTS $tblname ( ";
# $sql_cr .= "$tblname"."_id INTEGER PRIMARY KEY DESC, ";
# $sql_cr .= "$tblname"."_id INTEGER PRIMARY KEY, ";
$sql_flds = "INSERT OR REPLACE into $tblname ( ";
foreach( $cols as $col ) {
# if( $col != $tblname."_id" ) {
$sql_cr .= "$col varchar, ";
$sql_flds .= "$col, ";
$colnum++;
# }
}
$sql_cr = rtrim($sql_cr,",");
$sql_cr .= ")";
$sql_flds .= ")";
# $sql_tmp = str_replace( "varchar, )", "VARCHAR )", $sql_cr );
$sql_tmp = str_replace( "VARCHAR, )", "varchar )", $sql_cr );
$sql_cr = $sql_tmp;
$sql_tmp = str_replace( ", )", " )", $sql_flds );
$sql_tmp = rtrim($sql_tmp,',');
$sql_flds = $sql_tmp;
# print( "pdo_insert ROW_$rownum: sql_flds=[$sql_flds]<br>\n" );
print( "BUGS_150 pdo_insert ROW_$rownum: sql_cr=$sql_cr<br>\n" );
if( $rownum == 0 ) {
if( $tblname = "cfg" ) {
$sql_cr="create table if not exists $tblname (fld varchar, val varchar, desc varchar );";
print( "BUGS_5221 pdo_insert ROW_$rownum sql_cr=$sql_cr<br>\n" );
}
}
# $sql_cr = rtrim( $sql_cr,",)" );
# $sql_cr .= ")";
global $sqlfile;
# print( "BUGS_190 pdo_insert sqlfile=$sql_bugsfile<br>\n" );
if( "$sqlfile" != "" ) {
# print( "BUGS_5231 pdo_insert sqlfile=$sql_bugsfile<br>\n" );
$f=fopen($sqlfile, "a");
# fwrite($f,"$sql_cr\n");
fwrite($f,"$sql_cr -- BUGS_5232 sql_cr=\n");
fclose($f);
}
$pdo->exec( $sql_cr );
$rownum++;
continue;
}
if( $rownum != 0 ) {
# print( "..... BUGS_5240: pdo_insert ROW_$rownum: dbfile=[$dbfile] tblname=[$tblname] row=[$row]<br>\n" );
$sql_vals = "VALUES ( ";
foreach( $cols as $col ) {
$col_trim=trim($col);
$col = $col_trim;
$sql_vals .= "\"$col\", ";
}
$sql_vals .= ");";
$sql_tmp = str_replace( ", )", ")", $sql_vals );
$sql_vals=$sql_tmp;
if( $sql_vals == "VALUES ( \"\");" ) {
$sql = "END_OF_FIELDS";
}
else {
$sql = $sql_flds . " " . $sql_vals;
}
# print( "pdo_insert ROW_$rownum: sql_vals=[$sql_vals]<br>\n" );
# print( "pdo_insert ROW_$rownum: sql=[$sql]<br>\n" );
}
# print( "$php_self pdo_insert INS: $rownum dbfile=[$dbfile] tblname=[$tblname] sql=[$sql]<br>\n" );
# print( "$php_self pdo_insert BUGS_5241: sql_vals=[$sql_vals]<br>\n" );
# print( "$php_self pdo_insert BUGS_5242: sql=[$sql]<br>\n" );
if( $sql != "END_OF_FIELDS" ) {
print( "pdo_insert_195: sql=[$sql]<br>\n" );
global $sqlfile;
# print( "BUGS_240 pdo_insert sqlfile=$sql_bugsfile<br>\n" );
if ( "$sqlfile" != "" ) {
# print( "BUGS_5251 pdo_insert sqlfile=$sql_bugsfile<br>\n" );
$f=fopen($sqlfile, "a");
# fwrite($f,"$sql -- BUGS_5252 pdo_insert sql=\n");
fwrite($f,"$sql\n");
fclose($f);
}
$pdo->exec( $sql );
}
$rownum++;
}
$pdo = null;
set_time_limit(30); # 30 seconds
#/ return;
#/ $row=1;
#/ $handle = fopen($csvfile, "r");
#/ while( $data = fgetcsv($handle, 1000, ",") !== FALSE ){
#/ $num = count($data);
#/ $row++;
#/ for( $col=0l $col < $num; $col++ ) {
#/ print( "$data[$col] <br />\n" );
#/ }
#/ }
}
function pdo_insert_dbs($options) {
print( "BUGS_5300 pdo_insert_dbs options=$options<br>\n" );
}
function pdo_set_leds_context($dbfile, $val ) {
# bugs("", "BUGS_5400 pdo_set_leds_context dbfile=$dbfile val=$val<br>\n" );
$php_self=$_SERVER['PHP_SELF'];
$tblname="cfg";
$sqlset="update $tblname set val='$val' where fld='leds_context'";
$pdo = newpdo( $dbfile );
printf( "<hr>$php_self pdo_cr DROP: dbfile=[$dbfile] tblfile=[$tblname] [$sqlp]<br>\n" );
global $sql_bugsfile;
if ( "$sql_bugsfile" != "" ) {
$f=fopen($sql_bugsfile, "a");
fwrite($f,"$sqlset\n");
fclose($f);
}
$pdo->exec($sqlset);
$pdo = null;
}
function pdo_get_leds_context($dbfile) {
# bugs("", "BUGS_5500 pdo_get_leds_context dbfile=$dbfile<br>\n" );
$php_self=$_SERVER['PHP_SELF'];
$pdo = newpdo( $dbfile );
$tblname="cfg";
$sqlget="select val from $tblname where fld='leds_context'";
# printf( "<hr>$php_self pdo_cr DROP: dbfile=[$dbfile] tblfile=[$tblname] [$sqldrop]<br>\n" );
$pdo->exec($sqlget);
printf( "$php_self pdo_create CREATE: dbfile=[$dbfile] tblfile=[$tblname] [$sql]<br>\n" );
global $sql_bugsfile;
if ( "$sql_bugsfile" != "" ) {
$f=fopen($sql_bugsfile, "a");
# fwrite($f,"$sql-- BUGS_10420 pdo_get_leds_context dbfile=$dbfile sql=\n");
fwrite($f,"$sql\n");
fclose($f);
}
$pdo->exec($sql);
$pdo = null;
}
function exec_set_leds_context( $dbfile, $leds_context ) {
$sqlcmd = "sqlite3 $dbfile \"update cfg set val='$leds_context' where fld='leds_context'\"";
exec( $sqlcmd, $out, $err );
return( $err );
}
function exec_get_leds_context( $dbfile ) {
$sqlcmd = "sqlite3 $dbfile \"select val from cfg where fld='leds_context'\"";
exec( $sqlcmd, $out, $err );
if( isset( $out[0] ) && $out[0] !== "" ) {
return( $out[0] );
}
return( "" );
}
function pdo_cr_cfg() {
$dbfile = $GLOBALS['dbfile'];
$tblname="cfg";
print( "BUGS_5600 pdo_cr_leds dbfile=$dbfile tblname=$tblname<br>\n" );
$sql="CREATE TABLE IF NOT EXISTS $tblname (\n";
$sql .= " fld varchar,\n";
$sql .= " val varchar,\n";
$sql .= " desc varchar\n";
$sql .= " );\n";
print( "BUGS_195 pdo_cr_leds dbfile=$dbfile tblname=$tblname sql=$sql <br>\n" );
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_leds() {
$dbfile = $GLOBALS['dbfile'];
$tblname="leds";
print( "BUGS_5610 pdo_cr_leds dbfile=$dbfile tblname=$tblname <br>\n" );
$sql="CREATE TABLE IF NOT EXISTS $tblname (\n";
$sql .= " led_id INTEGER PRIMARY KEY,\n";
$sql .= " led_status varchar,\n";
$sql .= " led_code varchar,\n";
$sql .= " led_name varchar,\n";
$sql .= " led_dttm varchar,\n";
$sql .= " led_color varchar,\n";
$sql .= " led_speed varchar,\n";
$sql .= " led_type varchar,\n";
$sql .= " led_date varchar,\n";
$sql .= " led_cmd varchar,\n";
$sql .= " led_cmdout varchar,\n";
$sql .= " led_desc varchar,\n";
$sql .= " led_misc varchar,\n";
$sql .= " led_city varchar,\n";
$sql .= " led_bldg varchar,\n";
$sql .= " led_loc_code varchar,\n";
$sql .= " led_floor varchar,\n";
$sql .= " led_group varchar,\n";
$sql .= " led_orgs varchar,\n";
$sql .= " led_title varchar,\n";
$sql .= " led_published varchar,\n";
$sql .= " led_width varchar,\n";
$sql .= " led_height varchar,\n";
$sql .= " led_comment varchar,\n";
$sql .= " led_filename varchar,\n";
$sql .= " led_user varchar,\n";
$sql .= " led_user_ip varchar,\n";
$sql .= " led_referer varchar,\n";
$sql .= " led_remote_port varchar,\n";
$sql .= " led_viewrole varchar,\n";
$sql .= " led_user_agent varchar,\n";
$sql .= " led_unique_id varchar,\n";
$sql .= " led_err varchar,\n";
$sql .= " led_fix varchar,\n";
$sql .= " led_os varchar\n";
$sql .= " );\n";
print( "BUGS_5619 pdo_cr_leds dbfile=$dbfile tblname=$tblname sql=$sql <br>\n" );
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_ai() {
global $dbname;
$tblname = "ai";
$sql = "";
$sql .= "CREATE TABLE $tblname (\n";
$sql .= " id varchar,\n";
$sql .= " model varchar,\n";
$sql .= " created varchar,\n";
$sql .= " context_length varchar,\n";
$sql .= " pricing_prompt varchar,\n";
$sql .= " pricing_completion varchar,\n";
$sql .= " tool_calling varchar,\n";
$sql .= " structured_outputs varchar,\n";
$sql .= " reasoning varchar,\n";
$sql .= " response_format varchar,\n";
$sql .= " web_search varchar,\n";
$sql .= " vendor varchar,\n";
$sql .= " type varchar,\n";
$sql .= " status varchar,\n";
$sql .= " img varchar,\n";
$sql .= " tn varchar,\n";
$sql .= " zn varchar,\n";
$sql .= " tmp varchar\n";
$sql .= ");\n";
bugs( "","BUGS_10068 dbname=$dbname tblname=$tblname sql=$sql<br>\n" );
pdo_insert( $dbname, $tblname, $sql );
}
function pdo_cr_cab() {
global $dbname;
$tblname="cab";
$sql = "";
$sql .= "DROP TABLE IF EXISTS $tblname;\n";
$sql .= "CREATE TABLE IF NOT EXISTS $tblname ( \n";
$sql .= " cab_id varchar,\n";
$sql .= " cab_dt varchar,\n";
$sql .= " hosts varchar,\n";
$sql .= " switches varchar,\n";
$sql .= " storage varchar\n";
$sql .= " grp1 varchar,\n";
$sql .= " grp2 varchar,\n";
$sql .= " old_rowname varchar,\n";
$sql .= " cab varchar,\n";
$sql .= " upos varchar,\n";
$sql .= " grp3 varchar,\n";
$sql .= " network varchar,\n";
$sql .= " item varchar,\n";
$sql .= " cpumem varchar,\n";
$sql .= " hrctag varchar,\n";
$sql .= " sn varchar,\n";
$sql .= " amps varchar,\n";
$sql .= " rpdu_bank varchar,\n";
$sql .= " rpdu_outlet varchar,\n";
$sql .= " switch varchar,\n";
$sql .= " port varchar,\n";
$sql .= " connection varchar,\n";
$sql .= " pmm varchar,\n";
$sql .= " circuit varchar,\n";
$sql .= " panel varchar,\n";
$sql .= " breaker varchar,\n";
$sql .= " feed varchar,\n";
$sql .= " ip varchar,\n";
$sql .= " os varchar,\n";
$sql .= " uheight varchar,\n";
$sql .= " weight varchar,\n";
$sql .= " cab1 varchar,\n";
$sql .= " cab2 varchar,\n";
$sql .= " tmp varchar \n";
$sql .= " );\n";
pdo_create($dbname, $tblname, $sql );
}
function pdo_cr_doc() {
global $dbfile;
$tblname="doc";
$sql = "";
$sql .= "CREATE TABLE $tblname ( \n";
$sql .= " yyyy varchar,\n";
$sql .= " fy varchar,\n";
$sql .= " p varchar,\n";
$sql .= " q varchar,\n";
$sql .= " wk varchar,\n";
$sql .= " begdt varchar,\n";
$sql .= " begday varchar,\n";
$sql .= " enddt varchar,\n";
$sql .= " endday varchar,\n";
$sql .= " oy varchar,\n";
$sql .= " status varchar,\n";
$sql .= " est varchar,\n";
$sql .= " inv varchar,\n";
$sql .= " senddt varchar,\n";
$sql .= " recvdt varchar,\n";
$sql .= " senddts varchar,\n";
$sql .= " recvdts varchar,\n";
$sql .= " invdt varchar, \n";
$sql .= " invnum varchar, \n";
$sql .= " hrs varchar,\n";
$sql .= " amt varchar,\n";
$sql .= " ytd varchar, \n";
$sql .= " tot varchar,\n";
$sql .= " rem varchar,\n";
$sql .= " cid varchar,\n";
$sql .= " rate varchar,\n";
$sql .= " rate1 varchar,\n";
$sql .= " est1 varchar,\n";
$sql .= " hrs1 varchar,\n";
$sql .= " amt1 varchar,\n";
$sql .= " ytd1 varchar,\n";
$sql .= " tot1 varchar,\n";
$sql .= " rem1 varchar,\n";
$sql .= " invdt1 varchar,\n";
$sql .= " invnum1 varchar,\n";
$sql .= " senddt1 varchar,\n";
$sql .= " recvdt1 varchar,\n";
$sql .= " senddts1 varchar,\n";
$sql .= " recvdts1 varchar,\n";
$sql .= " status1 varchar,\n";
$sql .= " rate2 varchar,\n";
$sql .= " est2 varchar,\n";
$sql .= " hrs2 varchar,\n";
$sql .= " amt2 varchar,\n";
$sql .= " ytd2 varchar,\n";
$sql .= " tot2 varchar,\n";
$sql .= " rem2 varchar,\n";
$sql .= " invdt2 varchar,\n";
$sql .= " invnum2 varchar,\n";
$sql .= " senddt2 varchar,\n";
$sql .= " recvdt2 varchar,\n";
$sql .= " recvdts2 varchar,\n";
$sql .= " senddts2 varchar,\n";
$sql .= " status2 varchar,\n";
$sql .= " kludge varchar,\n";
$sql .= " desc varchar\n";
$sql .= " );\n";
pdo_create($dbfile,$tblname,$sql);
}
function pdo_cr_us() {
$dbfile = $GLOBALS['dbfile'];
$tblname = "us";
$sql="CREATE TABLE IF NOT EXISTS $tblname (";
$sql .= "us_id INTEGER PRIMARY KEY, ";
$sql .= "code varchar, ";
$sql .= "status varchar, ";
$sql .= "x varchar, ";
$sql .= "y varchar, ";
$sql .= "grp varchar, ";
$sql .= "name varchar, ";
$sql .= "phone varchar, ";
$sql .= "email varchar, ";
$sql .= "dttm varchar, ";
$sql .= "comment varchar, ";
$sql .= "unique_id varchar ";
$sql .= ");";
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_users() {
$dbfile = $GLOBALS['dbfile'];
$tblname = "users";
$sql="CREATE TABLE IF NOT EXISTS $tblname (";
$sql .= "user_id INTEGER PRIMARY KEY, ";
$sql .= "user_code varchar, ";
$sql .= "user_status varchar, ";
$sql .= "user_pass varchar, ";
$sql .= "user_role varchar, ";
$sql .= "user_group varchar, ";
$sql .= "user_name varchar, ";
$sql .= "user_phone varchar, ";
$sql .= "user_email varchar, ";
$sql .= "user_dttm varchar, ";
$sql .= "user_comment varchar, ";
$sql .= "user_pagelines varchar, ";
$sql .= "user_unique_id varchar, ";
$sql .= "user_hash varchar ";
$sql .= "); ";
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_leds_ai() {
$dbfile = $GLOBALS['dbfile'];
$tblname="leds_ai";
print( "BUGS_5620 pdo_cr_leds_ai dbfile=$dbfile tblname=$tblname <br>\n" );
$sql="CREATE TABLE IF NOT EXISTS $tblname (\n";
$sql .= " led_id INTEGER PRIMARY KEY,\n";
$sql .= " led_status varchar,\n";
$sql .= " led_code varchar,\n";
$sql .= " led_name varchar,\n";
$sql .= " led_dttm varchar,\n";
$sql .= " led_color varchar,\n";
$sql .= " led_speed varchar,\n";
$sql .= " led_type varchar,\n";
$sql .= " led_date varchar,\n";
$sql .= " led_cmd varchar,\n";
$sql .= " led_cmdout varchar,\n";
$sql .= " led_desc varchar,\n";
$sql .= " led_misc varchar,\n";
$sql .= " led_city varchar,\n";
$sql .= " led_bldg varchar,\n";
$sql .= " led_loc_code varchar,\n";
$sql .= " led_floor varchar,\n";
$sql .= " led_group varchar,\n";
$sql .= " led_orgs varchar,\n";
$sql .= " led_title varchar,\n";
$sql .= " led_published varchar,\n";
$sql .= " led_width varchar,\n";
$sql .= " led_height varchar,\n";
$sql .= " led_comment varchar,\n";
$sql .= " led_filename varchar,\n";
$sql .= " led_user varchar,\n";
$sql .= " led_user_ip varchar,\n";
$sql .= " led_referer varchar,\n";
$sql .= " led_remote_port varchar,\n";
$sql .= " led_viewrole varchar,\n";
$sql .= " led_user_agent varchar,\n";
$sql .= " led_unique_id varchar,\n";
$sql .= " led_err varchar,\n";
$sql .= " led_fix varchar,\n";
$sql .= " led_os varchar,\n";
$sql .= " id varchar,\n";
$sql .= " model varchar,\n";
$sql .= " created varchar,\n";
$sql .= " context_length varchar,\n";
$sql .= " pricing_prompt varchar,\n";
$sql .= " pricing_completion varchar,\n";
$sql .= " tool_calling varchar,\n";
$sql .= " structured_outputs varchar,\n";
$sql .= " reasoning varchar,\n";
$sql .= " response_format varchar,\n";
$sql .= " web_search varchar,\n";
$sql .= " vendor varchar,\n";
$sql .= " type varchar,\n";
$sql .= " status varchar,\n";
$sql .= " img varchar,\n";
$sql .= " tn varchar,\n";
$sql .= " zn varchar,\n";
$sql .= " tmp varchar\n";
$sql .= " );\n";
print( "BUGS_5629 pdo_cr_leds_ai dbfile=$dbfile tblname=$tblname sql=$sql <br>\n" );
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_leds_cab() {
global $dbname;
$tblname="leds_cab";
$sql="";
$sql .= "CREATE TABLE $tblname (\n";
$sql .= " led_id INTEGER PRIMARY KEY,\n";
$sql .= " led_status varchar,\n";
$sql .= " led_code varchar,\n";
$sql .= " led_name varchar,\n";
$sql .= " led_dttm varchar,\n";
$sql .= " led_color varchar,\n";
$sql .= " led_speed varchar,\n";
$sql .= " led_type varchar,\n";
$sql .= " led_date varchar,\n";
$sql .= " led_cmd varchar,\n";
$sql .= " led_cmdout varchar,\n";
$sql .= " led_desc varchar,\n";
$sql .= " led_misc varchar,\n";
$sql .= " led_city varchar,\n";
$sql .= " led_bldg varchar,\n";
$sql .= " led_loc_code varchar,\n";
$sql .= " led_floor varchar,\n";
$sql .= " led_group varchar,\n";
$sql .= " led_orgs varchar,\n";
$sql .= " led_title varchar,\n";
$sql .= " led_published varchar,\n";
$sql .= " led_width varchar,\n";
$sql .= " led_height varchar,\n";
$sql .= " led_comment varchar,\n";
$sql .= " led_filename varchar,\n";
$sql .= " led_user varchar,\n";
$sql .= " led_user_ip varchar,\n";
$sql .= " led_referer varchar,\n";
$sql .= " led_remote_port varchar,\n";
$sql .= " led_viewrole varchar,\n";
$sql .= " led_user_agent varchar,\n";
$sql .= " led_unique_id varchar,\n";
$sql .= " led_err varchar,\n";
$sql .= " led_fix varchar,\n";
$sql .= " led_os varchar\n";
$sql .= " );\n";
pdo_create($dbname, $tblname, $sql );
}
function pdo_cr_leds_doc() {
global $dbname;
$tblname="leds_doc";
$sql .= "CREATE TABLE $tblname ( \n";
$sql .= " led_id INTEGER PRIMARY KEY,\n";
$sql .= " led_status varchar,\n";
$sql .= " led_code varchar,\n";
$sql .= " led_name varchar,\n";
$sql .= " led_dttm varchar,\n";
$sql .= " led_color varchar,\n";
$sql .= " led_speed varchar,\n";
$sql .= " led_type varchar,\n";
$sql .= " led_date varchar,\n";
$sql .= " led_cmd varchar,\n";
$sql .= " led_cmdout varchar,\n";
$sql .= " led_desc varchar,\n";
$sql .= " led_misc varchar,\n";
$sql .= " led_city varchar,\n";
$sql .= " led_bldg varchar,\n";
$sql .= " led_loc_code varchar,\n";
$sql .= " led_floor varchar,\n";
$sql .= " led_group varchar,\n";
$sql .= " led_orgs varchar,\n";
$sql .= " led_title varchar,\n";
$sql .= " led_published varchar,\n";
$sql .= " led_width varchar,\n";
$sql .= " led_height varchar,\n";
$sql .= " led_comment varchar,\n";
$sql .= " led_filename varchar,\n";
$sql .= " led_user varchar,\n";
$sql .= " led_user_ip varchar,\n";
$sql .= " led_referer varchar,\n";
$sql .= " led_remote_port varchar,\n";
$sql .= " led_viewrole varchar,\n";
$sql .= " led_user_agent varchar,\n";
$sql .= " led_unique_id varchar,\n";
$sql .= " led_err varchar,\n";
$sql .= " led_fix varchar,\n";
$sql .= " led_os varchar,\n";
$sql .= " yyyy varchar,\n";
$sql .= " fy varchar,\n";
$sql .= " p varchar,\n";
$sql .= " q varchar,\n";
$sql .= " wk varchar,\n";
$sql .= " begdt varchar,\n";
$sql .= " begday varchar,\n";
$sql .= " enddt varchar,\n";
$sql .= " endday varchar,\n";
$sql .= " oy varchar,\n";
$sql .= " status varchar,\n";
$sql .= " est varchar,\n";
$sql .= " inv varchar,\n";
$sql .= " senddt varchar,\n";
$sql .= " recvdt varchar,\n";
$sql .= " senddts varchar,\n";
$sql .= " recvdts varchar,\n";
$sql .= " invdt varchar, \n";
$sql .= " invnum varchar, \n";
$sql .= " hrs varchar,\n";
$sql .= " amt varchar,\n";
$sql .= " ytd varchar, \n";
$sql .= " tot varchar,\n";
$sql .= " rem varchar,\n";
$sql .= " cid varchar,\n";
$sql .= " rate varchar,\n";
$sql .= " rate1 varchar,\n";
$sql .= " est1 varchar,\n";
$sql .= " hrs1 varchar,\n";
$sql .= " amt1 varchar,\n";
$sql .= " ytd1 varchar,\n";
$sql .= " tot1 varchar,\n";
$sql .= " rem1 varchar,\n";
$sql .= " invdt1 varchar,\n";
$sql .= " invnum1 varchar,\n";
$sql .= " senddt1 varchar,\n";
$sql .= " recvdt1 varchar,\n";
$sql .= " senddts1 varchar,\n";
$sql .= " recvdts1 varchar,\n";
$sql .= " status1 varchar,\n";
$sql .= " rate2 varchar,\n";
$sql .= " est2 varchar,\n";
$sql .= " hrs2 varchar,\n";
$sql .= " amt2 varchar,\n";
$sql .= " ytd2 varchar,\n";
$sql .= " tot2 varchar,\n";
$sql .= " rem2 varchar,\n";
$sql .= " invdt2 varchar,\n";
$sql .= " invnum2 varchar,\n";
$sql .= " senddt2 varchar,\n";
$sql .= " recvdt2 varchar,\n";
$sql .= " recvdts2 varchar,\n";
$sql .= " senddts2 varchar,\n";
$sql .= " status2 varchar,\n";
$sql .= " kludge varchar,\n";
$sql .= " desc varchar\n";
$sql .= " );\n";
pdo_create( $dbname, $tblname, $sql );
}
function pdo_cr_leds_us() {
$dbfile = $GLOBALS['dbfile'];
$tblname="leds_us";
print( "BUGS_5630 pdo_cr_leds_us dbfile=$dbfile tblname=$tblname <br>\n" );
$sql="CREATE TABLE IF NOT EXISTS $tblname ( ";
$sql .= " led_id INTEGER PRIMARY KEY,\n";
$sql .= " led_status varchar,\n";
$sql .= " led_code varchar,\n";
$sql .= " led_name varchar,\n";
$sql .= " led_dttm varchar,\n";
$sql .= " led_color varchar,\n";
$sql .= " led_speed varchar,\n";
$sql .= " led_type varchar,\n";
$sql .= " led_date varchar,\n";
$sql .= " led_cmd varchar,\n";
$sql .= " led_cmdout varchar,\n";
$sql .= " led_desc varchar,\n";
$sql .= " led_misc varchar,\n";
$sql .= " led_city varchar,\n";
$sql .= " led_bldg varchar,\n";
$sql .= " led_loc_code varchar,\n";
$sql .= " led_floor varchar,\n";
$sql .= " led_group varchar,\n";
$sql .= " led_orgs varchar,\n";
$sql .= " led_title varchar,\n";
$sql .= " led_published varchar,\n";
$sql .= " led_width varchar,\n";
$sql .= " led_height varchar,\n";
$sql .= " led_comment varchar,\n";
$sql .= " led_filename varchar,\n";
$sql .= " led_user varchar,\n";
$sql .= " led_user_ip varchar,\n";
$sql .= " led_referer varchar,\n";
$sql .= " led_remote_port varchar,\n";
$sql .= " led_viewrole varchar,\n";
$sql .= " led_user_agent varchar,\n";
$sql .= " led_unique_id varchar,\n";
$sql .= " led_err varchar,\n";
$sql .= " led_fix varchar,\n";
$sql .= " led_os varchar,\n";
$sql .= " id varchar,\n";
$sql .= " gender varchar,\n";
$sql .= " title varchar,\n";
$sql .= " fname varchar,\n";
$sql .= " lname varchar,\n";
$sql .= " str_no varchar,\n";
$sql .= " str_name varchar,\n";
$sql .= " city varchar,\n";
$sql .= " state varchar,\n";
$sql .= " country varchar,\n";
$sql .= " zip varchar,\n";
$sql .= " coord_lat varchar,\n";
$sql .= " coord_long varchar,\n";
$sql .= " tz_offset varchar,\n";
$sql .= " tz_descr varchar,\n";
$sql .= " email varchar,\n";
$sql .= " login_uuid varchar,\n";
$sql .= " login_user varchar,\n";
$sql .= " login_pass varchar,\n";
$sql .= " login_salt varchar,\n";
$sql .= " login_md5 varchar,\n";
$sql .= " login_sha1 varchar,\n";
$sql .= " login_sha256 varchar,\n";
$sql .= " dob_date varchar,\n";
$sql .= " dob_age varchar,\n";
$sql .= " reg_dt varchar,\n";
$sql .= " reg_age varchar,\n";
$sql .= " phn varchar,\n";
$sql .= " cell varchar,\n";
$sql .= " id_name varchar,\n";
$sql .= " id_val varchar,\n";
$sql .= " img varchar,\n";
$sql .= " tn varchar,\n";
$sql .= " zn varchar,\n";
$sql .= " nat varchar,\n";
$sql .= " tmp varchar\n";
$sql .= " );\n";
print( "BUGS_5639 pdo_cr_leds_us dbfile=$dbfile tblname=$tblname sql=$sql <br>\n" );
pdo_create( $dbfile, $tblname, $sql );
}
function dbs_init( $options ) {
# CREATE TABLE sqlite_master ( type TEXT, name TEXT, tbl_name TEXT, rootpage INTEGER, sql TEXT );
# $drvltr="C";
# if( is_dir( "L:/xampp/htdocs" )) { $drvltr="L"; }
# if( is_dir( "N:/xampp/htdocs" )) { $drvltr="N"; }
# if( $drvltr != "" ) { $rootpath = "$drvltr:/xampp/htdocs"; }
# else {
# $rootpath = "/var/www"
# }
# print( "drvltr=$drvltr<br>\n" );
switch( true ) {
case ( is_dir( "C:/xampp/htdocs" )): $rootpath = "C:/xampp/htdocs"; break;
case ( is_dir( "S:/xampp/htdocs" )): $rootpath = "S:/xampp/htdocs"; break;
case ( is_dir( "L:/xampp/htdocs" )): $rootpath = "L:/xampp/htdocs"; break;
case ( is_dir( "N:/xampp/htdocs" )): $rootpath = "N:/xampp/htdocs"; break;
case ( is_dir( "X:/xampp/htdocs" )): $rootpath = "X:/xampp/htdocs"; break;
case ( is_dir( "/var/www/htdocs" )): $rootpath = "/var/www/htdocs"; break;
case ( is_dir( "$document_root" )): $rootpath = "/var/www/html"; break;
}
switch( true ) {
case ( is_dir( "C:/iperms" )): $rootpath_iperms = "C:/iperms"; break;
case ( is_dir( "L:/iperms" )): $rootpath_iperms = "L:/iperms"; break;
case ( is_dir( "N:/iperms" )): $rootpath_iperms = "N:/iperms"; break;
case ( is_dir( "X:/iperms" )): $rootpath_iperms = "X:/iperms"; break;
case ( is_dir( "/var/iperms" )): $rootpath_iperms = "/var/iperms"; break;
case ( is_dir( "/home/ko" )): $rootpath_ko = "/home/ko"; break;
}
$roles = array( 'admin', 'local', 'op', 'mgrs', 'users', 'anon' );
$roles = array( 'admin', 'local', 'users', 'anon' );
$GLOBALS['roles'] = $roles;
$document_root=$_SERVER['DOCUMENT_ROOT'];
$dbfiles['admin']['ko_center']['dbfile']="$document_root/ko_center/ko_center.db3";
$dbfiles['admin']['ko_center']['tables']= array( 'fp', 'leds', 'rpts', 'roles', 'users', 'dbs', 'menus', 'nodes', 'zoom', 'zoomxml', 'pano', 'ko_hw', 'ko_plans', 'hw', 'obj'
);
# $dbfiles['admin']['jtfdcr']['dbfile']="$rootpath/us/jtfdcr/jtfdcr.db3";
$dbfiles['admin']['jtfdcr']['dbfile']="jtfdcr.db3";
$dbfiles['admin']['jtfdcr']['tables']= array( 'files', 'jpg', 'mp4', 'tl', 'av', 'fb', 'kids', 'stalkarounds', 'neighbors', 'tmp' );
# $dbfiles['admin']['kohpx_vgtest']['dbfile']="$document_root/ko_center/db3/kohpx_vgtest.db3";
# $dbfiles['admin']['kohpx_vgtest']['dbfile']="/home/ko/vg/kohpx_vgtest.db3";
# $dbfiles['admin']['kohpx_vgtest']['tables']= array( 'snapdrive', 'vgdisplay', 'sanlun', 'sanlunp', 'ioscand' );
# $dbfiles['admin']['kohpx_vg']['dbfile']="/home/ko/vg/kohpx_vg.db3";
# $dbfiles['admin']['kohpx_vg']['dbfile']="/home/ko/vg/kohpx_vg.db3";
# $dbfiles['admin']['kohpx_vg']['tables']= array( 'snapdrive', 'vgdisplay', 'sanlun', 'sanlunp', 'ioscand', 'sard', 'sard_sas', 'ps', 'pw', 'machinfo', 'hs', 'bp', 'db', 'sard', 'sarh', 'sarl' );
# $dbfiles['admin']['www_kohpx_vg']['dbfile']="/home/ko/vg/www_kohpx_vg.db3";
# $dbfiles['admin']['www_kohpx_vg']['tables']= array( 'snapdrive', 'vgdisplay', 'sanlun', 'sanlunp', 'ioscand', 'sard', 'sard_sas', 'ps', 'pw', 'machinfo', 'hs', 'bp', 'db', 'sard', 'sarh', 'sarl' );
# $dbfiles['admin']['kohpx_vg_20120424']['dbfile']="$document_root/ko_center/db3/kohpx_vg_20120424.db3";
# $dbfiles['admin']['kohpx_vg_20120424']['tables']= array( 'snapdrive', 'vgdisplay', 'sanlun', 'sanlunp', 'ioscand', 'sard', 'sarh', 'sard_aix', 'sard_hpx','sarh2', 'ps', 'pw', 'hosts' );
# $dbfiles['admin']['kohpx_vg_20120209']['dbfile']="$document_root/ko_center/db3/kohpx_vg_20120209.db3";
# $dbfiles['admin']['kohpx_vg_20120209']['tables']= array( 'snapdrive', 'vgdisplay', 'sanlun', 'sanlunp', 'ioscand', 'sard', 'sarh', 'sard_aix', 'sard_hpx','sarh2', 'ps', 'pw', 'hosts' );
# $dbfiles['admin']['koaix_vg']['dbfile']="$document_root/ko_center/db3/koaix_vg.db3";
# $dbfiles['admin']['koaix_vg']['tables']= array( 'hosts', 'sanlun', 'sarhraw', 'sarraw', 'ioscand', 'sard', 'ps', 'pw', 'hosts' );
$dbfiles['admin']['kohpx_hs']['dbfile']="$document_root/ko_center/db3/kohpx_hs.db3";
$dbfiles['admin']['kohpx_hs']['tables']= array( 'hs' );
$dbfiles['admin']['kohpx_us']['dbfile']="$document_root/ko_center/db3/kohpx_us.db3";
$dbfiles['admin']['kohpx_us']['tables']= array( 'us', 'users', 'pw','getprpw', 'rpcinfo', 'kctune', 'netstatan', 'netstata', 'ndd' );
$dbfiles['admin']['koaix_us']['dbfile']="$document_root/ko_center/db3/koaix_us.db3";
# $dbfiles['admin']['koaix_us']['tables']= array( 'us', 'users', 'pw','getprpw', 'rpcinfo', 'kctune', 'netstatan', 'netstata', 'ndd' );
$dbfiles['admin']['koaix_us']['tables']= array( 'us', 'users', 'pw','getprpw' );
$dbfiles['admin']['korhe_us']['dbfile']="$document_root/ko_center/db3/korhe_us.db3";
$dbfiles['admin']['korhe_us']['tables']= array( 'us', 'hs', 'pw','ps' );
$dbfiles['admin']['kohpx_sw']['dbfile']="$document_root/ko_center/db3/kohpx_sw.db3";
$dbfiles['admin']['kohpx_sw']['tables']= array( 'swlist' );
$dbfiles['admin']['kohpx_kb']['dbfile']="$document_root/ko_center/db3/kohpx_kb.db3";
$dbfiles['admin']['kohpx_kb']['tables']= array( 'kb' );
$dbfiles['admin']['koaac_kb']['dbfile']="$document_root/ko_center/db3/koaac_kb.db3";
$dbfiles['admin']['koaac_kb']['tables']= array( 'kb', 'rpts' );
$dbfiles['admin']['ko_center_hosts']['dbfile']="$document_root/ko_center/db3/ko_center_hosts.db3";
$dbfiles['admin']['ko_center_hosts']['tables']= array( 'ko_center_hosts', 'ko_center_servers', 'rsn_servers', 'hrc_servers', 'hrc_hosts', 'datacall', 'tmp', 'rpts' );
$dbfiles['admin']['ko_center_cons']['dbfile']="$document_root/ko_center/db3/ko_center_cons.db3";
$dbfiles['admin']['ko_center_cons']['tables']= array( 'rsncons', 'req', 'rpts' );
$dbfiles['admin']['ko_center_kb']['dbfile']="$document_root/ko_center/db3/ko_center_kb.db3";
$dbfiles['admin']['ko_center_kb']['tables']= array( 'kb', 'rpts' );
$dbfiles['admin']['ko_center_certs']['dbfile']="$document_root/ko_center/db3/ko_center_certs.db3";
$dbfiles['admin']['ko_center_certs']['tables']= array( 'certs', 'rpts', 'hrc_certs', 'rsn_certs' );
$dbfiles['admin']['ko_centerd']['dbfile']="$document_root/ko_center/db3/ko_centerd.db3";
$dbfiles['admin']['ko_centerd']['tables']= array( 'moves', 'rpts', 'teams', 'rfc' );
$dbfiles['admin']['kohpx_bp']['dbfile']="$document_root/ko_center/db3/kohpx_bp.db3";
$dbfiles['admin']['kohpx_bp']['tables']= array( 'bexdir', 'bexdir1', 'bexdir2', 'tapes' );
$dbfiles['admin']['ko_hs']['dbfile']="$document_root/ko_center/db3/ko_hs.db3";
$dbfiles['admin']['ko_hs']['tables']= array( 'hs' );
# $dbfiles['admin']['kohpx_cons']['dbfile']="$document_root/ko_center/db3/kohpx_cons.db3";
# $dbfiles['admin']['kohpx_cons']['tables']= array( 'cons' );
# $dbfiles['admin']['iperms']['dbfile']="$rootpath_iperms/ko/bin/iperms.db";
# $dbfiles['admin']['iperms']['tables']= array( 'periods', 'wl' );
# $dbfiles['admin']['aors_test']['dbfile']="$rootpath_iperms/aors/bin/aors_test.db";
# $dbfiles['admin']['aors_test']['tables']= array( 'wl', 'aors' );
# $dbfiles['admin']['ltrs_test']['dbfile']="$rootpath_iperms/ltrs/bin/ltrs_test.db";
# $dbfiles['admin']['ltrs_test']['tables']= array( 'wl', 'ltrs' );
$dbfiles['local']['fp']['dbfile']="$rootpath/fp/fp.db3";
$dbfiles['local']['fp']['tables']= array( 'fp', 'leds', 'roles', 'users', 'dbs', 'menus', 'nodes', 'zoom', 'zoomxml', 'pano', 'obj' );
$dbfiles['local']['iperms']['dbfile']="$rootpath_iperms/ko/bin/iperms_test.db";
$dbfiles['local']['iperms']['tables']= array( 'periods', 'wl' );
$dbfiles['local']['aors']['dbfile']="$rootpath_iperms/aors/bin/aors_test.db";
$dbfiles['local']['aors']['tables']= array( 'wl', 'aors' );
$dbfiles['local']['ltrs']['dbfile']="$rootpath_iperms/ltrs/bin/ltrs_test.db";
$dbfiles['local']['ltrs']['tables']= array( 'wl', 'ltrs' );
$dbfiles['iperms']['fp']['dbfile']="$rootpath/fp/fp.db3";
$dbfiles['iperms']['fp']['tables']= array( 'fp', 'leds', 'users', 'roles', 'nodes', 'zoom', 'zoomxml', 'pano', 'obj' );
$dbfiles['iperms']['iperms']['dbfile']="$rootpath_iperms/ko/bin/iperms.db";
$dbfiles['iperms']['iperms']['tables']= array( 'periods', 'wl' );
$dbfiles['iperms']['aors']['dbfile']="$rootpath_iperms/aors/bin/aors.db";
$dbfiles['iperms']['aors']['tables']= array( 'wl', 'aors' );
$dbfiles['iperms']['ltrs']['dbfile']="$rootpath_iperms/ltrs/bin/ltrs.db";
$dbfiles['iperms']['ltrs']['tables']= array( 'wl', 'ltrs' );
$dbfiles['tester']['fp']['dbfile']="$rootpath/hrc/fp/fp.db3";
$dbfiles['tester']['fp']['tables']= array( 'fp', 'leds', 'users', 'roles', 'nodes', 'zoom', 'zoomxml', 'pano', 'obj' );
$dbfiles['tester']['iperms']['dbfile']="$rootpath_iperms/ko/bin/iperms_test.db";
$dbfiles['tester']['iperms']['tables']= array( 'periods', 'wl' );
$dbfiles['tester']['aors']['dbfile']="$rootpath_iperms/aors/bin/aors_test.db";
$dbfiles['tester']['aors']['tables']= array( 'wl', 'aors' );
$dbfiles['tester']['ltrs']['dbfile']="$rootpath_iperms/ltrs/bin/ltrs_test.db";
$dbfiles['tester']['ltrs']['tables']= array( 'wl', 'ltrs' );
$dbfiles['op']['fp']['dbfile']="$rootpath/hrc/fp/fp.db3";
$dbfiles['op']['fp']['tables']= array( 'fp', 'leds', 'users', 'roles', 'nodes', 'zoom', 'zoomxml', 'pano', 'obj' );
$dbfiles['op']['iperms']['dbfile']="$rootpath_iperms/ko/bin/iperms_test.db";
$dbfiles['op']['iperms']['tables']= array( 'periods', 'wl' );
$dbfiles['op']['aors']['dbfile']="$rootpath_iperms/aors/bin/aors_test.db";
$dbfiles['op']['aors']['tables']= array( 'wl', 'aors' );
$dbfiles['op']['ltrs']['dbfile']="$rootpath_iperms/ltrs/bin/ltrs_test.db";
$dbfiles['op']['ltrs']['tables']= array( 'wl', 'ltrs' );
$dbfiles['mgrs']['fp']['dbfile']="$rootpath/hrc/fp/fp.db3";
$dbfiles['mgrs']['fp']['tables']= array( 'fp', 'leds', 'users', 'roles', 'nodes', 'zoom', 'zoomxml', 'pano', 'obj' );
$dbfiles['mgrs']['iperms']['dbfile']="$rootpath/iperms/ko/bin/iperms_test.db";
$dbfiles['mgrs']['iperms']['tables']= array( 'periods', 'wl' );
$dbfiles['mgrs']['aors']['dbfile']="$rootpath_iperms/aors/bin/aors_test.db";
$dbfiles['mgrs']['aors']['tables']= array( 'wl', 'aors' );
$dbfiles['mgrs']['ltrs']['dbfile']="$rootpath_iperms/ltrs/bin/ltrs_test.db";
$dbfiles['mgrs']['ltrs']['tables']= array( 'wl', 'ltrs' );
$dbfiles['users']['fp']['dbfile']="$rootpath/hrc/fp/fp.db3";
$dbfiles['users']['fp']['tables']= array( 'zoom', 'zoomxml', 'pano', 'obj' );
$dbfiles['anon']['fp']['dbfile']="$rootpath/hrc/fp/fp.db3";
$dbfiles['anon']['fp']['tables']= array( 'zoom', 'pano', 'obj' );
$GLOBALS['dbfiles'] = $dbfiles;
}
function pdo_cr_dbs() {
$dbfile = $GLOBALS['dbfile'];
$tblname="dbs";
$sql="CREATE TABLE IF NOT EXISTS $tblname ( ";
$sql .= "dbs_id INTEGER PRIMARY KEY DESC, ";
$sql .= "role varchar, ";
$sql .= "dbcode varchar, ";
$sql .= "dbfile varchar, ";
$sql .= "tbl_name varchar, ";
$sql .= "col_name varchar, ";
$sql .= "col_index varchar, ";
$sql .= "col_width varchar, ";
$sql .= "col_sorttype varchar, ";
$sql .= "col_editable varchar, ";
$sql .= "col_editrules varchar, ";
$sql .= "col_hidden varchar, ";
$sql .= "col_display varchar, ";
$sql .= "col_misc varchar, ";
$sql .= "notes varchar";
$sql .= ");";
print( "BUGS_5304 pdo_cr_dbs( $dbfile, $tblname, $sql )<br>\n" );
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_flds() {
global $dbfile;
global $kbfile;
global $progid;
global $dttm;
if( ! file_exists( $kbfile )) { system( "touch $kbfile" ); }
if( file_exists( $kbfile )) {
printf( "$progid $dttm MSG: FOUND kbfile=[$kbfile]<br>\n" );
}
else {
printf( "$progid $dttm ERR: NOTFOUND kbfile=[$kbfile]<br>\n" );
return;
}
$tblname="flds";
$sql="CREATE TABLE IF NOT EXISTS $tblname ( ";
$sql .= "id INTEGER PRIMARY KEY DESC, ";
$sql .= "fldname varchar, ";
$sql .= "fldtype varchar, ";
$sql .= "fldval varchar, ";
$sql .= "flddesc varchar, ";
$sql .= "notes varchar";
$sql .= ");";
print( "BUGS_8950 pdo_cr_flds( $dbfile, $tblname, $sql )<br>\n" );
pdo_create( $kbfile, $tblname, $sql );
}
function pdo_cr_kb() {
global $kbfile;
global $progid;
global $dttm;
if( ! file_exists( $kbfile )) { system( "touch $kbfile" ); }
if( file_exists( $kbfile )) {
printf( "$progid $dttm MSG: FOUND kbfile=[$kbfile]<br>\n" );
}
else {
printf( "$progid $dttm ERR: NOTFOUND kbfile=[$kbfile]<br>\n" );
return;
}
printf( "$progid $dttm BUGS: pdo_cr_kb BEG<hr>\n" );
$tblname="kb";
$sql="CREATE TABLE IF NOT EXISTS $tblname ( ";
$sql .= "id INTEGER PRIMARY KEY DESC, ";
$sql .= "kbid varchar, ";
$sql .= "kb_dttm varchar, ";
$sql .= "kb_user varchar, ";
$sql .= "kb_host varchar, ";
$sql .= "kb_ip varchar, ";
$sql .= "kb_os varchar, ";
$sql .= "kb_org varchar, ";
$sql .= "kb_grp varchar, ";
$sql .= "kb_sys varchar, ";
$sql .= "kb_cat varchar, ";
$sql .= "status varchar, ";
$sql .= "status_reason varchar, ";
$sql .= "impact varchar, ";
$sql .= "urgency varchar, ";
$sql .= "priority varchar, ";
$sql .= "source varchar, ";
$sql .= "request_type varchar, ";
$sql .= "root_cause varchar, ";
$sql .= "publish varchar, ";
$sql .= "errtxt varchar, ";
$sql .= "fixtxt varchar, ";
$sql .= "errtext varchar, ";
$sql .= "fixtext varchar, ";
$sql .= "searchable varchar, ";
$sql .= "attachements varchar, ";
$sql .= "filecount varchar, ";
$sql .= "filelist varchar, ";
$sql .= "locked varchar, ";
$sql .= "view_access varchar, ";
$sql .= "vendor_name varchar, ";
$sql .= "vendor_contact varchar, ";
$sql .= "vendor_ticket_num varchar, ";
$sql .= "vendor_phone varchar, ";
$sql .= "vendor_email varchar, ";
$sql .= "vendor_reported_dttm varchar, ";
$sql .= "vendor_responded_dttm varchar, ";
$sql .= "comment varchar, ";
$sql .= "notes varchar";
$sql .= ");";
#/ printf( "$progid $dttm BUGS: pdo_cr_kb END<hr>\n"" );
print( "BUGS_8940 pdo_cr_kb( $kbfile, $tblname, $sql )<br>\n" );
pdo_create( $kbfile, $tblname, $sql );
}
function pdo_cr_menus() {
print( "BUGS_10615 pdo_cr_menus dbfile=$dbfile tblname=$tblname data=$data<br>\n" );
$dbfile = $GLOBALS['dbfile'];
$tblname="menus";
$sql="CREATE TABLE IF NOT EXISTS $tblname ( ";
$sql .= "menus_id INTEGER PRIMARY KEY DESC, ";
$sql .= "role varchar, ";
$sql .= "url varchar, ";
$sql .= "levels varchar";
$sql .= ");";
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_insert_menus( $options ) {
# print( "BUGS_10755 pdo_insert_menus dbfile=$dbfile tblname=$tblname data=$data<br>\n" );
$role=$_SESSION['role'];
global $dbfiles;
global $roles;
global $dbs;
$GLOBALS['dbs'] = $dbs;
$dbcode="fp";
$dbfile_menu=$dbfiles['admin'][$dbcode]['dbfile'];
$dbtable = "menus";
print( "pdo_cr_menus MSG_1961: role=[$role] dbfile_menu=[$dbfile_menu] dbcode=[$dbcode] dbtable=[$dbtable]<br>\n" );
$menus[anon][] = "?q=login/,login";
$menus[anon][] = "?q=logout/,logout";
$menus[anon][] = "?q=logout/,logout";
$menus[anon][] = "?q=menu/,menu";
$menus[anon][] = "?q=view/,view";
$menus[anon][] = "?q=update/,update";
$menus[admin][] = "?q=fgmenu/admin/db,db";
$menus[admin][] = "?q=fgmenu/admin/unload,!unload";
$menus[admin][] = "?q=fgmenu/admin/load,!load";
$menus[admin][] = "?q=fgmenu/admin/query,!query";
$menus[admin][] = "?q=fgmenu/admin/media,media";
$menus[admin][] = "?q=fgmenu/zoom,!zoom";
$menus[admin][] = "?q=fgmenu/objects,!object";
$menus[admin][] = "?q=fgmenu/pano,!pano";
$menus[users][] = "?q=fgmenu/users/update,update";
$menus[users][] = "?q=fgmenu/users/zoom,zoom";
$menus[users][] = "?q=fgmenu/users/object,object";
$menus[users][] = "?q=fgmenu/users/pano,pano";
$menus[op][] = "?q=fgmenu/op/iperms,iperms";
$menus[op][] = "?q=fgmenu/op/iperms,!periods_p";
$menus[op][] = "?q=fgmenu/op/iperms,!periods_pp";
$menus[op][] = "?q=fgmenu/op/iperms,!job2db";
$menus[op][] = "?q=fgmenu/op/iperms,!!mkwl";
$menus[op][] = "?q=fgmenu/op/iperms,!!viwl";
$menus[op][] = "?q=fgmenu/op/iperms,!!catwl";
$menus[op][] = "?q=fgmenu/op/iperms,!!runwl";
$menus[op][] = "?q=fgmenu/op/aors,!aors";
$menus[op][] = "?q=fgmenu/op/aors/txt2tif,!!txt2tif";
$menus[op][] = "?q=fgmenu/op/aors/txt2tif/mkwl,!!!mkwl";
$menus[op][] = "?q=fgmenu/op/aors/txt2tif/catwl,!!!catwl";
$menus[op][] = "?q=fgmenu/op/aors/txt2tif/runwl,!!!runwl";
$menus[op][] = "?q=fgmenu/op/aors/tif2api,!!tif2api";
$menus[op][] = "?q=fgmenu/op/aors/tif2api/mkwl,!!!mkwl";
$menus[op][] = "?q=fgmenu/op/aors/tif2api/catwl,!!!catwl";
$menus[op][] = "?q=fgmenu/op/aors/tif2api/runwl,!!!runwl";
$menus[op][] = "?q=fgmenu/op/ltrs,!ltrs";
$menus[op][] = "?q=fgmenu/op/ltrs/txt2tif,!!txt2tif";
$menus[op][] = "?q=fgmenu/op/ltrs/txt2tif/mkwl,!!!mkwl";
$menus[op][] = "?q=q=fgmenu/op/ltrs/txt2tif/catwl,!!!catwl";
$menus[op][] = "?q=fgmenu/op/ltrs/txt2tif/runwl,!!!runwl";
$menus[op][] = "?q=fgmenu/op/ltrs/tif2api,!!tif2api";
$menus[op][] = "?q=fgmenu/op/ltrs/tif2api/mkwl,!!!mkwl";
$menus[op][] = "?q=fgmenu/op/ltrs/tif2api/catwl,!!!catwl";
$menus[op][] = "?q=fgmenu/op/ltrs/tif2api/runwl,!!!runwl";
$menus[op][] = "?q=fgmenu/op/db/,db";
$csvout = "menus_id,role,url,levels\n";
$id=1;
foreach( $menus as $role=>$menu_role ) {
print( "role=$role menu_role=$menu_role<br>\n" );
foreach( $menu_role as $menu_option=>$menu_data ) {
print( "menu_option=$menu_option menu_data=$menu_data<br>\n" );
$menu_fields = explode( ",", $menu_data );
$url=$menu_fields[0];
$levels=$menu_fields[1];
$csvout .= "$id,$role,$url,$levels\n";
$id++;
}
}
$dttm=date("Ymd_His");
$csvfil="fp_menus_$dttm.csv";
$csvfil="fp_menus.csv";
$csvfil="menus.csv";
$fp = fopen( $csvfil, "w" );
# $fp = fopen( $csvfil, "a" );
fwrite( $fp, $csvout );
# print( $csvout );
fclose($fp);
set_time_limit(120); # disable
print( $csvout );
pdo_insert( $dbfile_menu, $dbtable, $csvout );
set_time_limit(30); # enable to 30 seconds
}
function pdo_cr_nodes() {
$dbfile = $GLOBALS['dbfile'];
$tblname="nodes";
$sql="CREATE TABLE IF NOT EXISTS $tblname ( ";
$sql .= "node_id INTEGER PRIMARY KEY, ";
$sql .= "node_status varchar, ";
$sql .= "node_code varchar, ";
$sql .= "node_name varchar, ";
$sql .= "node_dttm varchar, ";
$sql .= "node_color varchar, ";
$sql .= "node_speed varchar, ";
$sql .= "node_city varchar, ";
$sql .= "node_bldg varchar, ";
$sql .= "node_loc_code varchar, ";
$sql .= "node_floor varchar, ";
$sql .= "node_group varchar, ";
$sql .= "node_orgs varchar, ";
$sql .= "node_title varchar, ";
$sql .= "node_published varchar, ";
$sql .= "node_width varchar, ";
$sql .= "node_height varchar, ";
$sql .= "node_comment varchar, ";
$sql .= "node_filename varchar, ";
$sql .= "node_user varchar, ";
$sql .= "node_user_ip varchar, ";
$sql .= "node_referer varchar, ";
$sql .= "node_remote_port varchar, ";
$sql .= "node_viewrole varchar, ";
$sql .= "node_user_agent varchar, ";
$sql .= "node_unique_id varchar ";
$sql .= ");";
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_roles() {
$dbfile = $GLOBALS['dbfile'];
$tblname = "roles";
$sql="CREATE TABLE IF NOT EXISTS $tblname (";
$sql .= "role_id INTEGER PRIMARY KEY, ";
$sql .= "role_code varchar, ";
$sql .= "role_status varchar, ";
$sql .= "role_comment varchar ";
$sql .= ");";
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_fp() {
$dbfile = $GLOBALS['dbfile'];
$tblname = "fp";
$sql="CREATE TABLE IF NOT EXISTS $tblname (";
$sql .= "fp_id INTEGER PRIMARY KEY, ";
$sql .= "code varchar, ";
$sql .= "status varchar, ";
$sql .= "label varchar, ";
$sql .= "title varchar, ";
$sql .= "width varchar, ";
$sql .= "height varchar, ";
$sql .= "dttm varchar, ";
$sql .= "comment varchar, ";
$sql .= "unique_id varchar";
$sql .= ");";
# print( "BUGS1720 pdo_cr_fp END: [$dbfile][$tblname]<hr>$sql<hr>\n" );
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_grid() {
$dbfile = $GLOBALS['dbfile'];
$tblname = "grid";
$sql="CREATE TABLE IF NOT EXISTS $tblname (";
$sql .= "grid_id INTEGER PRIMARY KEY, ";
$sql .= "code varchar, ";
$sql .= "status varchar, ";
$sql .= "x varchar, ";
$sql .= "y varchar, ";
$sql .= "org varchar, ";
$sql .= "name varchar, ";
$sql .= "phone varchar, ";
$sql .= "email varchar, ";
$sql .= "dttm varchar, ";
$sql .= "comment varchar, ";
$sql .= "unique_id varchar ";
$sql .= ");";
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_hw() {
$dbfile = $GLOBALS['dbfile'];
$tblname = "hw";
$sql="CREATE TABLE IF NOT EXISTS $tblname (";
$sql .= "hw_id INTEGER PRIMARY KEY, ";
$sql .= "code varchar, ";
$sql .= "status varchar, ";
$sql .= "x varchar, ";
$sql .= "y varchar, ";
$sql .= "grp varchar, ";
$sql .= "name varchar, ";
$sql .= "phone varchar, ";
$sql .= "email varchar, ";
$sql .= "ip varchar, ";
$sql .= "dttm varchar, ";
$sql .= "comment varchar, ";
$sql .= "unique_id varchar ";
$sql .= ");";
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_cr_n11() {
$dbfile = $GLOBALS['dbfile'];
$tblname = "n11";
$sql="CREATE TABLE IF NOT EXISTS $tblname (";
$sql .= "n11_id INTEGER PRIMARY KEY, ";
$sql .= "code varchar, ";
$sql .= "status varchar, ";
$sql .= "x varchar, ";
$sql .= "y varchar, ";
$sql .= "grp varchar, ";
$sql .= "name varchar, ";
$sql .= "phone varchar, ";
$sql .= "email varchar, ";
$sql .= "ip varchar, ";
$sql .= "dttm varchar, ";
$sql .= "comment varchar, ";
$sql .= "unique_id varchar ";
$sql .= ");";
pdo_create( $dbfile, $tblname, $sql );
}
function pdo_insert_nodes() {
print( "BUGS_11550 pdo_insert_nodes dbfile=$dbfile tblname=$tblname data=$data<br>\n" );
$dbfile=$GLOBALS['dbfile'];
$tblname="nodes";
$node_dttm=date("Y-m-d H:i:s");
$led_referer=$_SERVER['HTTP_REFERER'];
$led_user_agent=$_SERVER['HTTP_USER_AGENT'];
$led_remote_port=$_SERVER['REMOTE_PORT'];
$data[]="node_name,node_dttm,node_color,node_speed,node_comment,node_user,node_user_ip,node_referer,node_user_agent,node_remote_port";
$data[]="fp01,$dttm,red,10,comment1,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp02,$dttm,blu,10,comment2,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp03,$dttm,grn,10,comment3,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp04,$dttm,grn,50,comment4,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp05,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp06,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp07,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp08,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp09,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp10,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp11,$dttm,red,10,comment1,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp12,$dttm,blu,10,comment2,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp13,$dttm,grn,10,comment3,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp14,$dttm,grn,50,comment4,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp15,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp16,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp17,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp18,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp19,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp20,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp20,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp21,$dttm,red,10,comment1,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp22,$dttm,blu,10,comment2,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp23,$dttm,grn,10,comment3,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp24,$dttm,grn,50,comment4,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp25,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp26,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp27,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp28,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp29,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp30,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp31,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp32,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp33,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp34,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp35,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
$data[]="fp36,$dttm,grn,90,comment5,admin,127.0.0.1,$node_referer,$node_user_agent,$node_remote_port";
pdo_insert( $dbfile, $tblname, $data);
return;
}
function pdo_insert_roles() {
print( "BUGS_11750 pdo_insert_roles dbfile=$dbfile tblname=$tblname data=$data<br>\n" );
$dbfile=$GLOBALS['dbfile'];
$tblname="roles";
$data[]="role_code, role_status, role_comment";
$data[]="admin,a,administrator";
$data[]="iperms,a,iperms";
$data[]="operator,a,operator";
$data[]="manager,a,manager";
$data[]="qc,a,quality_control";
$data[]="user,a,user";
$data[]="tester,a,tester";
$data[]="guest,a,guest";
$data[]=",a,anonymous";
pdo_insert( $dbfile, $tblname, $data);
return;
}
function pdo_insert_users() {
$dbfile=$GLOBALS['dbfile'];
$tblname="users";
$dt=date("Y-m-d H:i:s");
$data[] = "user_id,user_code,user_status,user_pass,user_role,user_group,user_name,user_phone,user_email,user_dttm,user_comment,user_pagelines,user_unique_id,user_hash";
$user_pass="..admin"; $user_hash=password_hash($user_pass);
$data[] = "1,admin,a,$user_pass,admin,admin_grp,joe_admin,x40001,admin@us.army.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..kassil"; $user_hash=password_hash($user_pass);
$data[] = "2,kassilj,a,$user_pass,admin,admin_grp,joachim kassil,502-613-7421,joachim.kassil.ctr@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..lovittr"; $user_hash=password_hash($user_pass);
$data[] = "3,lovittr,a,$user_pass,admin,admin_grp,robert j lovitt,502-613-7460,robert.j.lovitt.ctr@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..chrsmith"; $user_hash=password_hash($user_pass);
$data[] = "4,chrsmith,a,$user_pass,admin,admin_grp,christoper.e.smith54.civ,502-613-7412,christopher.e.smith54.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..criascos"; $user_hash=password_hash($user_pass);
$data[] = "5,criascos,a,$user_pass,admin,admin_grp,carlos d riascos ,502-613-7407,carlos.d.riascos.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..pippinj"; $user_hash=password_hash($user_pass);
$data[] = "6,pippinj,a,$user_pass,admin,admin_grp,joe_admin,x40001,admin@us.army.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..smithp"; $user_hash=password_hash($user_pass);
$data[] = "7,smithp,a,$user_pass,admin,admin_grp,patrick m smith,502-613-7409,patrick.m.smith192.crt@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..meyers"; $user_hash=password_hash($user_pass);
$data[] = "8,meyers,a,$user_pass,admin,admin_grp,stephen g meyer civ,502-613-7413,stephen.g.meyer4.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..coldironw"; $user_hash=password_hash($user_pass);
$data[] = "9,coldironw,a,$user_pass,admin,admin_grp,jwilliam b coldiron ctr,502-613-7471,william.b.coldiron.ctr@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..deank"; $user_hash=password_hash($user_pass);
$data[] = "10,deank,a,$user_pass,admin,admin_grp,joe_admin,x40001,admin@us.army.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..moran"; $user_hash=password_hash($user_pass);
$data[] = "11,moran,a,$user_pass,admin,admin_grp,martin p horan civ,502-613-7122,martin.p.horan.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..weirs"; $user_hash=password_hash($user_pass);
$data[] = "13,weirs,a,$user_pass,admin,admin_grp,shirley g weir civ,502-613-7422,shirley.g.weir.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..browns"; $user_hash=password_hash($user_pass);
$data[] = "14,browns,a,$user_pass,admin,admin_grp,joe_admin,x40001,admin@us.army.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..klapkoc"; $user_hash=password_hash($user_pass);
$data[] = "15,klapkoc,a,$user_pass,admin,admin_grp,carolyn c klapko civ,502-613-7417,carolyn.c.klapko.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..najarj"; $user_hash=password_hash($user_pass);
$data[] = "16,najarj,a,$user_pass,admin,admin_grp,juanita m najar,502-613-7418,juanita.m.najar.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..bagleyd"; $user_hash=password_hash($user_pass);
$data[] = "17,bagleyd,a,$user_pass,admin,admin_grp,david r bagley civ,502-613-7420,david.r.bagley.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..moranm"; $user_hash=password_hash($user_pass);
$data[] = "18,moranm,a,$user_pass,admin,admin_grp,Martin P Horan,502-613-7122,martin.p.horan.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..bosworthl"; $user_hash=password_hash($user_pass);
$data[] = "19,bosworthl,a,$user_pass,admin,admin_grp,Lawrence e bosworth,502-613-7687,lawrence.e.bosworth.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..imma"; $user_hash=password_hash($user_pass);
$data[] = "20,imma,a,$user_pass,admin,admin_grp,andrew d imm,502-613-7426,andrew.d.imm.civ@mail.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..iperms"; $user_hash=password_hash($user_pass);
$data[] = "21,iperms,a,$user_pass,iperms,iperms_grp,joe_iperms,x40001,joe_iperms@us.army.mil,20100204_1100,iperms_comment,1,,$user_hash";
$user_pass="..op"; $user_hash=password_hash($user_pass);
$data[] = "22,op,a,$user_pass,op,op_grp,joe_op,x40002,joe_op@us.army.mil,20100204_1100,op_comment,2,,$user_hash";
$user_pass="....mgr"; $user_hash=password_hash($user_pass);
$data[] = "23,manager,a,$user_pass,manager,mgr_grp,joe_manager,x40003,joe_manager@us.army.mil,20100204_1100,mgr_comment,3,,$user_hash";
$user_pass="..user"; $user_hash=password_hash($user_pass);
$data[] = "24,user,a,$user_pass,user,user_grp,joe_user,x40004,joe_user@us.army.mil,20100204_1100,user_comment,4,,$user_hash";
$user_pass="..buglers"; $user_hash=password_hash($user_pass);
$data[] = "25,buglers,a,$user_pass,admin,admin_grp,joe_admin,x40001,admin@us.army.mil,20100204_1100,admin_comment,1,,$user_hash";
$user_pass="..hartk"; $user_hash=password_hash($user_pass);
$data[] = "26,hartk,a,$user_pass,admin,admin,kendra l hart ctr,502-613-7442,kendra.l.hart.ctr@mail.mil,,,,,$user_hash";
$user_pass="..wilsong"; $user_hash=password_hash($user_pass);
$data[] = "27,wilsong,a,$user_pass,admin,admin,george b wilson civ,,george.willson@usaac.army.mil,,,,,$user_hash";
$user_pass="..gospodarecsm"; $user_hash=password_hash($user_pass);
$data[] = "28,gospodarecsm,a,$user_pass,admin,admin,gospodarecsm_sandra,502-613-0000,sandra.gospodarecsm@usaac.army.mil,,,,,$user_hash";
$user_pass="..kaisert"; $user_hash=password_hash($user_pass);
$data[] = "29,kaisert,a,$user_pass,admin,admin_grp,kaiser terry,,terry.kaiser@usaac.army.mil,,,,,$user_hash";
$user_pass="....lloyds"; $user_hash=password_hash($user_pass);
$data[] = "30,lloyds,a,$user_pass,admin,admin_grp,stacey lloyd,502-613-7287,stacy.lloyd@usaac.army.mil,,,,,$user_hash";
$user_pass="....mouserk"; $user_hash=password_hash($user_pass);
$data[] = "31,mouserk,a,$user_pass,admin,admin_grp,kay mouser,,mouser.kay.ctr@usaac.army.mil,,,,,$user_hash";
$user_pass="..herringtong"; $user_hash=password_hash($user_pass);
$data[] = "32,herringtong,a,$user_pass,admin,admin_grp,gale herrington,,gale.herrington@usaac.army.mil,,,,,$user_hash";
$user_pass="....francom"; $user_hash=password_hash($user_pass);
$data[] = "33,francom,a,$user_pass,admin,admin_grp,matthew l franco,,matthew.l.franco.ctr@mail.mil,,,,,$user_hash";
$user_pass="....stagen"; $user_hash=password_hash($user_pass);
$data[] = "34,stagen,a,$user_pass,admin,admin_grp,neil g stage,502-613-7456,neil.g.stage.civ@mail.mil,,,,,$user_hash";
$user_pass="..cortese"; $user_hash=password_hash($user_pass);
$data[] = "35,cortese,a,$user_pass,admin,admin_grp,edwin cortes ,502-613-7456,edwin.cortes1.civ@mail.mil,,,,,$user_hash";
$user_pass="....hromadaj"; $user_hash=password_hash($user_pass);
$data[] = "36,hromadaj,a,$user_pass,admin,admin_grp,john e hromada,502-613-7472,john.e.hromada.civ@mail.mil,,,,,$user_hash";
$user_pass="..riveram"; $user_hash=password_hash($user_pass);
$data[] = "37,riveram,a,$user_pass,admin,admin_grp,miguel angel riveracolon,502-613-7328,miguel.a.riveracolon2.ctr@mail.mil,,,,,$user_hash";
$user_pass="..triplettc"; $user_hash=passhash($user_pass);
$data[] = "38,triplettc,a,$user_pass,admin,admin_grp,charles l triplett jr ctr,502-613-7328,charles.l.triplett2.ctr@mail.mil,,,,,$user_hash";
$user_pass="....whitek"; $user_hash=password_hash($user_pass);
$data[] = "39,whitek,a,$user_pass,admin,admin_grp,katherine t white ctr,502-613-7480,katherine.t.white.ctr@mail.mil,,,,,$user_hash";
$user_pass="..mallroyj"; $user_hash=password_hash($user_pass);
$data[] = "40,malloryj,a,$user_pass,admin,admin_grp,jason mallory,,jason.mallory@usaac.army.mil,,,,,$user_hash";
$user_pass="..admin"; $user_hash=password_hash($user_pass);
pdo_insert( $dbfile, $tblname, $data );
return;
}
function pdo_insert_fp() {
$dbfile=$GLOBALS['dbfile'];
$tblname="fp";
$dt=date("Y-m-d H:i:s");
print( "BUGS1910 pdo_insert_fp BEG: [$dbfile][$tblname]<hr>$sql<hr>\n" );
$data[] = "code,status,label,title,width,height,dttm,comment,unique_id";
$data[] = "fp01,a,fp01,title01,5301,3300,20090912,comment,unique_id";
$data[] = "fp02,a,fp02,title02,5301,3300,20090912,comment,unique_id";
$data[] = "fp03,a,fp03,title03,5301,3300,20090912,comment,unique_id";
$data[] = "fp04,a,fp04,title04,5301,3300,20090912,comment,unique_id";
$data[] = "fp05,a,fp05,title05,5301,3300,20090912,comment,unique_id";
$data[] = "fp06,a,fp06,title06,5301,3300,20090912,comment,unique_id";
$data[] = "fp07,a,fp07,title07,5301,3300,20090912,comment,unique_id";
$data[] = "fp08,a,fp08,title08,5301,3300,20090912,comment,unique_id";
$data[] = "fp09,a,fp09,title09,5301,3300,20090912,comment,unique_id";
print_r( $data );
print( "BUGS1920 pdo_insert_fp END: [$dbfile][$tblname]<hr>$sql<hr>\n" );
pdo_insert( $dbfile, $tblname, $data );
}
function pdo_insert_ai() {
global $dbname;
$tblname = "ai";
$data[] = "id,model,created,context_length,pricing_prompt,pricing_completion,tool_calling,structured_outputs,reasoning,response_format,web_search,vendor,type,statusimg,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-5-fast,Claude Opus 5 (Fast),1784912546,1000000,0.00001,0.00005,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-5,Claude Opus 5,1784912544,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "inclusionai/ling-3.0-flash:free,Ling-3.0-flash (free),1784818580,262144,0,0,Yes,No,Yes,No,No,inclusionai,free,img,tn,zn,tmp,";
$data[] = "poolside/laguna-s-2.1,Poolside: Laguna S 2.1,1784652683,1048576,0.0000001,0.0000002,Yes,No,Yes,No,No,poolside,,img,tn,zn,tmp,";
$data[] = "poolside/laguna-s-2.1:free,Poolside: Laguna S 2.1 (free),1784652683,262144,0,0,Yes,No,Yes,No,No,poolside,free,img,tn,zn,tmp,";
$data[] = "google/gemini-3.6-flash,Google: Gemini 3.6 Flash,1784646733,1048576,0.0000015,0.0000075,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "google/gemini-3.5-flash-lite,Google: Gemini 3.5 Flash Lite,1784646726,1048576,0.0000003,0.0000025,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "meituan/longcat-2.0,Meituan: LongCat 2.0,1784554658,1048756,0.0000003,0.0000012,Yes,No,Yes,No,No,meituan,,img,tn,zn,tmp,";
$data[] = "thinkingmachines/inkling,Thinking Machines: Inkling,1784325956,1048576,0.000001,0.00000405,Yes,No,Yes,No,No,thinkingmachines,,img,tn,zn,tmp,";
$data[] = "openrouter/auto-beta,Auto Router (Beta),1784311165,2000000,-1,-1,Yes,Yes,Yes,Yes,Yes,openrouter,,img,tn,zn,tmp,";
$data[] = "moonshotai/kimi-k3,MoonshotAI: Kimi K3,1784215858,1048576,0.000003,0.000015,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,";
$data[] = "meta/muse-spark-1.1,Meta: Muse Spark 1.1,1784215741,1048576,0.00000125,0.00000425,Yes,Yes,Yes,Yes,No,meta,,img,tn,zn,tmp,";
$data[] = "kwaipilot/kat-coder-air-v2.5,Kwaipilot: KAT-Coder-Air V2.5,1783714590,256000,0.00000015,0.0000006,Yes,Yes,No,Yes,No,kwaipilot,,img,tn,zn,tmp,";
$data[] = "kwaipilot/kat-coder-pro-v2.5,Kwaipilot: KAT-Coder-Pro V2.5,1783714589,256000,0.00000074,0.00000296,Yes,Yes,No,Yes,No,kwaipilot,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.6-luna-pro,OpenAI: GPT-5.6 Luna Pro,1783590867,1050000,0.000001,0.000006,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.6-luna,OpenAI: GPT-5.6 Luna,1783590864,1050000,0.000001,0.000006,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.6-terra-pro,OpenAI: GPT-5.6 Terra Pro,1783590861,1050000,0.0000025,0.000015,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.6-terra,OpenAI: GPT-5.6 Terra,1783590857,1050000,0.0000025,0.000015,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.6-sol-pro,OpenAI: GPT-5.6 Sol Pro,1783590854,1050000,0.000005,0.00003,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.6-sol,OpenAI: GPT-5.6 Sol,1783590850,1050000,0.000005,0.00003,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "x-ai/grok-4.5,xAI: Grok 4.5,1783523154,500000,0.000002,0.000006,Yes,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,";
$data[] = "~x-ai/grok-latest,xAI: Grok Latest,1783519360,500000,0.000002,0.000006,Yes,Yes,Yes,Yes,No,~x-ai,,img,tn,zn,tmp,";
$data[] = "aion-labs/aion-3.0-mini,AionLabs: Aion-3.0-Mini,1783443096,131072,0.0000007,0.0000014,Yes,No,Yes,Yes,No,aion-labs,,img,tn,zn,tmp,";
$data[] = "aion-labs/aion-3.0,AionLabs: Aion-3.0,1783443095,131072,0.000003,0.000006,Yes,No,Yes,Yes,No,aion-labs,,img,tn,zn,tmp,";
$data[] = "tencent/hy3,Tencent: Hy3,1783344048,262144,0.000000132,0.000000528,Yes,Yes,Yes,Yes,No,tencent,,img,tn,zn,tmp,";
$data[] = "poolside/laguna-xs-2.1,Poolside: Laguna XS 2.1,1783002429,262144,0.00000006,0.00000012,Yes,No,Yes,No,No,poolside,,img,tn,zn,tmp,";
$data[] = "poolside/laguna-xs-2.1:free,Poolside: Laguna XS 2.1 (free),1783002429,262144,0,0,Yes,No,Yes,No,No,poolside,free,img,tn,zn,tmp,";
$data[] = "anthropic/claude-sonnet-5,Anthropic: Claude Sonnet 5,1782843083,1000000,0.000002,0.00001,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "google/gemini-3.1-flash-lite-image,Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image),1782837225,65536,0.00000025,0.0000015,No,No,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "nex-agi/nex-n2-mini,Nex AGI: Nex-N2-Mini,1782312964,262144,0.000000025,0.0000001,Yes,Yes,Yes,Yes,No,nex-agi,,img,tn,zn,tmp,";
$data[] = "sakana/fugu-ultra,Sakana: Fugu Ultra,1782276303,1000000,0.000005,0.00003,Yes,Yes,Yes,No,Yes,sakana,,img,tn,zn,tmp,";
$data[] = "google/gemini-3.1-flash-image,Google: Nano Banana 2 (Gemini 3.1 Flash Image),1781754065,131072,0.0000005,0.000003,No,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "google/gemini-3-pro-image,Google: Nano Banana Pro (Gemini 3 Pro Image),1781754054,131072,0.000002,0.000012,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "cohere/north-mini-code:free,Cohere: North Mini Code (free),1781723748,256000,0,0,Yes,No,Yes,No,No,cohere,free,img,tn,zn,tmp,";
$data[] = "z-ai/glm-5.2,Z.ai: GLM 5.2,1781631930,1048576,0.000000721,0.000002266,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "openrouter/fusion,OpenRouter: Fusion,1781371647,1000000,-1,-1,No,No,No,No,No,openrouter,,img,tn,zn,tmp,";
$data[] = "moonshotai/kimi-k2.7-code,MoonshotAI: Kimi K2.7 Code,1781266361,262144,0.00000078,0.0000035,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,";
$data[] = "~anthropic/claude-fable-latest,Anthropic: Claude Fable Latest,1781029944,1000000,0.00001,0.00005,Yes,Yes,Yes,Yes,No,~anthropic,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-fable-5,Anthropic: Claude Fable 5,1781007515,1000000,0.00001,0.00005,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "nex-agi/nex-n2-pro,Nex AGI: Nex-N2-Pro,1780937140,262144,0.00000025,0.000001,Yes,No,Yes,No,No,nex-agi,,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-3.5-content-safety:free,NVIDIA: Nemotron 3.5 Content Safety (free),1780581864,128000,0,0,No,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-3-ultra-550b-a55b,NVIDIA: Nemotron 3 Ultra,1780551208,512288,0.0000006,0.0000036,Yes,Yes,Yes,Yes,No,nvidia,,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-3-ultra-550b-a55b:free,NVIDIA: Nemotron 3 Ultra (free),1780551208,1000000,0,0,Yes,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.7-plus,Qwen: Qwen3.7 Plus,1780491783,1000000,0.00000032,0.00000128,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "minimax/minimax-m3,MiniMax: MiniMax M3,1780245374,1048576,0.0000003,0.0000012,Yes,Yes,Yes,Yes,No,minimax,,img,tn,zn,tmp,";
$data[] = "stepfun/step-3.7-flash,StepFun: Step 3.7 Flash,1779985069,262144,0.0000002,0.00000115,Yes,Yes,Yes,Yes,No,stepfun,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-4.8-fast,Anthropic: Claude Opus 4.8 (Fast),1779913703,1000000,0.00001,0.00005,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-4.8,Anthropic: Claude Opus 4.8,1779905091,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.7-max,Qwen: Qwen3.7 Max,1779376861,1000000,0.000001475,0.000004425,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "x-ai/grok-build-0.1,xAI: Grok Build 0.1,1779298123,256000,0.000001,0.000002,Yes,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,";
$data[] = "google/gemini-3.5-flash,Google: Gemini 3.5 Flash,1779193800,1048576,0.0000015,0.000009,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-4.7-fast,Anthropic: Claude Opus 4.7 (Fast),1778613011,1000000,0.00003,0.00015,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "perceptron/perceptron-mk1,Perceptron: Perceptron Mk1,1778597029,32768,0.00000015,0.0000015,No,Yes,Yes,No,No,perceptron,,img,tn,zn,tmp,";
$data[] = "inclusionai/ring-2.6-1t,inclusionAI: Ring-2.6-1T,1778247440,262144,0.000000075,0.000000625,Yes,No,Yes,Yes,No,inclusionai,,img,tn,zn,tmp,";
$data[] = "google/gemini-3.1-flash-lite,Google: Gemini 3.1 Flash Lite,1778168828,1048576,0.00000025,0.0000015,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "openai/gpt-chat-latest,OpenAI: GPT Chat Latest,1778000212,400000,0.000005,0.00003,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "x-ai/grok-4.3,xAI: Grok 4.3,1777591821,1000000,0.00000125,0.0000025,Yes,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,";
$data[] = "ibm-granite/granite-4.1-8b,IBM: Granite 4.1 8B,1777577071,131072,0.00000005,0.0000001,Yes,Yes,No,Yes,No,ibm-granite,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-medium-3-5,Mistral: Mistral Medium 3.5,1777570439,262144,0.0000015,0.0000075,Yes,Yes,Yes,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free,NVIDIA: Nemotron 3 Nano Omni (free),1777393095,256000,0,0,Yes,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,";
$data[] = "poolside/laguna-m.1,Poolside: Laguna M.1,1777388504,262144,0.0000002,0.0000004,Yes,No,Yes,No,No,poolside,,img,tn,zn,tmp,";
$data[] = "poolside/laguna-m.1:free,Poolside: Laguna M.1 (free),1777388504,262144,0,0,Yes,No,Yes,No,No,poolside,free,img,tn,zn,tmp,";
$data[] = "~anthropic/claude-haiku-latest,Anthropic Claude Haiku Latest,1777318492,200000,0.000001,0.000005,Yes,Yes,Yes,Yes,No,~anthropic,,img,tn,zn,tmp,";
$data[] = "~openai/gpt-mini-latest,OpenAI GPT Mini Latest,1777318471,400000,0.00000075,0.0000045,Yes,Yes,Yes,Yes,No,~openai,,img,tn,zn,tmp,";
$data[] = "~google/gemini-pro-latest,Google Gemini Pro Latest,1777318451,1048576,0.000002,0.000012,Yes,Yes,Yes,Yes,No,~google,,img,tn,zn,tmp,";
$data[] = "~moonshotai/kimi-latest,MoonshotAI Kimi Latest,1777318428,1048576,0.000003,0.000015,Yes,Yes,Yes,Yes,No,~moonshotai,,img,tn,zn,tmp,";
$data[] = "~google/gemini-flash-latest,Google Gemini Flash Latest,1777318398,1048576,0.0000015,0.0000075,Yes,Yes,Yes,Yes,No,~google,,img,tn,zn,tmp,";
$data[] = "~anthropic/claude-sonnet-latest,Anthropic Claude Sonnet Latest,1777318368,1000000,0.000002,0.00001,Yes,Yes,Yes,Yes,No,~anthropic,,img,tn,zn,tmp,";
$data[] = "~openai/gpt-latest,OpenAI GPT Latest,1777318334,1050000,0.000005,0.00003,Yes,Yes,Yes,Yes,No,~openai,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.5-plus-20260420,Qwen: Qwen3.5 Plus 2026-04-20,1777261368,1000000,0.0000003,0.0000018,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.6-flash,Qwen: Qwen3.6 Flash,1777261362,1000000,0.0000001875,0.000001125,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.6-35b-a3b,Qwen: Qwen3.6 35B A3B,1777260255,262144,0.00000014,0.000001,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.6-max-preview,Qwen: Qwen3.6 Max Preview,1777260242,262144,0.00000104,0.00000624,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.6-27b,Qwen: Qwen3.6 27B,1777255064,262144,0.000000289,0.0000024,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.5-pro,OpenAI: GPT-5.5 Pro,1777051896,1050000,0.00003,0.00018,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.5,OpenAI: GPT-5.5,1777051893,1050000,0.000005,0.00003,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-v4-pro,DeepSeek: DeepSeek V4 Pro,1777000679,1048576,0.000000435,0.00000087,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-v4-flash,DeepSeek: DeepSeek V4 Flash,1777000666,1048576,0.0000000938,0.0000001876,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "inclusionai/ling-2.6-1t,inclusionAI: Ling-2.6-1T,1776948238,262144,0.000000075,0.000000625,Yes,Yes,No,Yes,No,inclusionai,,img,tn,zn,tmp,";
$data[] = "tencent/hy3-preview,Tencent: Hy3 preview,1776878150,262144,0.000000063,0.00000021,Yes,No,Yes,No,No,tencent,,img,tn,zn,tmp,";
$data[] = "xiaomi/mimo-v2.5-pro,Xiaomi: MiMo-V2.5-Pro,1776874273,1050000,0.000000435,0.00000087,Yes,Yes,Yes,Yes,No,xiaomi,,img,tn,zn,tmp,";
$data[] = "xiaomi/mimo-v2.5,Xiaomi: MiMo-V2.5,1776874269,1050000,0.00000014,0.00000028,Yes,Yes,Yes,Yes,No,xiaomi,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.4-image-2,OpenAI: GPT-5.4 Image 2,1776797528,272000,0.000008,0.000015,No,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "inclusionai/ling-2.6-flash,inclusionAI: Ling-2.6-flash,1776795886,262144,0.00000001,0.00000003,Yes,Yes,No,Yes,No,inclusionai,,img,tn,zn,tmp,";
$data[] = "~anthropic/claude-opus-latest,Anthropic: Claude Opus Latest,1776795361,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,~anthropic,,img,tn,zn,tmp,";
$data[] = "openrouter/pareto-code,Pareto Code Router,1776747900,2000000,-1,-1,No,No,No,No,No,openrouter,,img,tn,zn,tmp,";
$data[] = "moonshotai/kimi-k2.6,MoonshotAI: Kimi K2.6,1776699402,262144,0.000000646,0.00000272,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-4.7,Anthropic: Claude Opus 4.7,1776351100,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-5.1,Z.ai: GLM 5.1,1775578025,204800,0.000000966,0.000003036,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "google/gemma-4-26b-a4b-it,Google: Gemma 4 26B A4B ,1775227989,262144,0.00000012,0.00000035,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "google/gemma-4-26b-a4b-it:free,Google: Gemma 4 26B A4B (free),1775227989,262144,0,0,Yes,Yes,Yes,Yes,No,google,free,img,tn,zn,tmp,";
$data[] = "google/gemma-4-31b-it,Google: Gemma 4 31B,1775148486,262144,0.00000014,0.0000004,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "google/gemma-4-31b-it:free,Google: Gemma 4 31B (free),1775148486,262144,0,0,Yes,No,Yes,Yes,No,google,free,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.6-plus,Qwen: Qwen3.6 Plus,1775133557,1000000,0.000000325,0.00000195,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-5v-turbo,Z.ai: GLM 5V Turbo,1775061458,202752,0.0000012,0.000004,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "arcee-ai/trinity-large-thinking,Arcee AI: Trinity Large Thinking,1775058318,262144,0.00000022,0.00000085,Yes,Yes,Yes,Yes,No,arcee-ai,,img,tn,zn,tmp,";
$data[] = "x-ai/grok-4.20-multi-agent,xAI: Grok 4.20 Multi-Agent,1774979158,2000000,0.00000125,0.0000025,No,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,";
$data[] = "x-ai/grok-4.20,xAI: Grok 4.20,1774979019,2000000,0.00000125,0.0000025,Yes,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,";
$data[] = "google/lyria-3-pro-preview,Google: Lyria 3 Pro Preview,1774907286,1048576,0,0,No,No,No,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "google/lyria-3-clip-preview,Google: Lyria 3 Clip Preview,1774907255,1048576,0,0,No,No,No,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "kwaipilot/kat-coder-pro-v2,Kwaipilot: KAT-Coder-Pro V2,1774649310,262144,0.0000003,0.0000012,Yes,Yes,No,Yes,No,kwaipilot,,img,tn,zn,tmp,";
$data[] = "rekaai/reka-edge,Reka Edge,1774026965,16384,0.0000001,0.0000001,Yes,Yes,No,No,No,rekaai,,img,tn,zn,tmp,";
$data[] = "minimax/minimax-m2.7,MiniMax: MiniMax M2.7,1773836697,204800,0.00000025,0.000001,Yes,Yes,Yes,Yes,No,minimax,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.4-nano,OpenAI: GPT-5.4 Nano,1773748187,400000,0.0000002,0.00000125,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.4-mini,OpenAI: GPT-5.4 Mini,1773748178,400000,0.00000075,0.0000045,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-small-2603,Mistral: Mistral Small 4,1773695685,262144,0.00000015,0.0000006,Yes,Yes,Yes,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-5-turbo,Z.ai: GLM 5 Turbo,1773583573,202752,0.0000012,0.000004,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-3-super-120b-a12b,NVIDIA: Nemotron 3 Super,1773245239,1000000,0.000000085,0.0000004,Yes,Yes,Yes,Yes,No,nvidia,,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-3-super-120b-a12b:free,NVIDIA: Nemotron 3 Super (free),1773245239,262144,0,0,Yes,Yes,Yes,Yes,No,nvidia,free,img,tn,zn,tmp,";
$data[] = "bytedance-seed/seed-2.0-lite,ByteDance Seed: Seed-2.0-Lite,1773157231,262144,0.00000025,0.000002,Yes,Yes,Yes,Yes,No,bytedance-seed,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.5-9b,Qwen: Qwen3.5-9B,1773152396,262144,0.0000001,0.00000015,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.4-pro,OpenAI: GPT-5.4 Pro,1772734366,1050000,0.00003,0.00018,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.4,OpenAI: GPT-5.4,1772734352,1050000,0.0000025,0.000015,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "inception/mercury-2,Inception: Mercury 2,1772636275,128000,0.00000025,0.00000075,Yes,Yes,Yes,Yes,No,inception,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.3-chat,OpenAI: GPT-5.3 Chat,1772564061,128000,0.00000175,0.000014,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "google/gemini-3.1-flash-lite-preview,Google: Gemini 3.1 Flash Lite Preview,1772512673,1048576,0.00000025,0.0000015,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "bytedance-seed/seed-2.0-mini,ByteDance Seed: Seed-2.0-Mini,1772131107,262144,0.0000001,0.0000004,Yes,Yes,Yes,Yes,No,bytedance-seed,,img,tn,zn,tmp,";
$data[] = "google/gemini-3.1-flash-image-preview,Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview),1772119558,131072,0.0000005,0.000003,No,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.5-35b-a3b,Qwen: Qwen3.5-35B-A3B,1772053822,262144,0.00000014,0.000001,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.5-27b,Qwen: Qwen3.5-27B,1772053810,262144,0.000000195,0.00000156,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.5-122b-a10b,Qwen: Qwen3.5-122B-A10B,1772053789,262144,0.00000026,0.00000208,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.5-flash-02-23,Qwen: Qwen3.5-Flash,1772053776,1000000,0.000000065,0.00000026,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "google/gemini-3.1-pro-preview-customtools,Google: Gemini 3.1 Pro Preview Custom Tools,1772045923,1048576,0.000002,0.000012,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.3-codex,OpenAI: GPT-5.3-Codex,1771959164,400000,0.00000175,0.000014,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "aion-labs/aion-2.0,AionLabs: Aion-2.0,1771881306,131072,0.0000008,0.0000016,Yes,No,Yes,Yes,No,aion-labs,,img,tn,zn,tmp,";
$data[] = "google/gemini-3.1-pro-preview,Google: Gemini 3.1 Pro Preview,1771509627,1048576,0.000002,0.000012,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-sonnet-4.6,Anthropic: Claude Sonnet 4.6,1771342990,1000000,0.000003,0.000015,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.5-plus-02-15,Qwen: Qwen3.5 Plus 2026-02-15,1771229416,1000000,0.00000026,0.00000156,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3.5-397b-a17b,Qwen: Qwen3.5 397B A17B,1771223018,262144,0.00000039,0.00000234,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "minimax/minimax-m2.5,MiniMax: MiniMax M2.5,1770908502,204800,0.00000015,0.0000009,Yes,Yes,Yes,Yes,No,minimax,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-5,Z.ai: GLM 5,1770829182,204800,0.00000095,0.00000255,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-max-thinking,Qwen: Qwen3 Max Thinking,1770671901,262144,0.00000078,0.0000039,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-4.6,Anthropic: Claude Opus 4.6,1770219050,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-coder-next,Qwen: Qwen3 Coder Next,1770164101,262144,0.00000011,0.0000008,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "openrouter/free,Free Models Router,1769917427,200000,0,0,Yes,Yes,Yes,Yes,No,openrouter,free,img,tn,zn,tmp,";
$data[] = "stepfun/step-3.5-flash,StepFun: Step 3.5 Flash,1769728337,262144,0.0000001,0.0000003,Yes,No,Yes,No,No,stepfun,,img,tn,zn,tmp,";
$data[] = "moonshotai/kimi-k2.5,MoonshotAI: Kimi K2.5,1769487076,262144,0.00000057,0.00000285,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,";
$data[] = "upstage/solar-pro-3,Upstage: Solar Pro 3,1769481200,128000,0.00000015,0.0000006,Yes,Yes,Yes,Yes,No,upstage,,img,tn,zn,tmp,";
$data[] = "minimax/minimax-m2-her,MiniMax: MiniMax M2-her,1769177239,65536,0.0000003,0.0000012,No,No,No,No,No,minimax,,img,tn,zn,tmp,";
$data[] = "writer/palmyra-x5,Writer: Palmyra X5,1769003823,1040000,0.0000006,0.000006,No,No,No,No,No,writer,,img,tn,zn,tmp,";
$data[] = "openai/gpt-audio,OpenAI: GPT Audio,1768862569,128000,0.0000025,0.00001,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-audio-mini,OpenAI: GPT Audio Mini,1768859419,128000,0.0000006,0.0000024,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-4.7-flash,Z.ai: GLM 4.7 Flash,1768833913,202752,0.00000006,0.0000004,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.2-codex,OpenAI: GPT-5.2-Codex,1768409315,400000,0.00000175,0.000014,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "bytedance-seed/seed-1.6-flash,ByteDance Seed: Seed 1.6 Flash,1766505011,262144,0.000000075,0.0000003,Yes,Yes,Yes,Yes,No,bytedance-seed,,img,tn,zn,tmp,";
$data[] = "bytedance-seed/seed-1.6,ByteDance Seed: Seed 1.6,1766504997,262144,0.00000025,0.000002,Yes,Yes,Yes,Yes,No,bytedance-seed,,img,tn,zn,tmp,";
$data[] = "minimax/minimax-m2.1,MiniMax: MiniMax M2.1,1766454997,204800,0.0000003,0.0000012,Yes,No,Yes,Yes,No,minimax,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-4.7,Z.ai: GLM 4.7,1766378014,204800,0.0000004,0.00000175,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "google/gemini-3-flash-preview,Google: Gemini 3 Flash Preview,1765987078,1048576,0.0000005,0.000003,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-3-nano-30b-a3b,NVIDIA: Nemotron 3 Nano 30B A3B,1765731275,262144,0.00000005,0.0000002,Yes,Yes,Yes,Yes,No,nvidia,,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-3-nano-30b-a3b:free,NVIDIA: Nemotron 3 Nano 30B A3B (free),1765731275,256000,0,0,Yes,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.2-chat,OpenAI: GPT-5.2 Chat,1765389783,128000,0.00000175,0.000014,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.2-pro,OpenAI: GPT-5.2 Pro,1765389780,400000,0.000021,0.000168,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.2,OpenAI: GPT-5.2,1765389775,400000,0.00000175,0.000014,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "mistralai/devstral-2512,Mistral: Devstral 2 2512,1765285419,262144,0.0000004,0.000002,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "relace/relace-search,Relace: Relace Search,1765213560,256000,0.000001,0.000003,Yes,No,No,Yes,No,relace,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-4.6v,Z.ai: GLM 4.6V,1765207462,131072,0.0000003,0.0000009,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "openrouter/bodybuilder,Body Builder (beta),1764903653,128000,-1,-1,No,No,No,No,No,openrouter,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.1-codex-max,OpenAI: GPT-5.1-Codex-Max,1764878934,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "amazon/nova-2-lite-v1,Amazon: Nova 2 Lite,1764696672,1000000,0.0000003,0.0000025,Yes,No,Yes,No,No,amazon,,img,tn,zn,tmp,";
$data[] = "mistralai/ministral-14b-2512,Mistral: Ministral 3 14B 2512,1764681735,262144,0.0000002,0.0000002,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "mistralai/ministral-8b-2512,Mistral: Ministral 3 8B 2512,1764681654,262144,0.00000015,0.00000015,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "mistralai/ministral-3b-2512,Mistral: Ministral 3 3B 2512,1764681560,131072,0.0000001,0.0000001,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-large-2512,Mistral: Mistral Large 3 2512,1764624472,262144,0.0000005,0.0000015,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-v3.2,DeepSeek: DeepSeek V3.2,1764594642,163840,0.000000269,0.0000004,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-4.5,Anthropic: Claude Opus 4.5,1764010580,200000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "allenai/olmo-3-32b-think,AllenAI: Olmo 3 32B Think,1763758276,65536,0.00000015,0.0000005,No,Yes,Yes,Yes,No,allenai,,img,tn,zn,tmp,";
$data[] = "google/gemini-3-pro-image-preview,Google: Nano Banana Pro (Gemini 3 Pro Image Preview),1763653797,65536,0.000002,0.000012,No,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "deepcogito/cogito-v2.1-671b,Deep Cogito: Cogito v2.1 671B,1763071233,128000,0.00000125,0.00000125,No,Yes,Yes,Yes,No,deepcogito,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.1,OpenAI: GPT-5.1,1763060305,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.1-chat,OpenAI: GPT-5.1 Chat,1763060302,128000,0.00000125,0.00001,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.1-codex,OpenAI: GPT-5.1-Codex,1763060298,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5.1-codex-mini,OpenAI: GPT-5.1-Codex-Mini,1763057820,400000,0.00000025,0.000002,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "moonshotai/kimi-k2-thinking,MoonshotAI: Kimi K2 Thinking,1762440622,262144,0.0000006,0.0000025,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,";
$data[] = "amazon/nova-premier-v1,Amazon: Nova Premier 1.0,1761950332,1000000,0.0000025,0.0000125,No,No,No,No,No,amazon,,img,tn,zn,tmp,";
$data[] = "perplexity/sonar-pro-search,Perplexity: Sonar Pro Search,1761854366,200000,0.000003,0.000015,No,Yes,Yes,No,Yes,perplexity,,img,tn,zn,tmp,";
$data[] = "mistralai/voxtral-small-24b-2507,Mistral: Voxtral Small 24B 2507,1761835144,32000,0.0000001,0.0000003,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-oss-safeguard-20b,OpenAI: gpt-oss-safeguard-20b,1761752836,131072,0.000000075,0.0000003,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-nano-12b-v2-vl:free,NVIDIA: Nemotron Nano 12B 2 VL (free),1761675565,128000,0,0,Yes,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,";
$data[] = "minimax/minimax-m2,MiniMax: MiniMax M2,1761252093,204800,0.000000255,0.00000102,Yes,Yes,Yes,Yes,No,minimax,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-vl-32b-instruct,Qwen: Qwen3 VL 32B Instruct,1761231332,131072,0.000000104,0.000000416,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "ibm-granite/granite-4.0-h-micro,IBM: Granite 4.0 Micro,1760927695,131000,0.000000017,0.000000112,No,No,No,Yes,No,ibm-granite,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5-image-mini,OpenAI: GPT-5 Image Mini,1760624583,400000,0.0000025,0.000002,No,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-haiku-4.5,Anthropic: Claude Haiku 4.5,1760547638,200000,0.000001,0.000005,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-vl-8b-thinking,Qwen: Qwen3 VL 8B Thinking,1760463746,131072,0.000000117,0.000001365,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-vl-8b-instruct,Qwen: Qwen3 VL 8B Instruct,1760463308,262144,0.000000117,0.000000455,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5-image,OpenAI: GPT-5 Image,1760447986,400000,0.00001,0.00001,No,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/o3-deep-research,OpenAI: o3 Deep Research,1760129661,200000,0.00001,0.00004,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/o4-mini-deep-research,OpenAI: o4 Mini Deep Research,1760129642,200000,0.000002,0.000008,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "google/gemini-2.5-flash-image,Google: Nano Banana (Gemini 2.5 Flash Image),1759870431,32768,0.0000003,0.0000025,No,Yes,No,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-vl-30b-a3b-thinking,Qwen: Qwen3 VL 30B A3B Thinking,1759794479,262144,0.00000013,0.00000156,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-vl-30b-a3b-instruct,Qwen: Qwen3 VL 30B A3B Instruct,1759794476,262144,0.00000015,0.0000006,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5-pro,OpenAI: GPT-5 Pro,1759776663,400000,0.000015,0.00012,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-4.6,Z.ai: GLM 4.6,1759235576,204800,0.0000005,0.000002,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-sonnet-4.5,Anthropic: Claude Sonnet 4.5,1759161676,1000000,0.000003,0.000015,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-v3.2-exp,DeepSeek: DeepSeek V3.2 Exp,1759150481,163840,0.00000027,0.00000041,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "thedrummer/cydonia-24b-v4.1,TheDrummer: Cydonia 24B V4.1,1758931878,131072,0.0000003,0.0000005,No,Yes,No,Yes,No,thedrummer,,img,tn,zn,tmp,";
$data[] = "relace/relace-apply-3,Relace: Relace Apply 3,1758891572,256000,0.00000085,0.00000125,No,No,No,No,No,relace,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-vl-235b-a22b-thinking,Qwen: Qwen3 VL 235B A22B Thinking,1758668690,131072,0.00000026,0.0000026,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-vl-235b-a22b-instruct,Qwen: Qwen3 VL 235B A22B Instruct,1758668687,262144,0.00000021,0.0000019,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-max,Qwen: Qwen3 Max,1758662808,262144,0.00000078,0.0000039,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-coder-plus,Qwen: Qwen3 Coder Plus,1758662707,1000000,0.00000065,0.00000325,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5-codex,OpenAI: GPT-5 Codex,1758643403,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-v3.1-terminus,DeepSeek: DeepSeek V3.1 Terminus,1758548275,163840,0.00000027,0.000001,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-coder-flash,Qwen: Qwen3 Coder Flash,1758115536,1000000,0.000000195,0.000000975,Yes,No,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-next-80b-a3b-thinking,Qwen: Qwen3 Next 80B A3B Thinking,1757612284,262144,0.0000000975,0.00000078,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-next-80b-a3b-instruct,Qwen: Qwen3 Next 80B A3B Instruct,1757612213,262144,0.0000001,0.0000011,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen-plus-2025-07-28,Qwen: Qwen Plus 0728,1757347599,1000000,0.00000026,0.00000078,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen-plus-2025-07-28:thinking,Qwen: Qwen Plus 0728 (thinking),1757347599,1000000,0.00000026,0.00000078,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "nvidia/nemotron-nano-9b-v2:free,NVIDIA: Nemotron Nano 9B V2 (free),1757106807,128000,0,0,Yes,Yes,Yes,Yes,No,nvidia,free,img,tn,zn,tmp,";
$data[] = "moonshotai/kimi-k2-0905,MoonshotAI: Kimi K2 0905,1757021147,262144,0.0000006,0.0000025,Yes,Yes,No,Yes,No,moonshotai,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-30b-a3b-thinking-2507,Qwen: Qwen3 30B A3B Thinking 2507,1756399192,81920,0.00000013,0.00000156,Yes,No,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "nousresearch/hermes-4-70b,Nous: Hermes 4 70B,1756236182,131072,0.00000013,0.0000004,No,No,Yes,Yes,No,nousresearch,,img,tn,zn,tmp,";
$data[] = "nousresearch/hermes-4-405b,Nous: Hermes 4 405B,1756235463,131072,0.000001,0.000003,No,No,Yes,Yes,No,nousresearch,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-chat-v3.1,DeepSeek: DeepSeek V3.1,1755779628,163840,0.00000025,0.00000095,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-medium-3.1,Mistral: Mistral Medium 3.1,1755095639,131072,0.0000004,0.000002,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-4.5v,Z.ai: GLM 4.5V,1754922288,65536,0.0000006,0.0000018,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "ai21/jamba-large-1.7,AI21: Jamba Large 1.7,1754669020,256000,0.000002,0.000008,Yes,No,No,Yes,No,ai21,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5-chat,OpenAI: GPT-5 Chat,1754587837,128000,0.00000125,0.00001,No,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5,OpenAI: GPT-5,1754587413,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5-mini,OpenAI: GPT-5 Mini,1754587407,400000,0.00000025,0.000002,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-5-nano,OpenAI: GPT-5 Nano,1754587402,400000,0.00000005,0.0000004,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-oss-120b,OpenAI: gpt-oss-120b,1754414231,131072,0.000000037,0.00000017,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-oss-20b,OpenAI: gpt-oss-20b,1754414229,131072,0.00000003,0.00000013,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-oss-20b:free,OpenAI: gpt-oss-20b (free),1754414229,131072,0,0,Yes,Yes,Yes,Yes,No,openai,free,img,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-4.1,Anthropic: Claude Opus 4.1,1754411591,200000,0.000015,0.000075,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,";
$data[] = "mistralai/codestral-2508,Mistral: Codestral 2508,1754079630,256000,0.0000003,0.0000009,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-coder-30b-a3b-instruct,Qwen: Qwen3 Coder 30B A3B Instruct,1753972379,262144,0.00000007,0.00000027,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-30b-a3b-instruct-2507,Qwen: Qwen3 30B A3B Instruct 2507,1753806965,262144,0.0000001,0.0000003,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-4.5,Z.ai: GLM 4.5,1753471347,131072,0.0000006,0.0000022,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,";
$data[] = "z-ai/glm-4.5-air,Z.ai: GLM 4.5 Air,1753471258,131072,0.00000013,0.00000085,Yes,No,Yes,No,No,z-ai,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-235b-a22b-thinking-2507,Qwen: Qwen3 235B A22B Thinking 2507,1753449557,262144,0.0000003,0.000003,Yes,No,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-coder,Qwen: Qwen3 Coder 480B A35B,1753230546,262144,0.0000003,0.000001,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "bytedance/ui-tars-1.5-7b,ByteDance: UI-TARS 7B ,1753205056,128000,0.0000001,0.0000002,No,Yes,No,No,No,bytedance,,img,tn,zn,tmp,";
$data[] = "google/gemini-2.5-flash-lite,Google: Gemini 2.5 Flash Lite,1753200276,1048576,0.0000001,0.0000004,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-235b-a22b-2507,Qwen: Qwen3 235B A22B Instruct 2507,1753119555,262144,0.00000009,0.00000055,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "moonshotai/kimi-k2,MoonshotAI: Kimi K2 0711,1752263252,131072,0.00000057,0.0000023,Yes,No,No,No,No,moonshotai,,img,tn,zn,tmp,";
$data[] = "cognitivecomputations/dolphin-mistral-24b-venice-edition,Venice: Uncensored,1752094966,128000,0.0000002,0.0000009,No,No,No,Yes,No,cognitivecomputations,,img,tn,zn,tmp,";
$data[] = "tencent/hunyuan-a13b-instruct,Tencent: Hunyuan A13B Instruct,1751987664,131072,0.00000014,0.00000057,No,Yes,Yes,Yes,No,tencent,,img,tn,zn,tmp,";
$data[] = "morph/morph-v3-large,Morph: Morph V3 Large,1751910858,262144,0.0000009,0.0000019,No,Yes,No,Yes,No,morph,,img,tn,zn,tmp,";
$data[] = "morph/morph-v3-fast,Morph: Morph V3 Fast,1751910002,81920,0.0000008,0.0000012,No,No,No,No,No,morph,,img,tn,zn,tmp,";
$data[] = "baidu/ernie-4.5-vl-424b-a47b,Baidu: ERNIE 4.5 VL 424B A47B ,1751300903,123000,0.00000042,0.00000125,No,No,Yes,No,No,baidu,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-small-3.2-24b-instruct,Mistral: Mistral Small 3.2 24B,1750443016,256000,0.0000001,0.0000003,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "minimax/minimax-m1,MiniMax: MiniMax M1,1750200414,1000000,0.00000055,0.0000022,Yes,No,Yes,No,No,minimax,,img,tn,zn,tmp,";
$data[] = "google/gemini-2.5-flash,Google: Gemini 2.5 Flash,1750172488,1048576,0.0000003,0.0000025,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "google/gemini-2.5-pro,Google: Gemini 2.5 Pro,1750169544,1048576,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "openai/o3-pro,OpenAI: o3 Pro,1749598352,200000,0.00002,0.00008,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "google/gemini-2.5-pro-preview,Google: Gemini 2.5 Pro Preview 06-05,1749137257,1048576,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-r1-0528,DeepSeek: R1 0528,1748455170,163840,0.0000005,0.00000215,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-opus-4,Anthropic: Claude Opus 4,1747931245,200000,0.000015,0.000075,Yes,No,Yes,No,No,anthropic,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-sonnet-4,Anthropic: Claude Sonnet 4,1747930371,1000000,0.000003,0.000015,Yes,No,Yes,No,No,anthropic,,img,tn,zn,tmp,";
$data[] = "google/gemma-3n-e4b-it,Google: Gemma 3n 4B,1747776824,32768,0.00000006,0.00000012,No,Yes,No,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-medium-3,Mistral: Mistral Medium 3,1746627341,131072,0.0000004,0.000002,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "google/gemini-2.5-pro-preview-05-06,Google: Gemini 2.5 Pro Preview 05-06,1746578513,1048576,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "arcee-ai/virtuoso-large,Arcee AI: Virtuoso Large,1746478885,131072,0.00000075,0.0000012,Yes,No,No,No,No,arcee-ai,,img,tn,zn,tmp,";
$data[] = "meta-llama/llama-guard-4-12b,Meta: Llama Guard 4 12B,1745975193,1048576,0.00000018,0.00000018,No,No,No,Yes,No,meta-llama,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-30b-a3b,Qwen: Qwen3 30B A3B,1745878604,131072,0.00000013,0.00000052,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-8b,Qwen: Qwen3 8B,1745876632,131072,0.000000117,0.000000455,Yes,No,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-14b,Qwen: Qwen3 14B,1745876478,131072,0.0000002275,0.00000091,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-32b,Qwen: Qwen3 32B,1745875945,131072,0.00000008,0.00000028,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen3-235b-a22b,Qwen: Qwen3 235B A22B,1745875757,131072,0.000000455,0.00000182,Yes,No,Yes,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "openai/o4-mini-high,OpenAI: o4 Mini High,1744824212,200000,0.0000011,0.0000044,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/o3,OpenAI: o3,1744823457,200000,0.000002,0.000008,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/o4-mini,OpenAI: o4 Mini,1744820942,200000,0.0000011,0.0000044,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4.1,OpenAI: GPT-4.1,1744651385,1047576,0.000002,0.000008,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4.1-mini,OpenAI: GPT-4.1 Mini,1744651381,1047576,0.0000004,0.0000016,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4.1-nano,OpenAI: GPT-4.1 Nano,1744651369,1047576,0.0000001,0.0000004,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "meta-llama/llama-4-maverick,Meta: Llama 4 Maverick,1743881822,1048576,0.0000002,0.0000008,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,";
$data[] = "meta-llama/llama-4-scout,Meta: Llama 4 Scout,1743881519,1310720,0.0000001,0.0000003,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-chat-v3-0324,DeepSeek: DeepSeek V3 0324,1742824755,163840,0.00000027,0.00000112,Yes,Yes,No,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "openai/o1-pro,OpenAI: o1-pro,1742423211,200000,0.00015,0.0006,No,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-small-3.1-24b-instruct,Mistral: Mistral Small 3.1 24B,1742238937,128000,0.000000351,0.000000555,No,No,No,No,No,mistralai,,img,tn,zn,tmp,";
$data[] = "google/gemma-3-4b-it,Google: Gemma 3 4B,1741905510,131072,0.00000005,0.0000001,No,Yes,No,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "google/gemma-3-12b-it,Google: Gemma 3 12B,1741902625,131072,0.00000005,0.00000015,Yes,Yes,No,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "cohere/command-a,Cohere: Command A,1741894342,256000,0.0000025,0.00001,No,Yes,No,Yes,No,cohere,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4o-mini-search-preview,OpenAI: GPT-4o-mini Search Preview,1741818122,128000,0.00000015,0.0000006,No,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4o-search-preview,OpenAI: GPT-4o Search Preview,1741817949,128000,0.0000025,0.00001,No,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,";
$data[] = "rekaai/reka-flash-3,Reka Flash 3,1741812813,65536,0.0000001,0.0000002,No,Yes,Yes,No,No,rekaai,,img,tn,zn,tmp,";
$data[] = "google/gemma-3-27b-it,Google: Gemma 3 27B,1741756359,262144,0.00000008,0.00000045,Yes,Yes,No,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "thedrummer/skyfall-36b-v2,TheDrummer: Skyfall 36B V2,1741636566,32768,0.00000055,0.0000008,No,Yes,No,Yes,No,thedrummer,,img,tn,zn,tmp,";
$data[] = "perplexity/sonar-reasoning-pro,Perplexity: Sonar Reasoning Pro,1741313308,128000,0.000002,0.000008,No,No,Yes,No,Yes,perplexity,,img,tn,zn,tmp,";
$data[] = "perplexity/sonar-pro,Perplexity: Sonar Pro,1741312423,200000,0.000003,0.000015,No,No,No,No,Yes,perplexity,,img,tn,zn,tmp,";
$data[] = "perplexity/sonar-deep-research,Perplexity: Sonar Deep Research,1741311246,128000,0.000002,0.000008,No,No,Yes,No,Yes,perplexity,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-saba,Mistral: Saba,1739803239,32768,0.0000002,0.0000006,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "openai/o3-mini-high,OpenAI: o3 Mini High,1739372611,200000,0.0000011,0.0000044,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "aion-labs/aion-rp-llama-3.1-8b,AionLabs: Aion-RP 1.0 (8B),1738696718,32768,0.0000008,0.0000016,No,No,No,No,No,aion-labs,,img,tn,zn,tmp,";
$data[] = "qwen/qwen2.5-vl-72b-instruct,Qwen: Qwen2.5 VL 72B Instruct,1738410311,128000,0.0000008,0.000001,No,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "qwen/qwen-plus,Qwen: Qwen-Plus,1738409840,1000000,0.00000026,0.00000078,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "openai/o3-mini,OpenAI: o3 Mini,1738351721,200000,0.0000011,0.0000044,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-small-24b-instruct-2501,Mistral: Mistral Small 3,1738255409,32768,0.00000005,0.00000008,No,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "perplexity/sonar,Perplexity: Sonar,1738013808,127072,0.000001,0.000001,No,No,No,No,Yes,perplexity,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-r1-distill-llama-70b,DeepSeek: R1 Distill Llama 70B,1737663169,8192,0.0000008,0.0000008,No,No,Yes,No,No,deepseek,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-r1,DeepSeek: R1,1737381095,163840,0.0000007,0.0000025,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "minimax/minimax-01,MiniMax: MiniMax-01,1736915462,1000192,0.0000002,0.0000011,No,No,No,No,No,minimax,,img,tn,zn,tmp,";
$data[] = "microsoft/phi-4,Microsoft: Phi 4,1736489872,16384,0.00000007,0.00000014,No,Yes,No,Yes,No,microsoft,,img,tn,zn,tmp,";
$data[] = "deepseek/deepseek-chat,DeepSeek: DeepSeek V3,1735241320,163840,0.0000002002,0.0000008001,Yes,Yes,No,Yes,No,deepseek,,img,tn,zn,tmp,";
$data[] = "sao10k/l3.3-euryale-70b,Sao10K: Llama 3.3 Euryale 70B,1734535928,131072,0.00000065,0.00000075,No,Yes,No,Yes,No,sao10k,,img,tn,zn,tmp,";
$data[] = "openai/o1,OpenAI: o1,1734459999,200000,0.000015,0.00006,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "cohere/command-r7b-12-2024,Cohere: Command R7B (12-2024),1734158152,128000,0.0000000375,0.00000015,No,Yes,No,Yes,No,cohere,,img,tn,zn,tmp,";
$data[] = "meta-llama/llama-3.3-70b-instruct,Meta: Llama 3.3 70B Instruct,1733506137,131072,0.00000013,0.0000004,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,";
$data[] = "amazon/nova-lite-v1,Amazon: Nova Lite 1.0,1733437363,300000,0.00000006,0.00000024,No,No,No,No,No,amazon,,img,tn,zn,tmp,";
$data[] = "amazon/nova-micro-v1,Amazon: Nova Micro 1.0,1733437237,128000,0.000000035,0.00000014,No,No,No,No,No,amazon,,img,tn,zn,tmp,";
$data[] = "amazon/nova-pro-v1,Amazon: Nova Pro 1.0,1733436303,300000,0.0000008,0.0000032,No,No,No,No,No,amazon,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4o-2024-11-20,OpenAI: GPT-4o (2024-11-20),1732127594,128000,0.0000025,0.00001,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-large-2407,Mistral Large 2407,1731978415,131072,0.000002,0.000006,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "qwen/qwen-2.5-coder-32b-instruct,Qwen2.5 Coder 32B Instruct,1731368400,32768,0.00000066,0.000001,No,No,No,No,No,qwen,,img,tn,zn,tmp,";
$data[] = "thedrummer/unslopnemo-12b,TheDrummer: UnslopNemo 12B,1731103448,32768,0.0000004,0.0000004,Yes,Yes,No,Yes,No,thedrummer,,img,tn,zn,tmp,";
$data[] = "anthracite-org/magnum-v4-72b,Magnum v4 72B,1729555200,16384,0.000003,0.000005,No,Yes,No,Yes,No,anthracite-org,,img,tn,zn,tmp,";
$data[] = "qwen/qwen-2.5-7b-instruct,Qwen: Qwen2.5 7B Instruct,1729036800,32768,0.00000004,0.0000001,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "inflection/inflection-3-pi,Inflection: Inflection 3 Pi,1728604800,8000,0.0000025,0.00001,No,No,No,No,No,inflection,,img,tn,zn,tmp,";
$data[] = "inflection/inflection-3-productivity,Inflection: Inflection 3 Productivity,1728604800,8000,0.0000025,0.00001,No,No,No,No,No,inflection,,img,tn,zn,tmp,";
$data[] = "thedrummer/rocinante-12b,TheDrummer: Rocinante 12B,1727654400,65536,0.00000025,0.0000005,No,Yes,No,Yes,No,thedrummer,,img,tn,zn,tmp,";
$data[] = "meta-llama/llama-3.2-1b-instruct,Meta: Llama 3.2 1B Instruct,1727222400,60000,0.000000027,0.000000201,No,No,No,No,No,meta-llama,,img,tn,zn,tmp,";
$data[] = "meta-llama/llama-3.2-3b-instruct,Meta: Llama 3.2 3B Instruct,1727222400,131072,0.00000005,0.00000033,No,Yes,No,No,No,meta-llama,,img,tn,zn,tmp,";
$data[] = "qwen/qwen-2.5-72b-instruct,Qwen2.5 72B Instruct,1726704000,32768,0.00000036,0.0000004,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,";
$data[] = "cohere/command-r-08-2024,Cohere: Command R (08-2024),1724976000,128000,0.00000015,0.0000006,Yes,Yes,No,Yes,No,cohere,,img,tn,zn,tmp,";
$data[] = "cohere/command-r-plus-08-2024,Cohere: Command R+ (08-2024),1724976000,128000,0.0000025,0.00001,Yes,Yes,No,Yes,No,cohere,,img,tn,zn,tmp,";
$data[] = "sao10k/l3.1-euryale-70b,Sao10K: Llama 3.1 Euryale 70B v2.2,1724803200,131072,0.00000085,0.00000085,Yes,Yes,No,Yes,No,sao10k,,img,tn,zn,tmp,";
$data[] = "nousresearch/hermes-3-llama-3.1-70b,Nous: Hermes 3 70B Instruct,1723939200,131072,0.0000007,0.0000007,No,Yes,No,Yes,No,nousresearch,,img,tn,zn,tmp,";
$data[] = "nousresearch/hermes-3-llama-3.1-405b,Nous: Hermes 3 405B Instruct,1723766400,131072,0.000001,0.000001,No,Yes,No,Yes,No,nousresearch,,img,tn,zn,tmp,";
$data[] = "sao10k/l3-lunaris-8b,Sao10K: Llama 3 8B Lunaris,1723507200,8192,0.00000004,0.00000005,No,Yes,No,Yes,No,sao10k,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4o-2024-08-06,OpenAI: GPT-4o (2024-08-06),1722902400,128000,0.0000025,0.00001,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,";
$data[] = "meta-llama/llama-3.1-70b-instruct,Meta: Llama 3.1 70B Instruct,1721692800,131072,0.0000004,0.0000004,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,";
$data[] = "meta-llama/llama-3.1-8b-instruct,Meta: Llama 3.1 8B Instruct,1721692800,131072,0.00000005,0.00000008,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-nemo,Mistral: Mistral Nemo,1721347200,131072,0.000000019,0.00000003,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4o-mini,OpenAI: GPT-4o-mini,1721260800,128000,0.00000015,0.0000006,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4o-mini-2024-07-18,OpenAI: GPT-4o-mini (2024-07-18),1721260800,128000,0.00000015,0.0000006,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,";
$data[] = "google/gemma-2-27b-it,Google: Gemma 2 27B,1720828800,8192,0.00000065,0.00000065,No,Yes,No,Yes,No,google,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4o,OpenAI: GPT-4o,1715558400,128000,0.0000025,0.00001,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4o-2024-05-13,OpenAI: GPT-4o (2024-05-13),1715558400,128000,0.000005,0.000015,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,";
$data[] = "mistralai/mixtral-8x22b-instruct,Mistral: Mixtral 8x22B Instruct,1713312000,65536,0.000002,0.000006,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "microsoft/wizardlm-2-8x22b,WizardLM-2 8x22B,1713225600,65535,0.00000062,0.00000062,No,No,No,Yes,No,microsoft,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4-turbo,OpenAI: GPT-4 Turbo,1712620800,128000,0.00001,0.00003,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "anthropic/claude-3-haiku,Anthropic: Claude 3 Haiku,1710288000,200000,0.00000025,0.00000125,Yes,No,No,No,No,anthropic,,img,tn,zn,tmp,";
$data[] = "mistralai/mistral-large,Mistral Large,1708905600,128000,0.000002,0.000006,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-3.5-turbo-0613,OpenAI: GPT-3.5 Turbo (older v0613),1706140800,4095,0.000001,0.000002,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4-turbo-preview,OpenAI: GPT-4 Turbo Preview,1706140800,128000,0.00001,0.00003,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openrouter/auto,Auto Router,1699401600,2000000,-1,-1,Yes,Yes,Yes,Yes,Yes,openrouter,,img,tn,zn,tmp,";
$data[] = "openai/gpt-3.5-turbo-instruct,OpenAI: GPT-3.5 Turbo Instruct,1695859200,4095,0.0000015,0.000002,No,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-3.5-turbo-16k,OpenAI: GPT-3.5 Turbo 16k,1693180800,16385,0.000003,0.000004,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "mancer/weaver,Mancer: Weaver (alpha),1690934400,8000,0.0000005,0.00000075,No,Yes,No,Yes,No,mancer,,img,tn,zn,tmp,";
$data[] = "undi95/remm-slerp-l2-13b,ReMM SLERP 13B,1689984000,6144,0.00000045,0.00000065,No,Yes,No,Yes,No,undi95,,img,tn,zn,tmp,";
$data[] = "gryphe/mythomax-l2-13b,MythoMax 13B,1688256000,8192,0.00000006,0.00000006,No,Yes,No,Yes,No,gryphe,,img,tn,zn,tmp,";
$data[] = "openai/gpt-3.5-turbo,OpenAI: GPT-3.5 Turbo,1685232000,16385,0.0000005,0.0000015,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
$data[] = "openai/gpt-4,OpenAI: GPT-4,1685232000,8191,0.00003,0.00006,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,";
pdo_insert( $dbname, $tblname, $data );
}
function pdo_insert_cab() {
global $dbname;
$tblname="cab";
$data[] = "cab_id|cab_dt|hosts|switches|storage|grp1|grp2|old_rowname|cab|upos|grp3|network|item|cpumem|hrctag|sn|amps|rpdu_bank|rpdu_outlet|switch|port|connection|pmm|circuit|panel|breaker|feed|ip|os|uheight|weight|cab1|cab2|temp";
$data[] = "cab_id|cab_dt||2|san_sw36_fab2|bb16|3|9||mds_9506||025610|e1711|fox1251gezz|e|||9.1|1|8|1(bc16)|2,_4|5_nic1,_6_nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bb16||||||total||||||18.2||||||pmm_-_9|231|pnl_-_f|ch21-23|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bc16|42r|||netbotz_550||026949|no_tag|qa094818314|e|5.8||0.3|2|23a|1|48|nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||3||bc16|40r|41r||fastiron_gs648p_poe||025578|e0076|cy47080465|e|5.8||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|1||ac0hxsmnm07p|bc16|33|34|prod|sunfire_v240|2x8gb_(1.5ghz)|019230|e1767|fn61520105|e|042706||2.2|2|17|1|21,_22,_36,_38|p1,_p2,_bk,_net_mgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|2||ac0hxznxx01p-gz|bc16|31|32|prod|sunfire_v240|2x8gb_(1.5ghz)|019163|e1768|fn63810120|e|100506||2.2|2|15|1|15,_16,_35,_37|p1,_p2,_bk,_net_mgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|3||ac0hxsmnm05p|bc16|29|30|prod|sunfire_v240|2x2gb_(1.5ghz)|017112|e1769|fn54810193|e|121005||2.2|2|14|1|11,_12,_32,_39|p1,_p2,_bk,_net_mgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|4||ac0hqsmnm08p|bc16|24|28|prod|sunfire_v480|4x16gb_(1.2ghz)|005928|e1770|0410am01bf|e|060304|eol|3.7|1|11|1|10,_30,_40|nic0,_pci2,_rsc|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|5||ac0hxsmnm13p|bc16|19|23||sunfire_v490||022594|e1771|0652am2522|e|||5.1|1|7|1|18,_34,_42|p1,_bk,_sc|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|6||ac0hxznxx04p-gz|bc16|14|18|prod|sunfire_v490|4x16gb_(1.05ghz)|015821|e1772|0509am010c|e|042805||5.1|1|3|1|13,_14,_33,_41|p1,_p3,_bk,_sc|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|7||ar0hqsmnm01p|bc16|7|10|prod|sun_e420r|2x2gb_(450mhz)|004184|e1773|038c303a|e|101600|073105|2.9|1|2|1|17,_44|tp,_a|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|8||no_label|bc16|3|6||ramsan-440||026937|no_tag|j-4620|e|||3.1|2|13||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|9||ac0hxsmxx07p|bc16|1|2|isx_central|apc_ap9475||028108|no_tag|fa1115750043|e|||2.1|1|1|1|24,_47|nic1,_nic2|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bc16||||||total||||||31.6||||||pmm_-_9|181|pnl_-_e|ch13-15|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||4||bd16|40r|41r||fastiron_gs648p_poe||025587|e0077|cy16089887|e|5.8||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|10||ac0hqwsap02p|bd16|34||prod|sunfire_v100|1x1gb_(548mhz)|004630|e1775|cv23501661|e|101502|eol|0.4|2|19b|1|20|net0|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|11||ac0hqgaws20p|bd16|32|33|prod|sunfire_v240|2x2gb_(1.5ghz)|017411|e1776|fn54110042|e|092605||2.2|2|18|1|23,_24,_35,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|12||ac0hxswap06p|bd16|30|31|goarmy|sunfire_v245|2x8gb_(1.5ghz)|022536|e1777|0710fl500c|e|||2.6|2|17|1|19,_36,_44|net0,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|13||ac0hxznxx02p-gz|bd16|28|29|prod|sunfire_t2000|1x32_(1.2ghz)|022524|e1778|0710nnn0k1|e|032907||1.9|2|15|1|21,_22,_33,_41|net0,_net1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|14||ar0hqgaws01p|bd16|24|27|prod|sun_e220r|2x2gb_(450mhz)|003813|e1779|112c0861|e|051601|eol|2.9|1|9|1|18,_34|tp,_pci2|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|15||ac0hxznxx02p-gz-new|bd16|22|23||sunfire_t5220||026959|e1780|bdl1017541|e|||3.1|1|10|1|16,_17,_32,_40|net0,_net1,_net3,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|16|||bd16|13|20||hp_dl980_g7||no_bt|c6344|use2172jh4|e|||11.2|1|4,5,6,_7,9|1|5,_6,_30,_31,_42|p1,_p2,_bk1,_bk2,_ilom|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|17||ac0hxsdrs03p|bd16|9|11||ramsan-400||023995|e1721|g-7459|e|||3.1|1|3||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|18||ac0hxsdrs02p|bd16|6|8||ramsan-400||023996|e1722|g-7460|e|||3.1|1|1||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bd16||||||total||||||36.3||||||pmm_-_9|185|pnl_-_e|ch17-19|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||5||be16|40r|41r||fastiron_gs648p_poe||025582|e0078|cy42083381|e|5.8||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|19||ac0hxdber01p|be16|33|34|prod|sunfire_v245|2x8gb_(1.5ghz)|022520|e1786|0709fl3059|e|030807||2.6|2|17|1|21,_35,_44|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|20||ac0hxznxx08p-gz|be16|31|32|prod|sunfire_t2000|1x32gb_(1.2ghz)|022531|e1785|0711nnn0ty|e|040207||1.9|2|15|1|17,_18,_36,_39|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|21||ac0hxznxx06p-gz|be16|29|30|prod|sunfire_t2000|1x32gb_(1.2ghz)|022561|e1784|0710nnn0de|e|033007||1.9|2|14|1|19,_20,_32,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|22||ac0hxznxx10p-gz|be16|27|28|prod|sunfire_t5220|1x64gb_(1.4ghz)|023913|e1783|bel081093a|e|033108||3.1|2|13|1|15,_16,_34,_40|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|23||ac0hxvmxx03p-vm|be16|23|26|prod|sunfire_x4600|8x192bg_(2.6ghz)|026421|e1782|0929am0023|e|||7.5|1|11,12|1|9,_10,_11,_12,_13,_14,_25,_26,_38|p1,_p2,_p3,_p4,_p5,_p6,_bk0,_bk1,_ilom|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|24||ac0hxapdm01p|be16|17|22|prod|sunfire_v490|4x16gb_(1.5ghz)|019237|e1781|0612am0505|e|050106||5.1|1|1|1|23,_24,_28,_41|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||be16||||||total||||||27.9||||||pmm_-_9|189|pnl_-_e|ch21-23|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||6||bf16|41r|42r||fastiron_gs648p_poe_sw2||025533|e0080|cy45087514|e|5.8||5.8|2|23||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||7||bf16|40r|41r||fastiron_gs648p_poe_sw1||025590|e0079|cy39081012|e|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|25||ac0hxwsap04p|bf16|33|34|prod|sunfire_v245|2x8gb_(1.5ghz)|022513|e1787|0709fl304q|e|030807||2.6|2|17|1|17,_18,_36,_41|p2,_p4,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|26||ac0hxznxx17p-gz|bf16|31|32|prod|sunfire_x4200_m2|2x8gb_(2.7ghz)|022549|e1788|0705bd059f|e|040307||2.1|2|19|1|19,_20,_35,_42|p2,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|27||knoxft2l7-1|bf16|30||prod|sun_x4150|intel_xeon|024463|e1699|0819qar323|e|||1.1|2|15|1|10,_44|net0,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|28||ac0hxznxx13p-gz|bf16|28|29|prod|sunfire_t5220|1x64gb_(1.4ghz)|023937|e1790|bel0811a91|e|033108||3.1|2|18|1|21,_22,_34,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|29||sunsp00144f3a28c9|bf16|24|27||sunfire_x4600||022586|e1789|0652am1812|e|||7.5|1|11,12|1|25,_26,_33,_40|p1(nic0),_p2(nic1),_bk(nic2),_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|30||ac0hxnafs03p|bf16|13|15||netapp_v3170||028661|e1723|70003876|e|||4.7|1|2a|1|7,_11,_12,_13,_14,_23,_24|p1,_2ga,_4ga,_2rsn,_3rsn,_4dsl,_3dsl|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|31||ac0hxnafs04p|bf16|10|12||netapp_v3170||028660|e1724|70003877|e|||4.7|1|2b|1,_2|6,_sw2-23,_sw2-24|p1,_2ft,_3ft|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bf16||||||total||||||37.4||||||pmm_-_9|193|pnl_-_e|ch25-27|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||8|ac0hqtsxx03t|bg16|42r|||perle_iolan_scs||021289|no_tag|84131207f10007|e|5.8|||2|23||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||9||bg16|40r|41r||fastiron_gs648p_poe||025581|e0081|cy45087475|e|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|32||ac0hxzner01p-gz|bg16|33|34||sunfire_t5220||023918|e1791|bel08109d8|e|||3.1|2|18|1|9,_10,_29,_38|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|33||ac0hxznxx10s-gz|bg16|31|32|rtn|sunfire_t5220|1x32gb_(1.2ghz)|023939|e1792|bel07513wx|e|040207||3.1|1|6|1|15,_16,_27,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|34||ac0hxdbdw02p-gz|bg16|27|30||sunfire_t5440||026931|e1825|bdl101536e|e|||3.5|2|14,15|1|23,_24,_35,_39|net2,_net3,_net0,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|35||ac0hxwsdw01s|bg16|25|26|rtn|sunfire_v245|2x8gb_(1.5ghz)|022539|e1795|0710fl3016|e|041207||2.6|1|11|1|17,_18,_33,_45|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|36||ac0hxznxx15p-gz|bg16|23|24|prod|sunfire_t5220|1x64gb_(1.4ghz)|023924|e1793|bel08088mb|e|||3.1|1|9|1|21,_22,_36,_44|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|37||ac0hxwsdw01p|bg16|19|22|prod|sunfire_v440|4x8gb_(1.6ghz)|019158|e1726|0637bd0ff5|e|100506||4.4|1|7|1|19,_20,_34,_40|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|38||ac0hxdbxx01s|bg16|14|18|rtn|sunfire_v480|4x8gb_(1.2ghz)|005910|e1796|0409am020c|e|062804|eol|3.7|1|2|1|11,_12,_32,_41|nic0,_pci3,_nic1,_rsc|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|39||ac0hxdber01s|bg16|9|13|rtn|sunfire_v490|4x16gb_(1.5ghz)|019233|e1797|0616am0884|e|050106||5.1|1|1|1|13,_14,_28,_42|p1,_pci2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bg16||||||total||||||34.4||||||pmm_-_9|197|pnl_-_e|ch29-31|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||10||bh16|42r|||uplogix||026923|e0083|a202200220|e|5.8||2.0|2|23||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||11||bh16|40r|41r||fastiron_gs648p_poe||025544|e0082|cy45087930|e|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|40||ac0hxsmxx03p|bh16|33|34|prod|sunfire_v240|2x2gb_(1.5ghz)|017114|e1798|fn54750002|e|121005||2.2|2|15|1|23,_24,_35,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|41||ac0hxsmxx05p|bh16|31|32|prod|sunfire_v240|2x8gb_(1.5ghz)|019160|e1799|fn63810218|e|100506||2.2|2|14|1|21,_22,_36,_44|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|42||ac0hxtqdb01p|bh16|27|30|prod|sunfire_v440|4x8gb_(1.6ghz)|019243|e1725|0613bd105f|e|050106||4.4|2|13|1|20,_33,_41|nic0,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|43||ac0hxznsm01p-gz|bh16|25|26|prod|sunfire_t2000||022533|e1801|0707nnn1af|e|||1.9|1|10|1|18,19,34,42|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|44||ac0hxsmxx04p|bh16|23|24|from_1307|sunfire_v240||017113|e1800|fn54810188|e|||2.2|1|9|1|16,_17,_31,_32,_45|p1,_p2,_bk1,_bk2,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|45|||bh16|21|22||sun_sparc_t4-1||no_bt|c6451|1207bdyf79|e|||3.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|46|||bh16|19|20||sunfire_t5220||023928|e0326|bel08119k8|e|||3.1|1|4|1|14,_15,_37,40|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bh16||||||||||||27.6||||||pmm_-_9|201|pnl_-_e|ch33-35|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||12||bi16|40r|41r||fastiron_gs648p_poe||025573|e0084|cy46080270|e|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|47||ac0hxgaml02t|bi16|33||test|sunfire_v210|2x2gb_(1.0ghz)|005940|e1802|fm40940358|e|062804|eol|2.0|2|17a|1|23,_24,_35,_44|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|48||ac0hxznxx03t-gz|bi16|31|32|test|sunfire_t2000|1x32gb_(1.2ghz)|022559|e1803|0710nnn066|e|033007||1.9|2|15|1|21,_22,_25,_43|p0,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|49||ac0hxvmxx03t-vm|bi16|27|30|test|sunfire_x4600|1x32gb_(2.6ghz)|019151|e1804|0638am0574|e|100506||7.5|2|13,14|1|8,_9,_10,_12,_32,_33,_37|p5,_p4,_p2,_p1,_bk2,_bk1,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|50||ac0hxznxx05t-gz|bi16|25|26|test|sunfire_t2000|1x32gb_(1.2ghz)|022563|e1805|0710nnn07e|e|||1.9|1|12|1|19,_20,_31,_42|p3,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|51||ac0hxznxx13t-gz|bi16|23|24|test|sunfire_t5220|1x64gb_(1.4ghz)|023941|e1806|bel07513iz|e|033108||3.1|1|11|1|17,_18,_30,_41|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|52||ac0hxgaml03t-gz|bi16|21|22|test|sunfire_v245|2x8gb_(1.5ghz)|022511|e1807|0709fl307y|e|030807||2.6|1|10|1|15,_16,_34,_45|p1,_net1,_net3,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|53||knoxft1l7-1|bi16|20||test|sun_x4150|intel_xeon|024465|e1698|0819qar313|e|||1.1|1|7|1|11,_13,_14,_39|net3,_net1,_net0,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|54||ac0hxznxx27t-gz|bi16|16|19||sunfire_v440||019263|e1808|0619bd0151|e|||4.4|1|6|1|6,_27,_38|pci2,_p1,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bi16||||||total||||||30.3||||||pmm_-_9|205|pnl_-_e|ch37-39|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||13||bj16|40r|41r||fastiron_gs648p_poe||025575|e0085|cy45087500|e|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|55||ac0hxapdm01t|bj16|29|30|test|sunfire_v240|2x8gb_(1.5ghz)|017020|e1809|fn51170206|e|042805||2.2|2|15|1|19,_20,_25,_45|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|56||ac0hxznxx09t-gz|bj16|27|28|test|sunfire_t2000|1x16_(1ghz)|022565|e1810|0703nnn0cw|e|041307||1.9|2|14|1|17,_18,_32,_41|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|57||ac0hxznxx03t-gz|bj16|25|26|test|sunfire_t5220|1x64gb_(1.4ghz)|023940|e1812|bel0811a7g|e|033108||3.1|2|13|1|21,_22,_27,_46|p2,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|58||ac0hxznxx16t-gz|bj16|23|24|test|sunfire_t5220|1x64gb_(1.4ghz)|023932|e1813|bel0811a5m|e|033108||3.1|1|12|1|15,_16,_28,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|59||ac0hxznxx08t-gz|bj16|21|22||sunfire_t2000||022545|e1811|0710nnn15w|e|||1.9|1|11|1|23,_24,_29,_39|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|59|||bj16|13|20||hp_dl980_g7||no_bt|c6478|use2257bp9|e|||11.2|1|5,6,7,9|1|5,_6,_30,_31,_42|p1,_p2,_bk1,_bk2,_ilom|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bj16||||||total||||||29.2||||||pmm_-_9|211|pnl_-_f|ch01-03|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||14||bk16|40r|41r||fastiron_gs648p_poe||025584|e0086|cy42083156|e|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|60||ac0hxwsdw01t|bk16|31|32|test|sunfire_v240|2x8gb_(1.3ghz)|017022|e1814|fn51140307|e|042805||2.2|2|18|1|17,_18,_33,_44|p2,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|61||ac0hxznxx01t-gz|bk16|27|28|test|sunfire_t2000|1x32_(1.2ghz)|018608|e1815|0638nnn00y|e|102306||1.9|2|17|1|23,_24,_38,_45|p0,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|62||ac0hxznxx21t-gz|bk16|25|26|test|sunfire_t5220|1x64gb_(1.4ghz)|023923|e1816|bel0811a1d|e|||3.1|2|15|1|19,_20,_34,_41|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|63||ac0hxwsdw03t|bk16|23|24|test|sunfire_v245|2x8gb_(1.5ghz)|022512|e1817|0709fl304g|e|030807||2.6|2|14|1|15,_16,_32,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|64||ac0hxwsdw05t|bk16|21|22|test|sunfire_v245|2x8gb_(1.5ghz)|022502|e1818|0709fl3082|e|030807||2.6|2|13|1|13,_14,_31,_42|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bk16||||||total||||||18.2||||||pmm_-_9|215|pnl_-_f|ch05-07|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||15||bl16|40r|41r||fastiron_gs648p_poe||025577|e0087|cy45087635|e|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|65||ac0hxdber01t|bl16|30|34|test|sunfire_v490|4x16gb_(1.5ghz)|019238|e1819|0613am1227|e|050106||5.1|2|15|1|19,_20,_26,_41|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|66||ac0hxdber03t|bl16|28|29|test|sunfire_v245|2x8gb_(1.5ghz)|022519|e1820|0709fl3080|e|030807||2.6|2|14|1|23,_24,_25,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|67||ac0hxznxx18t-gz|bl16|26|27|test_-_poc|sunfire_v245|2x8gb_(1.5ghz)|022522|e1821|0709fl3053|e|030807||2.6|2|13|1|21,_22,_27,_44|bk,_p2,_p1,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|68|||bl16|24|25|test_-_poc|sunfire_t5220|2x8gb_(1.5ghz)|023921|e0325|bel08119nn|e|030807||3.1|1|4|1|17,_18_,30,_42|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bl16||||||total||||||19.2||||||pmm_-_9|219|pnl_-_f|ch09-11|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bm16|42|||netbotz_550||026940|no_tag|qa0948181030|e|||0.3|2|23a|1|48|nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||16||bm16|40r|41r||fastiron_gs648p_poe||025586|e0088|cy39080921|e|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|69||ac0hxznxx24t-gz|bm16|27|30|test|hp_dl585_g5|4x132gb|026213|e1822|use921n7zh|e|||3.2|2|15|1|17,_22,_35,_39|p1,_p2,_bk,_ilom|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|70||ac0hxvmxx01t-vm|bm16|25|26|poc|sunfire_x4200_m2|1x8gb_(2.8ghz)|022554|e1823|0651bd0477|e|040307||2.1|2|14|1|18,_20,_33,_34,_45|p1,_p4,_p6,_bk,_p3|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|71||ac0hxznxx22t-gz|bm16|23|24|test|sunfire_x4200_m2|2x8gb_(2.7ghz)|022557|e1824|0706bd06bb|e|||2.1|2|13|1|23,_24,_36,_43|p1,_p2,_bk,_ilom|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|72||ac0hxznxx26t-gz|bm16|19|22||sunfire_t5440||026932|e1794|bdl101536d|e|||3.5|1|6,_7|1|14,_15,_16,_27,_44|nic1,_nic2,_nic0,_nic3,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bm16|16|17||sun_sparc_t4-1||no_bt|c6449|1207bdtf74|e|||3.8||||4,5,6,35,42|p1,p2,p3,bk,netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bm16||||||total||||||20.8||||||pmm_-_9|223|pnl_-_f|ch13-15|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||17||bn16|40r|41r||fastiron_gs648p_poe||025579|e0089|cy52072569|e|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|73||keystoneweb1|bn16|31|35|keystone|sunfire_v490||027023|c0761|0537am00a3|e|||5.1|2|14|1|23|nic0|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|74||keystn9|bn16|28|29|keystone|sunfire_t2000||027025|c0759|0747ak221c|e|||1.9|1|10|1|22|nic0|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|75||keystn8|bn16|26|27|keystone|sunfire_t2000||027026|c0760|0747ak2219|e|||1.9|1|11|1|21|nic0|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bn16|15||keystone|sun_tape_drive||no_bt|no_tag||e||||1|2a||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|76||keystone1|bn16|3|14|keystone|sunfire_e2900||027024|c0762|0545nnb05n|e|||16.0|1_&_2|12,_13|1|20|nic0|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bn16||||||total||||||30.7||||||pmm_-_9|227|pnl_-_f|ch17-19|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||18|san_sw37_fab1|bb21|23|29||mds_9506||025609|e1712|fox1250gkqy|f|||9.1|2|24|1(bc21)|1,_3|5_nic1,_6_nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||19|san_sw38_fab2|bb21|3|9||mds_9506||025605|e1713|fox1250gkmr|f|||9.1|1|8|1(bc21)|2,_4|5_nic1,_6_nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bb21||||||total||||||18.2||||||pmm_-_9|236|pnl_-_f|ch26-28|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||20||bc21|40r|41r||fastiron_gs648p_poe||025561|e0101|cy41082395|f|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|77||ac0hxsmnm02p|bc21|33|34|prod|sunfire_v240|2x8gb_(1.5ghz)|018250|e1870|fn54420059|f|112905||2.2|2|17|1|21,_22,_32,_44|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|78||ac0hxsmnm04p|bc21|29|32|prod|sunfire_v440|4x8gb_(1.6ghz)|017117|e1728|0545ad813c|f|121005||4.4|2|15|1|19,_20,_31,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|79||ac0hxznxx05p-gz|bc21|24|28|prod|sunfire_v490|4x16gb_(1.35ghz)|015820|e1871|0516am0050|f|102705||5.1|1|4|1|15,_16,_34,_41|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|80||ac0hxsmnm14p|bc21|19|23||sunfire_v490||022595|e1872|0703am0290|f|||5.1|1|5|1|14,_28,_42|p2,_p1,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|81||ac0hxsmnm11p|bc21|14|18|prod|sunfire_v490|4x16gb_(1.05ghz)|015825|e1873|0509am0110|f|042905||5.1|1|6|1|17,_18,_33,_39|nic0,_pci3,_nic1,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|82||ac0hxsmsd01p|bc21|12|13|prod|sunfire_v245|2x8gb_(1.5mhz)|022507|e1874|0709fl304m|f|030807||2.6|1|1|1|24,_36,_45|nic1,_nic0,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|83||no_label|bc21|9|11||ramsan-440||026936|e1875|j-4618|f|||3.1|2|13||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|84||no_label|bc21|6|8||ramsan-440||028760|e1876|j-6923|f|||3.1|2|14||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bc21||||||total||||||36.5||||||pmm_-_9|235|pnl_-_f|ch25-27|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||21||bd21|40r|41r||fastiron_gs648p_poe||025535|e0100|cy45087432|f|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|85||ac0hxgaml01p|bd21|33|34|prod|sunfire_v240|2x2gb_(1.5ghz)|017108|e1867|fn54820058|f|121005||2.2|2|19|1|21,_22,_36,_39|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|86||ac0hqgaws21p|bd21|31|32|prod|sunfire_v240|2x2gb_(1.5ghz)|017410|e1868|fn54110043|f|121905||2.2|2|18|1|23,_24,_35,_43|p2,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|87||ar0hqswap06p|bd21|29|30|prod|sunfire_v240|2x2gb_(1ghz)|007909|e1869|fn40820006|f|032004|080104|2.2|2|17|1|18,_44|nic0,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|88||ac0hxznxx03p-gz|bd21|27|28|prod|sunfire_t2000|1x32_(1.2ghz)|022528|e1866|0710nnn0kf|f|032907||1.9|1|15|1|19,_20,_33,_45|p0,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|89||knoxgal7-1|bd21|26||prod|sun_x4150|intel_xeon|024464|e1702|0819qar312|f|||1.1|1|14|1|17,_41|nic0,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|90||ac0hxznxx03p-new|bd21|24|25||sunfire_t5220||026958|e1865|bdl1017540|f|||3.1|1|13|1|15,_16,_34,_46|nic1,_nic0,_nic3,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|91|||bd21|13|20||hp_dl980_g7||no_bt|c6343|use2172jft|f|||11.2||7,9,10,_11|1|5,_6,_31,_32,_42|p1,_p2,_bk1,_bk2,_ilom|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|92||ac0hxsdrs01p|bd21|6|8||ramsan-400||023997|e1720|g-7458|f|||3.1|1|1||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bd21||||||total||||||32.8||||||pmm_-_9|132|pnl_-_d|ch06-08|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||22||be21|40r|41r||fastiron_gs648p_poe||026910|no_tag|avw0637e03c|f|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|93||ac0hxznxx09p-gz|be21|33|34|prod|sunfire_t2000|1x32gb_(1.2ghz)|022530|e1861|0710nnn1d8|f|032907||1.9|2|19|1|19,_20,_25,_46|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|94||ac0hxznxx07p-gz|be21|31|32|prod|sunfire_t2000|1x32gb_(1.2ghz)|022560|e1862|0710nnn021|f|033007||1.9|1|12|1|21,_22,_35,_45|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|95||ac0hxznxx11p-gz|be21|29|30|prod|sunfire_t5220|1x64gb_(1.4ghz)|023915|e1863|bel08109ed|f|033108||3.1|2|13|1|17,_18,_26,_37|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|96||ac0hxvmxx04p-vm|be21|25|28|prod|sunfire_x4600|8x192bg_(2.6ghz)|026422|e1864|0929am0021|f|||7.5|1|1,11|1|7,_8,_11,_12,_13,_14,_30,_31,_38|p1,_p2,_p3,_p4,_p5,_p6,_bk1,_bk0,_ilom|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|97||ac0hxdbxx01p|be21|20|24|prod|sunfire_v490|4x32gb_(1.5ghz)|019291|e1858|0626am1934|f|091106||5.1|1|5|1|16,_27,_41|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|98||ac0hxznxx18p-gz|be21|18|19|prod|sunfire_t2000|1x16_(1ghz)|022555|e1860|0710nnn176|f|||1.9|1|6|1|9,_10,_29,_40|p2,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|99||ac0hxdbap02p-gz|be21|16|17|prod|sunfire_t5220|8x64g_(1.415ghz)|023919|e1859|bel08109cn|f|070109||3.1|1|7|1|24,_36,_39|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|100||ac0hxdbap01p|be21|4|14|prod|sunfire_v1280|12x40gb_(1.2ghz)|015104|e1857|0504nna014|f|041105||15.9|1|2,3|1|15,_28,_43|p1,_bk,_ssc1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||be21||||||total||||||46.2||||||pmm_-_9|136|pnl_-_d|ch10-12|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||23||bf21|40r|41r||fastiron_gs648p_poe||025529|e0308|cy45087983|f|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|101||ac0hxwsap03p|bf21|33|34|prod|sunfire_v245|2x8gb_(1.5ghz)|022510|e1853|0709fl3081|f|030807||2.6|2|18|1|21,_22,_23,_24,_34,_43|p3,_p4,_p2,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|102||ac0hxznxx14p-gz|bf21|31|32|prod|sunfire_t5220|1x64gb_(1.4ghz)|023938|e1854|bel07513nv|f|033108||3.1|1|2|1|17,_18,_36,_44|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|103||ac0hxznxx12p-gz|bf21|29|30|prod|sunfire_t5220|1x64gb_(1.4ghz)|023936|e1855|bel0811a3g|f|033108||3.1|1|1|1|19,_20,_33,_41|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|104||knoxprodl7-1|bf21|28||prod|sun_x4150|intel_xeon|024462|e1701|0819qar30c|f|||1.1|1|12|1|16,_42|nic0,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|105||sunsp00144f3a1bdd|bf21|24|27||sunfire_x4600||022538|e1856|0652am1815|f|||7.5|2|13,_14|1|14,_15,_32,_40|p1(nic0),_p2(nic1),_bk(nic2),_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|105|||bf21|24|27||hp_dl580_g7||no_bt|c6470|use231axaj||||5.0|1|6,7||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bf21||||||total||||||28.2||||||pmm_-_9|140|pnl_-_d|ch14-26|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||24||bg21|40r|41r||fastiron_gs648p_poe||025541|e0098|cy47080493|f|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|106||ac0hxznxx11s-gz|bg21|21|22|rtn|sunfire_t5220|1x32gb_(1.2ghz)|023920|e1852|bel08119k1|f|040207||3.1|1|7|1|17,_18,_33,_45|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|107||ac0hxwsdw02p|bg21|16|20|prod|sunfire_v440|4x8gb_(1.6ghz)|019159|e1851|0636bd0fd1|f|100506||4.4|1|6|1|19,_20,_34,_46|p2,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|108||ac0hxznxx16p-gz|bg21|14|15|prod|sunfire_t5220|1x64gb_(1.4ghz)|023925|e1850|bel0811a5o|f|||3.1|1|4|1|21,_22,_36,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|109||ac0hxdbdw01p|bg21|3|13|prod|sunfire_v1280|12x32gb_(1.2ghz)|015105|e1849|0511nna036|f|041105||15.9|1|1,2|1|23,_24,_35|nic0,_pci4,_nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bg21||||||total||||||32.3||||||pmm_-_9|144|pnl_-_d|ch18-20|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||25||bh21|42r|||uplogix||026921|e0097|a202200182|f|010500||2.0|2|23||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||26||bh21|40r|41r||fastiron_gs648p_poe||025566|e0096|cy41082430|f|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|110||ac0hxsmxx02p|bh21|33|34|prod|sunfire_v240|2x8gb_(1.5ghz)|019167|e1845|fn63810191|f|100506||2.2|2|18|1|23,_24,_36,_45|p1,_p2,_b1,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|111||ac0hxsmxx06p|bh21|31|32|prod|sunfire_v240|2x8gb_(1.5ghz)|019162|e1846|fn63810116|f|100506||2.2|2|17|1|19,_20,_35,_46|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|112||ac0hxznxx01s-gz|bh21|29|30|prod|sunfire_v245||022537|e1847|0710fl500m|f|||2.6|1|12|1|17,_18,_34,_44|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|113||ac0hxznxx02s-gz|bh21|27|28|prod|sunfire_v245||022505|e1848|0709fl304f|f|||2.6|1|11|1|21,_22,_33,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|114|||bh21|25|26||sun_sparc_t4-1||no_bt|c6447|1207bdyf7a|f|||3.8|||1|||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|115|||bh21|23|24||sunfire_t5220||026960|e0314|bdl1017543|f|||3.1|1|5|1|15,_16,_32,_41|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bh21||||||total||||||24.3||||||pmm_-_9|148|pnl_-_d|ch22-24|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||27||bi21|40r|41r||fastiron_gs648p_poe||025558|e0095|cy46080401|f|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|116||ac0hxvmxx02p-vm|bi21|29|32|test|sunfire_x4600|1x32gb_(2.6ghz)|022738|e1844|0643am0885|f|071007||7.5|2|17,18|1|7,_8,_9,_10,_34,_35,_37|p5,_p4,_p2,_p1,_bk2,_bk1,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|117||ac0hxznxx11t-gz|bi21|27|28|test_-_poc|sunfire_t5220|1x64gb_(1.4ghz)|023947|e1841|bel08109em|f|033108||3.1|1|12|1|23,_24,_36,_39|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|118||ac0hxznxx04t-gz|bi21|25|26|test|sunfire_t2000|1x32gb_(1.2ghz)|022558|e1843|0710nnn067|f|033007||1.9|1|11|1|21,_22,_25,_42|p0,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|119||ac0hxznxx06t-gz|bi21|23|24|test|sunfire_t2000|1x32gb_(1.2ghz)|022591|e1842|0652nnn06g|f|032107||1.9|1|10|1|19,_20,_27,_44|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|120||ac0hxznxx14t-gz|bi21|21|22|test|sunfire_t5220|1x64gb_(1.4ghz)|023942|e1840|bel0811a38|f|033108||3.1|1|9|1|17,_18,_26,_45|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|121||ac0hxgaml01t|bi21|17|20|test|sunfire_280r|2x1gb_(1ghz)|005030|e1839|236c5ee8|f|111502|eol|3.9|1|6|1|16,_29,_41|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|122||knoxprodl7-2|bi21|16||test|sun_x4150|intel_xeon|024466|e1700|0812qar02a|f|||1.1|1|5|1|12,_13,_14,_15,_43|nic1,_nic3,_nic0,_nic2,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bi21||||||total||||||28.3||||||pmm_-_9|152|pnl_-_d|ch26-28|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||28||bj21|40r|41r||fastiron_gs648p_poe||025538|e0094|cy39080881|f|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|123||ac0hxznxx02t-gz|bj21|27|28|test|sunfire_t2000||018607|e1835|0638nnn0be|f|||1.9|2|14|1|15,16,32,42|p2,_p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|124||ac0hxznxx10t-gz|bj21|25|26|test|sunfire_t2000|1x32gb_(1.2ghz)|022564|e1836|0703nnn049|f|041307||1.9|2|13|1|19,_20,_34,_40,_45|p1,_p2,_bk,_netmgt,_ts|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|125||ac0hxznxx12t-gz|bj21|23|24|test_-_poc|sunfire_t5220|1x64gb_(1.4ghz)|023948|e1837|bel08109dh|f|033108||3.1|1|12|1|23,_24,_36,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|126||ac0hxznxx17t-gz|bj21|21|22|test|sunfire_t5220|1x64gb_(1.4ghz)|023943|e1838|bel07513yc|f|033108||3.1|1|10|1|17,_18,_33,_44|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|127||ac0hxapdm02t|bj21|17|20|test|sunfire_v440|4x8gb_(1.6ghz)|019239|e1729|0615bd10a7|f|050106||4.4|1|7|1|21,_22,_35,_46|p1,_p2,_bk,_ts|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bj21||||||total||||||20.2||||||pmm_-_9|156|pnl_-_d|ch30-32|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||29||bk21|40r|41r||fastiron_gs648p_poe||025559|e0093|cy46080351|f|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|128||ac0hxwsdw02t|bk21|27|28|test|sunfire_v240|2x8gb_(1.3ghz)|017021|e1830|fn50840209|f|042805||2.2|2|14|1|19,_20,_34,_41|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|129||ac0hxwsdw04t|bk21|23|24|test|sunfire_v245|2x8gb_(1.5ghz)|022509|e1831|0709fl307x|f|030807||2.6|1|12|1|17,_18,_33,_44|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|130||ac0hxznxx20t-gz|bk21|21|22|test|sunfire_t5220|1x64gb_(1.4ghz)|023933|e1832|bel0811a0j|f|||3.1|1|11|1|23,_24,_36,_43|nic0,_nic1,_nic3,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|131||ac0hxwsdw06t|bk21|19|20|test|sunfire_v245|2x8gb_(1.5ghz)|022501|e1833|0701fl4006|f|030807||2.6|1|7|1|15,_16,_32,_45|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|132|||bk21|15|18||sunfire_t5440||027458|c0993|bdl09037f8|f|||3.5|1|4,_13|1|21,_22,_35,_42|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|133||ac0hxvmxx02t-vm|bk21|12|13||sunfire_x4200_m2||022556|e1834|0706bd06d8|f|||2.1|1|1|1|13,_14,_30,_31,_40|p1,_p4,_bk,_p6,_p3|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bk21||||||total||||||21.9||||||pmm_-_9|160|pnl_-_d|ch34-36|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||30||bl21|40r|41r||fastiron_gs648p_poe||025569|e0092|cy46080379|f|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|134||ac0hxdbap02t|bl21|30|34|test|sunfire_v490|4x16gb_(1.05ghz)|017016|e1826|0508am02a9|f|042805||5.1|2|15|1|20,_34,_44|p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|135||ac0hxdber02t|bl21|25|29|test|sunfire_v490|4x16gb_(1.5ghz)|019234|e1827|0612am2393|f|050106||5.1|2|14|1|21,_22,_33,_45|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|136||ar0hqdbdw01t|bl21|20|24|test|sunfire_v480|4x16gb_(1.2ghz)|005573|e1828|305v02f8|f|031903|eol|3.7|2|13|1|23,_35,_46|bk,_p1,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|137||ac0hxdbap04t|bl21|15|19|test|sunfire_v490|4x16gb_(1.35ghz)|019250|e1829|0618am0063|f|051206||5.1|1|12|1|24|p1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bl21||||||total||||||24.8||||||pmm_-_9|164|pnl_-_d|ch38-40|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bm21|42r|||netbotz_550||026944|no_tag|qa0948181447|f|010500||0.3|2|23a|1|46|nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||31||bm21|40r|41r||fastiron_gs648p_poe||025580|e0091|cy42083363|f|010500||5.8|2|22|1|||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|138||keystnweb2|bm21|31|35|keystone|sunfire_v490||027022|c0757|0537am0099|f|||5.1|2|15|1|22|nic0|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|139||keystn7|bm21|28|29|keystone|sunfire_t2000||027027|c0755|0747ak221a|f|||1.9|1|12|1|23|nic0|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|140||keystn6|bm21|26|27|keystone|sunfire_t2000||027028|c0756|0747ak221b|f|||1.9|1|10|1|21,_24|nic1,_nic0|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bm21|24|25||sun_sparc_t4-1||no_bt|c6450|1207bdyf78|f|||3.8|||1|7,8,9,34,43|p1,p2,p3,bk,netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|141|||bm21|20|23||hp_dl580_g7||no_bt|c6231|use125ncvt|f|||5|1|5,_6|1|4,5,6,35,44|p1,p2,p3,bk,netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bm21||||||total||||||23.8||||||pmm_-_9|170|pnl_-_e|ch02-04|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||32||bn21|40r|41r||fastiron_gs648p_poe||025589|e0090|cy42083477|f|010500||5.8|2|22|1|||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|142|||bn21|33|34||sunfire_t5220||026955|e0317|bdl1017542|f|||3.1|2|15|1|15,_16,_30,_40|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bn21|29|32||hp_dl580_g7_cn805200gt||no_bt|c6476|use231axak||||5.0|1|11,_12|1|4,5,6,35,41|p1,p2,p3,bk,netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bn21|25|28||hp_dl580_g7_cn805200gf||no_bt|c6472|use231axae||||5.0|2|13,_14|1|7,8,9,34,44|p1,p2,p3,bk,netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|143||keystn4|bn21|1|7|keystone|sun_4500||027021|c0753|0000427-0037f10869|f|||6.5|1|2b|1|21|tp|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bn21||||||total||||||25.4||||||pmm_-_9|174|pnl_-_e|ch06-08|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||33|san_sw41_fab1|bb26|23|29||mds_9506||027405|e1714|fox1533gblh|h|||9.1|2|16|1(bc26)|1,_3|5_nic1,_6_nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||34|san_sw42_fab2|bb26|3|9||mds_9506||027406|e1715|fox1535gmbk|h|||9.1|1|8|1(bc26)|2,_4|5_nic1,_6_nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bb26||||||total||||||18.2||||||pmm_-_8|155|pnl_-_d|ch29-31|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||35||bc26|40r|41r||fastiron_gs648p_poe||026685|e0102|ch28090304|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|144|||bc26|33|34||sunfire_t5220||026956|e0316|bdl101753e|h|||3.1|2|15|1|16,_17,_30,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|144|||bc26|13|20||hp_dl980_g7||no_bt|c6479|use2257bnn||||11.2|1|7,9,_10,11||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bc26||||||total||||||20.1||||||pmm_-_9|131|pnl_-_d|ch05-07|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||36||bd26|40r|41r||fastiron_gs648p_poe||025517|e0103|cy42083474|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bd26||||||total||||||5.8||||||pmm_-_9|135|pnl_-_d|ch09-11|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||37||be26|40r|41r||fastiron_gs648p_poe||025520|e0104|cy39080813|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||be26||||||total||||||5.8||||||pmm_-_9|139|pnl_-_d|ch13-15|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||38||bf26|40r|41r||fastiron_gs648p_poe||025524|e0105|cy46080374|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bf26||||||total||||||5.8||||||pmm_-_9|143|pnl_-_d|ch17-19|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||39||bg26|40r|41r||fastiron_gs648p_poe||026917|no_tag|avw0652e022|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bg26||||||total||||||5.8||||||pmm_-_9|147|pnl_-_d|ch21-23|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||40||bh26|42r|||uplogix||027089|no_tag|a202400024|h|||2.0|2|23||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||41||bh26|40r|41r||fastiron_gs648p_poe||025511|no_tag|cy45087531|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||41||bh26|13|20||hp_dl980_g7||no_bt|c6478|use2257bp0||||11.2|1|7,9,_10,11||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bh26||||||total||||||19.0||||||pmm_-_9|151|pnl_-_d|ch25-27|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||42||bi26|40r|41r||fastiron_gs648p_poe||029555|no_tag|a0fh26f04e|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|145|||bi26|33|34||sun_sparc_t4-1||no_bt|c6448|1207bdyf75|h|||3.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|146|||bi26|29|30||sunfire_t5220||023922|e0315|bel08119zo||||3.1|2|14|1|16,_17,_30,_43|p1,_p2,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bi26|25|28||hp_dl580_g7||no_bt|c6475|use231axah||||5.0|1|10,11||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|147||ac0hxvmxx03d-vm|bi26|18|21|dev|sunfire_x4600|6464|019152|e1877|0637am1152|h|||7.5|1|6,5|1|09,_29,_44|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bi26||||||total||||||25.2||||||pmm_-_9|155|pnl_-_d|ch29-31|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||43||bj26|40r|41r||fastiron_gs648p_poe||029553|no_tag|a0fh26f03g|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|148||acrcxznxx04d-gz|bj26|34|35|dev|sunfire_t2000|1616|022553|e1878|0710nnn1be|h|||1.9|2|15|1|05,_30,_37|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|149||acrcxznxx05d-gz|bj26|32|33|dev|sunfire_t2000|1616|022543|e1879|0710nnn172|h|||1.9|2|18|1|06,_31,_38|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|150||acrcxznxx03d-gz|bj26|30|31|dev|sunfire_t2000|1616|022550|e1880|0710nnn16t|h|||1.9|1|12|1|14,_35,_42|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|151||acrcxznxx08d-gz|bj26|28|29|dev|sunfire_t5220|6464|023914|e1881|bel081092o|h|||3.1|2|10|1|07,_33,_40|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|152||acrcxznxx09d-gz|bj26|26|27|dev|sunfire_v240|28|019169|e1885|fn63810114|h|||2.2|1|11|1|08,_34,_41|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|153||acrcxznxx07d-gz|bj26|24|25|dev|sunfire_t5220|6464|023917|e1882|bel081093c|h|||3.1|2|9|1|13,_32,_39|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|154||acrcxznxx06d-gz|bj26|22|23|dev|sunfire_t5220|6464|023946|e1883|bel07513wq|h|||3.1|1|7|1|15,_36,_43|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|155||ac0hxvmxx04d-vm|bj26|18|21|dev|sunfire_x4600|6464|019154|e1884|0636am1622|h|||7.5|1|6,5|1|09,_29,_44|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bj26||||||total||||||30.5||||||pmm_-_9|159|pnl_-_d|ch33-35|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||44||bk26|40r|41r||fastiron_gs648p_poe||025530|e0106|cy45087970|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|156||acrcxdbxx01d-gz|bk26|34|35|dev|sunfire_t5220|6464|023934|e1890|bel0811a7t|h|||3.1|2|21|1|05,_30,_37|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|157||acrcxwsdw02d|bk26|30|33|dev|sunfire_280r|24|005947|e1889|0407ad1d66|h|||3.9|2|20|1|06,_31,_38|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|158||ac0hxdber02d|bk26|28|29|dev|sunfire_v240|28|019266|e1888|fn61750350|h|||2.2|2|19|1|07,_32,_39|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|159||acrcxvmxx01d-vm|bk26|26|27|dev|sunfire_x4200_m2|28|022552|e1891|0706bd070f|h|||2.1|1|12|1|08,_33,_40|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|160||ac0hxdber01d|bk26|21|25|dev|sunfire_v490|416|019235|e1887|0613am0626|h|||5.1|1|11|1|09,_34,_41|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|161||ac0hxapdm02d|bk26|19|20|dev|sunfire_v240|28|019265|e1886|fn61750353|h|||2.2|1|10|1|10,_35,_42|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bk26||||||total||||||24.4||||||pmm_-_9|163|pnl_-_d|ch37-39|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||45||bl26|40r|41r||fastiron_gs648p_poe||029554|no_tag|a0fh26f03h|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|162||acrcxznxx02d-gz|bl26|34|35|dev|sunfire_t2000|3232|022527|e1892|0710nnn1cr|h|||2.0|2|21|1|13,_30,_37|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|163||acrcxznxx10d-gz|bl26|32|33|dev|sunfire_v245|28|022515|e1893|0709fl304p|h|||2.6|2|20|1|05,_31,_38|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|164||acrcxznxx11d-gz|bl26|30|31|dev|sunfire_t2000|416|022542|e1894|0710nnn18b|h|||3.7|2|19|1|07,_33,_40|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|165||acrcxwsdw01d|bl26|24|27|dev|sunfire_280r|24|005946|e1895|0408ad1e9a|h|||3.9|1|11|1|08,_34,_41|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|166||ac0hxsmnm01d|bl26|16|20|dev|sunfire_v490|416|017017|e1896|0512am001c|h|||5.1|1|10|1|09,_35,_42|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|167||ar0hqdbdw02d|bl26|11|15|dev|sunfire_v480|1616|005244|e1897|313v0304|h|||1.9|1|12|1|06,_32,_39|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bl26||||||total||||||25.0||||||pmm_-_9|169|pnl_-_e|ch01-03|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||46||bm26|40r|41r||fastiron_gs648p_poe||029552|no_tag|a0fh26f03l|h|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|168||ac0hxapdm01d|bm26|27|30|dev|sunfire_v440|48|019240|e1730|0615bd10bf|h|||4.4|2|15|1|05,_30,_37|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|169||ac0hxdbap01d|bm26|22|26|dev|sunfire_v490|416|017015|e1898|0449am01ec|h|||5.1|1|12|1|07,_32,_39|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|170||ac0hxdbap02d|bm26|17|21|dev|sunfire_v490|416|008010|e1899|0515am0130|h|||5.1|1|11|1|08,_33,_40|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|171||no_label|bm26|15|16|dev|sunfire_t2000|416|022547|e1901|0710nnn16u|h|||3.7|1|2|1|09,_34,_41|p1,_bk,_netmgt|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bm26||||||total||||||24.1||||||pmm_-_9|173|pnl_-_e|ch05-07|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bn26|42r|||netbotz_550||026939|no_tag|qa0948181342|h|010500||0.3|2|23b|1|46|nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||47||bn26|40r|41r||fastiron_gs648p_poe||026909|no_tag|avw0652e01z|h|010500||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|172||keystn3|bn26|18|34|keystone|sunfire_v880||027019|c0758|215v0258|h|||13.8|2|13,_14a|1|10|tp|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|173||ac0hqdbxx01t|bn26|1|17||sunfire_v880||008039|e1900|0413am02c3|h|||13.8|1|1,2b|1|24,_36|p1,_bk|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bn26||||||total||||||33.7||||||pmm_-_9|177|pnl_-_e|ch09-11|l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|174||no_label|aj30||||sunfire_e25k||017464|e1945|0619ak2045|i|||126.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||aj30||||||total||||||126.5||||||pmm_-7|44,_48,_52,_56,_60,_64|pnl-_b|ch02-04,_ch06-08,_ch10-12,_ch14-16,_ch18-20,_ch22-24.|l1-l2,_l3-l1,_l2-l3,_l1-l2,_l3-l1,_l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||al30|42r|||netbotz_550||026942|no_tag|qa0948181446|i|||0.3|2|23a|1|47|nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||48||al30|40r|41r||fastiron_gs648p_poe||026908|no_tag|avw0652e02a|i|||5.8|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|175|||al30|33|34||sun_sparc_t4-1||no_bt|c6445|1207bdyf76|i|||3.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|176|||al30|31|32||sun_sparc_t4-1||no_bt|c6446|1207bdyf77|i|||3.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|177||ac0hxf250-s1|al30|16|||storedge_s1||007928|no_tag|0352ai1103|i|||0.6|2|21b||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|178||ac0hxf250-s1|al30|15|||storedge_s1||007921|no_tag|0352ai1094|i|||0.6|2|15b||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|179||ac0hxf250-s1|al30|14|||storedge_s1||007925|no_tag|0352ai1095|i|||0.6|1|7b||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|180||ac0hxf250-s1|al30|13|||storedge_s1||007927|no_tag|0352ai1097|i|||0.6|1|1b||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|181||ac0hxf250-s1|al30|11|||storedge_s1||007917|no_tag|0352ai1116|i|||0.6|2|21a||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|182||ac0hxf250-s1|al30|10|||storedge_s1||007920|no_tag|0352ai1119|i|||0.6|2|15a||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|183||ac0hxf250-s1|al30|9|||storedge_s1||007926|no_tag|0352ai1115|i|||0.6|1|7a||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|184||ac0hxf250-s1|al30|8|||storedge_s1||007916|no_tag|0352ai1104|i|||0.6|1|1a||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||al30||||||total||||||18.5||||||pmm_-7|68|pnl-_b|ch26-28|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|185||keystn5|am30|||keystone|sun_e4500||027020|c0752|105h25bd|i|||6.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|186||retain2|am30|||keystone|sun_a5000_storage|||no_tag||i|||2.0||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||am30||||||total||||||8.5||||||pmm_-7b|67b|pnl-_b|ch25-27|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||49|san_sw43_fab1|an30|23|29||mds_9506||027408|e1716|fox1535gmbh|i|||9.1|||||5_nic1,_6_nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||50|san_sw44_fab2|an30|3|9||mds_9506||027407|e1717|fox1533gblv|i|||9.1|||||5_nic1,_6_nic1|||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||an30||||||total||||||18.2||||||pmm_-7|72|pnl-_b|ch30-32|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||ao30||||empty||||||||||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||ao30||||||total||||||0.0||||||pmm_-7|71|pnl-_b|ch29-31|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||51|keystone_-_alexandria|ap30|40r||keystone|brocade_switch_fcx648-e|||no_tag|bgg2208g008|i|||1.4|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||ap30||||||total||||||1.4||||||pmm_-7|121|pnl-_c|ch37-39|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||52|keystone_-_alexandria|aq30|40r||keystone|brocade_switch_fcx648-e|||no_tag|bgg2208g01y|i|||1.4|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||aq30||||||total||||||1.4||||||pmm_-7|127|pnl-_d|ch01-03|l1-l2||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||53|keystone_-_alexandria|ar30|40r||keystone|brocade_switch_fcx648-e|||no_tag|bgg208g01r|i|||1.4|2|22||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||ar30||||||total||||||1.4||||||pmm_-7|131|pnl-_d|ch05-07|l3-l1||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||as30|3|27||cisco_nexus_7018|||||i|||36.1||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||as30||||||total||||||36.1||||||pmm_-7||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||au30|3|27||cisco_nexus_7018|||||i|||36.1||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||au30||||||total||||||36.1||||||pmm_-7||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|187||exadata_12_rack|af41|24|||sun_inifiniband_switch_36|||c0930|ak00035626||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|23|||avocent_ecs17-pw-r-scs_terminal|||c0931|040169749||||0.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|22|||avocent_4032_kvm_switch|||c0936|0520038477||||0.6||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|21|||cisco_catalyst_4948|||c0937|fox1531gy6u||||1.4||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|20|||sun_inifiniband_switch_36|||c0992|ak00035437||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|19|||sun_x4170_m2|||c0932|1120fmm06d||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|18|||sun_x4170_m2|||c0933|1139fmm0wm||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|17|||sun_x4170_m2|||c0934|1119fmm1d7||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|16|||sun_x4170_m2|||c0935|1134fmm0g0||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|14|15||sun_x4270|||c0945|1152fmm05n||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|12|13||sun_x4270|||c0944|1152fmm08k||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|10|11||sun_x4270|||c0943|1152fmm07w||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|8|9||sun_x4270|||c0942|1152fmm07l||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|6|7||sun_x4270|||c0941|1152fmm06v||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|4|5||sun_x4270|||c0940|1152fmm07r||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|2|3||sun_x4270|||c0939|1152fmm074||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_12_rack|af41|1|||sun_inifiniband_switch_36|||c0938|ak00035439||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||af41||||||||||||62.6||||||pmm-7|1,5,9|pnl-a|ch01-03,ch05-07,_ch09-11|l1-l2,_l3-l1,_l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|188||exalogic_12_rack|ag41|28|||sun_x4170_m2|||c0947|1134fmm0jg||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|27|||sun_x4170_m2|||c0948|1150fmm0ny||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|25|||cisco_catalyst_4948|||c0952|fox1531gy74||||1.4||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|23|||sun_inifiniband_switch_36|||c0951|ak00034442||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|22|||sun_zfs_7320|||c0949|1150fmm07t||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|21|||sun_zfs_7320|||c0950|1150fmm076||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|17|20||jbod|||c0953|1207fmd06k||||3.0||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|16|||sun_inifiniband_switch_36|||c0954|ak00034444||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|15|||sun_x4170_m2|||c0955|1139fmm0nw||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|14|||sun_x4170_m2|||c0956|1132fmm0rb||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|13|||sun_x4170_m2|||c0957|1132fmm03y||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|12|||sun_x4170_m2|||c0958|1150fmm0kk||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|11|||sun_x4170_m2|||c0959|1150fmm0l2||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|10|||sun_x4170_m2|||c0960|1150fmm0p3||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|9|||sun_x4170_m2|||c0961|1150fmm0m0||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|8|||sun_x4170_m2|||c0962|1150fmm0p5||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|7|||sun_x4170_m2|||c0963|1150fmm0p9||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|6|||sun_x4170_m2|||c0964|1150fmm0mp||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|5|||sun_x4170_m2|||c0965|1150fmm0l9||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|4|||sun_x4170_m2|||c0966|1150fmm0p8||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|3|||sun_x4170_m2|||c0967|1150fmm0nw||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|2|||sun_x4170_m2|||c0968|1150fmm0lt||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exalogic_12_rack|ag41|1|||sun_inifiniband_switch_36|||c0969|ak00035836||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||ag41||||||||||||75.5||||||pmm-7|13,17,_21|pnl-a|ch13-15,ch17-19,_ch21-23|l1-l2,_l3-l1,_l2-l3||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|190||exadata_14_rack|an41|24|||sun_inifiniband_switch_36|||c0982|ak00028109||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|an41|23|||avocent_ecs17-pw-r-scs_terminal|||c0983|0040163790||||0.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|an41|22|||avocent_4032_kvm_switch|||c0986|0520020175||||0.6||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|an41|21|||cisco_catalyst_4948|||c0985|fox1511gnyh||||1.4||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|an41|20|||sun_inifiniband_switch_36|||c0984|ak00028108||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|an41|17|||sun_x4170_m2|||c0987|1142fmm045||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|an41|16|||sun_x4170_m2|||c0988|1142fmm04t||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|an41|6|7||sun_x4270|||c0989|1142fmm1jc||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|an41|4|5||sun_x4270|||c0990|1144fmm11f||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|an41|2|3||sun_x4270|||c0991|1138fmm0an||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||an41||||||||||||0.0||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||an41||||||||||||30.5||||||pmm-7|26,30,_34|pnl-a|ch26-28,_ch30-32,_ch34-36|||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|189||exadata_14_rack|ao41|24|||sun_inifiniband_switch_36|||c0971|ak00035075||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|ao41|23|||avocent_ecs17-pw-r-scs_terminal|||c0972|0040169065||||0.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|ao41|22|||avocent_4032_kvm_switch|||c0973|0520031835||||0.6||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|ao41|21|||cisco_catalyst_4948|||c0974|fox1531gwa9||||1.4||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|ao41|20|||sun_inifiniband_switch_36|||c0975|ak00035074||||1.5||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|ao41|17|||sun_x4170_m2|||c0976|1145fmm0ve||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|ao41|16|||sun_x4170_m2|||c0977|1145fmm0uh||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|ao41|6|7||sun_x4270|||c0978|1144fmm05x||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|ao41|4|5||sun_x4270|||c0979|1118fmm0ff||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|||exadata_14_rack|ao41|2|3||sun_x4270|||c0980|1118fmm0g1||||5.8||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||ao41||||||||||||0.0||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||ao41||||||||||||30.5||||||pmm-7|25,29,_33|pnl-a|ch25-27,_ch29-31,_ch33-35|||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt|191|||aq41|38|||sun_keymanager|||c6442|1206fmm0af||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||aq41|36|||sun_keymanager|||c6442|1206fmm0ae||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||aq41|33|34||sunfire_x4270|||c6442|1206fmm0a0||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||aq41|30|31||sunfire_x4270|||c6442|1206fmm11t||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||aq41|26|28||sun_zfs_storage_7420|||c6442|1206fmj01w||||3.7||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||aq41||||||||||||18.5||||||pmm-7|75,76,_79|pnl-a|ch3-35,_ch34-36,_ch37-39|||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||as41||||sun_storagetek_sl3000|||c6441|571000201206||||2.9||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||as41||||||||||||2.9||||||pmm-7a|80a|pnl-a|ch38-40|||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||bs24||||sun_storagetek_sl3000|||c6523|571000201307||||2.9||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||br23||||||||||||2.9||||||pmm-7a|80a|pnl-a|ch38-40|||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||||||||||||||||||||||||||ip|os|uheight|weight|";
$data[] = "cab_id|cab_dt||||||||||||||||11.5||||||||||||ip|os|uheight|weight|";
pdo_insert( $dbname, $tblname, $data );
}
function pdo_insert_doc() {
global $dbname;
$tblname="doc";
$data[] = "yyyy,gfy,p,q,wk,begdt,begday,enddt,endday,oy,status,est,inv,senddt,recvdt,senddts,recvdts,invdt,invnum,hrs,amt,ytd,tot,rem,cid,rate,rate1,est1,hrs1,amt1,ytd1,tot1,rem1,invdt1,invnum1,senddt1,recvdt1,senddts1,recvdts1,status1,rate2,est2,hrs2,amt2,ytd2,tot2,rem2,invdt2,invnum2,senddt2,recvdt2,recvdts2,senddts2,status2,kludge,desc";
$data[] = "2009,g,,,,20080928,,20081031,,oy0,,est,20081031,20081111,,,,,20081111,20081031,158,$19,729.46 ,$19,729.46 ,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20081101,,20081128,,oy0,,est,20081128,20090129,,,,,20090129,20081128,144.5,$18,043.72 ,,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20081129,,20081226,,oy0,,est,20081226,20090129,,,,,20090129,20081226,151,$18,855.37 ,,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20081227,,20090123,,oy0,,est,20090123,20090129,,,,,20090129,20090123,105,$13,111.35 ,,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090124,,20090220,,oy0,,est,20090220,20090521,,,,,20090521,20090220,156.5,$19,542.16 ,$19,542.16 ,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090221,,20090320,,oy0,,est,20090320,20090221,,,,,20090221,20090320,149,$18,605.63 ,$38,147.79 ,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090321,,20090417,,oy0,,est,20090417,20090701,,,,,20090701,20090417,151.5,$18,917.81 ,$57,065.59 ,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090418,,20090515,,oy0,,est,20090515,20090702,,,,,20090702,20090515,159,$19,854.33 ,$76,919.92 ,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090516,,20090612,,oy0,,est,20090612,20090703,,20090924,,,20090924,20090612-mod3,133,$16,607.71 ,$163,267.53 ,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090613,,20090710,,oy0,,est,20090710,20090924,,20090924,,,20090924,20090710-mod5,143,$17,856.41 ,$181,123.94 ,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090711,,20090807,,oy0,,est,20090807,20090924,,20090924,,,20090924,20090807-mod5,138.5,$17,294.50 ,$198,418.43 ,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090808,,20090817,,oy0,,est,20090817,20090924,,,,,20090924,20090817,44.5,$5,556.72 ,$203,975.15 ,,esb,4400159794,$124.87 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090818,,20090904,,oy1,,est,20090904,20090924,,20090924,,,20090924,20090904-mod5,102,$13,119.24 ,$13,119.24 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20090905,,20091002,,oy1,,est,20091002,20100105,,,,,20100105,20091002,155,$19,936.10 ,$33,055.34 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20091003,,20091030,,oy1,,est,20091030,20100105,,,,,20100105,20091030,150.5,$19,357.31 ,$52,412.65 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20091031,,20091127,,oy1,,est,20091127,20100105,,20100112,,,20100112,20091127,121,$15,563.02 ,$67,975.67 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2010,g,,,,20091128,,20091225,,oy1,,est,20091225,20100105,,20100113,,,20100113,20091225,124.5,$16,013.19 ,$83,988.86 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g,,,,20091226,,20100122,,oy1,,est,20100122,20100504,,,,,20100504,20100122,126,$16,206.12 ,$100,194.98 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,1,0,1,1/23/10,sat,20100219,,oy1,,est,20100219,20100505,,,,,20100504,20100219,150.5,$19,357.31 ,$119,552.29 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,2,0,5,2/20/10,sat,20100319,,oy1,,est,20100319,20100505,,,,,20100504,20100319,149.5,$19,228.69 ,$138,780.98 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,3,0,9,3/20/10,sat,4/16/10,fri,oy1,,est,20100416,20100505,,20100707,,,20100504,20100416-mod1,155,$19,936.10 ,$158,717.08 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,4,0,13,4/17/10,sat,20100514,,oy1,,est,20100514,20101117,,,,,20101117,20100514,156.5,$20,129.03 ,$178,846.11 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,5,0,17,5/15/10,sat,20100611,,oy1,,est,20100611,20101117,,,,,20101117,20100611,153,$19,678.86 ,$198,524.97 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,6,0,21,6/12/10,sat,20100709,,oy1,,est,20100709,20101117,,,,,20101117,20100709,149,$19,164.38 ,$217,689.35 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,7,0,25,7/10/10,sat,20100806,,oy1,,est,20100806,20101117,,,,,20101117,20100806,100,$12,862.00 ,$230,551.35 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,,,,8/7/10,sat,20100817,,oy1,,est ,20100817,,,,,,20100817,20100817,0,$0.00 ,$230,551.35 ,,esb,4400159794,$128.62 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,8,0,29,8/18/10,sat,20100903,,oy2,,est,20100903,20110516,,,,,20110516,20100903,103,$13,247.86 ,$13,644.41 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,9,0,33,9/4/10,sat,20101001,,oy2,,est,20101001,20110526,,,,,,20101001,147.58,$19,550.24 ,,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,10,0,37,10/2/10,sat,20101029,,oy2,,est,20101029,20110602,,,,,,20101029,155.35,$20,579.20 ,,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,11,0,41,10/30/10,sat,20101126,,oy2,,est,20101126,20110630,,,,,,20101126,139.81,$18,521.28 ,,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,12,0,45,11/27/10,sat,20101224,,oy2,,est,20101224,20111011,,,,,20111011,20101224,156,$20,064.72 ,$94,716.05 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2011,g11,13,0,49,12/25/10,sat,20110121,,oy2,,est,20110121,20111118,,,,,20111118,20110121,114,$15,101.58 ,$109,817.63 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,1,0,1,1/22/11,sat,20110218,,oy2,,est,20110218,20111118,,,,,20111118,20110218,158,$20,930.26 ,$130,747.89 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,2,0,5,2/19/11,sat,20110318,,oy2,,est,20110318,20120105,,,,,20120105,20110318,152,$20,135.44 ,$155,122.37 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,3,0,9,3/19/11,sat,20110415,,oy2,,est,20110415,20120105,,,,,20110104,20110415,160,$21,195.20 ,$176,317.57 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,4,0,13,4/16/11,sat,20110513,,oy2,,est,20110513,20120105,,,,,20120105,20110513,160,$21,195.20 ,$197,512.77 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,5,0,17,5/14/11,sat,20110610,,oy2,,est,20110610,20120105,,,,,20120105,20110610,152,$20,135.44 ,$217,648.21 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g12,6,0,21,6/11/11,sat,20110708,,oy2,,est,20110708,20120105,,,,,20110105,20110708,152,$20,135.44 ,$237,783.65 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,7,0,25,7/9/11,sat,20110805,,oy2,,est,20110805,20120105,,,,,20110105,20110805,117,$15,498.99 ,$253,282.64 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,8,0,29,8/6/11,sat,20110817,,oy2,,est,20110817,20120105,,,,,20110105,20110817,66,$8,743.02 ,$262,025.66 ,,esb,4400159794,$132.47 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,8,0,29,8/18/11,sat,20110902,fri,oy3,,est,20110902,20110902,,,,,20111101,20110902,85,$11,830.30 ,$11,543.00 ,,esb,po10093205,$135.80 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,9,0,33,9/3/11,sat,20110930,fri,oy3,,est,20110930,20110930,,,,,,20110930,160,$22,268.80 ,$33,271.00 ,,esb,po10093205,$135.80 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2012,g12,10,0,37,10/1/11,sat,20111028,fri,oy3,,est,20111028,20111028,,20111102,,,20111101,20111028,136,$18,928.48 ,$51,739.80 ,,esb,po10093205,$135.80 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g12,11,0,41,10/29/11,sat,20111125,fri,oy3,,est,20111125,20111125,,,,,20120706,20111125,158.5,$21,522.72 ,$73,258.71 ,,esb,po10093205,135.79*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g,,,,,,20111223,,oy3,,est,20111223,20111223,,,,,20120731,20111223,210,$28,515.90 ,$80,251.89 ,,esb,po10093205,$135.79 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,,,20120120,,oy3,,est,20120120,20121119,,,,,20121119,20120120,140,$19,010.60 ,$109,310.95 ,,esb,po10093205,$135.79 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,1/21/12,sat,20120217,, ,,est,20120217,20120217,,,,,20121207,20120217,170,$21,792.70 ,,,esb,po10093205,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,2/18/12,sat,20120316,,oy3,,est,20120316,20120316,,,,,20121207,20120316,170,$23,084.30 ,,,esb,po10093205,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,3/17/12,sat,20120413,,oy3,,est,20120413,20120413,,,,,20121211,20120413,110,$14,936.90 ,,,esb,po10093205,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,4/14/12,sat,20120511,,oy3,,est,20120511,20120511,,,,,20121211,20120511,130,$17,652.70 ,,,esb,po10093205,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,5/12/12,sat,20120608,,oy,,est,20120608,20120608,,,,,20121211,20120608,150,$20,368.50 ,,,esb,po10093205,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,6/9/12,sat,20120706,,oy,,est,20120706,20120706,,,,,20121217,20120706,165,$21,726.40 ,,,esb,po10093205,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g,,,,7/7/12,,20120810,,oy3,,,20120810,20120129,,,,,20130129,20120810,140,$19,010.60 ,,,esb,po10093205,$135.79 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,7/7/12,,20120810,,oy3,,est,20120810,20120810,,,,,,20120810,80.5,$10,931.10 ,,,esb,po10093205,$135.79 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,7/7/12,,20120810,,oy3,,est,20120810,20120810,,,,,,20120810,59.5,$8,079.50 ,,,esb,po10093205,$135.79 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g,,,,8/11/12,,20120817,,oy3,,est,20120817,20120817,,,,,,20120817,60,$4,073.70 ,,,esb,po10093205,$135.79 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g13,8,0,29,8/18/12,sat,9/7/12,fri,oy4,,est,20120907,20130320,,20131122,,,20120320,20120907_mod2,140,$19,485.20 ,$154,268.80 ,,esb,po10093205-r2,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g13,9,0,33,9/8/12,sat,10/5/12,fri,oy4,,est,20121005,20130320,,,,,,20121005_mod2,180,$25,052.40 ,,,esb,po10093205-r2,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g13,10,0,37,10/6/12,sat,11/2/12,fri,oy4,,est,20121102,20130401,,,,,,20121102_mod1,200,$27,836.00 ,,,esb,po10093205-r2,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g13,11,0,41,11/3/12,sat,12/7/12,fri,oy4,,est,20121207,20120412,,,,,,20121207_mod2,300,$41,754.00 ,,,esb,po10093205-r2,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g13,12,0,45,12/8/12,sat,12/14/12,fri,oy4,,est,20121214,20160210,,,,,,20121214,40,$5,567.20 ,,,esb,po10093205-r2,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2013,g13,13,0,49,12/22/12,sat,1/18/13,fri,oy4,,est,20130118,,,,,,,20130118,40,,,,esb,esb,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,1,0,1,1/19/13,sat,2/15/13,fri,oy4,,est,20130215,,,,,,,20130215,40,,,,esb,esb,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,2,0,5,2/16/13,sat,3/15/13,fri,oy4,,est,20130315,,,,,,,20130315,40,,,,esb,esb,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,3,0,9,3/16/13,sat,4/12/13,fri,oy4,,est,20130412,,,,,,,20130412,40,,,,esb,esb,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,4,0,13,4/13/13,sat,5/10/13,fri,oy4,,est,20130510,,,,,,,20130510,40,,,,esb,esb,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,5,0,17,5/11/13,sat,6/7/13,fri,oy4,,est,20130607,,,,,,,20130607,40,,,,esb,esb,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,6,0,21,6/8/13,sat,7/5/13,fri,oy4,,est,20130705,,,,,,,20130705,40,,,,esb,esb,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,7,0,25,7/6/13,sat,8/2/13,fri,oy4,,est,20130802,,,,,,,20130802,40,,,,esb,esb,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,8,0,29,8/3/13,sat,8/30/13,fri,oy4,,est,20130830,,,,,,,20130830,40,,,,esb,esb,$139.18 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,9,0,33,8/31/13,sat,9/27/13,fri,oy,,est,20130927,,,,,,,20130927,40,,,,esb,esb,$250.00 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,10,0,37,9/28/13,sat,10/25/13,fri,oy,,est,20131025,,,,,,,20131025,40,,,,esb,esb,$250.00 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,11,0,41,10/26/13,sat,11/22/13,fri,oy,,est,20131122,,,,,,,20131122,40,,,,esb,esb,$250.00 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,12,0,45,11/23/13,sat,12/20/13,fri,oy,,est,20131220,,,,,,,20131220,40,,,,esb,esb,$250.00 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2014,g14,13,0,49,12/21/13,sat,1/17/14,fri,oy,,est,20140117,,,,,,,20140117,40,,,,esb,esb,$250.00 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2015,g15,1,0,1,1/18/14,sat,2/14/14,fri,oy,,est,20140214,,,,,,,20140214,40,,,,esb,esb,$250.00 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2015,g15,2,0,5,2/15/14,sat,3/14/14,fri,oy,,est,20140314,,,,,,,20140314,40,,,,esb,esb,$250.00 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
$data[] = "2015,g15,3,0,9,3/15/14,sat,4/11/14,fri,oy,,est,20140411,,,,,,,20140411,40,,,,esb,esb,$250.00 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
pdo_insert($dbfile,$tblname,$sql);
}
function pdo_insert_us() {
global $dbfile;
$tblnames="us";
$data[]="img,gender,title,fname,lname,str_no,str_name,city,state,country,zip,coord_lat,coord_long,tz_offset,tz_descr,email,login_uuid,login_user,login_pass,login_salt,login_md5,login_sha1,login_sha256,dob_date,dob_age,reg_dt,reg_age,phn,cell,id_name,id_val,img,tn,zn,nat,tmp";
$data[]="w25,female,Ms,Ingeborg,Kolbeck,560,Ahornweg,Heidenheim an der Brenz,Saarland,Germany,50581,43.0242,-103.7925,-7:00,Mountain Time (US & Canada),ingeborg.kolbeck@example.com,aa98d3db-6c2b-41c3-a5c2-cd06c8a0f258,orangedog402,Rhsp,DanHJEK3,c14e2192465a79123aa58379e141dff8,8bf0eb09366f8637480e1500aad81e098145b954,38d39c87329d0345fc44154884a63bd6aeb1280690979dd8502adedfdfe6f434,1949-03-02T11:35:02.870Z,77,2021-05-26T14:45:58.558Z,5,0514-6035940,0172-3795708,SVNR,52 020349 K 550,imgs/us/w25.jpg,imgs/us/zn/zn_w25.jpg,imgs/us/zn/zn_w25.jpg,DE,tmp";
$data[]="m89,male,Mr,Adrian,Weimann,8738,Wiesenweg,Großenehrich,Berlin,Germany,85657,22.4174,50.6582,+5:45,Kathmandu,adrian.weimann@example.com,6dfa8cb9-8dd0-4190-aa25-eba8c243e20b,redfrog639,SVd,yscuENzf,69af6430056fedbea0408b51afbb2b6c,3e5852e264cee1edab6812960d9f36ee2e511cdd,862a273c4a414082de64699e5a0f9f92f8889feb89220c49172765647dd9b8d5,1946-09-12T06:18:39.612Z,79,2020-09-17T13:29:54.109Z,5,0599-1873615,0173-2233640,SVNR,53 120946 W 013,imgs/us/m89.jpg,imgs/us/zn/zn_m89.jpg,imgs/us/zn/zn_m89.jpg,DE,tmp";
$data[]="w31,female,Miss,Gesche,Breier,5926,Hauptstraße,Westerstede,Berlin,Germany,43524,29.2392,132.4477,+4:30,Kabul,gesche.breier@example.com,ab236b2b-0286-4647-a4f9-5ac49c4ececd,orangeostrich639,Cfl,kHJNK1c7,08f3a57694333f05f31a5ba6edad5536,8418981df1b516fbbc19114dd360c45b55d651c9,abdb54aa611045257a6f81de99e9432aac9b6321944673eea0202ecdbc3abcac,1986-02-23T09:28:12.883Z,40,2008-04-05T13:27:28.837Z,18,0716-9381648,0176-3382013,SVNR,76 230286 B 895,imgs/us/w31.jpg,imgs/us/zn/zn_w31.jpg,imgs/us/zn/zn_w31.jpg,DE,tmp";
$data[]="m8,male,Mr,Edward,Vasquez,4247,White Oak Dr,Boston,Nebraska,United States,44835,-0.8263,-58.4627,+3:30,Tehran,edward.vasquez@example.com,0fbdf52d-6405-47a6-9256-9a590ee8fe2d,crazydog804,mFsuwZGzFJxALC,WtdZSevd,e671bcbe75d0b40742e0447a3c8f88a1,5668ad84e8b9349140de1deba81b9ddabf2e0452,d87d9c10324f5595121c13ac741f04f3ca6cc48497fed0461a86b18c06d77f3f,1945-08-19T09:11:07.124Z,80,2010-12-25T14:15:39.930Z,15,(568) 792-2076,(361) 888-6354,SSN,541-16-3910,imgs/us/m8.jpg,imgs/us/zn/zn_m8.jpg,imgs/us/zn/zn_m8.jpg,US,tmp";
$data[]="w36,female,Mrs,Vera,Austin,4497,Lakeview St,Tacoma,New Jersey,United States,73382,53.8069,-41.8493,-2:00,Mid-Atlantic,vera.austin@example.com,92964465-a618-4055-9514-a96f25289a9d,goldenmeercat562,qrnhMRrvIOoJV,RVaWtH0n,c121c9f127abef095830e56c3deb5212,608b48e6e20bf6ac7d3903b49b782c1cfd519fc3,d3f87cbf4cbf264c99171ba94e3874076c463c54c76259f4a0f2f5c541580ed3,2001-04-04T11:05:33.966Z,25,2022-01-26T15:09:25.476Z,4,(667) 555-6767,(874) 602-5985,SSN,023-81-2210,imgs/us/w36.jpg,imgs/us/zn/zn_w36.jpg,imgs/us/zn/zn_w36.jpg,US,tmp";
$data[]="w24,female,Miss,Ava,Meyer,6548,Place de L'Abbé-Georges-Hénocque,Nîmes,Guyane,France,92792,-82.2325,160.3917,-10:00,Hawaii,ava.meyer@example.com,209b9a9b-45c2-4ae5-a2a7-da45d4025ec8,bigleopard379,EZrhNeBfjJGPDKf,hPw3sZBI,ffba1b40a2692fc53d843a0692947e91,a98001329532f1535413553933dbed8258f2bd96,cb260f865ffc436151d25651e5ac320b225e22f10538d1e6863248d5833ec253,1958-08-15T04:05:32.439Z,67,2013-08-16T14:57:45.772Z,12,05-68-19-66-29,06-45-63-68-14,INSEE,2580720958130 61,imgs/us/w24.jpg,imgs/us/zn/zn_w24.jpg,imgs/us/zn/zn_w24.jpg,FR,tmp";
$data[]="m68,male,Mr,Marvin,Hock,7216,Mittelstraße,Hemmingen,Nordrhein-Westfalen,Germany,89074,-64.1788,39.9291,-2:00,Mid-Atlantic,marvin.hock@example.com,36a3c5a8-e8bc-4898-b2a4-fb99a0f67d44,blackmouse191,BdnDA,XvBucdsw,58de7b418c25b3bb347aec5c0a4b033b,2d0a9d0b2e2660502ec7f9aa0dd6e186a3fcffb7,d6b1bc1c6451d991a1cf71c21e20fadb6b5486745867c07491cd69db206e4c7a,1998-11-17T02:55:42.044Z,27,2018-01-06T01:16:10.328Z,8,0511-2653698,0171-2098483,SVNR,20 161198 H 102,imgs/us/m68.jpg,imgs/us/zn/zn_m68.jpg,imgs/us/zn/zn_m68.jpg,DE,tmp";
$data[]="m84,male,Mr,Angel,Spencer,8930,Ash Dr,Scurry,New Hampshire,United States,34905,43.1739,98.8781,-10:00,Hawaii,angel.spencer@example.com,074f401f-8daf-4b3c-9d57-7c6426e43801,bluegoose466,hDGMkErY,du3WijPX,7928cb221707e2cb3ec4373ff9e85144,f1ca6d26a4cf9d72b05ac5bef6bf56e740d9e5aa,8ef53fe0864647e564794e7c956245bd404668f004a83430aa2faab2680b6bb2,1982-03-22T18:16:39.950Z,44,2003-07-16T11:09:54.080Z,23,(702) 226-0471,(944) 885-1008,SSN,406-72-4848,imgs/us/m84.jpg,imgs/us/zn/zn_m84.jpg,imgs/us/zn/zn_m84.jpg,US,tmp";
$data[]="m5,male,Mr,Jessie,Wallace,8621,Grove Road,Brighton and Hove,Hampshire,United Kingdom,RL9 2HH,11.4125,-113.7230,-2:00,Mid-Atlantic,jessie.wallace@example.com,d5bc5e75-daca-4ed0-bed5-56e340d809d2,happybear915,nFegQr,kseSj2BK,26ddd7c4850ef9e0cf78d741920dcfb7,2f54238fbd7060851deac90b534f0517429d94a1,1ba40e49a60e4d518814fc07b8311fcddfbeed1e2b4bbd497d40e705013653a1,1952-01-26T22:26:43.737Z,74,2019-05-14T18:51:05.594Z,7,016974 30408,07590 846939,NINO,XA 48 41 13 W,imgs/us/m5.jpg,imgs/us/zn/zn_m5.jpg,imgs/us/zn/zn_m5.jpg,GB,tmp";
$data[]="w32,female,Ms,Layla,Little,2788,Depaul Dr,Pompano Beach,New Hampshire,United States,75604,-15.7944,-67.9862,-7:00,Mountain Time (US & Canada),layla.little@example.com,98ff59ab-7889-4b9b-8c69-048fc8044e14,redmeercat768,ofnFldIzcQ,xoLJLd01,a1c174e2c60ec90a70533daf0b2bf838,c26b49eee85cecfd96f8b8d2a7707942dce7da49,0a60d3a9b92db7653410c4bc5e2c5fcf04bc58af9b75ef37ef270a67b3f8b3eb,1955-06-01T07:53:52.274Z,71,2005-07-29T06:12:43.878Z,21,(430) 336-8757,(287) 303-8058,SSN,756-52-7195,imgs/us/w32.jpg,imgs/us/zn/zn_w32.jpg,imgs/us/zn/zn_w32.jpg,US,tmp";
$data[]="m79,male,Mr,Judd,Larson,9155,Homestead Rd,Roanoke,Mississippi,United States,42676,-63.5086,-71.8425,-8:00,Pacific Time (US & Canada),judd.larson@example.com,03fec16e-072e-4af8-b55e-f1e0687977b3,purpleleopard639,ii,ADex4u89,e83c5bf768e0d7918067c61b07882580,ffcb8e78114bfc54061a69adae94ea02cd2fe940,f8ceecd98b2b8f312dba2a563ec0c6adda6fc8917cdcaf6f020d8b8756f28a01,1995-11-14T15:33:02.775Z,30,2011-03-07T04:16:26.876Z,15,(685) 688-2027,(265) 252-9523,SSN,190-23-4102,imgs/us/m79.jpg,imgs/us/zn/zn_m79.jpg,imgs/us/zn/zn_m79.jpg,US,tmp";
$data[]="w81,female,Ms,Léonie,Chevalier,7368,Rue Abel-Hovelacque,Orléans,Gard,France,88812,88.9098,-151.1092,-3:30,Newfoundland,leonie.chevalier@example.com,0fe6eeb2-32c6-4233-9de2-c501aefeb842,blackswan894,coXCn,CthAvdpg,7c74f8425a4bc308465d3497e1c9276f,b76e1f161533566937e3057d95f695ef4d7ab3a5,3582695dbb79f022257536ab25873e7ee48acc0af199d072ef372b20d89d8958,1959-01-12T23:13:22.049Z,67,2013-01-21T04:06:06.066Z,13,01-33-61-05-06,06-26-08-00-81,INSEE,2590046531474 24,imgs/us/w81.jpg,imgs/us/zn/zn_w81.jpg,imgs/us/zn/zn_w81.jpg,FR,tmp";
$data[]="m49,male,Mr,Daniel,Torres,3933,Mockingbird Ln,Fairfield,Hawaii,United States,63012,-50.1710,56.8472,-8:00,Pacific Time (US & Canada),daniel.torres@example.com,45457a56-ba59-4ec5-b500-45409c002a1f,bluelion631,wowJEYis,IlRN83Od,86e046b26452a7fa48eb51cc7e999f4f,3593c720cf5d20091c0f9324b314c7052557536f,163464c566265eb6ac074454652b2965c00b679796188e6879830048224ebcbb,1956-10-28T18:59:19.361Z,69,2018-05-19T11:34:16.419Z,8,(205) 366-2065,(752) 900-5580,SSN,160-37-5929,imgs/us/m49.jpg,imgs/us/zn/zn_m49.jpg,imgs/us/zn/zn_m49.jpg,US,tmp";
$data[]="m12,male,Mr,Jesse,Payne,8490,Green Lane,Lichfield,Hampshire,United Kingdom,Y2 4QW,60.5226,29.0676,-9:00,Alaska,jesse.payne@example.com,7f5ea77c-4cb0-46fe-940d-1e0d9405ec22,blueswan252,yuteOmoVurrmegti,65fI9OYZ,fba57512ee0656f06ba3512b6c025f58,3964b0237fc25230483fbf89773e622a3955cad3,73bfa0744bad4743ac880f4de094ca317553112b364af9f0b40b4be33825d5ec,1957-12-04T04:58:26.762Z,68,2009-10-31T23:07:00.370Z,16,019467 75204,07596 375841,NINO,SR 78 64 29 X,imgs/us/m12.jpg,imgs/us/zn/zn_m12.jpg,imgs/us/zn/zn_m12.jpg,GB,tmp";
$data[]="w64,female,Ms,Terra,Fernandez,9429,Lakeview St,Wichita Falls,Connecticut,United States,23855,86.2900,151.6204,+4:30,Kabul,terra.fernandez@example.com,3a545cfe-5f45-4a92-b4cc-e385a447b2d8,goldenleopard486,MsHZPEjJUbW,F5mSUOdn,efa702139f43db383937f79ef77abf93,44ab364e2b541fd0864b98f3aab41d55554418fd,a891d2373b44d346bff54b859f2868127a807db1cd7073e3a3e2616a24a919d3,1984-05-19T03:16:58.286Z,42,2016-07-16T08:01:55.017Z,10,(391) 693-3449,(277) 638-7714,SSN,541-21-3536,imgs/us/w64.jpg,imgs/us/zn/zn_w64.jpg,imgs/us/zn/zn_w64.jpg,US,tmp";
$data[]="m57,male,Mr,Loan,Fabre,922,Rue Abel,Grenoble,Lozère,France,43102,-70.5490,9.0172,-3:30,Newfoundland,loan.fabre@example.com,3a7f3441-e11f-4403-aa34-3113dfe2a683,blueostrich385,pdTeVOfePOoL,vPKZY1Ka,6df92881fc8b12a6b3695f91de1f525e,657aec07f597590a9ec9a1d8048d29744e85bfaa,4235e43a01b622a946e4cb638570ec708ffea990cd9e6d85f692b2c5786e8b87,1975-01-14T17:02:00.728Z,51,2017-11-13T13:14:03.372Z,8,03-47-96-56-51,06-97-22-27-52,INSEE,1750093437974 50,imgs/us/m57.jpg,imgs/us/zn/zn_m57.jpg,imgs/us/zn/zn_m57.jpg,FR,tmp";
$data[]="m70,male,Mr,Fabien,Roy,689,Montée Saint-Barthélémy,Caen,Loiret,France,42261,53.6375,98.9323,+4:30,Kabul,fabien.roy@example.com,eda1fe45-2b51-4a44-8331-e338a09242c4,saddog773,ECqLzF,x11SDHgc,01932413641e642293f35830636a9d2a,1608f609769bf8e87e9bbb481b9aea1e27181a77,69b849ae9e570401badbd2ef1d8baa6860cf589c6fd2b428b9254d88df70df12,1975-12-07T16:31:08.513Z,50,2003-07-17T15:42:36.582Z,23,02-65-79-57-05,06-49-96-19-02,INSEE,1751145762578 25,imgs/us/m70.jpg,imgs/us/zn/zn_m70.jpg,imgs/us/zn/zn_m70.jpg,FR,tmp";
$data[]="m85,male,Mr,Logan,Black,643,Kingsway,City of London,Somerset,United Kingdom,M6M 2TN,45.2122,8.7981,-9:00,Alaska,logan.black@example.com,89e5da0e-da10-4cd9-b1bc-ba9f836c001b,beautifulgorilla159,j,D7vwF2Pb,8265c61d4e665301028ec26786a79438,64c5755e8f48528d0417e96b594af93e78852fb4,2dfbd3731409d32613a5ffcd3313817ff17a285a7572db1ec73da1a24bcc6aa5,1978-06-30T03:38:38.542Z,48,2010-10-29T15:24:12.746Z,15,015395 52503,07016 114149,NINO,WL 56 61 92 V,imgs/us/m85.jpg,imgs/us/zn/zn_m85.jpg,imgs/us/zn/zn_m85.jpg,GB,tmp";
$data[]="m53,male,Mr,Clemens,Drees,3330,Lindenweg,Wassenberg,Saarland,Germany,11269,-79.9325,172.9441,-9:00,Alaska,clemens.drees@example.com,bf20922b-6b5a-44b8-95d2-efd2d5139358,bigladybug692,jQ,eAcWwCTk,b5221695a33c13ee8480e1252aa3941f,1bdba1a2d714948ded59513b4547c27199cd4b46,a894e6fd69ad81f1a2c888be4698ea7eb57c613e9e634caf716a8e3eace3aaef,1962-10-25T17:37:57.478Z,63,2015-04-26T00:17:32.584Z,11,0886-1469727,0174-3266300,SVNR,70 251062 D 425,imgs/us/m53.jpg,imgs/us/zn/zn_m53.jpg,imgs/us/zn/zn_m53.jpg,DE,tmp";
$data[]="m80,male,Mr,George,Patterson,8973,Locust Rd,Woodbridge,Arizona,United States,40277,29.8828,19.6384,+4:30,Kabul,george.patterson@example.com,0864181e-c09d-4bf5-b7bc-9a1163c88d24,angrypanda761,dFQceyNGug,7q39LQJn,0dd947c248e4ace4aadc99e535893e63,fa3f28fb2b201bcdc1012bf5fbfd2489addc1e54,8a9bb357669421be1fe4d972edb8db838e560050e67cd9ec1a931650fa3bdf0a,1975-03-13T12:52:36.948Z,51,2005-10-18T12:30:45.739Z,20,(875) 712-7126,(567) 905-2127,SSN,877-98-9649,imgs/us/m80.jpg,imgs/us/zn/zn_m80.jpg,imgs/us/zn/zn_m80.jpg,US,tmp";
$data[]="m19,male,Mr,Phillip,Snyder,162,W Pecan St,Jacksonville,Iowa,United States,88479,67.9416,-155.7341,-2:00,Mid-Atlantic,phillip.snyder@example.com,33c55bf7-7ecb-4379-b7a6-f4498826ff3b,lazypeacock820,BLboZexG,LoLyLCJ2,c037822ee5049c9bedca62449c19fa48,84f512e9df9367f0914e881ee3f06b13df876d7e,431b4f5161ad83784bd823e79e1b23ab8252cc913b2a70bd4f9f4431b92b240f,1950-05-21T13:58:25.079Z,76,2008-07-04T14:26:46.455Z,18,(327) 485-5788,(828) 808-6828,SSN,163-42-0342,imgs/us/m19.jpg,imgs/us/zn/zn_m19.jpg,imgs/us/zn/zn_m19.jpg,US,tmp";
$data[]="m20,male,Mr,Bryan,Kelly,2649,Victoria Road,Ripon,Northamptonshire,United Kingdom,A2 1DX,-26.0805,-162.8766,-9:00,Alaska,bryan.kelly@example.com,174f9608-c4ed-474c-99a8-2314dfac8ab9,organicdog135,EssI,pQThwdbO,81c87985b9e88f45361b6486a7abbe32,df10b8ecbbe9653deadb989d17dcadea196d14ac,127f23fec495672fe8c676d621ce498c1e4176e58d09fd42433e7682aa56ab61,1972-05-09T23:50:25.854Z,54,2011-06-07T01:17:43.194Z,15,017684 05922,07587 076357,NINO,YS 30 66 43 Z,imgs/us/m20.jpg,imgs/us/zn/zn_m20.jpg,imgs/us/zn/zn_m20.jpg,GB,tmp";
$data[]="m21,male,Mr,Chester,Hall,6259,Windsor Road,Glasgow,Central,United Kingdom,M4I 5AQ,3.4828,46.4264,-7:00,Mountain Time (US & Canada),chester.hall@example.com,68862f72-5a94-429b-a929-520628723882,happyleopard391,dSLcwF,FAxVjcTl,533b1b7a0651e9a900ca0010b2ca9d78,cf320ac33b70df177790ba55e143ff371aad3ad2,d25ae9198c9c1cc7aafa5cad20e44a1fdd169d68283eab45403c5c5dc44f56e2,1992-05-23T06:47:47.961Z,34,2011-12-27T10:37:03.766Z,14,017683 43405,07142 519319,NINO,ZM 27 70 49 Z,imgs/us/m21.jpg,imgs/us/zn/zn_m21.jpg,imgs/us/zn/zn_m21.jpg,GB,tmp";
$data[]="w86,female,Miss,Mia,Menard,3675,Avenue du Fort-Caire,Le Mans,Creuse,France,63149,-80.9065,120.6640,-10:00,Hawaii,mia.menard@example.com,b3276d66-b0bd-41d0-ac31-5ca36a27e25f,goldenswan112,LCPErrOeKXCefkR,uq2iSoPB,40c926edfc96a1599c97d46702d4d9ef,1fe6bf89ddc8e0c5eef0182ae8a74cf41f0e05a2,f6024a0a9ff7177ee6f71cc8692bb51401419b97a1002397f4b73df31289d575,1962-09-06T22:31:48.601Z,63,2016-05-29T01:19:58.527Z,10,04-68-37-53-92,06-65-85-92-37,INSEE,2620861778307 20,imgs/us/w86.jpg,imgs/us/zn/zn_w86.jpg,imgs/us/zn/zn_w86.jpg,FR,tmp";
$data[]="w84,female,Ms,Laly,Fleury,3546,Place du 8 Novembre 1942,Versailles,Hérault,France,49072,81.5179,20.7554,+3:30,Tehran,laly.fleury@example.com,4730dcf1-86ed-4a18-846a-c94c42de615e,redrabbit885,qBVaoFoCF,5nNcgtKJ,283c6c44ded795c3648281649621ef16,237297049e851457f7e96e356f160c36b7d1dcf0,4917feee741b0b5e5b1e3ca90b5217eee31d398d06250af9afdaf172cc22e573,1947-11-11T10:47:02.350Z,78,2004-03-12T00:41:25.957Z,22,01-53-64-71-80,06-27-63-20-64,INSEE,2471043738790 50,imgs/us/w84.jpg,imgs/us/zn/zn_w84.jpg,imgs/us/zn/zn_w84.jpg,FR,tmp";
$data[]="m88,male,Mr,Hansjörg,Severin,6431,Bergstraße,Kemnath,Nordrhein-Westfalen,Germany,25938,-69.8403,118.5915,+3:30,Tehran,hansjorg.severin@example.com,ea1f0f9b-fafa-4b36-9c60-c715c17bb6ce,crazycat619,Zx,jiVNePVO,69b85e394c621c5f6d456c68df86f497,cb6edef8b5619f8a0e40c1f29ccc44b9cb44e71d,14841e11d2ed3b38339261ec6067b8c444dd9f6729dac89f46d17af889cd1d63,1956-10-27T09:08:20.215Z,69,2021-04-25T10:22:44.422Z,5,0546-0110651,0172-1727194,SVNR,60 271056 S 219,imgs/us/m88.jpg,imgs/us/zn/zn_m88.jpg,imgs/us/zn/zn_m88.jpg,DE,tmp";
$data[]="w14,female,Mrs,Emma,Carpenter,6160,York Road,Bangor,West Yorkshire,United Kingdom,U7R 9ZW,45.6055,146.6627,-3:30,Newfoundland,emma.carpenter@example.com,a0aba864-567d-4acc-b324-cc68ccb9b864,sadpanda354,mRdMJoLLyc,130HXHSJ,8cbc60ef0b446b96b9cb8d6cf91f7894,9b597a258530002e2461dbdf1f7f154ab3185557,421c7d2e524f8f250a5f21bfc7eedf2f45cf6415b7377a54696df061fba9def5,1951-02-10T20:41:14.687Z,75,2015-10-30T01:14:00.476Z,10,015396 57305,07044 820550,NINO,KG 07 60 35 T,imgs/us/w14.jpg,imgs/us/zn/zn_w14.jpg,imgs/us/zn/zn_w14.jpg,GB,tmp";
$data[]="w60,female,Miss,Susanna,Wood,2320,Highfield Road,Dundee,Essex,United Kingdom,Z17 1XW,86.9696,-94.4735,+3:30,Tehran,susanna.wood@example.com,58b77e07-3657-4d98-a440-c7fba0d43345,purpleelephant955,sGTG,44M9g50b,2fb065a1288d4e9d783e137aa936ac45,0688277b38ce44808bc19248585e61fd4d4bc147,9f4b92e25be61a42d6e86947fd84ebaa62283ab442cb0fb5532c6c55da90b051,2000-06-24T23:28:06.708Z,26,2021-12-12T02:48:23.726Z,4,022 8619 8178,07326 788794,NINO,PL 98 01 25 Z,imgs/us/w60.jpg,imgs/us/zn/zn_w60.jpg,imgs/us/zn/zn_w60.jpg,GB,tmp";
$data[]="m77,male,Mr,Guy,Terry,8470,Hunters Creek Dr,Carlsbad,Mississippi,United States,12017,-56.1046,-3.7839,-2:00,Mid-Atlantic,guy.terry@example.com,12c11000-1836-457e-81d2-282985e3d6f4,greenwolf691,sHl,GZBfBFZS,c35ce20c167aeca26247adafdf093f56,eef19f4075ccb20cd9fec5d4b26c51bf601cf3de,8e9c40a387eaea20da9692309d78ff439c4d178ed9d2f99a35900a477ee4a3a0,1977-12-17T12:38:59.398Z,48,2017-04-11T05:30:17.640Z,9,(702) 640-9288,(323) 748-8337,SSN,702-14-4987,imgs/us/m77.jpg,imgs/us/zn/zn_m77.jpg,imgs/us/zn/zn_m77.jpg,US,tmp";
$data[]="w90,female,Miss,Maïwenn,Menard,2091,Rue des Ecrivains,Roubaix,Loire,France,21060,67.1782,138.5408,+3:30,Tehran,maiwenn.menard@example.com,69a30342-73cf-4b94-a68d-2bacc973ee6b,bigladybug767,gKgNdwtTFggmeclT,vhmFMXC5,301f56aa475d7b5401d7ac6c444b73fd,2574a6f6a16a63bc1093ecd7526048f6c1ddecca,7d9cabefd8f4e4fd87c8198a5c1f9e431c579be31efd59ec9d578c497539ec8f,1972-08-18T06:24:24.209Z,53,2020-07-11T14:39:19.013Z,6,02-42-14-77-32,06-03-90-50-34,INSEE,2720796915036 65,imgs/us/w90.jpg,imgs/us/zn/zn_w90.jpg,imgs/us/zn/zn_w90.jpg,FR,tmp";
$data[]="m40,male,Mr,Roland,Henry,6567,Mcclellan Rd,Edgewood,Maryland,United States,95285,76.9610,4.8838,-9:00,Alaska,roland.henry@example.com,301128b8-027f-4b25-aaff-b6777dcffab7,heavymouse159,YCTeqbwbVpmX,q6uyw55x,7f810400094760e76a8888f8e9efe89d,02dbea2bfc244feb5a6c39f9fed97a80a6916533,c2db8676e2ac73c23d293f653c08172ae923732d29d530c34f2e75d2707e8ceb,1983-02-08T07:23:11.815Z,43,2002-06-23T13:12:27.169Z,24,(395) 834-9518,(653) 689-8536,SSN,830-06-3205,imgs/us/m40.jpg,imgs/us/zn/zn_m40.jpg,imgs/us/zn/zn_m40.jpg,US,tmp";
$data[]="w14,female,Miss,Madeleine,Jakobs,259,Neue Straße,Ladenburg,Rheinland-Pfalz,Germany,74191,1.2320,-9.0954,-7:00,Mountain Time (US & Canada),madeleine.jakobs@example.com,decaa1be-3aaf-46f1-a8e3-bba03a3d2741,orangeelephant771,RAOkuQvX,f6HLML6K,b4c82026a9eba4161a1b8066286e763d,a8b57c0103cd796df833f2938439b47eb4b9af5e,d1aca47451f345695efc2dd4b71db72387b79b860face9a5c8a00a3f4836941f,1946-12-07T23:58:56.363Z,79,2010-07-24T02:39:19.226Z,16,0112-8146980,0176-8892390,SVNR,48 071246 J 540,imgs/us/w14.jpg,imgs/us/zn/zn_w14.jpg,imgs/us/zn/zn_w14.jpg,DE,tmp";
$data[]="w25,female,Ms,Ingeborg,Kolbeck,560,Ahornweg,Heidenheim an der Brenz,Saarland,Germany,50581,43.0242,-103.7925,-7:00,Mountain Time (US & Canada),ingeborg.kolbeck@example.com,aa98d3db-6c2b-41c3-a5c2-cd06c8a0f258,orangedog402,Rhsp,DanHJEK3,c14e2192465a79123aa58379e141dff8,8bf0eb09366f8637480e1500aad81e098145b954,38d39c87329d0345fc44154884a63bd6aeb1280690979dd8502adedfdfe6f434,1949-03-02T11:35:02.870Z,77,2021-05-26T14:45:58.558Z,5,0514-6035940,0172-3795708,SVNR,52 020349 K 550,imgs/us/w25.jpg,imgs/us/zn/zn_m25.jpg,imgs/us/zn/zn_w25.jpg,DE,tmp";
$data[]="m89,male,Mr,Adrian,Weimann,8738,Wiesenweg,Großenehrich,Berlin,Germany,85657,22.4174,50.6582,+5:45,Kathmandu,adrian.weimann@example.com,6dfa8cb9-8dd0-4190-aa25-eba8c243e20b,redfrog639,SVd,yscuENzf,69af6430056fedbea0408b51afbb2b6c,3e5852e264cee1edab6812960d9f36ee2e511cdd,862a273c4a414082de64699e5a0f9f92f8889feb89220c49172765647dd9b8d5,1946-09-12T06:18:39.612Z,79,2020-09-17T13:29:54.109Z,5,0599-1873615,0173-2233640,SVNR,53 120946 W 013,imgs/us/m89.jpg,imgs/us/zn/zn_m89.jpg,imgs/us/zn/zn_m89.jpg,DE,tmp";
$data[]="w31,female,Miss,Gesche,Breier,5926,Hauptstraße,Westerstede,Berlin,Germany,43524,29.2392,132.4477,+4:30,Kabul,gesche.breier@example.com,ab236b2b-0286-4647-a4f9-5ac49c4ececd,orangeostrich639,Cfl,kHJNK1c7,08f3a57694333f05f31a5ba6edad5536,8418981df1b516fbbc19114dd360c45b55d651c9,abdb54aa611045257a6f81de99e9432aac9b6321944673eea0202ecdbc3abcac,1986-02-23T09:28:12.883Z,40,2008-04-05T13:27:28.837Z,18,0716-9381648,0176-3382013,SVNR,76 230286 B 895,imgs/us/w31.jpg,imgs/us/zn/zn_m31.jpg,imgs/us/zn/zn_w31.jpg,DE,tmp";
$data[]="m8,male,Mr,Edward,Vasquez,4247,White Oak Dr,Boston,Nebraska,United States,44835,-0.8263,-58.4627,+3:30,Tehran,edward.vasquez@example.com,0fbdf52d-6405-47a6-9256-9a590ee8fe2d,crazydog804,mFsuwZGzFJxALC,WtdZSevd,e671bcbe75d0b40742e0447a3c8f88a1,5668ad84e8b9349140de1deba81b9ddabf2e0452,d87d9c10324f5595121c13ac741f04f3ca6cc48497fed0461a86b18c06d77f3f,1945-08-19T09:11:07.124Z,80,2010-12-25T14:15:39.930Z,15,(568) 792-2076,(361) 888-6354,SSN,541-16-3910,imgs/us/m8.jpg,imgs/us/zn/zn_m8.jpg,imgs/us/zn/zn_m8.jpg,US,tmp";
$data[]="w36,female,Mrs,Vera,Austin,4497,Lakeview St,Tacoma,New Jersey,United States,73382,53.8069,-41.8493,-2:00,Mid-Atlantic,vera.austin@example.com,92964465-a618-4055-9514-a96f25289a9d,goldenmeercat562,qrnhMRrvIOoJV,RVaWtH0n,c121c9f127abef095830e56c3deb5212,608b48e6e20bf6ac7d3903b49b782c1cfd519fc3,d3f87cbf4cbf264c99171ba94e3874076c463c54c76259f4a0f2f5c541580ed3,2001-04-04T11:05:33.966Z,25,2022-01-26T15:09:25.476Z,4,(667) 555-6767,(874) 602-5985,SSN,023-81-2210,imgs/us/w36.jpg,imgs/us/zn/zn_m36.jpg,imgs/us/zn/zn_w36.jpg,US,tmp";
$data[]="w24,female,Miss,Ava,Meyer,6548,Place de L'Abbé-Georges-Hénocque,Nîmes,Guyane,France,92792,-82.2325,160.3917,-10:00,Hawaii,ava.meyer@example.com,209b9a9b-45c2-4ae5-a2a7-da45d4025ec8,bigleopard379,EZrhNeBfjJGPDKf,hPw3sZBI,ffba1b40a2692fc53d843a0692947e91,a98001329532f1535413553933dbed8258f2bd96,cb260f865ffc436151d25651e5ac320b225e22f10538d1e6863248d5833ec253,1958-08-15T04:05:32.439Z,67,2013-08-16T14:57:45.772Z,12,05-68-19-66-29,06-45-63-68-14,INSEE,2580720958130 61,imgs/us/w24.jpg,imgs/us/zn/zn_m24.jpg,imgs/us/zn/zn_w24.jpg,FR,tmp";
$data[]="m68,male,Mr,Marvin,Hock,7216,Mittelstraße,Hemmingen,Nordrhein-Westfalen,Germany,89074,-64.1788,39.9291,-2:00,Mid-Atlantic,marvin.hock@example.com,36a3c5a8-e8bc-4898-b2a4-fb99a0f67d44,blackmouse191,BdnDA,XvBucdsw,58de7b418c25b3bb347aec5c0a4b033b,2d0a9d0b2e2660502ec7f9aa0dd6e186a3fcffb7,d6b1bc1c6451d991a1cf71c21e20fadb6b5486745867c07491cd69db206e4c7a,1998-11-17T02:55:42.044Z,27,2018-01-06T01:16:10.328Z,8,0511-2653698,0171-2098483,SVNR,20 161198 H 102,imgs/us/m68.jpg,imgs/us/zn/zn_m68.jpg,imgs/us/zn/zn_m68.jpg,DE,tmp";
$data[]="m84,male,Mr,Angel,Spencer,8930,Ash Dr,Scurry,New Hampshire,United States,34905,43.1739,98.8781,-10:00,Hawaii,angel.spencer@example.com,074f401f-8daf-4b3c-9d57-7c6426e43801,bluegoose466,hDGMkErY,du3WijPX,7928cb221707e2cb3ec4373ff9e85144,f1ca6d26a4cf9d72b05ac5bef6bf56e740d9e5aa,8ef53fe0864647e564794e7c956245bd404668f004a83430aa2faab2680b6bb2,1982-03-22T18:16:39.950Z,44,2003-07-16T11:09:54.080Z,23,(702) 226-0471,(944) 885-1008,SSN,406-72-4848,imgs/us/m84.jpg,imgs/us/zn/zn_m84.jpg,imgs/us/zn/zn_m84.jpg,US,tmp";
$data[]="m5,male,Mr,Jessie,Wallace,8621,Grove Road,Brighton and Hove,Hampshire,United Kingdom,RL9 2HH,11.4125,-113.7230,-2:00,Mid-Atlantic,jessie.wallace@example.com,d5bc5e75-daca-4ed0-bed5-56e340d809d2,happybear915,nFegQr,kseSj2BK,26ddd7c4850ef9e0cf78d741920dcfb7,2f54238fbd7060851deac90b534f0517429d94a1,1ba40e49a60e4d518814fc07b8311fcddfbeed1e2b4bbd497d40e705013653a1,1952-01-26T22:26:43.737Z,74,2019-05-14T18:51:05.594Z,7,016974 30408,07590 846939,NINO,XA 48 41 13 W,imgs/us/m5.jpg,imgs/us/zn/zn_m5.jpg,imgs/us/zn/zn_m5.jpg,GB,tmp";
$data[]="w32,female,Ms,Layla,Little,2788,Depaul Dr,Pompano Beach,New Hampshire,United States,75604,-15.7944,-67.9862,-7:00,Mountain Time (US & Canada),layla.little@example.com,98ff59ab-7889-4b9b-8c69-048fc8044e14,redmeercat768,ofnFldIzcQ,xoLJLd01,a1c174e2c60ec90a70533daf0b2bf838,c26b49eee85cecfd96f8b8d2a7707942dce7da49,0a60d3a9b92db7653410c4bc5e2c5fcf04bc58af9b75ef37ef270a67b3f8b3eb,1955-06-01T07:53:52.274Z,71,2005-07-29T06:12:43.878Z,21,(430) 336-8757,(287) 303-8058,SSN,756-52-7195,imgs/us/w32.jpg,imgs/us/zn/zn_m32.jpg,imgs/us/zn/zn_w32.jpg,US,tmp";
$data[]="m79,male,Mr,Judd,Larson,9155,Homestead Rd,Roanoke,Mississippi,United States,42676,-63.5086,-71.8425,-8:00,Pacific Time (US & Canada),judd.larson@example.com,03fec16e-072e-4af8-b55e-f1e0687977b3,purpleleopard639,ii,ADex4u89,e83c5bf768e0d7918067c61b07882580,ffcb8e78114bfc54061a69adae94ea02cd2fe940,f8ceecd98b2b8f312dba2a563ec0c6adda6fc8917cdcaf6f020d8b8756f28a01,1995-11-14T15:33:02.775Z,30,2011-03-07T04:16:26.876Z,15,(685) 688-2027,(265) 252-9523,SSN,190-23-4102,imgs/us/m79.jpg,imgs/us/zn/zn_m79.jpg,imgs/us/zn/zn_m79.jpg,US,tmp";
$data[]="w81,female,Ms,Léonie,Chevalier,7368,Rue Abel-Hovelacque,Orléans,Gard,France,88812,88.9098,-151.1092,-3:30,Newfoundland,leonie.chevalier@example.com,0fe6eeb2-32c6-4233-9de2-c501aefeb842,blackswan894,coXCn,CthAvdpg,7c74f8425a4bc308465d3497e1c9276f,b76e1f161533566937e3057d95f695ef4d7ab3a5,3582695dbb79f022257536ab25873e7ee48acc0af199d072ef372b20d89d8958,1959-01-12T23:13:22.049Z,67,2013-01-21T04:06:06.066Z,13,01-33-61-05-06,06-26-08-00-81,INSEE,2590046531474 24,imgs/us/w81.jpg,imgs/us/zn/zn_m81.jpg,imgs/us/zn/zn_w81.jpg,FR,tmp";
$data[]="m49,male,Mr,Daniel,Torres,3933,Mockingbird Ln,Fairfield,Hawaii,United States,63012,-50.1710,56.8472,-8:00,Pacific Time (US & Canada),daniel.torres@example.com,45457a56-ba59-4ec5-b500-45409c002a1f,bluelion631,wowJEYis,IlRN83Od,86e046b26452a7fa48eb51cc7e999f4f,3593c720cf5d20091c0f9324b314c7052557536f,163464c566265eb6ac074454652b2965c00b679796188e6879830048224ebcbb,1956-10-28T18:59:19.361Z,69,2018-05-19T11:34:16.419Z,8,(205) 366-2065,(752) 900-5580,SSN,160-37-5929,imgs/us/m49.jpg,imgs/us/zn/zn_m49.jpg,imgs/us/zn/zn_m49.jpg,US,tmp";
$data[]="m12,male,Mr,Jesse,Payne,8490,Green Lane,Lichfield,Hampshire,United Kingdom,Y2 4QW,60.5226,29.0676,-9:00,Alaska,jesse.payne@example.com,7f5ea77c-4cb0-46fe-940d-1e0d9405ec22,blueswan252,yuteOmoVurrmegti,65fI9OYZ,fba57512ee0656f06ba3512b6c025f58,3964b0237fc25230483fbf89773e622a3955cad3,73bfa0744bad4743ac880f4de094ca317553112b364af9f0b40b4be33825d5ec,1957-12-04T04:58:26.762Z,68,2009-10-31T23:07:00.370Z,16,019467 75204,07596 375841,NINO,SR 78 64 29 X,imgs/us/m12.jpg,imgs/us/zn/zn_m12.jpg,imgs/us/zn/zn_m12.jpg,GB,tmp";
$data[]="w64,female,Ms,Terra,Fernandez,9429,Lakeview St,Wichita Falls,Connecticut,United States,23855,86.2900,151.6204,+4:30,Kabul,terra.fernandez@example.com,3a545cfe-5f45-4a92-b4cc-e385a447b2d8,goldenleopard486,MsHZPEjJUbW,F5mSUOdn,efa702139f43db383937f79ef77abf93,44ab364e2b541fd0864b98f3aab41d55554418fd,a891d2373b44d346bff54b859f2868127a807db1cd7073e3a3e2616a24a919d3,1984-05-19T03:16:58.286Z,42,2016-07-16T08:01:55.017Z,10,(391) 693-3449,(277) 638-7714,SSN,541-21-3536,imgs/us/w64.jpg,imgs/us/zn/zn_m64.jpg,imgs/us/zn/zn_w64.jpg,US,tmp";
$data[]="m57,male,Mr,Loan,Fabre,922,Rue Abel,Grenoble,Lozère,France,43102,-70.5490,9.0172,-3:30,Newfoundland,loan.fabre@example.com,3a7f3441-e11f-4403-aa34-3113dfe2a683,blueostrich385,pdTeVOfePOoL,vPKZY1Ka,6df92881fc8b12a6b3695f91de1f525e,657aec07f597590a9ec9a1d8048d29744e85bfaa,4235e43a01b622a946e4cb638570ec708ffea990cd9e6d85f692b2c5786e8b87,1975-01-14T17:02:00.728Z,51,2017-11-13T13:14:03.372Z,8,03-47-96-56-51,06-97-22-27-52,INSEE,1750093437974 50,imgs/us/m57.jpg,imgs/us/zn/zn_m57.jpg,imgs/us/zn/zn_m57.jpg,FR,tmp";
$data[]="m70,male,Mr,Fabien,Roy,689,Montée Saint-Barthélémy,Caen,Loiret,France,42261,53.6375,98.9323,+4:30,Kabul,fabien.roy@example.com,eda1fe45-2b51-4a44-8331-e338a09242c4,saddog773,ECqLzF,x11SDHgc,01932413641e642293f35830636a9d2a,1608f609769bf8e87e9bbb481b9aea1e27181a77,69b849ae9e570401badbd2ef1d8baa6860cf589c6fd2b428b9254d88df70df12,1975-12-07T16:31:08.513Z,50,2003-07-17T15:42:36.582Z,23,02-65-79-57-05,06-49-96-19-02,INSEE,1751145762578 25,imgs/us/m70.jpg,imgs/us/zn/zn_m70.jpg,imgs/us/zn/zn_m70.jpg,FR,tmp";
$data[]="m85,male,Mr,Logan,Black,643,Kingsway,City of London,Somerset,United Kingdom,M6M 2TN,45.2122,8.7981,-9:00,Alaska,logan.black@example.com,89e5da0e-da10-4cd9-b1bc-ba9f836c001b,beautifulgorilla159,j,D7vwF2Pb,8265c61d4e665301028ec26786a79438,64c5755e8f48528d0417e96b594af93e78852fb4,2dfbd3731409d32613a5ffcd3313817ff17a285a7572db1ec73da1a24bcc6aa5,1978-06-30T03:38:38.542Z,48,2010-10-29T15:24:12.746Z,15,015395 52503,07016 114149,NINO,WL 56 61 92 V,imgs/us/m85.jpg,imgs/us/zn/zn_m85.jpg,imgs/us/zn/zn_m85.jpg,GB,tmp";
$data[]="m53,male,Mr,Clemens,Drees,3330,Lindenweg,Wassenberg,Saarland,Germany,11269,-79.9325,172.9441,-9:00,Alaska,clemens.drees@example.com,bf20922b-6b5a-44b8-95d2-efd2d5139358,bigladybug692,jQ,eAcWwCTk,b5221695a33c13ee8480e1252aa3941f,1bdba1a2d714948ded59513b4547c27199cd4b46,a894e6fd69ad81f1a2c888be4698ea7eb57c613e9e634caf716a8e3eace3aaef,1962-10-25T17:37:57.478Z,63,2015-04-26T00:17:32.584Z,11,0886-1469727,0174-3266300,SVNR,70 251062 D 425,imgs/us/m53.jpg,imgs/us/zn/zn_m53.jpg,imgs/us/zn/zn_m53.jpg,DE,tmp";
$data[]="m80,male,Mr,George,Patterson,8973,Locust Rd,Woodbridge,Arizona,United States,40277,29.8828,19.6384,+4:30,Kabul,george.patterson@example.com,0864181e-c09d-4bf5-b7bc-9a1163c88d24,angrypanda761,dFQceyNGug,7q39LQJn,0dd947c248e4ace4aadc99e535893e63,fa3f28fb2b201bcdc1012bf5fbfd2489addc1e54,8a9bb357669421be1fe4d972edb8db838e560050e67cd9ec1a931650fa3bdf0a,1975-03-13T12:52:36.948Z,51,2005-10-18T12:30:45.739Z,20,(875) 712-7126,(567) 905-2127,SSN,877-98-9649,imgs/us/m80.jpg,imgs/us/zn/zn_m80.jpg,imgs/us/zn/zn_m80.jpg,US,tmp";
$data[]="m19,male,Mr,Phillip,Snyder,162,W Pecan St,Jacksonville,Iowa,United States,88479,67.9416,-155.7341,-2:00,Mid-Atlantic,phillip.snyder@example.com,33c55bf7-7ecb-4379-b7a6-f4498826ff3b,lazypeacock820,BLboZexG,LoLyLCJ2,c037822ee5049c9bedca62449c19fa48,84f512e9df9367f0914e881ee3f06b13df876d7e,431b4f5161ad83784bd823e79e1b23ab8252cc913b2a70bd4f9f4431b92b240f,1950-05-21T13:58:25.079Z,76,2008-07-04T14:26:46.455Z,18,(327) 485-5788,(828) 808-6828,SSN,163-42-0342,imgs/us/m19.jpg,imgs/us/zn/zn_m19.jpg,imgs/us/zn/zn_m19.jpg,US,tmp";
$data[]="m20,male,Mr,Bryan,Kelly,2649,Victoria Road,Ripon,Northamptonshire,United Kingdom,A2 1DX,-26.0805,-162.8766,-9:00,Alaska,bryan.kelly@example.com,174f9608-c4ed-474c-99a8-2314dfac8ab9,organicdog135,EssI,pQThwdbO,81c87985b9e88f45361b6486a7abbe32,df10b8ecbbe9653deadb989d17dcadea196d14ac,127f23fec495672fe8c676d621ce498c1e4176e58d09fd42433e7682aa56ab61,1972-05-09T23:50:25.854Z,54,2011-06-07T01:17:43.194Z,15,017684 05922,07587 076357,NINO,YS 30 66 43 Z,imgs/us/m20.jpg,imgs/us/zn/zn_m20.jpg,imgs/us/zn/zn_m20.jpg,GB,tmp";
$data[]="m21,male,Mr,Chester,Hall,6259,Windsor Road,Glasgow,Central,United Kingdom,M4I 5AQ,3.4828,46.4264,-7:00,Mountain Time (US & Canada),chester.hall@example.com,68862f72-5a94-429b-a929-520628723882,happyleopard391,dSLcwF,FAxVjcTl,533b1b7a0651e9a900ca0010b2ca9d78,cf320ac33b70df177790ba55e143ff371aad3ad2,d25ae9198c9c1cc7aafa5cad20e44a1fdd169d68283eab45403c5c5dc44f56e2,1992-05-23T06:47:47.961Z,34,2011-12-27T10:37:03.766Z,14,017683 43405,07142 519319,NINO,ZM 27 70 49 Z,imgs/us/m21.jpg,imgs/us/zn/zn_m21.jpg,imgs/us/zn/zn_m21.jpg,GB,tmp";
$data[]="w86,female,Miss,Mia,Menard,3675,Avenue du Fort-Caire,Le Mans,Creuse,France,63149,-80.9065,120.6640,-10:00,Hawaii,mia.menard@example.com,b3276d66-b0bd-41d0-ac31-5ca36a27e25f,goldenswan112,LCPErrOeKXCefkR,uq2iSoPB,40c926edfc96a1599c97d46702d4d9ef,1fe6bf89ddc8e0c5eef0182ae8a74cf41f0e05a2,f6024a0a9ff7177ee6f71cc8692bb51401419b97a1002397f4b73df31289d575,1962-09-06T22:31:48.601Z,63,2016-05-29T01:19:58.527Z,10,04-68-37-53-92,06-65-85-92-37,INSEE,2620861778307 20,imgs/us/w86.jpg,imgs/us/zn/zn_m86.jpg,imgs/us/zn/zn_w86.jpg,FR,tmp";
$data[]="w84,female,Ms,Laly,Fleury,3546,Place du 8 Novembre 1942,Versailles,Hérault,France,49072,81.5179,20.7554,+3:30,Tehran,laly.fleury@example.com,4730dcf1-86ed-4a18-846a-c94c42de615e,redrabbit885,qBVaoFoCF,5nNcgtKJ,283c6c44ded795c3648281649621ef16,237297049e851457f7e96e356f160c36b7d1dcf0,4917feee741b0b5e5b1e3ca90b5217eee31d398d06250af9afdaf172cc22e573,1947-11-11T10:47:02.350Z,78,2004-03-12T00:41:25.957Z,22,01-53-64-71-80,06-27-63-20-64,INSEE,2471043738790 50,imgs/us/w84.jpg,imgs/us/zn/zn_m84.jpg,imgs/us/zn/zn_w84.jpg,FR,tmp";
$data[]="m88,male,Mr,Hansjörg,Severin,6431,Bergstraße,Kemnath,Nordrhein-Westfalen,Germany,25938,-69.8403,118.5915,+3:30,Tehran,hansjorg.severin@example.com,ea1f0f9b-fafa-4b36-9c60-c715c17bb6ce,crazycat619,Zx,jiVNePVO,69b85e394c621c5f6d456c68df86f497,cb6edef8b5619f8a0e40c1f29ccc44b9cb44e71d,14841e11d2ed3b38339261ec6067b8c444dd9f6729dac89f46d17af889cd1d63,1956-10-27T09:08:20.215Z,69,2021-04-25T10:22:44.422Z,5,0546-0110651,0172-1727194,SVNR,60 271056 S 219,imgs/us/m88.jpg,imgs/us/zn/zn_m88.jpg,imgs/us/zn/zn_m88.jpg,DE,tmp";
$data[]="w14,female,Mrs,Emma,Carpenter,6160,York Road,Bangor,West Yorkshire,United Kingdom,U7R 9ZW,45.6055,146.6627,-3:30,Newfoundland,emma.carpenter@example.com,a0aba864-567d-4acc-b324-cc68ccb9b864,sadpanda354,mRdMJoLLyc,130HXHSJ,8cbc60ef0b446b96b9cb8d6cf91f7894,9b597a258530002e2461dbdf1f7f154ab3185557,421c7d2e524f8f250a5f21bfc7eedf2f45cf6415b7377a54696df061fba9def5,1951-02-10T20:41:14.687Z,75,2015-10-30T01:14:00.476Z,10,015396 57305,07044 820550,NINO,KG 07 60 35 T,imgs/us/w14.jpg,imgs/us/zn/zn_m14.jpg,imgs/us/zn/zn_w14.jpg,GB,tmp";
$data[]="w60,female,Miss,Susanna,Wood,2320,Highfield Road,Dundee,Essex,United Kingdom,Z17 1XW,86.9696,-94.4735,+3:30,Tehran,susanna.wood@example.com,58b77e07-3657-4d98-a440-c7fba0d43345,purpleelephant955,sGTG,44M9g50b,2fb065a1288d4e9d783e137aa936ac45,0688277b38ce44808bc19248585e61fd4d4bc147,9f4b92e25be61a42d6e86947fd84ebaa62283ab442cb0fb5532c6c55da90b051,2000-06-24T23:28:06.708Z,26,2021-12-12T02:48:23.726Z,4,022 8619 8178,07326 788794,NINO,PL 98 01 25 Z,imgs/us/w60.jpg,imgs/us/zn/zn_m60.jpg,imgs/us/zn/zn_w60.jpg,GB,tmp";
$data[]="m77,male,Mr,Guy,Terry,8470,Hunters Creek Dr,Carlsbad,Mississippi,United States,12017,-56.1046,-3.7839,-2:00,Mid-Atlantic,guy.terry@example.com,12c11000-1836-457e-81d2-282985e3d6f4,greenwolf691,sHl,GZBfBFZS,c35ce20c167aeca26247adafdf093f56,eef19f4075ccb20cd9fec5d4b26c51bf601cf3de,8e9c40a387eaea20da9692309d78ff439c4d178ed9d2f99a35900a477ee4a3a0,1977-12-17T12:38:59.398Z,48,2017-04-11T05:30:17.640Z,9,(702) 640-9288,(323) 748-8337,SSN,702-14-4987,imgs/us/m77.jpg,imgs/us/zn/zn_m77.jpg,imgs/us/zn/zn_m77.jpg,US,tmp";
$data[]="w90,female,Miss,Maïwenn,Menard,2091,Rue des Ecrivains,Roubaix,Loire,France,21060,67.1782,138.5408,+3:30,Tehran,maiwenn.menard@example.com,69a30342-73cf-4b94-a68d-2bacc973ee6b,bigladybug767,gKgNdwtTFggmeclT,vhmFMXC5,301f56aa475d7b5401d7ac6c444b73fd,2574a6f6a16a63bc1093ecd7526048f6c1ddecca,7d9cabefd8f4e4fd87c8198a5c1f9e431c579be31efd59ec9d578c497539ec8f,1972-08-18T06:24:24.209Z,53,2020-07-11T14:39:19.013Z,6,02-42-14-77-32,06-03-90-50-34,INSEE,2720796915036 65,imgs/us/w90.jpg,imgs/us/zn/zn_m90.jpg,imgs/us/zn/zn_w90.jpg,FR,tmp";
$data[]="m40,male,Mr,Roland,Henry,6567,Mcclellan Rd,Edgewood,Maryland,United States,95285,76.9610,4.8838,-9:00,Alaska,roland.henry@example.com,301128b8-027f-4b25-aaff-b6777dcffab7,heavymouse159,YCTeqbwbVpmX,q6uyw55x,7f810400094760e76a8888f8e9efe89d,02dbea2bfc244feb5a6c39f9fed97a80a6916533,c2db8676e2ac73c23d293f653c08172ae923732d29d530c34f2e75d2707e8ceb,1983-02-08T07:23:11.815Z,43,2002-06-23T13:12:27.169Z,24,(395) 834-9518,(653) 689-8536,SSN,830-06-3205,imgs/us/m40.jpg,imgs/us/zn/zn_m40.jpg,imgs/us/zn/zn_m40.jpg,US,tmp";
$data[]="w14,female,Miss,Madeleine,Jakobs,259,Neue Straße,Ladenburg,Rheinland-Pfalz,Germany,74191,1.2320,-9.0954,-7:00,Mountain Time (US & Canada),madeleine.jakobs@example.com,decaa1be-3aaf-46f1-a8e3-bba03a3d2741,orangeelephant771,RAOkuQvX,f6HLML6K,b4c82026a9eba4161a1b8066286e763d,a8b57c0103cd796df833f2938439b47eb4b9af5e,d1aca47451f345695efc2dd4b71db72387b79b860face9a5c8a00a3f4836941f,1946-12-07T23:58:56.363Z,79,2010-07-24T02:39:19.226Z,16,0112-8146980,0176-8892390,SVNR,48 071246 J 540,imgs/us/w14.jpg,imgs/us/zn/zn_m14.jpg,imgs/us/zn/zn_w14.jpg,DE,tmp";
$data[]="img,gender,title,fname,lname,str_no,str_name,city,state,country,zip,coord_lat,coord_long,tz_offset,tz_descr,email,login_uuid,login_user,login_pass,login_salt,login_md5,login_sha1,login_sha256,dob_date,dob_age,reg_dt,reg_age,phn,cell,id_name,id_val,img,tn,tmp,nat,tmp";
$data[]="img,gender,title,fname,lname,str_no,str_name,city,state,country,zip,coord_lat,coord_long,tz_offset,tz_descr,email,login_uuid,login_user,login_pass,login_salt,login_md5,login_sha,login_sha256,dob_date,dob_age,reg_dt,reg_age,phn,cell,id_name,id_val,img,imgs/us/tn/tn_img.jpg,imgs/us/zn/zn_img.jpg,nat,tmp";
$data[]="m11,male,Mr,Terrence,Larson,681,Broadway,Guam,Greater Manchester,United Kingdom,zip,56.2487,-75.2567,+10:00,Eastern Australia,terrence.larson@example.com,Vladivostok,terrence.larson@example.com,e8f10663-189b-4650-95fe-0441ea7d516e,tinymouse518,5759c0fb60b88fc73f662f40d15f99f9f9115cc5,9d313b2189939df780a82d9626de55f71ab005c2a27280cb672ee147c22de373,dc3a8e781d914efe7e613295c18468dd,5759c0fb60b88fc73f662f40d15f99f9f9115cc5,9d313b2189939df780a82d9626de55f71ab005c2a27280cb672ee147c22de373,2008-09-20T10:08:59.366Z,17,2008-09-20T10:08:59.366Z,17,0117113 717 8047,07701 533248,imgs/us/m11.jpg,imgs/us/tn/tn_m11.jpg,imgs/us/zn/zn_m11.jpg,nat,tmp";
$data[]="w18,female,Ms,Gretchen,Wiens,1320,Waldweg,Calcutta,Berlin,Germany,27370,7.9245,-18.1901,+5:30,Bombay,gretchen.wiens@example.com,Madras,gretchen.wiens@example.com,gretchen.wiens@example.com,7b2005b7-7038-4979-a35a-dc8251f4827a,d1289652ee3026d79ab3b7b43d2f7f39,bedc3ebd3c598595f9e5c161137441dc9fe91a467acc0027a0b8cd2d8738f7b1,sTUPOwI6,d1289652ee3026d79ab3b7b43d2f7f39,5f652f7197bb003fcecb24be6da4383be53dd824,2022-01-27T04:29:03.149Z,4,40,2022-01-27T04:29:03.149Z,4,0155-4605855,imgs/us/w18.jpg,imgs/us/tn/tn_w18.jpg,imgs/us/zn/zn_w18.jpg,nat,tmp";
$data[]="w32,female,Ms,Lyna,Roy,7928,Rue Abel,Bogota,Gironde,France,53560,-22.0731,-94.7165,-5:00,Eastern Time (US & Canada),lyna.roy@example.com,Lima,lyna.roy@example.com,119050bc-c03b-4b7e-9bf0-a09bef8b6807,bluesnake395,4fac357dc23f2d582ae2b674372a4dd943632246,b4a8b0babd177210d843927124fc383f81aeb587794928287968a362df8fbc65,13dfbc07bca95435963f30fef4534b42,4fac357dc23f2d582ae2b674372a4dd943632246,b4a8b0babd177210d843927124fc383f81aeb587794928287968a362df8fbc65,2017-05-24T05:45:11.886Z,9,2017-05-24T05:45:11.886Z,9,05-43-86-76-98,06-04-98-33-38,imgs/us/w32.jpg,imgs/us/tn/tn_w32.jpg,imgs/us/zn/zn_w32.jpg,nat,tmp";
$data[]="w45,female,Miss,Sylvia,Sanchez,8825,Adams St,London,Florida,United States,91948,39.2535,-22.1311,0:00,Western Europe Time,sylvia.sanchez@example.com,Lisbon,sylvia.sanchez@example.com,sylvia.sanchez@example.com,8c3d0ce1-6a46-4028-a3bc-6dbcecc401b0,171500fdd099989a7e8e2de068b2ffee,21766a7b27516ba72a9023356d9f598d9d1634210b6ea8128bb4084241c3f780,P9I0vv30,171500fdd099989a7e8e2de068b2ffee,b2ece6adc99ed51a611eb2f9e41342b4a8f5b563,2012-02-01T20:13:15.231Z,14,(889) 849-0886,2012-02-01T20:13:15.231Z,14,(721) 634-7064,imgs/us/w45.jpg,imgs/us/tn/tn_w45.jpg,imgs/us/zn/zn_w45.jpg,nat,tmp";
$data[]="m98,male,Mr,Klaus-D.,Suhr,6182,Uhlandstraße,Riyadh,Baden-Württemberg,Germany,88599,-88.4338,167.1955,+3:00,Baghdad,klaus-d.suhr@example.com,Moscow,klaus-d.suhr@example.com,klaus-d..suhr@example.com,981f7ad5-eaf6-4643-9718-223104b8730a,975826a80a4ae7aa08f363fecdf68221,1f6349e41e2d6ff6ea9aa4ce2f5ab6e64876cac3812ecda00b1b4438472f7a43,Ahc9lpYz,975826a80a4ae7aa08f363fecdf68221,06c358bcceeddd5ffbc8714c0cc31db7deb8f39b,2020-06-23T02:09:45.809Z,6,64,2020-06-23T02:09:45.809Z,6,0952-5854939,imgs/us/m98.jpg,imgs/us/tn/tn_m98.jpg,imgs/us/zn/zn_m98.jpg,nat,tmp";
$data[]="w84,female,Mrs,Margita,Schroll,4036,Kirchstraße,Bogota,Hamburg,Germany,82834,-10.4634,-74.5583,-5:00,Eastern Time (US & Canada),emain,Lima,margita.schroll@example.com,e96f186c-50db-4151-9b1d-ee72f12f0304,angryduck798,3e1b1dfe4068e6cbd171ddcc6b508d695c235000,70700d7fea4e475e304b9a405d3097455f2d4ab6b4a03f346a7c186c0979024e,95e6836ec6b665e6e7462120a740821d,3e1b1dfe4068e6cbd171ddcc6b508d695c235000,70700d7fea4e475e304b9a405d3097455f2d4ab6b4a03f346a7c186c0979024e,2018-11-20T17:07:18.490Z,7,2018-11-20T17:07:18.490Z,7,0382-1553001,0179-5669854,imgs/us/w84.jpg,imgs/us/tn/tn_w84.jpg,imgs/us/zn/zn_w84.jpg,nat,tmp";
$data[]="w76,female,Ms,Ann,Silva,5208,Frances Ct,Perth,South Carolina,United States,61663,-59.1133,101.6574,+8:00,Beijing,ann.silva@example.com,Singapore,ann.silva@example.com,ann.silva@example.com,0616adbe-330b-4939-acdd-a5979611b5f3,be128cd58324310b45d1a96fa9f7dbc3,3c4e5c01454a1cb3e757dcf687ad46e79743cffd702bba9f4e60dd3b3ad44646,YpkAoYBu,be128cd58324310b45d1a96fa9f7dbc3,07aa42b02145b894a0c1e801b2dd683b405ffb6f,2016-12-15T05:53:38.615Z,9,(759) 786-0512,2016-12-15T05:53:38.615Z,9,(515) 386-3083,imgs/us/w76.jpg,imgs/us/tn/tn_w76.jpg,imgs/us/zn/zn_w76.jpg,nat,tmp";
$data[]="m21,male,Mr,Arnold,Stewart,7642,The Green,Calcutta,Tyne and Wear,United Kingdom,zip,-40.7702,-115.1696,+5:30,Bombay,arnold.stewart@example.com,Madras,arnold.stewart@example.com,arnold.stewart@example.com,08a2b41a-3a5e-42a5-a4d7-9e17da4909a2,c46997b028ee7ebddb74e9cb2bd21dbf,a5f2681ae83cf161b4dc4881759ec33b9198695aea1a1443d95538c53229f068,FFjQcmml,c46997b028ee7ebddb74e9cb2bd21dbf,d53662c224994181728f300804c4076afaf428da,2003-11-13T10:59:11.476Z,22,41,2003-11-13T10:59:11.476Z,22,01586 606198,imgs/us/m21.jpg,imgs/us/tn/tn_m21.jpg,imgs/us/zn/zn_m21.jpg,nat,tmp";
$data[]="w27,female,Miss,Ellen,Edwards,8156,Grove Road,Perth,Derbyshire,United Kingdom,zip,-66.3685,-73.6702,+8:00,Beijing,ellen.edwards@example.com,Singapore,ellen.edwards@example.com,ellen.edwards@example.com,13918439-4ebe-42e9-b3e7-8b5ad2730f8d,1aaa8319670c2b95d1bc1e0aa8bf5f79,982acdfa5ef2c313b3d13abfa47100a318545ee2c942fc4faa21a5b77d285512,KDcQM5VH,1aaa8319670c2b95d1bc1e0aa8bf5f79,166ef3f995f60c30451e49fa61403ecf45c43bee,2004-11-29T12:51:11.011Z,21,61,2004-11-29T12:51:11.011Z,21,015394 19761,imgs/us/w27.jpg,imgs/us/tn/tn_w27.jpg,imgs/us/zn/zn_w27.jpg,nat,tmp";
$data[]="w59,female,Miss,Debbie,Ferguson,1836,Spring St,Hanoi,Massachusetts,United States,83989,-66.8871,38.3908,+7:00,Bangkok,debbie.ferguson@example.com,Jakarta,debbie.ferguson@example.com,66b1b6dd-ed7e-40de-aaf9-8743a5a5f532,goldendog257,26ee3bb4de10532443e93511f2962a049f59ee27,cfa1b9f993ffc820819dd7a7f6194ffe100602cbd51ab2db9d2b98e67123adb3,cbef183a4a8d91c7b1fc45ceb0408308,26ee3bb4de10532443e93511f2962a049f59ee27,cfa1b9f993ffc820819dd7a7f6194ffe100602cbd51ab2db9d2b98e67123adb3,2000-11-14T09:04:26.247Z,21,706-80-8097,21,(428) 997-0574,(287) 314-4843,imgs/us/w59.jpg,imgs/us/tn/tn_w59.jpg,imgs/us/zn/zn_w59.jpg,nat,tmp";
$data[]="m42,male,Mr,Frank,Rhodes,2176,James St,Muscat,Delaware,United States,51146,54.3140,-111.0160,+4:00,Abu Dhabi,frank.rhodes@example.com,Baku,frank.rhodes@example.com,frank.rhodes@example.com,5cc71433-aa1a-4c18-ba3a-b897e852af3f,eaa522f966805069aa75a9c6b4c7ecf0,8b413c120687556d1e03c6fbed790febc84a2abcea030416f51fac0cf3fb7bff,4lx0r1NB,eaa522f966805069aa75a9c6b4c7ecf0,3bde42d2e4fcd78534184017fc2b8da7403b2d69,2017-04-06T01:07:16.691Z,9,(952) 520-8790,2017-04-06T01:07:16.691Z,9,(851) 824-3645,imgs/us/m42.jpg,imgs/us/tn/tn_m42.jpg,imgs/us/zn/zn_m42.jpg,nat,tmp";
$data[]="w93,female,Miss,Natalie,Messerschmidt,2665,Blumenstrasse,Dhaka,Schleswig-Holstein,Germany,45320,-23.9341,66.0892,+6:00,Almaty,natalie.messerschmidt@example.com,Colombo,natalie.messerschmidt@example.com,8c2910fd-c2c7-4009-84e2-0577bf719bba,happytiger490,343e697b7f25c3fc28b79533d019ca40675e4766,604c9e51e2b98044a2453ce88aea4e086ca2539b4136009554a509417575c60b,ae65e33d0bc24a45f4dc75637dc35278,343e697b7f25c3fc28b79533d019ca40675e4766,604c9e51e2b98044a2453ce88aea4e086ca2539b4136009554a509417575c60b,2015-08-30T07:58:35.085Z,10,2015-08-30T07:58:35.085Z,10,0952-2280533,0172-6724091,imgs/us/w93.jpg,imgs/us/tn/tn_w93.jpg,imgs/us/zn/zn_w93.jpg,nat,tmp";
$data[]="0117653 233 4867,female,Ms,Suzanna,Butler,6884,King Street,Seoul,Gwent,United Kingdom,zip,-13.6788,-134.2590,+9:00,Tokyo,email,Osaka, Sapporo,login_pass,suzanna.butler@example.com,MOfeQL2q,7d1d333d763f5ed4afff6231a4be4c5091278356ab325dd19b7443bc3379aae6,LFh,MOfeQL2q,36405b7443e582a9752079ec4956e662,2016-05-30T12:44:45.842Z,10,1968-12-27T19:34:05.045Z,57,2016-05-30T12:44:45.842Z,10,imgs/us/w29.jpg,imgs/us/tn/tn_0117653 233 4867.jpg,imgs/us/zn/zn_0117653 233 4867.jpg,nat,tmp";
$data[]="m65,male,Mr,Jules,Dupont,1957,Rue Pierre-Delore,Perth,Mayotte,France,79547,-70.6011,-145.9652,+8:00,Beijing,jules.dupont@example.com,Singapore,jules.dupont@example.com,jules.dupont@example.com,1d70ab37-d6ec-417e-9d31-7d241b2d795c,fc99afca8f231cac0baffe1374a19dbc,ef326bdf2be02e09f1fe7884dabb2825e77413991851b407e966ebef32de412a,npeHuxXS,fc99afca8f231cac0baffe1374a19dbc,b5fac74eed690a4b5bced6b7d6c7f3c0744919b3,2004-12-12T15:13:01.359Z,21,47,2004-12-12T15:13:01.359Z,21,01-97-43-75-56,imgs/us/m65.jpg,imgs/us/tn/tn_m65.jpg,imgs/us/zn/zn_m65.jpg,nat,tmp";
$data[]="m28,male,Mr,Zack,Chapman,871,Bruce St,Copenhagen,Illinois,United States,44950,-72.0399,27.8606,+1:00,Brussels,zack.chapman@example.com,Madrid,zack.chapman@example.com,zack.chapman@example.com,a5d60e2d-06bc-443e-b85a-163ed597bb4c,0d4a3f25844f6e741fec85f1783a5b12,02916aa8195c5bd351acc1d8126b6537239875304575d139c9c4f6cb328dd245,1veNf0PH,0d4a3f25844f6e741fec85f1783a5b12,8fc9da960568515695e9086b5867bdd16c462d28,2004-11-19T03:50:24.459Z,21,(790) 502-0202,2004-11-19T03:50:24.459Z,21,(750) 500-6961,imgs/us/m28.jpg,imgs/us/tn/tn_m28.jpg,imgs/us/zn/zn_m28.jpg,nat,tmp";
$data[]="m41,male,Mr,Mael,Garnier,6668,Rue de Bonnel,Guam,Tarn-et-Garonne,France,30771,-64.3844,-150.9730,+10:00,Eastern Australia,mael.garnier@example.com,Vladivostok,mael.garnier@example.com,be5df56e-e506-40d1-9aa3-f7a4f192bf95,silverbutterfly984,60f59b75fb6c619359e2a753515849a659e37d84,72a79776f4156494ec21fd27d6320a3aa8bd85d0a4463dc677817f3ab27dfd7e,25ea7e709322f4867e07229ac663f003,60f59b75fb6c619359e2a753515849a659e37d84,72a79776f4156494ec21fd27d6320a3aa8bd85d0a4463dc677817f3ab27dfd7e,2012-09-20T12:01:46.696Z,13,2012-09-20T12:01:46.696Z,13,05-53-50-20-95,06-93-84-41-87,imgs/us/m41.jpg,imgs/us/tn/tn_m41.jpg,imgs/us/zn/zn_m41.jpg,nat,tmp";
$data[]="m29,male,Mr,Arthur,Legrand,742,Rue Chaziere,Bogota,Haute-Loire,France,44470,10.0925,139.5695,-5:00,Eastern Time (US & Canada),arthur.legrand@example.com,Lima,arthur.legrand@example.com,a70c990c-c235-46de-a51d-99f1e7af6fad,angrybutterfly209,39796006707562424323a91bfa1697978e1618d7,20f68e3fef26166a12cfd10c224ebb9e40cb58e4eec24abc0d15e27b5bd55db8,f7e6385ef8fc915d7e92eaeb8320a865,39796006707562424323a91bfa1697978e1618d7,20f68e3fef26166a12cfd10c224ebb9e40cb58e4eec24abc0d15e27b5bd55db8,2018-03-12T14:00:20.251Z,8,2018-03-12T14:00:20.251Z,8,04-82-20-48-47,06-59-72-12-61,imgs/us/m29.jpg,imgs/us/tn/tn_m29.jpg,imgs/us/zn/zn_m29.jpg,nat,tmp";
$data[]="w51,female,Ms,Elsie,Cole,8320,W Pecan St,Dhaka,Ohio,United States,95879,-42.1782,-166.3598,+6:00,Almaty,elsie.cole@example.com,Colombo,elsie.cole@example.com,3cfde5e3-3896-4113-a8aa-fd974e50c0dc,lazylion556,1bd2263fca67a1bc87939affe688f87e17e77730,0f432b9a280ae2fd2138761129ac2bcce55d1cc5c5f55628d743aeb0d81974f7,81bf30e13a7159783a489611ebf31bb8,1bd2263fca67a1bc87939affe688f87e17e77730,0f432b9a280ae2fd2138761129ac2bcce55d1cc5c5f55628d743aeb0d81974f7,1960-02-21T13:05:10.202Z,20,(500) 262-9218,20,(537) 954-7012,(500) 262-9218,imgs/us/w51.jpg,imgs/us/tn/tn_w51.jpg,imgs/us/zn/zn_w51.jpg,nat,tmp";
$data[]="m17,male,Mr,Colin,Meyer,9454,South Street,Seoul,Derbyshire,United Kingdom,zip,11.8327,-106.4779,+9:00,Tokyo,email,Osaka, Sapporo,login_pass,colin.meyer@example.com,wynWOkth,073c637871d2189e47c9ada15923c24e97fd3d56229371705792ef590b01321c,dbPuENFflw,wynWOkth,acb62ab0f739fe2e161cb523599ea468,2012-07-23T00:25:08.594Z,14,1952-01-21T16:46:26.011Z,74,2012-07-23T00:25:08.594Z,14,imgs/us/m17.jpg,imgs/us/tn/tn_m17.jpg,imgs/us/zn/zn_m17.jpg,nat,tmp";
$data[]="m80,male,Mr,Zeljko,Weidmann,2123,Waldweg,Riyadh,Thüringen,Germany,68683,-27.4728,92.0883,+3:00,Baghdad,zeljko.weidmann@example.com,Moscow,zeljko.weidmann@example.com,zeljko.weidmann@example.com,604771df-f1db-4e0c-adf8-5d3710fcda67,f620cc18d4103a80786fe9e9573f387e,9cc8e5bd8a3f5d103236ef5aa1b170212b45c79392939d137c8d0cae8169a46f,OK84lCIM,f620cc18d4103a80786fe9e9573f387e,6672ee15c6be064d619b029a4996cf0f5f5b12a1,2010-07-26T01:56:32.480Z,16,28,2010-07-26T01:56:32.480Z,16,0681-5959319,imgs/us/m80.jpg,imgs/us/tn/tn_m80.jpg,imgs/us/zn/zn_m80.jpg,nat,tmp";
$data[]="m88,male,Mr,Karl-Otto,Pfisterer,1771,Drosselweg,Buenos Aires,Saarland,Germany,38774,-25.5491,-97.4711,-3:00,Brazil,karl-otto.pfisterer@example.com,Georgetown,karl-otto.pfisterer@example.com,5eac6d5b-3c59-4360-9d9a-13809af9d2a2,tinyleopard856,f13791030dda528f6c8fa0998e49872936d40757,658f94fd9136e40e8bf4f65b0959cd5dc14ff702d52f3310683d561a21718bcc,04505c4416970f1621b4da22b7d119f1,f13791030dda528f6c8fa0998e49872936d40757,658f94fd9136e40e8bf4f65b0959cd5dc14ff702d52f3310683d561a21718bcc,2004-11-04T10:30:11.464Z,21,2004-11-04T10:30:11.464Z,21,0678-7449872,0172-4239222,imgs/us/m88.jpg,imgs/us/tn/tn_m88.jpg,imgs/us/zn/zn_m88.jpg,nat,tmp";
$data[]="w18,female,Miss,Suzanne,Woods,4915,Wycliff Ave,Solomon Islands,Alaska,United States,19181,-60.0218,68.3419,+11:00,Magadan,suzanne.woods@example.com,New Caledonia,suzanne.woods@example.com,9b639990-fd9c-49c1-b92f-85a9b3255602,brownswan315,ce1fa80056f8589b5df1d1cf1ce4276db7c9dfe5,c90d220d564c672c3641d37e689843ae1e1533dd9e6a8bf373567fbb3716fb82,233db56344bfe87ff57e9f9d3415371a,ce1fa80056f8589b5df1d1cf1ce4276db7c9dfe5,c90d220d564c672c3641d37e689843ae1e1533dd9e6a8bf373567fbb3716fb82,1999-03-20T08:44:21.590Z,6,841-10-9935,6,(943) 208-2359,(653) 532-7836,imgs/us/w18.jpg,imgs/us/tn/tn_w18.jpg,imgs/us/zn/zn_w18.jpg,nat,tmp";
$data[]="w20,female,Mrs,Amelia,Kuhn,6858,Manchester Road,Riyadh,Wiltshire,United Kingdom,J39 3YG,-27.3856,36.2485,+3:00,Baghdad,amelia.kuhn@example.com,Moscow,amelia.kuhn@example.com,amelia.kuhn@example.com,ec8b1dc3-06d1-49db-8a83-b2f8f40ebcdb,081f74d95c04c0d91d01b16807fb17d8,02114c62bc049305d6ee87cd9386f981d996110126db7324b16ed421f7ede0a9,RzhL81Ds,081f74d95c04c0d91d01b16807fb17d8,cf2ee198c0bcd072afe16d49c642024e70c13409,2011-11-02T02:40:27.552Z,14,81,2011-11-02T02:40:27.552Z,14,015395 64692,imgs/us/w20.jpg,imgs/us/tn/tn_w20.jpg,imgs/us/zn/zn_w20.jpg,nat,tmp";
$data[]="m32,male,Mr,Marshall,Simmons,1700,Spring Hill Rd,Calcutta,Florida,United States,61905,71.8045,-50.1072,+5:30,Bombay,marshall.simmons@example.com,Madras,marshall.simmons@example.com,marshall.simmons@example.com,882a0332-dc87-4892-b6fa-f498da9b13fe,e2eaf4e6b5118ab5f33029cb63284525,69b57f9a2bcdc8a7f431e3c5a82c7fdd7f8495a8582c420b943eea6f48333a4b,Enb6B6MR,e2eaf4e6b5118ab5f33029cb63284525,fca9620c3362f7090ccd3391d218dc4eb124a6b5,2007-10-23T14:18:22.141Z,18,(520) 364-9828,2007-10-23T14:18:22.141Z,18,(570) 489-3402,imgs/us/m32.jpg,imgs/us/tn/tn_m32.jpg,imgs/us/zn/zn_m32.jpg,nat,tmp";
$data[]="m27,male,Mr,Edgar,Kim,3288,Victoria Street,Seoul,Northamptonshire,United Kingdom,zip,67.0036,130.1057,+9:00,Tokyo,email,Osaka, Sapporo,login_pass,edgar.kim@example.com,HplsNbog,518a7a329e41472ba49615e3c3e67dcb113b684a7d439c0e3dc1d94c64d08bef,wiluhyaCyGoxkaNN,HplsNbog,fa77bd231217dea49f4ce8bf7f6cd48a,2008-04-15T18:31:13.474Z,18,1961-08-28T00:11:40.835Z,64,2008-04-15T18:31:13.474Z,18,imgs/us/m27.jpg,imgs/us/tn/tn_m27.jpg,imgs/us/zn/zn_m27.jpg,nat,tmp";
$data[]="w21,female,Miss,Susie,Vargas,1408,Alexander Road,Calcutta,Tyne and Wear,United Kingdom,zip,17.6772,-90.2798,+5:30,Bombay,susie.vargas@example.com,Madras,susie.vargas@example.com,susie.vargas@example.com,d3c3420c-214e-4f4c-86cf-c2e31edccdc5,69fe4da66ca3d27ae0abb1d1d195ba7a,631bcec372700a1a47c840ec4f4d743c99df041a1d3622d73bec5fe8cacf3950,6mTe47cP,69fe4da66ca3d27ae0abb1d1d195ba7a,0c42e2d474ac587375971d92b5fce400459c1100,2011-07-21T10:42:12.410Z,15,32,2011-07-21T10:42:12.410Z,15,0161 505 4348,imgs/us/w21.jpg,imgs/us/tn/tn_w21.jpg,imgs/us/zn/zn_w21.jpg,nat,tmp";
$data[]="w59,female,Ms,Marina,Markgraf,2996,Birkenstrasse,Riyadh,Saarland,Germany,59186,54.8170,166.6920,+3:00,Baghdad,marina.markgraf@example.com,Moscow,marina.markgraf@example.com,marina.markgraf@example.com,9f1921b6-6573-40cd-ab81-1cff50954094,34f4278e626ff037d6d5afa846e8b663,d05f769be449ac57aaffb2099a879b1e6b150e4110cd2df637def21aee0ca042,lSSTCeeL,34f4278e626ff037d6d5afa846e8b663,9af5d404ac958a25f9277c2e5148550bd18497dc,2010-06-30T23:27:31.917Z,16,62,2010-06-30T23:27:31.917Z,16,0490-4902907,imgs/us/w59.jpg,imgs/us/tn/tn_w59.jpg,imgs/us/zn/zn_w59.jpg,nat,tmp";
$data[]="m3,male,Mr,Célian,Perrin,3251,Place de LAbbe-Franz-Stock,Dhaka,Mayotte,France,35977,85.3691,73.6100,+6:00,Almaty,celian.perrin@example.com,Colombo,celian.perrin@example.com,460bff12-e2af-4742-81a0-0e01a8f6a72c,smallpeacock495,2f67a0687d30f8dede4defa4366b5fc992fca4f0,1f833e31a24789f10a7e71898459eedc6f8cd3bbf11b1c9bad06df3f5cd24ec1,6009006ed7c9a9ce4618cd24f52ee08a,2f67a0687d30f8dede4defa4366b5fc992fca4f0,1f833e31a24789f10a7e71898459eedc6f8cd3bbf11b1c9bad06df3f5cd24ec1,2008-06-30T10:33:17.585Z,18,2008-06-30T10:33:17.585Z,18,03-27-25-57-50,06-01-94-02-63,imgs/us/m3.jpg,imgs/us/tn/tn_m3.jpg,imgs/us/zn/zn_m3.jpg,nat,tmp";
$data[]="w47,female,Ms,Barbara,Davis,6864,Oaks Cross,Seoul,Northamptonshire,United Kingdom,zip,-12.4378,-87.0639,+9:00,Tokyo,email,Osaka, Sapporo,login_pass,barbara.davis@example.com,yUDOyAnx,56f64c74d6789e27a82683f9338cf11fa8175894290fd9d059a3664392eb6d91,vbKelReiHNzDyZw,yUDOyAnx,761aebbbd594a10ce6c6936e30c31fb1,2012-06-13T20:07:41.690Z,14,1991-12-10T20:11:56.814Z,34,2012-06-13T20:07:41.690Z,14,imgs/us/w47.jpg,imgs/us/tn/tn_w47.jpg,imgs/us/zn/zn_w47.jpg,nat,tmp";
$data[]="w32,female,Miss,Natalia,Gleich,5460,Meuhlweg,Bogota,Hessen,Germany,59472,0.1134,46.4444,-5:00,Eastern Time (US & Canada),natalia.gleich@example.com,Lima,natalia.gleich@example.com,b8506022-f18f-43d7-8069-3c082dc1a63e,purplebear880,fc0f2b42dafbf58ec587a1b9d4dc7aec55e54275,e115ace9162c959695a16bab2e9edcf30a435c30ce7b77909a2e917606d308be,e9c058a937687bc4a1b41d2e84f0908f,fc0f2b42dafbf58ec587a1b9d4dc7aec55e54275,e115ace9162c959695a16bab2e9edcf30a435c30ce7b77909a2e917606d308be,2005-02-18T21:09:03.504Z,21,2005-02-18T21:09:03.504Z,21,0222-7115610,0171-3108641,imgs/us/w32.jpg,imgs/us/tn/tn_w32.jpg,imgs/us/zn/zn_w32.jpg,nat,tmp";
$data[]="w85,female,Ms,Kelly,Watts,269,Pockrus Page Rd,Buenos Aires,Louisiana,United States,50358,74.7953,-39.9070,-3:00,Brazil,kelly.watts@example.com,Georgetown,kelly.watts@example.com,b756716e-5ff1-4aaa-89e7-c8c99cc414c1,organicostrich518,3aadb9626e60c96ad5330270a15c2d67c285268f,7956b5fa41ead70f3330418a787fc9dfa371a109c84e0fc36b0d475fbc1493ad,6859a12427b146e06fcfe2b206f57732,3aadb9626e60c96ad5330270a15c2d67c285268f,7956b5fa41ead70f3330418a787fc9dfa371a109c84e0fc36b0d475fbc1493ad,1988-08-02T13:32:20.467Z,14,(919) 562-1514,14,(647) 775-8540,(919) 562-1514,imgs/us/w85.jpg,imgs/us/tn/tn_w85.jpg,imgs/us/zn/zn_w85.jpg,nat,tmp";
$data[]="w47,female,Mrs,Suzy,Cole,4733,St. Johns Road,Solomon Islands,Gwent,United Kingdom,zip,27.6131,21.8105,+11:00,Magadan,suzy.cole@example.com,New Caledonia,suzy.cole@example.com,184f8441-f146-4620-b1f3-34c2cf6dd4c4,bigrabbit274,eb534e3f8519c99aadf2b5df21baa2c21c391bbd,ba06f621959ad14ec7a182b9b7c118f306de0e1a4c21f877a3e824433a339157,25e0a0abfd795021c32abedbdc16aa55,eb534e3f8519c99aadf2b5df21baa2c21c391bbd,ba06f621959ad14ec7a182b9b7c118f306de0e1a4c21f877a3e824433a339157,2022-04-14T16:31:47.546Z,4,2022-04-14T16:31:47.546Z,4,01607 94489,07505 460213,imgs/us/w47.jpg,imgs/us/tn/tn_w47.jpg,imgs/us/zn/zn_w47.jpg,nat,tmp";
$data[]="w77,female,Mrs,Apolline,Clement,421,Avenue du Chateau,Solomon Islands,Loiret,France,13130,-40.1985,126.9333,+11:00,Magadan,apolline.clement@example.com,New Caledonia,apolline.clement@example.com,a7be0ef7-3df8-469a-b153-b6d91c465968,crazyduck500,fe1db1004201da864848cb2811f0042b1f118f07,fe08cdd051b53830824649a8ad00fb6907d8d3b2598aabba9b2f2a26c2b76501,72a5ad1a03d199c04d5fd585502a419c,fe1db1004201da864848cb2811f0042b1f118f07,fe08cdd051b53830824649a8ad00fb6907d8d3b2598aabba9b2f2a26c2b76501,2021-02-21T05:28:21.053Z,5,2021-02-21T05:28:21.053Z,5,04-64-78-12-97,06-99-46-30-46,imgs/us/w77.jpg,imgs/us/tn/tn_w77.jpg,imgs/us/zn/zn_w77.jpg,nat,tmp";
$data[]="w91,female,Ms,Notburga,Kloth,4281,Kastanienweg,Solomon Islands,Nordrhein-Westfalen,Germany,93108,36.2585,-51.1560,+11:00,Magadan,notburga.kloth@example.com,New Caledonia,notburga.kloth@example.com,3a54e76d-06e6-4caf-a844-4d096639b470,bigfrog912,67f1ee8b4a44a4f2c949700604f97eb622758dd0,3656f817d9142a80c3164d944ebeb817da9a49b4ae46a3ecde6ac4bef4fcc8c5,81d5bd64c5af7a5ddb20144336468b2c,67f1ee8b4a44a4f2c949700604f97eb622758dd0,3656f817d9142a80c3164d944ebeb817da9a49b4ae46a3ecde6ac4bef4fcc8c5,2011-11-10T04:59:54.936Z,14,2011-11-10T04:59:54.936Z,14,0324-7072010,0170-7517957,imgs/us/w91.jpg,imgs/us/tn/tn_w91.jpg,imgs/us/zn/zn_w91.jpg,nat,tmp";
$data[]="w79,female,Miss,Maelya,Lemaire,9982,Rue du Bat-DArgent,Buenos Aires,Droeme,France,25352,73.5887,-117.8179,-3:00,Brazil,maelya.lemaire@example.com,Georgetown,maelya.lemaire@example.com,99a89a2f-4b5a-44e7-8165-03148c70c2de,silverpeacock587,62038d683a1c46da4b6ec2262b320f05468c5df7,1f063624853985e3863ccef50aac01320b1e1ea43154f5725cb174fe4636e166,d34eea71dc03e0a1bef1de9d3c8204bd,62038d683a1c46da4b6ec2262b320f05468c5df7,1f063624853985e3863ccef50aac01320b1e1ea43154f5725cb174fe4636e166,2019-05-09T01:45:43.659Z,7,2019-05-09T01:45:43.659Z,7,01-96-41-05-89,06-92-81-64-92,imgs/us/w79.jpg,imgs/us/tn/tn_w79.jpg,imgs/us/zn/zn_w79.jpg,nat,tmp";
$data[]="w63,female,Miss,Kylie,Fletcher,6691,Country Club Rd,Solomon Islands,Connecticut,United States,29418,-44.3863,13.4153,+11:00,Magadan,kylie.fletcher@example.com,New Caledonia,kylie.fletcher@example.com,d045a209-1b3a-40d1-8e27-a9636b7303e2,bluegorilla511,191fa3260f797fc18466f7edaa951fbe018c3c91,89c4398ef4aac894aa4a40cb84ca02266e94786cbb67333cb9b3a56495040a5b,64f4c2fa8ed6ec79f6854aad022e3478,191fa3260f797fc18466f7edaa951fbe018c3c91,89c4398ef4aac894aa4a40cb84ca02266e94786cbb67333cb9b3a56495040a5b,1956-05-12T23:53:50.124Z,23,(773) 747-4367,23,(346) 982-9428,(773) 747-4367,imgs/us/w63.jpg,imgs/us/tn/tn_w63.jpg,imgs/us/zn/zn_w63.jpg,nat,tmp";
$data[]="w49,female,Miss,Meta,Mayer,8164,Am Bahnhof,Dhaka,Niedersachsen,Germany,52620,-19.2032,9.9614,+6:00,Almaty,meta.mayer@example.com,Colombo,meta.mayer@example.com,43982baf-ea07-4ecf-a17a-d3893c71182a,orangeswan832,c14067a05dddc405d46c90795b9b6d1b3445cb7d,e7265b0a56f7200455bcbc10766a6bcd8fb9d6d65374360fe6b3e71fc1ac134c,6ead01945ba8808a75f29e801e6689e6,c14067a05dddc405d46c90795b9b6d1b3445cb7d,e7265b0a56f7200455bcbc10766a6bcd8fb9d6d65374360fe6b3e71fc1ac134c,2009-04-17T04:25:53.126Z,17,2009-04-17T04:25:53.126Z,17,0892-5872862,0178-3131622,imgs/us/w49.jpg,imgs/us/tn/tn_w49.jpg,imgs/us/zn/zn_w49.jpg,nat,tmp";
$data[]="w96,female,Ms,Victoire,Leroy,1840,Rue Courbet,London,Pyrenees-Orientales,France,43006,29.2647,-89.2715,0:00,Western Europe Time,email,Lisbon,victoire.leroy@example.com,victoire.leroy@example.com,1a9b83f1-198d-412a-85b9-f4f9e38f0ce0,6ffc6740a71610fe0e3429a309b8df14,ff670af1943f188e170a15a77585a66df42e683dc661200489d53508a683f8e7,BVILcTJp,6ffc6740a71610fe0e3429a309b8df14,d3b1a7031189139468912d04a68ceba3186d6806,2008-08-27T17:32:04.565Z,17,50,2008-08-27T17:32:04.565Z,17,04-08-90-75-98,imgs/us/w96.jpg,imgs/us/tn/tn_w96.jpg,imgs/us/zn/zn_w96.jpg,nat,tmp";
$data[]="w22,female,Ms,Kristina,Cooper,3366,Fairview St,Caracas,Rhode Island,United States,81235,64.3553,-147.3489,-4:00,Atlantic Time (Canada),kristina.cooper@example.com,La Paz,kristina.cooper@example.com,38ee5786-9480-4117-be09-ba67f9e1deb4,lazybear868,55adb5a8c20e927003e500e70951257626c491be,808896b4e5e110defb6622584c9c4eae29d40f0d229e0cad3e6d976bd84a5bf5,e2cf5680a94fdb17cb23666c0c38113b,55adb5a8c20e927003e500e70951257626c491be,808896b4e5e110defb6622584c9c4eae29d40f0d229e0cad3e6d976bd84a5bf5,1948-01-31T22:50:24.048Z,13,(328) 905-4532,13,(632) 319-5037,(328) 905-4532,imgs/us/w22.jpg,imgs/us/tn/tn_w22.jpg,imgs/us/zn/zn_w22.jpg,nat,tmp";
$data[]="m5,male,Mr,Ercan,Goering,9883,Kastanienweg,Copenhagen,Brandenburg,Germany,31574,30.4943,-25.2541,+1:00,Brussels,email,Madrid, Paris,ercan.goring@example.com,69a11b9d-4231-4a23-b6b4-082c930a76a6,bf2c5c5b8df5f83cacc454a6adf7c435,271bbf610b6f58ea1549a312503bb66d27b1a1a423064ec28c3c0ac9b1c500e7,6J4HTolt,bf2c5c5b8df5f83cacc454a6adf7c435,5de2a4cbf189bda28286381a93a70d698b3f1ae5,2020-04-16T12:26:33.654Z,6,65,2020-04-16T12:26:33.654Z,6,0427-4151526,imgs/us/m5.jpg,imgs/us/tn/tn_m5.jpg,imgs/us/zn/zn_m5.jpg,nat,tmp";
$data[]="w76,female,Mrs,Becky,Hansen,7178,Richmond Road,Seoul,Gloucestershire,United Kingdom,zip,-0.2578,-89.8712,+9:00,Tokyo,email,Osaka, Sapporo,login_pass,becky.hansen@example.com,ZxmpXQzm,709a5433c25ea46810e3e06bcc41fd56ac17673ad3ef88f7352296c78bf97c04,MPaRiyJpvwgQF,ZxmpXQzm,237a64e2f475ba76aa04107fc0847a6c,2020-07-13T14:47:48.398Z,61,1964-09-11T13:35:36.521Z,61,2020-07-13T14:47:48.398Z,6,imgs/us/w76.jpg,imgs/us/tn/tn_w76.jpg,imgs/us/zn/zn_w76.jpg,nat,tmp";
$data[]="m90,male,Mr,Sandro,Lefevre,4831,Rue Baraban,Copenhagen,Vienne,France,49326,29.1635,-97.3721,+1:00,Brussels,sandro.lefevre@example.com,Madrid,sandro.lefevre@example.com,sandro.lefevre@example.com,38603f0e-3fef-4569-9baa-ae67b1d3770e,e0321f99736f5a831c00a7169e2b2987,8476e201ff6a174cca9fe95edf766fb32285043eaee903efbbd41fb3b6f2e39f,tL1hzReT,e0321f99736f5a831c00a7169e2b2987,1866eb632edd32c020bb479ad97320bc86365952,2003-12-14T14:54:26.577Z,22,31,2003-12-14T14:54:26.577Z,22,04-72-28-69-68,imgs/us/m90.jpg,imgs/us/tn/tn_m90.jpg,imgs/us/zn/zn_m90.jpg,nat,tmp";
$data[]="w27,female,Miss,Kirsten,Henrichs,4543,Kiefernweg,Bogota,Baden-Wuerttemberg,Germany,12669,17.8326,174.4750,-5:00,Eastern Time (US & Canada),kirsten.henrichs@example.com,Lima,kirsten.henrichs@example.com,77fdbf8f-95b9-4d71-a479-de5065b5d129,tinypanda864,7a603157b389a573affdeb06c8b55d32e8eb3357,ef852557942033f573e7b8e884ad715950ad689b4f04b8e786fbccb9a27cac31,ca9b3cee5d90bc3dabca645647c25dda,7a603157b389a573affdeb06c8b55d32e8eb3357,ef852557942033f573e7b8e884ad715950ad689b4f04b8e786fbccb9a27cac31,2010-06-08T13:45:52.808Z,16,2010-06-08T13:45:52.808Z,16,0279-4676286,0172-6324150,imgs/us/w27.jpg,imgs/us/tn/tn_w27.jpg,imgs/us/zn/zn_w27.jpg,nat,tmp";
$data[]="w36,female,Ms,Loane,Brun,4255,Rue D'Abbeville,Solomon Islands,Moselle,France,84598,-29.0537,-123.6677,+11:00,Magadan,loane.brun@example.com,New Caledonia,loane.brun@example.com,3298b5d5-88ba-4a62-84af-83607fa163d3,whiteladybug552,7e4350b7d4acffff8cd8730cbc9dc6f5252911ea,c5b6c82e3d07b37ff10dd46264afcddc5d70cf365d98002bd035024144518e4f,f211fdebb512ae5b1083efda79909065,7e4350b7d4acffff8cd8730cbc9dc6f5252911ea,c5b6c82e3d07b37ff10dd46264afcddc5d70cf365d98002bd035024144518e4f,2003-10-10T15:02:54.141Z,22,2003-10-10T15:02:54.141Z,22,01-71-40-08-88,06-30-95-92-16,imgs/us/w36.jpg,imgs/us/tn/tn_w36.jpg,imgs/us/zn/zn_w36.jpg,nat,tmp";
$data[]="m2,male,Mr,Jim,Lawson,3523,The Crescent,London,County Fermanagh,United Kingdom,zip,83.6960,-179.3785,0:00,Western Europe Time,jim.lawson@example.com,Lisbon,jim.lawson@example.com,jim.lawson@example.com,ac331856-cb08-4a6d-92a2-eb76b88afabd,188576765749ff55a51678d5dfd96679,154aeb1eac06bd86fe6b53d3c63998ae969d5c837168e5134415605d2748b4bd,EjJdcmW2,188576765749ff55a51678d5dfd96679,67c528a47529103db8b19e998dc104cad1cf2ffa,2021-08-02T08:45:34.627Z,5,68,2021-08-02T08:45:34.627Z,5,017687 13286,imgs/us/m2.jpg,imgs/us/tn/tn_m2.jpg,imgs/us/zn/zn_m2.jpg,nat,tmp";
$data[]="w51,female,Mrs,Ingeburg,Fiedler,4825,Schuetzenstrasse,Bogota,Nordrhein-Westfalen,Germany,91679,21.7412,-120.8573,-5:00,Eastern Time (US & Canada),ingeburg.fiedler@example.com,Lima,ingeburg.fiedler@example.com,0af6c8fb-5612-4f27-9183-6d51a1fa8677,purplewolf469,f5347f9d132ad6cfeb219391d44e596084974a10,324ccb2324fb945d0f9d90f220b9237feea454cb834be9d9c74890d2b06704d4,3aa2ba10ef1ab44ccd24ef3eab52b253,f5347f9d132ad6cfeb219391d44e596084974a10,324ccb2324fb945d0f9d90f220b9237feea454cb834be9d9c74890d2b06704d4,2005-11-27T15:30:21.183Z,20,2005-11-27T15:30:21.183Z,20,0626-1344692,0173-6505108,imgs/us/w51.jpg,imgs/us/tn/tn_w51.jpg,imgs/us/zn/zn_w51.jpg,nat,tmp";
$data[]="m24,male,Mr,Landon,Harrison,385,Timber Wolf Trail,Calcutta,Wisconsin,United States,84102,-57.6347,-83.3249,+5:30,Bombay,landon.harrison@example.com,Madras,landon.harrison@example.com,landon.harrison@example.com,3686aa2a-5fa7-46e3-af01-ec4647a889c1,fba83a5805b8b0b5261d1a727236bbf1,658c9187bdadf23878f94cd1cc8dbc13e07a3224305e7b2958892767e488feba,xwLRvUOL,fba83a5805b8b0b5261d1a727236bbf1,58d2cdc4626cbd36bd69e618d8b69ceb181f1fd3,2009-05-19T18:33:17.197Z,17,(642) 710-4572,2009-05-19T18:33:17.197Z,17,(991) 574-3713,imgs/us/m24.jpg,imgs/us/tn/tn_m24.jpg,imgs/us/zn/zn_m24.jpg,nat,tmp";
$data[]="w83,female,Miss,Susann,Rosenthal,2802,Lerchenweg,Copenhagen,Mecklenburg-Vorpommern,Germany,76437,86.8635,-47.6566,+1:00,Brussels,susann.rosenthal@example.com,Madrid,susann.rosenthal@example.com,susann.rosenthal@example.com,86d94913-0f8e-45c7-b2dc-83fe47338318,e38f613f6a85924da6448002442d602a,b0fb3b62a93b93adc74f6e0bd71a61ded7e476dbc2a789c88c00b69ee16e501e,YDuNOxNB,e38f613f6a85924da6448002442d602a,36e127f81aaae21fefb968eb48399d3a3c3a1476,2012-05-27T13:06:50.539Z,14,74,2012-05-27T13:06:50.539Z,14,0131-9164648,imgs/us/w83.jpg,imgs/us/tn/tn_w83.jpg,imgs/us/zn/zn_w83.jpg,nat,tmp";
$data[]="m3,male,Mr,Everett,Martinez,8769,New Road,Caracas,Gwent,United Kingdom,zip,-47.0152,-153.3039,-4:00,Atlantic Time (Canada),everett.martinez@example.com,La Paz,everett.martinez@example.com,7166755c-617d-48f8-a4c3-abb0115c49e3,smallfrog847,ed4d1754b966a5a6e4ed466ead8c842f3691f93c,a807018ea2277925d572622af44a9c39a56c96641c893776d5c5815925ea0f03,4a2c0545c93347de43afd940d5038773,ed4d1754b966a5a6e4ed466ead8c842f3691f93c,a807018ea2277925d572622af44a9c39a56c96641c893776d5c5815925ea0f03,2002-04-16T23:00:55.522Z,24,2002-04-16T23:00:55.522Z,24,013873 70438,07756 591586,imgs/us/m3.jpg,imgs/us/tn/tn_m3.jpg,imgs/us/zn/zn_m3.jpg,nat,tmp";
$data[]="picture.large,gender,title,name.first,name.last,str_no,str_name.name,location.city,location.state,location.country,zip,coord_lat,coord_long,tx_offset,location.timezone.description,email,login_uuid,login_user,login_pass,login.salt,login_md5,login_sha,login.sha256,dob_date,dob.age,reg_dt,reg_age,phone,cell,id.name,id_val,imgs/us/picture.large.jpg,imgs/us/tn/tn_picture.large.jpg,imgs/us/zn/zn_picture.large.jpg,nat,tmp";
$data[]="m11,male,Mr,Terrence,Larson,681,Broadway,Guam,Greater Manchester,United Kingdom,zip,56.2487,-75.2567,+10:00,Eastern Australia,terrence.larson@example.com,Vladivostok,terrence.larson@example.com,e8f10663-189b-4650-95fe-0441ea7d516e,tinymouse518,5759c0fb60b88fc73f662f40d15f99f9f9115cc5,9d313b2189939df780a82d9626de55f71ab005c2a27280cb672ee147c22de373,dc3a8e781d914efe7e613295c18468dd,5759c0fb60b88fc73f662f40d15f99f9f9115cc5,9d313b2189939df780a82d9626de55f71ab005c2a27280cb672ee147c22de373,2008-09-20T10:08:59.366Z,17,2008-09-20T10:08:59.366Z,17,0117113 717 8047,07701 533248,imgs/us/m11.jpg,imgs/us/tn/tn_m11.jpg,imgs/us/zn/zn_m11.jpg,nat,tmp";
$data[]="m18,female,Ms,Gretchen,Wiens,1320,Waldweg,Calcutta,Berlin,Germany,27370,7.9245,-18.1901,+5:30,Bombay,gretchen.wiens@example.com,Madras,gretchen.wiens@example.com,gretchen.wiens@example.com,7b2005b7-7038-4979-a35a-dc8251f4827a,d1289652ee3026d79ab3b7b43d2f7f39,bedc3ebd3c598595f9e5c161137441dc9fe91a467acc0027a0b8cd2d8738f7b1,sTUPOwI6,d1289652ee3026d79ab3b7b43d2f7f39,5f652f7197bb003fcecb24be6da4383be53dd824,2022-01-27T04:29:03.149Z,4,40,2022-01-27T04:29:03.149Z,4,0155-4605855,imgs/us/w18.jpg,imgs/us/tn/tn_m18.jpg,imgs/us/zn/zn_m18.jpg,nat,tmp";
$data[]="w32,female,Ms,Lyna,Roy,7928,Rue Abel,Bogota,Gironde,France,53560,-22.0731,-94.7165,-5:00,Eastern Time (US & Canada),lyna.roy@example.com,Lima,lyna.roy@example.com,119050bc-c03b-4b7e-9bf0-a09bef8b6807,bluesnake395,4fac357dc23f2d582ae2b674372a4dd943632246,b4a8b0babd177210d843927124fc383f81aeb587794928287968a362df8fbc65,13dfbc07bca95435963f30fef4534b42,4fac357dc23f2d582ae2b674372a4dd943632246,b4a8b0babd177210d843927124fc383f81aeb587794928287968a362df8fbc65,2017-05-24T05:45:11.886Z,9,2017-05-24T05:45:11.886Z,9,05-43-86-76-98,06-04-98-33-38,imgs/us/w32.jpg,imgs/us/tn/tn_w32.jpg,imgs/us/zn/zn_w32.jpg,nat,tmp";
$data[]="m45,female,Miss,Sylvia,Sanchez,8825,Adams St,London,Florida,United States,91948,39.2535,-22.1311,0:00,Western Europe Time,sylvia.sanchez@example.com,Lisbon,sylvia.sanchez@example.com,sylvia.sanchez@example.com,8c3d0ce1-6a46-4028-a3bc-6dbcecc401b0,171500fdd099989a7e8e2de068b2ffee,21766a7b27516ba72a9023356d9f598d9d1634210b6ea8128bb4084241c3f780,P9I0vv30,171500fdd099989a7e8e2de068b2ffee,b2ece6adc99ed51a611eb2f9e41342b4a8f5b563,2012-02-01T20:13:15.231Z,14,(889) 849-0886,2012-02-01T20:13:15.231Z,14,(721) 634-7064,imgs/us/w45.jpg,imgs/us/tn/tn_m45.jpg,imgs/us/zn/zn_m45.jpg,nat,tmp";
$data[]="m98,male,Mr,Klaus-D.,Suhr,6182,Uhlandstrasse,Riyadh,Baden-Wuerttemberg,Germany,88599,-88.4338,167.1955,+3:00,Baghdad,klaus-d..suhr@example.com,Moscow,klaus-d.suhr@example.com,klaus-d..suhr@example.com,981f7ad5-eaf6-4643-9718-223104b8730a,975826a80a4ae7aa08f363fecdf68221,1f6349e41e2d6ff6ea9aa4ce2f5ab6e64876cac3812ecda00b1b4438472f7a43,Ahc9lpYz,975826a80a4ae7aa08f363fecdf68221,06c358bcceeddd5ffbc8714c0cc31db7deb8f39b,2020-06-23T02:09:45.809Z,6,64,2020-06-23T02:09:45.809Z,6,0952-5854939,imgs/us/m98.jpg,imgs/us/tn/tn_m98.jpg,imgs/us/zn/zn_m98.jpg,nat,tmp";
$data[]="w84,female,Mrs,Margita,Schroll,4036,Kirchstrasse,Bogota,Hamburg,Germany,82834,-10.4634,-74.5583,-5:00,Eastern Time (US & Canada),margita.schroll@example.com,Lima,margita.schroll@example.com,e96f186c-50db-4151-9b1d-ee72f12f0304,angryduck798,3e1b1dfe4068e6cbd171ddcc6b508d695c235000,70700d7fea4e475e304b9a405d3097455f2d4ab6b4a03f346a7c186c0979024e,95e6836ec6b665e6e7462120a740821d,3e1b1dfe4068e6cbd171ddcc6b508d695c235000,70700d7fea4e475e304b9a405d3097455f2d4ab6b4a03f346a7c186c0979024e,2018-11-20T17:07:18.490Z,7,2018-11-20T17:07:18.490Z,7,0382-1553001,0179-5669854,imgs/us/w84.jpg,imgs/us/tn/tn_w84.jpg,imgs/us/zn/zn_w84.jpg,nat,tmp";
$data[]="m76,female,Ms,Ann,Silva,5208,Frances Ct,Perth,South Carolina,United States,61663,-59.1133,101.6574,+8:00,Beijing,ann.silva@example.com,Singapore,ann.silva@example.com,ann.silva@example.com,0616adbe-330b-4939-acdd-a5979611b5f3,be128cd58324310b45d1a96fa9f7dbc3,3c4e5c01454a1cb3e757dcf687ad46e79743cffd702bba9f4e60dd3b3ad44646,YpkAoYBu,be128cd58324310b45d1a96fa9f7dbc3,07aa42b02145b894a0c1e801b2dd683b405ffb6f,2016-12-15T05:53:38.615Z,9,(759) 786-0512,2016-12-15T05:53:38.615Z,9,(515) 386-3083,imgs/us/w76.jpg,imgs/us/tn/tn_m76.jpg,imgs/us/zn/zn_m76.jpg,nat,tmp";
$data[]="m21,male,Mr,Arnold,Stewart,7642,The Green,Calcutta,Tyne and Wear,United Kingdom,zip,-40.7702,-115.1696,+5:30,Bombay,arnold.stewart@example.com,Madras,arnold.stewart@example.com,arnold.stewart@example.com,08a2b41a-3a5e-42a5-a4d7-9e17da4909a2,c46997b028ee7ebddb74e9cb2bd21dbf,a5f2681ae83cf161b4dc4881759ec33b9198695aea1a1443d95538c53229f068,FFjQcmml,c46997b028ee7ebddb74e9cb2bd21dbf,d53662c224994181728f300804c4076afaf428da,2003-11-13T10:59:11.476Z,22,41,2003-11-13T10:59:11.476Z,22,01586 606198,imgs/us/m21.jpg,imgs/us/tn/tn_m21.jpg,imgs/us/zn/zn_m21.jpg,nat,tmp";
$data[]="m27,female,Miss,Ellen,Edwards,8156,Grove Road,Perth,Derbyshire,United Kingdom,zip,-66.3685,-73.6702,+8:00,Beijing,ellen.edwards@example.com,Singapore,ellen.edwards@example.com,ellen.edwards@example.com,13918439-4ebe-42e9-b3e7-8b5ad2730f8d,1aaa8319670c2b95d1bc1e0aa8bf5f79,982acdfa5ef2c313b3d13abfa47100a318545ee2c942fc4faa21a5b77d285512,KDcQM5VH,1aaa8319670c2b95d1bc1e0aa8bf5f79,166ef3f995f60c30451e49fa61403ecf45c43bee,2004-11-29T12:51:11.011Z,21,61,2004-11-29T12:51:11.011Z,21,015394 19761,imgs/us/w27.jpg,imgs/us/tn/tn_m27.jpg,imgs/us/zn/zn_m27.jpg,nat,tmp";
$data[]="w59,female,Miss,Debbie,Ferguson,1836,Spring St,Hanoi,Massachusetts,United States,83989,-66.8871,38.3908,+7:00,Bangkok,debbie.ferguson@example.com,Jakarta,debbie.ferguson@example.com,66b1b6dd-ed7e-40de-aaf9-8743a5a5f532,goldendog257,26ee3bb4de10532443e93511f2962a049f59ee27,cfa1b9f993ffc820819dd7a7f6194ffe100602cbd51ab2db9d2b98e67123adb3,cbef183a4a8d91c7b1fc45ceb0408308,26ee3bb4de10532443e93511f2962a049f59ee27,cfa1b9f993ffc820819dd7a7f6194ffe100602cbd51ab2db9d2b98e67123adb3,2000-11-14T09:04:26.247Z,21,(287) 314-4843,21,(428) 997-0574,(287) 314-4843,imgs/us/w59.jpg,imgs/us/tn/tn_w59.jpg,imgs/us/zn/zn_w59.jpg,nat,tmp";
$data[]="m42,male,Mr,Frank,Rhodes,2176,James St,Muscat,Delaware,United States,51146,54.3140,-111.0160,+4:00,Abu Dhabi,frank.rhodes@example.com,Baku,frank.rhodes@example.com,frank.rhodes@example.com,5cc71433-aa1a-4c18-ba3a-b897e852af3f,eaa522f966805069aa75a9c6b4c7ecf0,8b413c120687556d1e03c6fbed790febc84a2abcea030416f51fac0cf3fb7bff,4lx0r1NB,eaa522f966805069aa75a9c6b4c7ecf0,3bde42d2e4fcd78534184017fc2b8da7403b2d69,2017-04-06T01:07:16.691Z,9,(851) 824-3645,2017-04-06T01:07:16.691Z,9,(851) 824-3645,imgs/us/m42.jpg,imgs/us/tn/tn_m42.jpg,imgs/us/zn/zn_m42.jpg,nat,tmp";
$data[]="w93,female,Miss,Natalie,Messerschmidt,2665,Blumenstrasse,Dhaka,Schleswig-Holstein,Germany,45320,-23.9341,66.0892,+6:00,Almaty,natalie.messerschmidt@example.com,Colombo,natalie.messerschmidt@example.com,8c2910fd-c2c7-4009-84e2-0577bf719bba,happytiger490,343e697b7f25c3fc28b79533d019ca40675e4766,604c9e51e2b98044a2453ce88aea4e086ca2539b4136009554a509417575c60b,ae65e33d0bc24a45f4dc75637dc35278,343e697b7f25c3fc28b79533d019ca40675e4766,604c9e51e2b98044a2453ce88aea4e086ca2539b4136009554a509417575c60b,2015-08-30T07:58:35.085Z,10,2015-08-30T07:58:35.085Z,10,0952-2280533,0172-6724091,imgs/us/w93.jpg,imgs/us/tn/tn_w93.jpg,imgs/us/zn/zn_w93.jpg,nat,tmp";
$data[]="w29,female,Ms,Suzanna,Butler,6884,King Street,Seoul,Gwent,United Kingdom,zip,-13.6788,-134.2590,+9:00,Tokyo,email,Osaka, Sapporo,login_passYakutsk,suzanna.butler@example.com,login_md5,7d1d333d763f5ed4afff6231a4be4c5091278356ab325dd19b7443bc3379aae6,LFh,dob_date,36405b7443e582a9752079ec4956e662,2016-05-30T12:44:45.842Z,10,1968-12-27T19:34:05.045Z,57,2016-05-30T12:44:45.842Z,10,imgs/us/w29.jpg,imgs/us/tn/tn_w29.jpg,imgs/us/zn/zn_w29.jpg,nat,tmp";
$data[]="m65,male,Mr,Jules,Dupont,1957,Rue Pierre-Delore,Perth,Mayotte,France,79547,-70.6011,-145.9652,+8:00,Beijing,jules.dupont@example.com,Singapore,jules.dupont@example.com,jules.dupont@example.com,1d70ab37-d6ec-417e-9d31-7d241b2d795c,fc99afca8f231cac0baffe1374a19dbc,ef326bdf2be02e09f1fe7884dabb2825e77413991851b407e966ebef32de412a,npeHuxXS,fc99afca8f231cac0baffe1374a19dbc,b5fac74eed690a4b5bced6b7d6c7f3c0744919b3,2004-12-12T15:13:01.359Z,21,47,2004-12-12T15:13:01.359Z,21,01-97-43-75-56,imgs/us/m65.jpg,imgs/us/tn/tn_m65.jpg,imgs/us/zn/zn_m65.jpg,nat,tmp";
$data[]="m28,male,Mr,Zack,Chapman,871,Bruce St,Copenhagen,Illinois,United States,44950,-72.0399,27.8606,+1:00,Brussels,zack.chapman@example.com,Madrid,zack.chapman@example.com,zack.chapman@example.com,a5d60e2d-06bc-443e-b85a-163ed597bb4c,0d4a3f25844f6e741fec85f1783a5b12,02916aa8195c5bd351acc1d8126b6537239875304575d139c9c4f6cb328dd245,1veNf0PH,0d4a3f25844f6e741fec85f1783a5b12,8fc9da960568515695e9086b5867bdd16c462d28,2004-11-19T03:50:24.459Z,21,(790) 502-0202,2004-11-19T03:50:24.459Z,21,(750) 500-6961,imgs/us/m28.jpg,imgs/us/tn/tn_m28.jpg,imgs/us/zn/zn_m28.jpg,nat,tmp";
$data[]="m41,male,Mr,Maël,Garnier,6668,Rue de Bonnel,Guam,Tarn-et-Garonne,France,30771,-64.3844,-150.9730,+10:00,Eastern Australia,mael.garnier@example.com,Vladivostok,mael.garnier@example.com,be5df56e-e506-40d1-9aa3-f7a4f192bf95,silverbutterfly984,60f59b75fb6c619359e2a753515849a659e37d84,72a79776f4156494ec21fd27d6320a3aa8bd85d0a4463dc677817f3ab27dfd7e,25ea7e709322f4867e07229ac663f003,60f59b75fb6c619359e2a753515849a659e37d84,72a79776f4156494ec21fd27d6320a3aa8bd85d0a4463dc677817f3ab27dfd7e,2012-09-20T12:01:46.696Z,13,2012-09-20T12:01:46.696Z,13,05-53-50-20-95,06-93-84-41-87,imgs/us/m41.jpg,imgs/us/tn/tn_m41.jpg,imgs/us/zn/zn_m41.jpg,nat,tmp";
$data[]="m29,male,Mr,Arthur,Legrand,742,Rue Chaziere,Bogota,Haute-Loire,France,44470,10.0925,139.5695,-5:00,Eastern Time (US & Canada),terrence.larson@example.com,Vladivostok,terrence.larson@example.com,e8f10663-189b-4650-95fe-0441ea7d516e,angrybutterfly209,39796006707562424323a91bfa1697978e1618d7,20f68e3fef26166a12cfd10c224ebb9e40cb58e4eec24abc0d15e27b5bd55db8,f7e6385ef8fc915d7e92eaeb8320a865,39796006707562424323a91bfa1697978e1618d7,20f68e3fef26166a12cfd10c224ebb9e40cb58e4eec24abc0d15e27b5bd55db8,2018-03-12T14:00:20.251Z,8,2018-03-12T14:00:20.251Z,8,04-82-20-48-47,07701 533248,imgs/us/m29.jpg,imgs/us/tn/tn_m29.jpg,imgs/us/zn/zn_m29.jpg,nat,tmp";
$data[]="w18,female,Ms,Elsie,Cole,8320,W Pecan St,New Delhi,Ohio,United States,95879,-42.1782,-166.3598,+6:00,Almaty,gretchen.wiens@example.com,Madras,gretchen.wiens@example.com,3cfde5e3-3896-4113-a8aa-fd974e50c0dc,lazylion556,1bd2263fca67a1bc87939affe688f87e17e77730,0f432b9a280ae2fd2138761129ac2bcce55d1cc5c5f55628d743aeb0d81974f7,81bf30e13a7159783a489611ebf31bb8,1bd2263fca67a1bc87939affe688f87e17e77730,0f432b9a280ae2fd2138761129ac2bcce55d1cc5c5f55628d743aeb0d81974f7,2022-01-27T04:29:03.149Z,20,(537) 954-7012,20,(537) 954-7012,0171-6236283,imgs/us/w18.jpg,imgs/us/tn/tn_w18.jpg,imgs/us/zn/zn_w51.jpg,nat,tmp";
$data[]="m17,male,Mr,Colin,Meyer,9454,South Street,Seoul,Derbyshire,United Kingdom,zip,11.8327,-106.4779,+9:00,Tokyo,lyna.roy@example.com,Lima,lyna.roy@example.com,119050bc-c03b-4b7e-9bf0-a09bef8b6807,colin.meyer@example.com,login_md5,acb62ab0f739fe2e161cb523599ea468,dbPuENFflw,dob_date,acb62ab0f739fe2e161cb523599ea468,1952-01-21T16:46:26.011Z,14,1952-01-21T16:46:26.011Z,74,06-04-98-33-38,14,imgs/us/m17.jpg,imgs/us/tn/tn_m17.jpg,imgs/us/zn/zn_w32.jpg,nat,tmp";
$data[]="w45,male,Mr,Zeljko,Weidmann,2123,Waldweg,Casablanca,Thueringen,Germany,68683,-27.4728,92.0883,+3:00,Baghdad,sylvia.sanchez@example.com,Lisbon,zeljko.weidmann@example.com,zeljko.weidmann@example.com,604771df-f1db-4e0c-adf8-5d3710fcda67,f620cc18d4103a80786fe9e9573f387e,6672ee15c6be064d619b029a4996cf0f5f5b12a1,OK84lCIM,f620cc18d4103a80786fe9e9573f387e,6672ee15c6be064d619b029a4996cf0f5f5b12a1,2010-07-26T01:56:32.480Z,16,(889) 849-0886,2010-07-26T01:56:32.480Z,16,0681-5959319,imgs/us/m80.jpg,imgs/us/tn/tn_w45.jpg,imgs/us/zn/zn_m80.jpg,nat,tmp";
$data[]="m98,male,Mr,Karl-Otto,Pfisterer,1771,Uhlandstrasse,St. Petersburg,Saarland,Germany,38774,-25.5491,-97.4711,-3:00,Brazil,klaus-d.suhr@example.com,Moscow,klaus-d.suhr@example.com,5eac6d5b-3c59-4360-9d9a-13809af9d2a2,tinyleopard856,f13791030dda528f6c8fa0998e49872936d40757,658f94fd9136e40e8bf4f65b0959cd5dc14ff702d52f3310683d561a21718bcc,04505c4416970f1621b4da22b7d119f1,f13791030dda528f6c8fa0998e49872936d40757,658f94fd9136e40e8bf4f65b0959cd5dc14ff702d52f3310683d561a21718bcc,2004-11-04T10:30:11.464Z,21,2004-11-04T10:30:11.464Z,21,0678-7449872,0176-4472760,imgs/us/m98.jpg,imgs/us/tn/tn_m98.jpg,imgs/us/zn/zn_m88.jpg,nat,tmp";
$data[]="w18,female,Miss,Suzanne,Woods,4915,Kirchstrasse,Bogota,Alaska,United States,19181,-60.0218,68.3419,+11:00,Magadan,margita.schroll@example.com,Lima,suzanne.woods@example.com,e96f186c-50db-4151-9b1d-ee72f12f0304,brownswan315,ce1fa80056f8589b5df1d1cf1ce4276db7c9dfe5,c90d220d564c672c3641d37e689843ae1e1533dd9e6a8bf373567fbb3716fb82,233db56344bfe87ff57e9f9d3415371a,ce1fa80056f8589b5df1d1cf1ce4276db7c9dfe5,c90d220d564c672c3641d37e689843ae1e1533dd9e6a8bf373567fbb3716fb82,2018-11-20T17:07:18.490Z,6,(943) 208-2359,6,(943) 208-2359,0179-5669854,imgs/us/w18.jpg,imgs/us/tn/tn_w18.jpg,imgs/us/zn/zn_w18.jpg,nat,tmp";
$data[]="w76,female,Mrs,Amelia,Kuhn,6858,Manchester Road,Hong Kong,Wiltshire,United Kingdom,J39 3YG,-27.3856,36.2485,+3:00,Baghdad,ann.silva@example.com,Singapore,amelia.kuhn@example.com,amelia.kuhn@example.com,ec8b1dc3-06d1-49db-8a83-b2f8f40ebcdb,081f74d95c04c0d91d01b16807fb17d8,cf2ee198c0bcd072afe16d49c642024e70c13409,RzhL81Ds,081f74d95c04c0d91d01b16807fb17d8,cf2ee198c0bcd072afe16d49c642024e70c13409,2011-11-02T02:40:27.552Z,14,(759) 786-0512,2011-11-02T02:40:27.552Z,14,015395 64692,imgs/us/w20.jpg,imgs/us/tn/tn_w76.jpg,imgs/us/zn/zn_m20.jpg,nat,tmp";
$data[]="m21,male,Mr,Marshall,Simmons,1700,Spring Hill Rd,New Delhi,Florida,United States,61905,71.8045,-50.1072,+5:30,Bombay,arnold.stewart@example.com,Madras,marshall.simmons@example.com,marshall.simmons@example.com,882a0332-dc87-4892-b6fa-f498da9b13fe,e2eaf4e6b5118ab5f33029cb63284525,fca9620c3362f7090ccd3391d218dc4eb124a6b5,Enb6B6MR,e2eaf4e6b5118ab5f33029cb63284525,fca9620c3362f7090ccd3391d218dc4eb124a6b5,2007-10-23T14:18:22.141Z,18,(570) 489-3402,2007-10-23T14:18:22.141Z,18,07191 694315,imgs/us/m32.jpg,imgs/us/tn/tn_m21.jpg,imgs/us/zn/zn_m32.jpg,nat,tmp";
$data[]="w27,male,Mr,Edgar,Kim,3288,Victoria Street,Hong Kong,Northamptonshire,United Kingdom,zip,67.0036,130.1057,+9:00,Tokyo,ellen.edwards@example.com,Singapore,ellen.edwards@example.com,login_pass,edgar.kim@example.com,login_md5,fa77bd231217dea49f4ce8bf7f6cd48a,wiluhyaCyGoxkaNN,dob_date,fa77bd231217dea49f4ce8bf7f6cd48a,2008-04-15T18:31:13.474Z,64,1961-08-28T00:11:40.835Z,64,2008-04-15T18:31:13.474Z,07040 119059,imgs/us/m27.jpg,imgs/us/tn/tn_w27.jpg,imgs/us/zn/zn_w27.jpg,nat,tmp";
$data[]="m21,female,Miss,Susie,Vargas,1408,Alexander Road,Calcutta,Tyne and Wear,United Kingdom,zip,17.6772,-90.2798,+5:30,Bombay,debbie.ferguson@example.com,Jakarta,debbie.ferguson@example.com,66b1b6dd-ed7e-40de-aaf9-8743a5a5f532,d3c3420c-214e-4f4c-86cf-c2e31edccdc5,69fe4da66ca3d27ae0abb1d1d195ba7a,0c42e2d474ac587375971d92b5fce400459c1100,6mTe47cP,69fe4da66ca3d27ae0abb1d1d195ba7a,0c42e2d474ac587375971d92b5fce400459c1100,2011-07-21T10:42:12.410Z,15,(287) 314-4843,2011-07-21T10:42:12.410Z,15,0161 505 4348,imgs/us/w21.jpg,imgs/us/tn/tn_m21.jpg,imgs/us/zn/zn_m21.jpg,nat,tmp";
$data[]="m42,female,Ms,Marina,Markgraf,2996,Birkenstrasse,Tbilisi,Saarland,Germany,59186,54.8170,166.6920,+3:00,Baghdad,frank.rhodes@example.com,Baku,marina.markgraf@example.com,marina.markgraf@example.com,9f1921b6-6573-40cd-ab81-1cff50954094,34f4278e626ff037d6d5afa846e8b663,9af5d404ac958a25f9277c2e5148550bd18497dc,lSSTCeeL,34f4278e626ff037d6d5afa846e8b663,9af5d404ac958a25f9277c2e5148550bd18497dc,2010-06-30T23:27:31.917Z,16,(952) 520-8790,2010-06-30T23:27:31.917Z,16,0490-4902907,imgs/us/w59.jpg,imgs/us/tn/tn_m42.jpg,imgs/us/zn/zn_m59.jpg,nat,tmp";
$data[]="m3,male,Mr,Celian,Perrin,3251,Place de LAbde-Franz-Stock,natalie.messerschmidt@example.com,Mayotte,France,35977,85.3691,73.6100,+6:00,Almaty,natalie.messerschmidt@example.com,Colombo,celian.perrin@example.com,8c2910fd-c2c7-4009-84e2-0577bf719bba,smallpeacock495,2f67a0687d30f8dede4defa4366b5fc992fca4f0,1f833e31a24789f10a7e71898459eedc6f8cd3bbf11b1c9bad06df3f5cd24ec1,6009006ed7c9a9ce4618cd24f52ee08a,2f67a0687d30f8dede4defa4366b5fc992fca4f0,1f833e31a24789f10a7e71898459eedc6f8cd3bbf11b1c9bad06df3f5cd24ec1,2008-06-30T10:33:17.585Z,18,2008-06-30T10:33:17.585Z,18,0952-2280533,0172-6724091,imgs/us/m3.jpg,imgs/us/tn/tn_m3.jpg,imgs/us/zn/zn_m3.jpg,nat,tmp";
$data[]="w29,female,Ms,Barbara,Davis,6864,Oaks Cross,Seoul,Northamptonshire,United Kingdom,zip,-12.4378,-87.0639,+9:00,Tokyo,email,Osaka, Sapporo,login_pass,barbara.davis@example.com,login_md5,761aebbbd594a10ce6c6936e30c31fb1,vbKelReiHNzDyZw,dob_date,761aebbbd594a10ce6c6936e30c31fb1,2012-06-13T20:07:41.690Z,14,0117653 233 4867,34,2012-06-13T20:07:41.690Z,14,imgs/us/w47.jpg,imgs/us/tn/tn_w29.jpg,imgs/us/zn/zn_w29.jpg,nat,tmp";
$data[]="m65,female,Miss,Natalia,Gleich,5460,Muehlweg,Hong Kong,Hessen,Germany,59472,0.1134,46.4444,-5:00,Eastern Time (US & Canada),jules.dupont@example.com,Singapore,jules.dupont@example.com,b8506022-f18f-43d7-8069-3c082dc1a63e,purplebear880,fc0f2b42dafbf58ec587a1b9d4dc7aec55e54275,e115ace9162c959695a16bab2e9edcf30a435c30ce7b77909a2e917606d308be,e9c058a937687bc4a1b41d2e84f0908f,fc0f2b42dafbf58ec587a1b9d4dc7aec55e54275,e115ace9162c959695a16bab2e9edcf30a435c30ce7b77909a2e917606d308be,2005-02-18T21:09:03.504Z,21,2005-02-18T21:09:03.504Z,21,0222-7115610,01-97-43-75-56,imgs/us/m65.jpg,imgs/us/tn/tn_m65.jpg,imgs/us/zn/zn_w32.jpg,nat,tmp";
$data[]="m28,female,Ms,Kelly,Watts,269,Pockrus Page Rd,Paris,Louisiana,United States,50358,74.7953,-39.9070,-3:00,Brazil,zack.chapman@example.com,Madrid,zack.chapman@example.com,b756716e-5ff1-4aaa-89e7-c8c99cc414c1,organicostrich518,3aadb9626e60c96ad5330270a15c2d67c285268f,7956b5fa41ead70f3330418a787fc9dfa371a109c84e0fc36b0d475fbc1493ad,6859a12427b146e06fcfe2b206f57732,3aadb9626e60c96ad5330270a15c2d67c285268f,7956b5fa41ead70f3330418a787fc9dfa371a109c84e0fc36b0d475fbc1493ad,2004-11-19T03:50:24.459Z,14,(919) 562-1514,14,(647) 775-8540,(919) 562-1514,imgs/us/m28.jpg,imgs/us/tn/tn_m28.jpg,imgs/us/zn/zn_w85.jpg,nat,tmp";
$data[]="w47,female,Mrs,Suzy,Cole,4733,St. John’S Road,Solomon Islands,Gwent,United Kingdom,zip,27.6131,21.8105,+11:00,Magadan,mael.garnier@example.com,Vladivostok,mael.garnier@example.com,be5df56e-e506-40d1-9aa3-f7a4f192bf95,bigrabbit274,eb534e3f8519c99aadf2b5df21baa2c21c391bbd,ba06f621959ad14ec7a182b9b7c118f306de0e1a4c21f877a3e824433a339157,25e0a0abfd795021c32abedbdc16aa55,eb534e3f8519c99aadf2b5df21baa2c21c391bbd,ba06f621959ad14ec7a182b9b7c118f306de0e1a4c21f877a3e824433a339157,2022-04-14T16:31:47.546Z,4,2022-04-14T16:31:47.546Z,4,05-53-50-20-95,06-93-84-41-87,imgs/us/w47.jpg,imgs/us/tn/tn_w47.jpg,imgs/us/zn/zn_w47.jpg,nat,tmp";
$data[]="w77,female,Mrs,Apolline,Clement,421,Avenue du Chateau,Solomon Islands,Loiret,France,13130,-40.1985,126.9333,+11:00,Magadan,arthur.legrand@example.com,Lima,arthur.legrand@example.com,a70c990c-c235-46de-a51d-99f1e7af6fad,crazyduck500,fe1db1004201da864848cb2811f0042b1f118f07,fe08cdd051b53830824649a8ad00fb6907d8d3b2598aabba9b2f2a26c2b76501,72a5ad1a03d199c04d5fd585502a419c,fe1db1004201da864848cb2811f0042b1f118f07,fe08cdd051b53830824649a8ad00fb6907d8d3b2598aabba9b2f2a26c2b76501,2021-02-21T05:28:21.053Z,5,2021-02-21T05:28:21.053Z,5,04-82-20-48-47,06-59-72-12-61,imgs/us/w77.jpg,imgs/us/tn/tn_w77.jpg,imgs/us/zn/zn_w77.jpg,nat,tmp";
$data[]="w91,female,Ms,Notburga,Kloth,4281,Kastanienweg,Solomon Islands,Nordrhein-Westfalen,Germany,93108,36.2585,-51.1560,+11:00,Magadan,elsie.cole@example.com,Colombo,elsie.cole@example.com,3cfde5e3-3896-4113-a8aa-fd974e50c0dc,bigfrog912,67f1ee8b4a44a4f2c949700604f97eb622758dd0,3656f817d9142a80c3164d944ebeb817da9a49b4ae46a3ecde6ac4bef4fcc8c5,81d5bd64c5af7a5ddb20144336468b2c,67f1ee8b4a44a4f2c949700604f97eb622758dd0,3656f817d9142a80c3164d944ebeb817da9a49b4ae46a3ecde6ac4bef4fcc8c5,1960-02-21T13:05:10.202Z,14,(500) 262-9218,14,0324-7072010,0170-7517957,imgs/us/w91.jpg,imgs/us/tn/tn_w91.jpg,imgs/us/zn/zn_w91.jpg,nat,tmp";
$data[]="m17,female,Miss,Maelya,Lemaire,9982,Rue du Bat-DArgent,Seoul,Drome,France,25352,73.5887,-117.8179,-3:00,Brazil,maelya.lemaire@example.com,Osaka,maelya.lemaire@example.com,99a89a2f-4b5a-44e7-8165-03148c70c2de,silverpeacock587,62038d683a1c46da4b6ec2262b320f05468c5df7,1f063624853985e3863ccef50aac01320b1e1ea43154f5725cb174fe4636e166,d34eea71dc03e0a1bef1de9d3c8204bd,62038d683a1c46da4b6ec2262b320f05468c5df7,1f063624853985e3863ccef50aac01320b1e1ea43154f5725cb174fe4636e166,2012-07-23T00:25:08.594Z,7,2019-05-09T01:45:43.659Z,7,2012-07-23T00:25:08.594Z,06-92-81-64-92,imgs/us/m17.jpg,imgs/us/tn/tn_m17.jpg,imgs/us/zn/zn_w79.jpg,nat,tmp";
$data[]="w63,female,Miss,Kylie,Fletcher,6691,Country Club Rd,Solomon Islands,Connecticut,United States,29418,-44.3863,13.4153,+11:00,Magadan,zeljko.weidmann@example.com,Moscow,zeljko.weidmann@example.com,d045a209-1b3a-40d1-8e27-a9636b7303e2,bluegorilla511,191fa3260f797fc18466f7edaa951fbe018c3c91,89c4398ef4aac894aa4a40cb84ca02266e94786cbb67333cb9b3a56495040a5b,64f4c2fa8ed6ec79f6854aad022e3478,191fa3260f797fc18466f7edaa951fbe018c3c91,89c4398ef4aac894aa4a40cb84ca02266e94786cbb67333cb9b3a56495040a5b,(346) 982-9428,23,(346) 982-9428,23,(346) 982-9428,0681-5959319,imgs/us/m80.jpg,imgs/us/tn/tn_w63.jpg,imgs/us/zn/zn_w63.jpg,nat,tmp";
$data[]="w49,female,Miss,Meta,Mayer,8164,Am Bahnhof,Dhaka,Niedersachsen,Germany,52620,-19.2032,9.9614,+6:00,Almaty,karl-otto.pfisterer@example.com,Georgetown,karl-otto.pfisterer@example.com,5eac6d5b-3c59-4360-9d9a-13809af9d2a2,orangeswan832,c14067a05dddc405d46c90795b9b6d1b3445cb7d,e7265b0a56f7200455bcbc10766a6bcd8fb9d6d65374360fe6b3e71fc1ac134c,6ead01945ba8808a75f29e801e6689e6,c14067a05dddc405d46c90795b9b6d1b3445cb7d,e7265b0a56f7200455bcbc10766a6bcd8fb9d6d65374360fe6b3e71fc1ac134c,2009-04-17T04:25:53.126Z,17,2009-04-17T04:25:53.126Z,17,0678-7449872,0172-4239222,imgs/us/w49.jpg,imgs/us/tn/tn_w49.jpg,imgs/us/zn/zn_w49.jpg,nat,tmp";
$data[]="m96,female,Ms,Victoire,Leroy,1840,Rue Courbet,London,Pyrenees-Orientales,France,43006,29.2647,-89.2715,0:00,Western Europe Time,suzanne.woods@example.com,New Caledonia,suzanne.woods@example.com,9b639990-fd9c-49c1-b92f-85a9b3255602,1a9b83f1-198d-412a-85b9-f4f9e38f0ce0,6ffc6740a71610fe0e3429a309b8df14,d3b1a7031189139468912d04a68ceba3186d6806,BVILcTJp,6ffc6740a71610fe0e3429a309b8df14,d3b1a7031189139468912d04a68ceba3186d6806,2008-08-27T17:32:04.565Z,17,841-10-9935,2008-08-27T17:32:04.565Z,17,04-08-90-75-98,imgs/us/w96.jpg,imgs/us/tn/tn_m96.jpg,imgs/us/zn/zn_m96.jpg,nat,tmp";
$data[]="w20,female,Ms,Kristina,Cooper,3366,Fairview St,St. Petersburg,Rhode Island,United States,81235,64.3553,-147.3489,-4:00,Atlantic Time (Canada),amelia.kuhn@example.com,Moscow,amelia.kuhn@example.com,38ee5786-9480-4117-be09-ba67f9e1deb4,lazybear868,55adb5a8c20e927003e500e70951257626c491be,808896b4e5e110defb6622584c9c4eae29d40f0d229e0cad3e6d976bd84a5bf5,e2cf5680a94fdb17cb23666c0c38113b,55adb5a8c20e927003e500e70951257626c491be,808896b4e5e110defb6622584c9c4eae29d40f0d229e0cad3e6d976bd84a5bf5,(632) 319-5037,13,(328) 905-4532,13,(632) 319-5037,015395 64692,imgs/us/w20.jpg,imgs/us/tn/tn_w20.jpg,imgs/us/zn/zn_w22.jpg,nat,tmp";
$data[]="m32,male,Mr,Ercan,Goering,9883,Kastanienweg,New Delhi,Brandenburg,Germany,31574,30.4943,-25.2541,+1:00,Brussels,marshall.simmons@example.com,Madras,marshall.simmons@example.com,ercan.goring@example.com,69a11b9d-4231-4a23-b6b4-082c930a76a6,bf2c5c5b8df5f83cacc454a6adf7c435,5de2a4cbf189bda28286381a93a70d698b3f1ae5,6J4HTolt,bf2c5c5b8df5f83cacc454a6adf7c435,5de2a4cbf189bda28286381a93a70d698b3f1ae5,2020-04-16T12:26:33.654Z,6,(520) 364-9828,2020-04-16T12:26:33.654Z,6,0427-4151526,imgs/us/m5.jpg,imgs/us/tn/tn_m32.jpg,imgs/us/zn/zn_m5.jpg,nat,tmp";
$data[]="m27,female,Mrs,Becky,Hansen,7178,Richmond Road,Seoul,Gloucestershire,United Kingdom,zip,-0.2578,-89.8712,+9:00,Tokyo,email,Osaka, Sapporo, Yakutsk,becky.hansen@example.com,login_md5,237a64e2f475ba76aa04107fc0847a6c,MPaRiyJpvwgQF,dob_date,237a64e2f475ba76aa04107fc0847a6c,2020-07-13T14:47:48.398Z,6,1964-09-11T13:35:36.521Z,61,2020-07-13T14:47:48.398Z,6,imgs/us/w76.jpg,imgs/us/tn/tn_m27.jpg,imgs/us/zn/zn_m27.jpg,nat,tmp";
$data[]="w21,male,Mr,Sandro,Lefevre,4831,Rue Baraban,New Delhi,Vienne,France,49326,29.1635,-97.3721,+1:00,Brussels,susie.vargas@example.com,Madras,susie.vargas@example.com,sandro.lefevre@example.com,38603f0e-3fef-4569-9baa-ae67b1d3770e,e0321f99736f5a831c00a7169e2b2987,1866eb632edd32c020bb479ad97320bc86365952,tL1hzReT,e0321f99736f5a831c00a7169e2b2987,1866eb632edd32c020bb479ad97320bc86365952,2003-12-14T14:54:26.577Z,22,31,2003-12-14T14:54:26.577Z,22,0161 505 4348,imgs/us/m90.jpg,imgs/us/tn/tn_w21.jpg,imgs/us/zn/zn_m90.jpg,nat,tmp";
$data[]="w59,female,Miss,Kirsten,Henrichs,4543,Kiefernweg,St. Petersburg,Baden-Wuerttemberg,Germany,12669,17.8326,174.4750,-5:00,Eastern Time (US & Canada),marina.markgraf@example.com,Moscow,marina.markgraf@example.com,77fdbf8f-95b9-4d71-a479-de5065b5d129,tinypanda864,7a603157b389a573affdeb06c8b55d32e8eb3357,ef852557942033f573e7b8e884ad715950ad689b4f04b8e786fbccb9a27cac31,ca9b3cee5d90bc3dabca645647c25dda,7a603157b389a573affdeb06c8b55d32e8eb3357,ef852557942033f573e7b8e884ad715950ad689b4f04b8e786fbccb9a27cac31,2010-06-08T13:45:52.808Z,16,2010-06-08T13:45:52.808Z,16,0279-4676286,0490-4902907,imgs/us/w59.jpg,imgs/us/tn/tn_w59.jpg,imgs/us/zn/zn_w27.jpg,nat,tmp";
$data[]="w36,female,Ms,Loane,Brun,4255,Rue DAbbeville,Solomon Islands,Moselle,France,84598,-29.0537,-123.6677,+11:00,Magadan,celian.perrin@example.com,Colombo,celian.perrin@example.com,460bff12-e2af-4742-81a0-0e01a8f6a72c,whiteladybug552,7e4350b7d4acffff8cd8730cbc9dc6f5252911ea,c5b6c82e3d07b37ff10dd46264afcddc5d70cf365d98002bd035024144518e4f,f211fdebb512ae5b1083efda79909065,7e4350b7d4acffff8cd8730cbc9dc6f5252911ea,c5b6c82e3d07b37ff10dd46264afcddc5d70cf365d98002bd035024144518e4f,2003-10-10T15:02:54.141Z,22,2003-10-10T15:02:54.141Z,22,03-27-25-57-50,06-01-94-02-63,imgs/us/w36.jpg,imgs/us/tn/tn_w36.jpg,imgs/us/zn/zn_w36.jpg,nat,tmp";
$data[]="w47,male,Mr,Jim,Lawson,3523,The Crescent,Seoul,County Fermanagh,United Kingdom,zip,83.6960,-179.3785,0:00,Western Europe Time,jim.lawson@example.com,Osaka, Casablanca,jim.lawson@example.com,ac331856-cb08-4a6d-92a2-eb76b88afabd,188576765749ff55a51678d5dfd96679,67c528a47529103db8b19e998dc104cad1cf2ffa,EjJdcmW2,188576765749ff55a51678d5dfd96679,67c528a47529103db8b19e998dc104cad1cf2ffa,2021-08-02T08:45:34.627Z,5,68,2021-08-02T08:45:34.627Z,5,017687 13286,imgs/us/w47.jpg,imgs/us/tn/tn_w47.jpg,imgs/us/zn/zn_m2.jpg,nat,tmp";
$data[]="w51,female,Mrs,Ingeburg,Fiedler,4825,Muehlweg,Bogota,Nordrhein-Westfalen,Germany,91679,21.7412,-120.8573,-5:00,Eastern Time (US & Canada),natalia.gleich@example.com,Lima,natalia.gleich@example.com,b8506022-f18f-43d7-8069-3c082dc1a63e,purplewolf469,f5347f9d132ad6cfeb219391d44e596084974a10,324ccb2324fb945d0f9d90f220b9237feea454cb834be9d9c74890d2b06704d4,3aa2ba10ef1ab44ccd24ef3eab52b253,f5347f9d132ad6cfeb219391d44e596084974a10,324ccb2324fb945d0f9d90f220b9237feea454cb834be9d9c74890d2b06704d4,2005-11-27T15:30:21.183Z,20,2005-11-27T15:30:21.183Z,20,0222-7115610,0171-3108641,imgs/us/w51.jpg,imgs/us/tn/tn_w51.jpg,imgs/us/zn/zn_w51.jpg,nat,tmp";
$data[]="m24,male,Mr,Landon,Harrison,385,Timber Wolf Trail,Calcutta,Wisconsin,United States,84102,-57.6347,-83.3249,+5:30,Bombay,kelly.watts@example.com,Georgetown,kelly.watts@example.com,b756716e-5ff1-4aaa-89e7-c8c99cc414c1,3686aa2a-5fa7-46e3-af01-ec4647a889c1,fba83a5805b8b0b5261d1a727236bbf1,58d2cdc4626cbd36bd69e618d8b69ceb181f1fd3,xwLRvUOL,fba83a5805b8b0b5261d1a727236bbf1,58d2cdc4626cbd36bd69e618d8b69ceb181f1fd3,2009-05-19T18:33:17.197Z,17,(642) 710-4572,2009-05-19T18:33:17.197Z,17,(991) 574-3713,imgs/us/m24.jpg,imgs/us/tn/tn_m24.jpg,imgs/us/zn/zn_m24.jpg,nat,tmp";
$data[]="m83,female,Miss,Susann,Rosenthal,2802,Lerchenweg,Copenhagen,Mecklenburg-Vorpommern,Germany,76437,86.8635,-47.6566,+1:00,Brussels,suzy.cole@example.com,New Caledonia,suzy.cole@example.com,184f8441-f146-4620-b1f3-34c2cf6dd4c4,86d94913-0f8e-45c7-b2dc-83fe47338318,e38f613f6a85924da6448002442d602a,36e127f81aaae21fefb968eb48399d3a3c3a1476,YDuNOxNB,e38f613f6a85924da6448002442d602a,36e127f81aaae21fefb968eb48399d3a3c3a1476,2012-05-27T13:06:50.539Z,14,74,2012-05-27T13:06:50.539Z,14,07505 460213,imgs/us/w83.jpg,imgs/us/tn/tn_m83.jpg,imgs/us/zn/zn_m83.jpg,nat,tmp";
$data[]="m3,male,Mr,Everett,Martinez,8769,New Road,Caracas,Gwent,United Kingdom,zip,-47.0152,-153.3039,-4:00,Atlantic Time (Canada),apolline.clement@example.com,New Caledonia,apolline.clement@example.com,a7be0ef7-3df8-469a-b153-b6d91c465968,smallfrog847,ed4d1754b966a5a6e4ed466ead8c842f3691f93c,a807018ea2277925d572622af44a9c39a56c96641c893776d5c5815925ea0f03,4a2c0545c93347de43afd940d5038773,ed4d1754b966a5a6e4ed466ead8c842f3691f93c,a807018ea2277925d572622af44a9c39a56c96641c893776d5c5815925ea0f03,2002-04-16T23:00:55.522Z,24,2002-04-16T23:00:55.522Z,24,04-64-78-12-97,06-99-46-30-46,imgs/us/m3.jpg,imgs/us/tn/tn_m3.jpg,imgs/us/zn/zn_m3.jpg,nat,tmp";
pdo_insert( $dbfile,$tblname,$data);
return;
}
function pdo_insert_leds() {
$dbfile=$GLOBALS['dbfile'];
$tblname="leds";
$php_self=$_SERVER['PHP_SELF'];
# $led_referer=$_SERVER['HTTP_REFERER'];
$led_referer="led_referer";
$led_user_agent=$_SERVER['HTTP_USER_AGENT'];
$led_user_agent="Foxfire/3.0.13";
$led_remote_port=$_SERVER['REMOTE_PORT'];
$data[]="led_id,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os";
$data[]="1,cm12,cm12,cm12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm12,,,,,,cm12,,,10.5.50.001,,,,,err01,fix01,os01,ab";
$data[]="2,cn12,cn12,cn12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn12,,,,,,cn12,,,10.5.50.001,,,,,err01,fix01,os01,ac";
$data[]="3,co12,co12,co12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co12,,,,,,co12,,,10.5.50.001,,,,,err01,fix01,os01,ad";
$data[]="4,cp12,cp12,cp12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp12,,,,,,cp12,,,10.5.50.001,,,,,err01,fix01,os01,ae";
$data[]="5,cq12,cq12,cq12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq12,,,,,,cq12,,,10.5.50.001,,,,,err01,fix01,os01,af";
$data[]="6,cw12,cw12,cw12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw12,,,,,,cw12,,,10.5.50.001,,,,,err01,fix01,os01,ag";
$data[]="7,ct12,ct12,ct12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct12,,,,,,ct12,,,10.5.50.001,,,,,err01,fix01,os01,ah";
$data[]="8,cu12,cu12,cu12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu12,,,,,,cu12,,,10.5.50.001,,,,,err01,fix01,os01,ai";
$data[]="9,cz17,cz17,cz17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cz17,,,,,,cz17,,,10.5.50.001,,,,,err01,fix01,os01,aj";
$data[]="10,cy17,cy17,cy17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy17,,,,,,cy17,,,10.5.50.001,,,,,err01,fix01,os01,ak";
$data[]="11,cx17,cx17,cx17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx17,,,,,,cx17,,,10.5.50.001,,,,,err01,fix01,os01,al";
$data[]="12,cw17,cw17,cw17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw17,,,,,,cw17,,,10.5.50.001,,,,,err01,fix01,os01,ba";
$data[]="13,cv17,cv17,cv17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv17,,,,,,cv17,,,10.5.50.001,,,,,err01,fix01,os01,bb";
$data[]="14,cu17,cu17,cu17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu17,,,,,,cu17,,,10.5.50.001,,,,,err01,fix01,os01,bc";
$data[]="15,ct17,ct17,ct17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct17,,,,,,ct17,,,10.5.50.001,,,,,err01,fix01,os01,bd";
$data[]="16,cr17,cr17,cr17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr17,,,,,,cr17,,,10.5.50.001,,,,,err01,fix01,os01,be";
$data[]="17,cq17,cq17,cq17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq17,,,,,,cq17,,,10.5.50.001,,,,,err01,fix01,os01,bf";
$data[]="18,cp17,cp17,cp17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp17,,,,,,cp17,,,10.5.50.001,,,,,err01,fix01,os01,bg";
$data[]="19,co17,co17,co17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co17,,,,,,co17,,,10.5.50.001,,,,,err01,fix01,os01,bh";
$data[]="20,cn17,cn17,cn17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn17,,,,,,cn17,,,10.5.50.001,,,,,err01,fix01,os01,bi";
$data[]="21,cm17,cm17,cm17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm17,,,,,,cm17,,,10.5.50.001,,,,,err01,fix01,os01,bj";
$data[]="22,cm20,cm20,cm20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm20,,,,,,cm20,,,10.5.50.001,,,,,err01,fix01,os01,bk";
$data[]="23,cn20,cn20,cn20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn20,,,,,,cn20,,,10.5.50.001,,,,,err01,fix01,os01,bl";
$data[]="24,co20,co20,co20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co20,,,,,,co20,,,10.5.50.001,,,,,err01,fix01,os01,ca";
$data[]="25,cp20,cp20,cp20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp20,,,,,,cp20,,,10.5.50.001,,,,,err01,fix01,os01,cb";
$data[]="26,cq20,cq20,cq20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq20,,,,,,cq20,,,10.5.50.001,,,,,err01,fix01,os01,cc";
$data[]="27,cr20,cr20,cr20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr20,,,,,,cr20,,,10.5.50.001,,,,,err01,fix01,os01,cd";
$data[]="28,cs20,cs20,cs20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cs20,,,,,,cs20,,,10.5.50.001,,,,,err01,fix01,os01,ce";
$data[]="29,ct20,ct20,ct20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct20,,,,,,ct20,,,10.5.50.001,,,,,err01,fix01,os01,cf";
$data[]="30,cu20,cu20,cu20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu20,,,,,,cu20,,,10.5.50.001,,,,,err01,fix01,os01,cg";
$data[]="31,cv20,cv20,cv20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv20,,,,,,cv20,,,10.5.50.001,,,,,err01,fix01,os01,ch";
$data[]="32,cw20,cw20,cw20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw20,,,,,,cw20,,,10.5.50.001,,,,,err01,fix01,os01,ci";
$data[]="33,cx20,cx20,cx20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx20,,,,,,cx20,,,10.5.50.001,,,,,err01,fix01,os01,cj";
$data[]="34,cy20,cy20,cy20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy20,,,,,,cy20,,,10.5.50.001,,,,,err01,fix01,os01,ck";
$data[]="35,cz26,cz26,cz26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cz26,,,,,,cz26,,,10.5.50.001,,,,,err01,fix01,os01,cl";
$data[]="36,cy26,cy26,cy26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy26,,,,,,cy26,,,10.5.50.001,,,,,err01,fix01,os01,da";
$data[]="37,cx26,cx26,cx26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx26,,,,,,cx26,,,10.5.50.001,,,,,err01,fix01,os01,db";
$data[]="48,cw26,cw26,cw26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw26,,,,,,cw26,,,10.5.50.001,,,,,err01,fix01,os01,dc";
$data[]="49,cv26,cv26,cv26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv26,,,,,,cv26,,,10.5.50.001,,,,,err01,fix01,os01,dd";
$data[]="50,cu26,cu26,cu26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu26,,,,,,cu26,,,10.5.50.001,,,,,err01,fix01,os01,de";
$data[]="51,ct26,ct26,ct26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct26,,,,,,ct26,,,10.5.50.001,,,,,err01,fix01,os01,df";
$data[]="52,cr26,cr26,cr26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr26,,,,,,cr26,,,10.5.50.001,,,,,err01,fix01,os01,dg";
$data[]="53,cq26,cq26,cq26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq26,,,,,,cq26,,,10.5.50.001,,,,,err01,fix01,os01,dh";
$data[]="54,cp26,cp26,cp26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp26,,,,,,cp26,,,10.5.50.001,,,,,err01,fix01,os01,di";
$data[]="55,co26,co26,co26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co26,,,,,,co26,,,10.5.50.001,,,,,err01,fix01,os01,dj";
$data[]="56,cn26,cn26,cn26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn26,,,,,,cn26,,,10.5.50.001,,,,,err01,fix01,os01,dk";
$data[]="57,cm26,cm26,cm26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm26,,,,,,cm26,,,10.5.50.001,,,,,err01,fix01,os01,dl";
$data[]="58,cm29,cm29,cm29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm29,,,,,,cm29,,,10.5.50.001,,,,,err01,fix01,os01,ea";
$data[]="59,cn29,cn29,cn29,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn29,,,,,,cn29,,,10.5.50.001,,,,,err01,fix01,os01,eb";
$data[]="60,co29,co29,co29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co29,,,,,,co29,,,10.5.50.001,,,,,err01,fix01,os01,ec";
$data[]="61,cp29,cp29,cp29,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp29,,,,,,cp29,,,10.5.50.001,,,,,err01,fix01,os01,ed";
$data[]="62,cq29,cq29,cq29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq29,,,,,,cq29,,,10.5.50.001,,,,,err01,fix01,os01,ee";
$data[]="63,cr29,cr29,cr29,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr29,,,,,,cr29,,,10.5.50.001,,,,,err01,fix01,os01,ef";
$data[]="64,cs29,cs29,cs29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cs29,,,,,,cs29,,,10.5.50.001,,,,,err01,fix01,os01,eg";
$data[]="65,ct29,ct29,ct29,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct29,,,,,,ct29,,,10.5.50.001,,,,,err01,fix01,os01,eh";
$data[]="66,cu29,cu29,cu29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu29,,,,,,cu29,,,10.5.50.001,,,,,err01,fix01,os01,ei";
$data[]="67,cv29,cv29,cv29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv29,,,,,,cv29,,,10.5.50.001,,,,,err01,fix01,os01,ej";
$data[]="68,cw29,cw29,cw29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw29,,,,,,cw29,,,10.5.50.001,,,,,err01,fix01,os01,ek";
$data[]="69,cx29,cx29,cx29,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx29,,,,,,cx29,,,10.5.50.001,,,,,err01,fix01,os01,el";
$data[]="70,cy29,cy29,cy29,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy29,,,,,,cy29,,,,,,,,,,,";
$data[]="71,cz34,cz34,cz34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cz34,,,,,,cz34,,,10.5.50.001,,,,,err01,fix01,os01,fa";
$data[]="72,cy34,cy34,cy34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy34,,,,,,cy34,,,10.5.50.001,,,,,err01,fix01,os01,fb";
$data[]="73,cx34,cx34,cx34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx34,,,,,,cx34,,,10.5.50.001,,,,,err01,fix01,os01,fc";
$data[]="74,cw34,cw34,cw34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw34,,,,,,cw34,,,10.5.50.001,,,,,err01,fix01,os01,fd";
$data[]="75,cv34,cv34,cv34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv34,,,,,,cv34,,,10.5.50.001,,,,,err01,fix01,os01,fe";
$data[]="76,cu34,cu34,cu34,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu34,,,,,,cu34,,,10.5.50.001,,,,,err01,fix01,os01,ff";
$data[]="77,ct34,ct34,ct34,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct34,,,,,,ct34,,,10.5.50.001,,,,,err01,fix01,os01,fg";
$data[]="78,cr34,cr34,cr34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr34,,,,,,cr34,,,10.5.50.001,,,,,err01,fix01,os01,fh";
$data[]="79,cq34,cq34,cq34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq34,,,,,,cq34,,,10.5.50.001,,,,,err01,fix01,os01,fi";
$data[]="80,cp34,cp34,cp34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp34,,,,,,cp34,,,10.5.50.001,,,,,err01,fix01,os01,fj";
$data[]="81,co34,co34,co34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,co34,,,,,,co34,,,10.5.50.001,,,,,err01,fix01,os01,fk";
$data[]="82,cn34,cn34,cn34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn34,,,,,,cn34,,,10.5.50.001,,,,,err01,fix01,os01,fl";
$data[]="83,cm34,cm34,cm34,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm34,,,,,,cm34,,,10.5.50.001,,,,,err01,fix01,os01,ga";
$data[]="84,cm37,cm37,cm37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm37,,,,,,cm37,,,10.5.50.001,,,,,err01,fix01,os01,gb";
$data[]="85,cn37,cn37,cn37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn37,,,,,,cn37,,,10.5.50.001,,,,,err01,fix01,os01,gc";
$data[]="86,co37,co37,co37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co37,,,,,,co37,,,10.5.50.001,,,,,err01,fix01,os01,gd";
$data[]="87,cp37,cp37,cp37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp37,,,,,,cp37,,,10.5.50.001,,,,,err01,fix01,os01,ge";
$data[]="88,cq37,cq37,cq37,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq37,,,,,,cq37,,,10.5.50.001,,,,,err01,fix01,os01,gf";
$data[]="89,cr37,cr37,cr37,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr37,,,,,,cr37,,,10.5.50.001,,,,,err01,fix01,os01,gg";
$data[]="90,cs37,cs37,cs37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cs37,,,,,,cs37,,,10.5.50.001,,,,,err01,fix01,os01,gh";
$data[]="91,ct37,ct37,ct37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct37,,,,,,ct37,,,10.5.50.001,,,,,err01,fix01,os01,gi";
$data[]="92,cu37,cu37,cu37,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu37,,,,,,cu37,,,10.5.50.001,,,,,err01,fix01,os01,gj";
$data[]="93,cv37,cv37,cv37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv37,,,,,,cv37,,,10.5.50.001,,,,,err01,fix01,os01,gk";
$data[]="94,cw37,cw37,cw37,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw37,,,,,,cw37,,,10.5.50.001,,,,,err01,fix01,os01,gl";
$data[]="95,cx37,cx37,cx37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx37,,,,,,cx37,,,10.5.50.001,,,,,err01,fix01,os01,ha";
$data[]="96,cy37,cy37,cy37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy37,,,,,,cy37,,,10.5.50.001,,,,,err01,fix01,os01,hb";
$data[]="97,cz42,cz42,cz42,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cz42,,,,,,cz42,,,10.5.50.001,,,,,err01,fix01,os01,hc";
$data[]="98,cy42,cy42,cy42,current,red,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy42,,,,,,cy42,,,10.5.50.001,,,,,err01,fix01,os01,hd";
$data[]="99,cx42,cx42,cx42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx42,,,,,,cx42,,,10.5.50.001,,,,,err01,fix01,os01,he";
$data[]="100,cw42,cw42,cw42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw42,,,,,,cw42,,,10.5.50.001,,,,,err01,fix01,os01,hf";
$data[]="101,cv42,cv42,cv42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv42,,,,,,cv42,,,10.5.50.001,,,,,err01,fix01,os01,hg";
$data[]="102,cu42,cu42,cu42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu42,,,,,,cu42,,,10.5.50.001,,,,,err01,fix01,os01,hh";
$data[]="103,ct42,ct42,ct42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct42,,,,,,ct42,,,10.5.50.001,,,,,err01,fix01,os01,hi";
$data[]="104,cr42,cr42,cr42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr42,,,,,,cr42,,,10.5.50.001,,,,,err01,fix01,os01,hj";
$data[]="105,cq42,cq42,cq42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq42,,,,,,cq42,,,10.5.50.001,,,,,err01,fix01,os01,hk";
$data[]="106,cp42,cp42,cp42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp42,,,,,,cp42,,,10.5.50.001,,,,,err01,fix01,os01,hl";
$data[]="107,co42,co42,co42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co42,,,,,,co42,,,10.5.50.001,,,,,err01,fix01,os01,ia";
$data[]="108,cn42,cn42,cn42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn42,,,,,,cn42,,,10.5.50.001,,,,,err01,fix01,os01,ib";
$data[]="109,cm42,cm42,cm42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm42,,,,,,cm42,,,10.5.50.001,,,,,err01,fix01,os01,ic";
$data[]="110,cm45,cm45,cm45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm45,,,,,,cm45,,,10.5.50.001,,,,,err01,fix01,os01,id";
$data[]="111,cn45,cn45,cn45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn45,,,,,,cn45,,,10.5.50.001,,,,,err01,fix01,os01,ie";
$data[]="112,co45,co45,co45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co45,,,,,,co45,,,10.5.50.001,,,,,err01,fix01,os01,if";
$data[]="113,cp45,cp45,cp45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp45,,,,,,cp45,,,10.5.50.001,,,,,err01,fix01,os01,ig";
$data[]="114,cq45,cq45,cq45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq45,,,,,,cq45,,,10.5.50.001,,,,,err01,fix01,os01,ih";
$data[]="115,cr45,cr45,cr45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr45,,,,,,cr45,,,10.5.50.001,,,,,err01,fix01,os01,ii";
$data[]="116,cs45,cs45,cs45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cs45,,,,,,cs45,,,10.5.50.001,,,,,err01,fix01,os01,ij";
$data[]="117,ct45,ct45,ct45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct45,,,,,,ct45,,,10.5.50.001,,,,,err01,fix01,os01,ik";
$data[]="118,cu45,cu45,cu45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu45,,,,,,cu45,,,10.5.50.001,,,,,err01,fix01,os01,il";
$data[]="119,cv45,cv45,cv45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv45,,,,,,cv45,,,10.5.50.001,,,,,err01,fix01,os01,ja";
$data[]="120,cw45,cw45,cw45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw45,,,,,,cw45,,,10.5.50.001,,,,,err01,fix01,os01,jb";
$data[]="121,cx45,cx45,cx45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx45,,,,,,cx45,,,10.5.50.001,,,,,err01,fix01,os01,jc";
$data[]="122,cy45,cy45,cy45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy45,,,,,,cy45,,,10.5.50.001,,,,,err01,fix01,os01,jd";
$data[]="123,ct51,ct51,ct51,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct51,,,,,,ct51,,,10.5.50.001,,,,,err01,fix01,os01,je";
$data[]="124,cr51,cr51,cr51,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr51,,,,,,cr51,,,10.5.50.001,,,,,err01,fix01,os01,jf";
$data[]="125,cq51,cq51,cq51,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq51,,,,,,cq51,,,10.5.50.001,,,,,err01,fix01,os01,jg";
$data[]="126,cp51,cp51,cp51,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp51,,,,,,cp51,,,10.5.50.001,,,,,err01,fix01,os01,jh";
$data[]="127,co51,co51,co51,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co51,,,,,,co51,,,10.5.50.001,,,,,err01,fix01,os01,ji";
$data[]="128,cn51,cn51,cn51,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn51,,,,,,cn51,,,10.5.50.001,,,,,err01,fix01,os01,jj";
$data[]="129,cm51,cm51,cm51,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm51,,,,,,cm51,,,10.5.50.001,,,,,err01,fix01,os01,jk";
$data[]="130,db04,db04,db04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,db04,,,,,,db04,,,10.5.50.001,,,,,err01,fix01,os01,jl";
$data[]="131,dc04,dc04,dc04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc04,,,,,,dc04,,,10.5.50.001,,,,,err01,fix01,os01,ka";
$data[]="132,dd04,dd04,dd04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd04,,,,,,dd04,,,10.5.50.001,,,,,err01,fix01,os01,kb";
$data[]="133,de04,de04,de04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de04,,,,,,de04,,,10.5.50.001,,,,,err01,fix01,os01,kc";
$data[]="134,df04,df04,df04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df04,,,,,,df04,,,10.5.50.001,,,,,err01,fix01,os01,kd";
$data[]="135,dg04,dg04,dg04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg04,,,,,,dg04,,,10.5.50.001,,,,,err01,fix01,os01,ke";
$data[]="136,dh04,dh04,dh04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh04,,,,,,dh04,,,10.5.50.001,,,,,err01,fix01,os01,kf";
$data[]="137,dj04,dj04,dj04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj04,,,,,,dj04,,,10.5.50.001,,,,,err01,fix01,os01,kg";
$data[]="138,dk04,dk04,dk04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk04,,,,,,dk04,,,10.5.50.001,,,,,err01,fix01,os01,kh";
$data[]="139,dl04,dl04,dl04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl04,,,,,,dl04,,,10.5.50.001,,,,,err01,fix01,os01,ki";
$data[]="140,dm04,dm04,dm04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm04,,,,,,dm04,,,10.5.50.001,,,,,err01,fix01,os01,kj";
$data[]="141,dn04,dn04,dn04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn04,,,,,,dn04,,,10.5.50.001,,,,,err01,fix01,os01,kk";
$data[]="142,do04,do04,do04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do04,,,,,,do04,,,10.5.50.001,,,,,err01,fix01,os01,kl";
$data[]="143,do09,do09,do09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do09,,,,,,do09,,,10.5.50.001,,,,,err01,fix01,os01,la";
$data[]="144,dn09,dn09,dn09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn09,,,,,,dn09,,,10.5.50.001,,,,,err01,fix01,os01,lb";
$data[]="145,dm09,dm09,dm09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm09,,,,,,dm09,,,10.5.50.001,,,,,err01,fix01,os01,lc";
$data[]="146,dl09,dl09,dl09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl09,,,,,,dl09,,,10.5.50.001,,,,,err01,fix01,os01,ld";
$data[]="147,dk09,dk09,dk09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk09,,,,,,dk09,,,10.5.50.001,,,,,err01,fix01,os01,le";
$data[]="148,dj09,dj09,dj09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj09,,,,,,dj09,,,10.5.50.001,,,,,err01,fix01,os01,lf";
$data[]="149,di09,di09,di09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di09,,,,,,di09,,,10.5.50.001,,,,,err01,fix01,os01,lg";
$data[]="150,dh09,dh09,dh09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh09,,,,,,dh09,,,10.5.50.001,,,,,err01,fix01,os01,lh";
$data[]="151,dgoi,dgoi,dgoi,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dgoi,,,,,,dgoi,,,10.5.50.001,,,,,err01,fix01,os01,li";
$data[]="152,df09,df09,df09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df09,,,,,,df09,,,10.5.50.001,,,,,err01,fix01,os01,lj";
$data[]="153,de09,de09,de09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de09,,,,,,de09,,,10.5.50.001,,,,,err01,fix01,os01,lk";
$data[]="154,dd09,dd09,dd09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd09,,,,,,dd09,,,10.5.50.001,,,,,err01,fix01,os01,ll";
$data[]="155,dc09,dc09,dc09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc09,,,,,,dc09,,,10.5.50.001,,,,,err01,fix01,os01,ma";
$data[]="156,db12,db12,db12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,db12,,,,,,db12,,,10.5.50.001,,,,,err01,fix01,os01,mb";
$data[]="157,dc12,dc12,dc12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc12,,,,,,dc12,,,10.5.50.001,,,,,err01,fix01,os01,mc";
$data[]="158,dd12,dd12,dd12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd12,,,,,,dd12,,,10.5.50.001,,,,,err01,fix01,os01,md";
$data[]="159,de12,de12,de12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de12,,,,,,de12,,,10.5.50.001,,,,,err01,fix01,os01,me";
$data[]="160,df12,df12,df12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df12,,,,,,df12,,,10.5.50.001,,,,,err01,fix01,os01,mf";
$data[]="161,dg12,dg12,dg12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg12,,,,,,dg12,,,10.5.50.001,,,,,err01,fix01,os01,mg";
$data[]="162,dh12,dh12,dh12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh12,,,,,,dh12,,,10.5.50.001,,,,,err01,fix01,os01,mh";
$data[]="163,dj12,dj12,dj12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj12,,,,,,dj12,,,10.5.50.001,,,,,err01,fix01,os01,mi";
$data[]="164,dk12,dk12,dk12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk12,,,,,,dk12,,,10.5.50.001,,,,,err01,fix01,os01,mj";
$data[]="165,dl12,dl12,dl12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl12,,,,,,dl12,,,10.5.50.001,,,,,err01,fix01,os01,mk";
$data[]="166,dm12,dm12,dm12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm12,,,,,,dm12,,,10.5.50.001,,,,,err01,fix01,os01,ml";
$data[]="167,dn12,dn12,dn12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn12,,,,,,dn12,,,10.5.50.001,,,,,err01,fix01,os01,na";
$data[]="168,do12,do12,do12,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do12,,,,,,do12,,,10.5.50.001,,,,,err01,fix01,os01,nb";
$data[]="169,do17,do17,do17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do17,,,,,,do17,,,10.5.50.001,,,,,err01,fix01,os01,nc";
$data[]="170,dn17,dn17,dn17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn17,,,,,,dn17,,,10.5.50.001,,,,,err01,fix01,os01,nd";
$data[]="171,dl17,dl17,dl17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl17,,,,,,dl17,,,10.5.50.001,,,,,err01,fix01,os01,ne";
$data[]="172,dk17,dk17,dk17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk17,,,,,,dk17,,,10.5.50.001,,,,,err01,fix01,os01,nf";
$data[]="173,dj17,dj17,dj17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj17,,,,,,dj17,,,10.5.50.001,,,,,err01,fix01,os01,ng";
$data[]="174,di17,di17,di17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di17,,,,,,di17,,,10.5.50.001,,,,,err01,fix01,os01,nh";
$data[]="175,dh17,dh17,dh17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh17,,,,,,dh17,,,10.5.50.001,,,,,err01,fix01,os01,ni";
$data[]="176,dg17,dg17,dg17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg17,,,,,,dg17,,,10.5.50.001,,,,,err01,fix01,os01,nj";
$data[]="177,df17,df17,df17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df17,,,,,,df17,,,10.5.50.001,,,,,err01,fix01,os01,nk";
$data[]="178,de17,de17,de17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de17,,,,,,de17,,,10.5.50.001,,,,,err01,fix01,os01,nl";
$data[]="179,dc17,dc17,dc17,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc17,,,,,,dc17,,,10.5.50.001,,,,,err01,fix01,os01,oa";
$data[]="180,dc20,dc20,dc20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc20,,,,,,dc20,,,10.5.50.001,,,,,err01,fix01,os01,ob";
$data[]="181,dd20,dd20,dd20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd20,,,,,,dd20,,,10.5.50.001,,,,,err01,fix01,os01,oc";
$data[]="182,de20,de20,de20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de20,,,,,,de20,,,10.5.50.001,,,,,err01,fix01,os01,od";
$data[]="183,df20,df20,df20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df20,,,,,,df20,,,10.5.50.001,,,,,err01,fix01,os01,oe";
$data[]="184,dg20,dg20,dg20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg20,,,,,,dg20,,,10.5.50.001,,,,,err01,fix01,os01,of";
$data[]="185,dh20,dh20,dh20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh20,,,,,,dh20,,,10.5.50.001,,,,,err01,fix01,os01,og";
$data[]="186,di20,di20,di20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di20,,,,,,di20,,,10.5.50.001,,,,,err01,fix01,os01,oh";
$data[]="187,dj20,dj20,dj20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj20,,,,,,dj20,,,10.5.50.001,,,,,err01,fix01,os01,oi";
$data[]="188,dk20,dk20,dk20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk20,,,,,,dk20,,,10.5.50.001,,,,,err01,fix01,os01,oj";
$data[]="189,dl20,dl20,dl20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl20,,,,,,dl20,,,10.5.50.001,,,,,err01,fix01,os01,ok";
$data[]="190,dm20,dm20,dm20,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm20,,,,,,dm20,,,10.5.50.001,,,,,err01,fix01,os01,ol";
$data[]="191,dn26,dn26,dn26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn26,,,,,,dn26,,,10.5.50.001,,,,,err01,fix01,os01,pa";
$data[]="192,dm26,dm26,dm26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm26,,,,,,dm26,,,10.5.50.001,,,,,err01,fix01,os01,pb";
$data[]="193,dl26,dl26,dl26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl26,,,,,,dl26,,,10.5.50.001,,,,,err01,fix01,os01,pc";
$data[]="194,dk26,dk26,dk26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk26,,,,,,dk26,,,10.5.50.001,,,,,err01,fix01,os01,pd";
$data[]="195,dj26,dj26,dj26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj26,,,,,,dj26,,,10.5.50.001,,,,,err01,fix01,os01,pe";
$data[]="196,di26,di26,di26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di26,,,,,,di26,,,10.5.50.001,,,,,err01,fix01,os01,pf";
$data[]="197,dh26,dh26,dh26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh26,,,,,,dh26,,,10.5.50.001,,,,,err01,fix01,os01,pg";
$data[]="198,dg26,dg26,dg26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg26,,,,,,dg26,,,10.5.50.001,,,,,err01,fix01,os01,ph";
$data[]="199,df26,df26,df26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df26,,,,,,df26,,,10.5.50.001,,,,,err01,fix01,os01,pi";
$data[]="200,de26,de26,de26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de26,,,,,,de26,,,10.5.50.001,,,,,err01,fix01,os01,pj";
$data[]="201,dd26,dd26,dd26,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd26,,,,,,dd26,,,10.5.50.001,,,,,err01,fix01,os01,pk";
$data[]="202,db29,db29,db29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,db29,,,,,,db29,,,10.5.50.001,,,,,err01,fix01,os01,pl";
$data[]="203,dc29,dc29,dc29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc29,,,,,,dc29,,,10.5.50.001,,,,,err01,fix01,os01,sa";
$data[]="204,dd29,dd29,dd29,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd29,,,,,,dd29,,,10.5.50.001,,,,,err01,fix01,os01,sb";
$data[]="205,de29,de29,de29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de29,,,,,,de29,,,10.5.50.001,,,,,err01,fix01,os01,sc";
$data[]="206,df29,df29,df29,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,df29,,,,,,df29,,,10.5.50.001,,,,,err01,fix01,os01,sd";
$data[]="207,dg29,dg29,dg29,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg29,,,,,,dg29,,,10.5.50.001,,,,,err01,fix01,os01,se";
$data[]="208,dh29,dh29,dh29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh29,,,,,,dh29,,,10.5.50.001,,,,,err01,fix01,os01,sf";
$data[]="209,dj29,dj29,dj29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj29,,,,,,dj29,,,10.5.50.001,,,,,err01,fix01,os01,sg";
$data[]="210,dk29,dk29,dk29,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk29,,,,,,dk29,,,10.5.50.001,,,,,err01,fix01,os01,sh";
$data[]="211,dl29,dl29,dl29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl29,,,,,,dl29,,,10.5.50.001,,,,,err01,fix01,os01,si";
$data[]="212,dm29,dm29,dm29,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm29,,,,,,dm29,,,10.5.50.001,,,,,err01,fix01,os01,sj";
$data[]="213,dn29,dn29,dn29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn29,,,,,,dn29,,,10.5.50.001,,,,,err01,fix01,os01,sk";
$data[]="214,do29,do29,do29,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do29,,,,,,do29,,,10.5.50.001,,,,,err01,fix01,os01,sl";
$data[]="215,do34,do34,do34,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do34,,,,,,do34,,,10.5.50.001,,,,,err01,fix01,os01,ta";
$data[]="216,dn34,dn34,dn34,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn34,,,,,,dn34,,,10.5.50.001,,,,,err01,fix01,os01,tb";
$data[]="217,dm34,dm34,dm34,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm34,,,,,,dm34,,,10.5.50.001,,,,,err01,fix01,os01,tc";
$data[]="218,dl34,dl34,dl34,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl34,,,,,,dl34,,,10.5.50.001,,,,,err01,fix01,os01,td";
$data[]="219,dk34,dk34,dk34,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk34,,,,,,dk34,,,10.5.50.001,,,,,err01,fix01,os01,te";
$data[]="220,dj34,dj34,dj34,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj34,,,,,,dj34,,,10.5.50.001,,,,,err01,fix01,os01,tf";
$data[]="221,di34,di34,di34,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di34,,,,,,di34,,,10.5.50.001,,,,,err01,fix01,os01,tg";
$data[]="222,dh34,dh34,dh34,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh34,,,,,,dh34,,,10.5.50.001,,,,,err01,fix01,os01,th";
$data[]="223,dg34,dg34,dg34,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg34,,,,,,dg34,,,10.5.50.001,,,,,err01,fix01,os01,ti";
$data[]="224,df34,df34,df34,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,df34,,,,,,df34,,,10.5.50.001,,,,,err01,fix01,os01,tj";
$data[]="225,de34,de34,de34,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de34,,,,,,de34,,,10.5.50.001,,,,,err01,fix01,os01,tk";
$data[]="226,dd34,dd34,dd34,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd34,,,,,,dd34,,,10.5.50.001,,,,,err01,fix01,os01,tl";
$data[]="227,dc34,dc34,dc34,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc34,,,,,,dc34,,,10.5.50.001,,,,,err01,fix01,os01,ua";
$data[]="228,dc37,dc37,dc37,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc37,,,,,,dc37,,,10.5.50.001,,,,,err01,fix01,os01,ub";
$data[]="230,dd37,dd37,dd37,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd37,,,,,,dd37,,,10.5.50.001,,,,,err01,fix01,os01,ud";
$data[]="231,de37,de37,de37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de37,,,,,,de37,,,10.5.50.001,,,,,err01,fix01,os01,ue";
$data[]="232,df37,df37,df37,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,df37,,,,,,df37,,,10.5.50.001,,,,,err01,fix01,os01,uf";
$data[]="233,dg37,dg37,dg37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg37,,,,,,dg37,,,10.5.50.001,,,,,err01,fix01,os01,ug";
$data[]="234,dh37,dh37,dh37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh37,,,,,,dh37,,,10.5.50.001,,,,,err01,fix01,os01,uh";
$data[]="235,dj37,dj37,dj37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj37,,,,,,dj37,,,10.5.50.001,,,,,err01,fix01,os01,ui";
$data[]="236,dk37,dk37,dk37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk37,,,,,,dk37,,,10.5.50.001,,,,,err01,fix01,os01,uj";
$data[]="237,dl37,dl37,dl37,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl37,,,,,,dl37,,,10.5.50.001,,,,,err01,fix01,os01,uk";
$data[]="238,dm37,dm37,dm37,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm37,,,,,,dm37,,,10.5.50.001,,,,,err01,fix01,os01,ul";
$data[]="239,dn37,dn37,dn37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn37,,,,,,dn37,,,10.5.50.001,,,,,err01,fix01,os01,va";
$data[]="240,do37,do37,do37,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do37,,,,,,do37,,,10.5.50.001,,,,,err01,fix01,os01,vb";
$data[]="241,do42,do42,do42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do42,,,,,,do42,,,10.5.50.001,,,,,err01,fix01,os01,vc";
$data[]="242,dn42,dn42,dn42,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn42,,,,,,dn42,,,10.5.50.001,,,,,err01,fix01,os01,vd";
$data[]="243,dm42,dm42,dm42,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm42,,,,,,dm42,,,10.5.50.001,,,,,err01,fix01,os01,ve";
$data[]="244,dl42,dl42,dl42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl42,,,,,,dl42,,,10.5.50.001,,,,,err01,fix01,os01,vf";
$data[]="245,dk42,dk42,dk42,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk42,,,,,,dk42,,,10.5.50.001,,,,,err01,fix01,os01,vg";
$data[]="246,dj42,dj42,dj42,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj42,,,,,,dj42,,,10.5.50.001,,,,,err01,fix01,os01,vh";
$data[]="247,di42,di42,di42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di42,,,,,,di42,,,10.5.50.001,,,,,err01,fix01,os01,vi";
$data[]="248,dh42,dh42,dh42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh42,,,,,,dh42,,,10.5.50.001,,,,,err01,fix01,os01,vj";
$data[]="249,dg42,dg42,dg42,current,blue,2,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg42,,,,,,dg42,,,10.5.50.001,,,,,err01,fix01,os01,vk";
$data[]="250,df42,df42,df42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df42,,,,,,df42,,,10.5.50.001,,,,,err01,fix01,os01,vl";
$data[]="251,de42,de42,de42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de42,,,,,,de42,,,10.5.50.001,,,,,err01,fix01,os01,wa";
$data[]="252,dd42,dd42,dd42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd42,,,,,,dd42,,,10.5.50.001,,,,,err01,fix01,os01,wb";
$data[]="253,dd42,dd42,dd42,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd42,,,,,,dd42,,,10.5.50.001,,,,,err01,fix01,os01,wc";
$data[]="254,db45,db45,db45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,db45,,,,,,db45,,,10.5.50.001,,,,,err01,fix01,os01,wd";
$data[]="255,dc45,dc45,dc45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc45,,,,,,dc45,,,10.5.50.001,,,,,err01,fix01,os01,we";
$data[]="256,dd45,dd45,dd45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd45,,,,,,dd45,,,10.5.50.001,,,,,err01,fix01,os01,wf";
$data[]="257,de45,de45,de45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de45,,,,,,de45,,,10.5.50.001,,,,,err01,fix01,os01,wg";
$data[]="258,df45,df45,df45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df45,,,,,,df45,,,10.5.50.001,,,,,err01,fix01,os01,wh";
$data[]="259,dg45,dg45,dg45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg45,,,,,,dg45,,,10.5.50.001,,,,,err01,fix01,os01,wi";
$data[]="260,dh45,dh45,dh45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh45,,,,,,dh45,,,10.5.50.001,,,,,err01,fix01,os01,wj";
$data[]="261,dj45,dj45,dj45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj45,,,,,,dj45,,,10.5.50.001,,,,,err01,fix01,os01,wk";
$data[]="262,dk45,dk45,dk45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk45,,,,,,dk45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="263,dl45,dl45,dl45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl45,,,,,,dl45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="264,dm45,dm45,dm45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm45,,,,,,dm45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="265,dn45,dn45,dn45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn45,,,,,,dn45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="266,do45,do45,do45,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do45,,,,,,do45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="267,cy04,cy04,cy04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy04,,,,,,cy04,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="268,cx04,cx04,cx04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx04,,,,,,cx04,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="269,cv04,cv04,cv04,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv04,,,,,,cv04,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="270,cv09,cv09,cv09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv09,,,,,,cv09,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="271,ct09,ct09,ct09,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct09,,,,,,ct09,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="272,co08,co08,co08,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co08,,,,,,co08,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[]="273cn03,cn03,cn03,current,green,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn03,,,,,,cn03,,,10.5.50.001,,,,,err01,fix01,os01,wl";
# $data[]="50,ga,fp50,fp50,current,grn,90,manual,20100316,cmd,cmdout,desc,misc,stl,advon-templet,advon-templet,1,,h,advon-templet,1,,,test,20120101,,198.49.187.20,,,f31,f32,f33,f34,f35,f36";
# $data[]="61,ga,fp61,fp61,current,blu,90,cmd,20100316,dir,cmdout,desc,misc,,,,,,,,,,,comment_61_cmd_dir,,,,,,f31,f32,f33,f34,f35,f36";
# print_r($data);
print( "BUGS_5710 pdo_insert_leds dbfile=$dbfile tblname=$tblname data0=".$data[0]." <br>\n" );
print( "BUGS_5711 pdo_insert_leds dbfile=$dbfile tblname=$tblname data1=".$data[1]." <br>\n" );
print( "BUGS_5712 pdo_insert_leds dbfile=$dbfile tblname=$tblname data2=".$data[2]." <br>\n" );
print( "BUGS_5713 pdo_insert_leds dbfile=$dbfile tblname=$tblname <br>\n" );
pdo_insert( $dbfile, $tblname, $data);
}
function pdo_insert_leds_ai() {
global $dbname;
$tblname="leds_ai";
$data[] = "led_id,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,id,model,created,context_length,pricing_prompt,pricing_completion,tool_calling,structured_outputs,reasoning,response_format,web_search,vendor,type,status,img,tn,zn,tmp";
$data[] = "2,,code2,name2,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc2,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment2,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,id,model,created,context_length,pricing_prompt,pricing_completion,tool_calling,structured_outputs,reasoning,response_format,web_search,vendor,type,statusimg,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "3,,code3,name3,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc3,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment3,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-5-fast,Claude Opus 5 (Fast),1784912546,1000000,0.00001,0.00005,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "4,,code4,name4,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc4,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment4,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-5,Claude Opus 5,1784912544,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "5,,code5,name5,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc5,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment5,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,inclusionai/ling-3.0-flash:free,Ling-3.0-flash (free),1784818580,262144,0,0,Yes,No,Yes,No,No,inclusionai,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "6,,code6,name6,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc6,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment6,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,poolside/laguna-s-2.1,Poolside: Laguna S 2.1,1784652683,1048576,0.0000001,0.0000002,Yes,No,Yes,No,No,poolside,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "7,,code7,name7,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc7,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment7,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,poolside/laguna-s-2.1:free,Poolside: Laguna S 2.1 (free),1784652683,262144,0,0,Yes,No,Yes,No,No,poolside,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "8,,code8,name8,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc8,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment8,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.6-flash,Google: Gemini 3.6 Flash,1784646733,1048576,0.0000015,0.0000075,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "9,,code9,name9,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc9,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment9,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.5-flash-lite,Google: Gemini 3.5 Flash Lite,1784646726,1048576,0.0000003,0.0000025,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "10,,code10,name10,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc10,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment10,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meituan/longcat-2.0,Meituan: LongCat 2.0,1784554658,1048756,0.0000003,0.0000012,Yes,No,Yes,No,No,meituan,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "11,,code11,name11,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc11,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment11,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,thinkingmachines/inkling,Thinking Machines: Inkling,1784325956,1048576,0.000001,0.00000405,Yes,No,Yes,No,No,thinkingmachines,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "12,,code12,name12,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc12,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment12,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openrouter/auto-beta,Auto Router (Beta),1784311165,2000000,-1,-1,Yes,Yes,Yes,Yes,Yes,openrouter,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "13,,code13,name13,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc13,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment13,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,moonshotai/kimi-k3,MoonshotAI: Kimi K3,1784215858,1048576,0.000003,0.000015,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "14,,code14,name14,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc14,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment14,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meta/muse-spark-1.1,Meta: Muse Spark 1.1,1784215741,1048576,0.00000125,0.00000425,Yes,Yes,Yes,Yes,No,meta,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "15,,code15,name15,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc15,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment15,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,kwaipilot/kat-coder-air-v2.5,Kwaipilot: KAT-Coder-Air V2.5,1783714590,256000,0.00000015,0.0000006,Yes,Yes,No,Yes,No,kwaipilot,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "16,,code16,name16,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc16,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment16,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,kwaipilot/kat-coder-pro-v2.5,Kwaipilot: KAT-Coder-Pro V2.5,1783714589,256000,0.00000074,0.00000296,Yes,Yes,No,Yes,No,kwaipilot,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "17,,code17,name17,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc17,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment17,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.6-luna-pro,OpenAI: GPT-5.6 Luna Pro,1783590867,1050000,0.000001,0.000006,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "18,,code18,name18,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc18,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment18,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.6-luna,OpenAI: GPT-5.6 Luna,1783590864,1050000,0.000001,0.000006,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "19,,code19,name19,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc19,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment19,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.6-terra-pro,OpenAI: GPT-5.6 Terra Pro,1783590861,1050000,0.0000025,0.000015,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "20,,code20,name20,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc20,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment20,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.6-terra,OpenAI: GPT-5.6 Terra,1783590857,1050000,0.0000025,0.000015,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "21,,code21,name21,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc21,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment21,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.6-sol-pro,OpenAI: GPT-5.6 Sol Pro,1783590854,1050000,0.000005,0.00003,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "22,,code22,name22,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc22,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment22,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.6-sol,OpenAI: GPT-5.6 Sol,1783590850,1050000,0.000005,0.00003,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "23,,code23,name23,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc23,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment23,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,x-ai/grok-4.5,xAI: Grok 4.5,1783523154,500000,0.000002,0.000006,Yes,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "24,,code24,name24,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc24,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment24,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~x-ai/grok-latest,xAI: Grok Latest,1783519360,500000,0.000002,0.000006,Yes,Yes,Yes,Yes,No,~x-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "25,,code25,name25,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc25,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment25,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,aion-labs/aion-3.0-mini,AionLabs: Aion-3.0-Mini,1783443096,131072,0.0000007,0.0000014,Yes,No,Yes,Yes,No,aion-labs,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "26,,code26,name26,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc26,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment26,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,aion-labs/aion-3.0,AionLabs: Aion-3.0,1783443095,131072,0.000003,0.000006,Yes,No,Yes,Yes,No,aion-labs,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "27,,code27,name27,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc27,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment27,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,tencent/hy3,Tencent: Hy3,1783344048,262144,0.000000132,0.000000528,Yes,Yes,Yes,Yes,No,tencent,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "28,,code28,name28,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc28,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment28,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,poolside/laguna-xs-2.1,Poolside: Laguna XS 2.1,1783002429,262144,0.00000006,0.00000012,Yes,No,Yes,No,No,poolside,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "29,,code29,name29,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc29,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment29,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,poolside/laguna-xs-2.1:free,Poolside: Laguna XS 2.1 (free),1783002429,262144,0,0,Yes,No,Yes,No,No,poolside,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "30,,code30,name30,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc30,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment30,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-sonnet-5,Anthropic: Claude Sonnet 5,1782843083,1000000,0.000002,0.00001,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "31,,code31,name31,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc31,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment31,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.1-flash-lite-image,Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image),1782837225,65536,0.00000025,0.0000015,No,No,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "32,,code32,name32,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc32,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment32,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nex-agi/nex-n2-mini,Nex AGI: Nex-N2-Mini,1782312964,262144,0.000000025,0.0000001,Yes,Yes,Yes,Yes,No,nex-agi,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "33,,code33,name33,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc33,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment33,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,sakana/fugu-ultra,Sakana: Fugu Ultra,1782276303,1000000,0.000005,0.00003,Yes,Yes,Yes,No,Yes,sakana,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "34,,code34,name34,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc34,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment34,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.1-flash-image,Google: Nano Banana 2 (Gemini 3.1 Flash Image),1781754065,131072,0.0000005,0.000003,No,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "35,,code35,name35,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc35,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment35,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3-pro-image,Google: Nano Banana Pro (Gemini 3 Pro Image),1781754054,131072,0.000002,0.000012,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "36,,code36,name36,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc36,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment36,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,cohere/north-mini-code:free,Cohere: North Mini Code (free),1781723748,256000,0,0,Yes,No,Yes,No,No,cohere,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "37,,code37,name37,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc37,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment37,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-5.2,Z.ai: GLM 5.2,1781631930,1048576,0.000000721,0.000002266,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "38,,code38,name38,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc38,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment38,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openrouter/fusion,OpenRouter: Fusion,1781371647,1000000,-1,-1,No,No,No,No,No,openrouter,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "39,,code39,name39,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc39,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment39,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,moonshotai/kimi-k2.7-code,MoonshotAI: Kimi K2.7 Code,1781266361,262144,0.00000078,0.0000035,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "40,,code40,name40,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc40,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment40,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~anthropic/claude-fable-latest,Anthropic: Claude Fable Latest,1781029944,1000000,0.00001,0.00005,Yes,Yes,Yes,Yes,No,~anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "41,,code41,name41,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc41,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment41,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-fable-5,Anthropic: Claude Fable 5,1781007515,1000000,0.00001,0.00005,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "42,,code42,name42,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc42,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment42,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nex-agi/nex-n2-pro,Nex AGI: Nex-N2-Pro,1780937140,262144,0.00000025,0.000001,Yes,No,Yes,No,No,nex-agi,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "43,,code43,name43,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc43,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment43,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-3.5-content-safety:free,NVIDIA: Nemotron 3.5 Content Safety (free),1780581864,128000,0,0,No,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "44,,code44,name44,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc44,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment44,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-3-ultra-550b-a55b,NVIDIA: Nemotron 3 Ultra,1780551208,512288,0.0000006,0.0000036,Yes,Yes,Yes,Yes,No,nvidia,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "45,,code45,name45,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc45,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment45,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-3-ultra-550b-a55b:free,NVIDIA: Nemotron 3 Ultra (free),1780551208,1000000,0,0,Yes,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "46,,code46,name46,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc46,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment46,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.7-plus,Qwen: Qwen3.7 Plus,1780491783,1000000,0.00000032,0.00000128,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "47,,code47,name47,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc47,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment47,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,minimax/minimax-m3,MiniMax: MiniMax M3,1780245374,1048576,0.0000003,0.0000012,Yes,Yes,Yes,Yes,No,minimax,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "48,,code48,name48,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc48,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment48,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,stepfun/step-3.7-flash,StepFun: Step 3.7 Flash,1779985069,262144,0.0000002,0.00000115,Yes,Yes,Yes,Yes,No,stepfun,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "49,,code49,name49,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc49,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment49,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-4.8-fast,Anthropic: Claude Opus 4.8 (Fast),1779913703,1000000,0.00001,0.00005,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "50,,code50,name50,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc50,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment50,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-4.8,Anthropic: Claude Opus 4.8,1779905091,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "51,,code51,name51,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc51,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment51,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.7-max,Qwen: Qwen3.7 Max,1779376861,1000000,0.000001475,0.000004425,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "52,,code52,name52,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc52,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment52,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,x-ai/grok-build-0.1,xAI: Grok Build 0.1,1779298123,256000,0.000001,0.000002,Yes,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "53,,code53,name53,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc53,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment53,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.5-flash,Google: Gemini 3.5 Flash,1779193800,1048576,0.0000015,0.000009,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "54,,code54,name54,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc54,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment54,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-4.7-fast,Anthropic: Claude Opus 4.7 (Fast),1778613011,1000000,0.00003,0.00015,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "55,,code55,name55,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc55,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment55,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,perceptron/perceptron-mk1,Perceptron: Perceptron Mk1,1778597029,32768,0.00000015,0.0000015,No,Yes,Yes,No,No,perceptron,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "56,,code56,name56,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc56,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment56,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,inclusionai/ring-2.6-1t,inclusionAI: Ring-2.6-1T,1778247440,262144,0.000000075,0.000000625,Yes,No,Yes,Yes,No,inclusionai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "57,,code57,name57,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc57,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment57,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.1-flash-lite,Google: Gemini 3.1 Flash Lite,1778168828,1048576,0.00000025,0.0000015,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "58,,code58,name58,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc58,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment58,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-chat-latest,OpenAI: GPT Chat Latest,1778000212,400000,0.000005,0.00003,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "59,,code59,name59,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc59,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment59,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,x-ai/grok-4.3,xAI: Grok 4.3,1777591821,1000000,0.00000125,0.0000025,Yes,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "60,,code60,name60,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc60,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment60,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,ibm-granite/granite-4.1-8b,IBM: Granite 4.1 8B,1777577071,131072,0.00000005,0.0000001,Yes,Yes,No,Yes,No,ibm-granite,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "61,,code61,name61,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc61,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment61,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-medium-3-5,Mistral: Mistral Medium 3.5,1777570439,262144,0.0000015,0.0000075,Yes,Yes,Yes,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "62,,code62,name62,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc62,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment62,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free,NVIDIA: Nemotron 3 Nano Omni (free),1777393095,256000,0,0,Yes,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "63,,code63,name63,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc63,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment63,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,poolside/laguna-m.1,Poolside: Laguna M.1,1777388504,262144,0.0000002,0.0000004,Yes,No,Yes,No,No,poolside,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "64,,code64,name64,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc64,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment64,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,poolside/laguna-m.1:free,Poolside: Laguna M.1 (free),1777388504,262144,0,0,Yes,No,Yes,No,No,poolside,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "65,,code65,name65,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc65,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment65,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~anthropic/claude-haiku-latest,Anthropic Claude Haiku Latest,1777318492,200000,0.000001,0.000005,Yes,Yes,Yes,Yes,No,~anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "66,,code66,name66,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc66,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment66,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~openai/gpt-mini-latest,OpenAI GPT Mini Latest,1777318471,400000,0.00000075,0.0000045,Yes,Yes,Yes,Yes,No,~openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "67,,code67,name67,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc67,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment67,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~google/gemini-pro-latest,Google Gemini Pro Latest,1777318451,1048576,0.000002,0.000012,Yes,Yes,Yes,Yes,No,~google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "68,,code68,name68,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc68,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment68,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~moonshotai/kimi-latest,MoonshotAI Kimi Latest,1777318428,1048576,0.000003,0.000015,Yes,Yes,Yes,Yes,No,~moonshotai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "69,,code69,name69,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc69,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment69,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~google/gemini-flash-latest,Google Gemini Flash Latest,1777318398,1048576,0.0000015,0.0000075,Yes,Yes,Yes,Yes,No,~google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "70,,code70,name70,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc70,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment70,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~anthropic/claude-sonnet-latest,Anthropic Claude Sonnet Latest,1777318368,1000000,0.000002,0.00001,Yes,Yes,Yes,Yes,No,~anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "71,,code71,name71,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc71,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment71,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~openai/gpt-latest,OpenAI GPT Latest,1777318334,1050000,0.000005,0.00003,Yes,Yes,Yes,Yes,No,~openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "72,,code72,name72,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc72,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment72,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.5-plus-20260420,Qwen: Qwen3.5 Plus 2026-04-20,1777261368,1000000,0.0000003,0.0000018,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "73,,code73,name73,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc73,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment73,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.6-flash,Qwen: Qwen3.6 Flash,1777261362,1000000,0.0000001875,0.000001125,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "74,,code74,name74,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc74,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment74,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.6-35b-a3b,Qwen: Qwen3.6 35B A3B,1777260255,262144,0.00000014,0.000001,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "75,,code75,name75,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc75,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment75,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.6-max-preview,Qwen: Qwen3.6 Max Preview,1777260242,262144,0.00000104,0.00000624,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "76,,code76,name76,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc76,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment76,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.6-27b,Qwen: Qwen3.6 27B,1777255064,262144,0.000000289,0.0000024,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "77,,code77,name77,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc77,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment77,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.5-pro,OpenAI: GPT-5.5 Pro,1777051896,1050000,0.00003,0.00018,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "78,,code78,name78,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc78,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment78,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.5,OpenAI: GPT-5.5,1777051893,1050000,0.000005,0.00003,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "79,,code79,name79,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc79,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment79,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-v4-pro,DeepSeek: DeepSeek V4 Pro,1777000679,1048576,0.000000435,0.00000087,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "80,,code80,name80,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc80,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment80,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-v4-flash,DeepSeek: DeepSeek V4 Flash,1777000666,1048576,0.0000000938,0.0000001876,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "81,,code81,name81,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc81,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment81,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,inclusionai/ling-2.6-1t,inclusionAI: Ling-2.6-1T,1776948238,262144,0.000000075,0.000000625,Yes,Yes,No,Yes,No,inclusionai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "82,,code82,name82,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc82,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment82,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,tencent/hy3-preview,Tencent: Hy3 preview,1776878150,262144,0.000000063,0.00000021,Yes,No,Yes,No,No,tencent,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "83,,code83,name83,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc83,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment83,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,xiaomi/mimo-v2.5-pro,Xiaomi: MiMo-V2.5-Pro,1776874273,1050000,0.000000435,0.00000087,Yes,Yes,Yes,Yes,No,xiaomi,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "84,,code84,name84,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc84,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment84,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,xiaomi/mimo-v2.5,Xiaomi: MiMo-V2.5,1776874269,1050000,0.00000014,0.00000028,Yes,Yes,Yes,Yes,No,xiaomi,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "85,,code85,name85,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc85,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment85,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.4-image-2,OpenAI: GPT-5.4 Image 2,1776797528,272000,0.000008,0.000015,No,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "86,,code86,name86,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc86,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment86,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,inclusionai/ling-2.6-flash,inclusionAI: Ling-2.6-flash,1776795886,262144,0.00000001,0.00000003,Yes,Yes,No,Yes,No,inclusionai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "87,,code87,name87,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc87,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment87,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,~anthropic/claude-opus-latest,Anthropic: Claude Opus Latest,1776795361,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,~anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "88,,code88,name88,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc88,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment88,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openrouter/pareto-code,Pareto Code Router,1776747900,2000000,-1,-1,No,No,No,No,No,openrouter,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "89,,code89,name89,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc89,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment89,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,moonshotai/kimi-k2.6,MoonshotAI: Kimi K2.6,1776699402,262144,0.000000646,0.00000272,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "90,,code90,name90,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc90,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment90,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-4.7,Anthropic: Claude Opus 4.7,1776351100,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "91,,code91,name91,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc91,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment91,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-5.1,Z.ai: GLM 5.1,1775578025,204800,0.000000966,0.000003036,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "92,,code92,name92,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc92,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment92,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemma-4-26b-a4b-it,Google: Gemma 4 26B A4B,1775227989,262144,0.00000012,0.00000035,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "93,,code93,name93,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc93,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment93,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemma-4-26b-a4b-it:free,Google: Gemma 4 26B A4B (free),1775227989,262144,0,0,Yes,Yes,Yes,Yes,No,google,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "94,,code94,name94,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc94,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment94,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemma-4-31b-it,Google: Gemma 4 31B,1775148486,262144,0.00000014,0.0000004,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "95,,code95,name95,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc95,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment95,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemma-4-31b-it:free,Google: Gemma 4 31B (free),1775148486,262144,0,0,Yes,No,Yes,Yes,No,google,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "96,,code96,name96,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc96,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment96,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.6-plus,Qwen: Qwen3.6 Plus,1775133557,1000000,0.000000325,0.00000195,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "97,,code97,name97,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc97,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment97,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-5v-turbo,Z.ai: GLM 5V Turbo,1775061458,202752,0.0000012,0.000004,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "98,,code98,name98,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc98,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment98,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,arcee-ai/trinity-large-thinking,Arcee AI: Trinity Large Thinking,1775058318,262144,0.00000022,0.00000085,Yes,Yes,Yes,Yes,No,arcee-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "99,,code99,name99,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc99,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment99,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,x-ai/grok-4.20-multi-agent,xAI: Grok 4.20 Multi-Agent,1774979158,2000000,0.00000125,0.0000025,No,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "100,,code100,name100,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc100,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment100,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,x-ai/grok-4.20,xAI: Grok 4.20,1774979019,2000000,0.00000125,0.0000025,Yes,Yes,Yes,Yes,No,x-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "101,,code101,name101,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc101,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment101,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/lyria-3-pro-preview,Google: Lyria 3 Pro Preview,1774907286,1048576,0,0,No,No,No,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "102,,code102,name102,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc102,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment102,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/lyria-3-clip-preview,Google: Lyria 3 Clip Preview,1774907255,1048576,0,0,No,No,No,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "103,,code103,name103,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc103,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment103,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,kwaipilot/kat-coder-pro-v2,Kwaipilot: KAT-Coder-Pro V2,1774649310,262144,0.0000003,0.0000012,Yes,Yes,No,Yes,No,kwaipilot,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "104,,code104,name104,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc104,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment104,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,rekaai/reka-edge,Reka Edge,1774026965,16384,0.0000001,0.0000001,Yes,Yes,No,No,No,rekaai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "105,,code105,name105,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc105,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment105,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,minimax/minimax-m2.7,MiniMax: MiniMax M2.7,1773836697,204800,0.00000025,0.000001,Yes,Yes,Yes,Yes,No,minimax,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "106,,code106,name106,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc106,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment106,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.4-nano,OpenAI: GPT-5.4 Nano,1773748187,400000,0.0000002,0.00000125,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "107,,code107,name107,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc107,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment107,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.4-mini,OpenAI: GPT-5.4 Mini,1773748178,400000,0.00000075,0.0000045,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "108,,code108,name108,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc108,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment108,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-small-2603,Mistral: Mistral Small 4,1773695685,262144,0.00000015,0.0000006,Yes,Yes,Yes,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "109,,code109,name109,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc109,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment109,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-5-turbo,Z.ai: GLM 5 Turbo,1773583573,202752,0.0000012,0.000004,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "110,,code110,name110,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc110,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment110,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-3-super-120b-a12b,NVIDIA: Nemotron 3 Super,1773245239,1000000,0.000000085,0.0000004,Yes,Yes,Yes,Yes,No,nvidia,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "111,,code111,name111,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc111,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment111,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-3-super-120b-a12b:free,NVIDIA: Nemotron 3 Super (free),1773245239,262144,0,0,Yes,Yes,Yes,Yes,No,nvidia,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "112,,code112,name112,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc112,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment112,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,bytedance-seed/seed-2.0-lite,ByteDance Seed: Seed-2.0-Lite,1773157231,262144,0.00000025,0.000002,Yes,Yes,Yes,Yes,No,bytedance-seed,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "113,,code113,name113,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc113,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment113,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.5-9b,Qwen: Qwen3.5-9B,1773152396,262144,0.0000001,0.00000015,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "114,,code114,name114,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc114,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment114,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.4-pro,OpenAI: GPT-5.4 Pro,1772734366,1050000,0.00003,0.00018,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "115,,code115,name115,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc115,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment115,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.4,OpenAI: GPT-5.4,1772734352,1050000,0.0000025,0.000015,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "116,,code116,name116,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc116,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment116,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,inception/mercury-2,Inception: Mercury 2,1772636275,128000,0.00000025,0.00000075,Yes,Yes,Yes,Yes,No,inception,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "117,,code117,name117,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc117,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment117,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.3-chat,OpenAI: GPT-5.3 Chat,1772564061,128000,0.00000175,0.000014,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "118,,code118,name118,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc118,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment118,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.1-flash-lite-preview,Google: Gemini 3.1 Flash Lite Preview,1772512673,1048576,0.00000025,0.0000015,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "119,,code119,name119,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc119,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment119,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,bytedance-seed/seed-2.0-mini,ByteDance Seed: Seed-2.0-Mini,1772131107,262144,0.0000001,0.0000004,Yes,Yes,Yes,Yes,No,bytedance-seed,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "120,,code120,name120,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc120,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment120,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.1-flash-image-preview,Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview),1772119558,131072,0.0000005,0.000003,No,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "121,,code121,name121,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc121,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment121,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.5-35b-a3b,Qwen: Qwen3.5-35B-A3B,1772053822,262144,0.00000014,0.000001,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "122,,code122,name122,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc122,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment122,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.5-27b,Qwen: Qwen3.5-27B,1772053810,262144,0.000000195,0.00000156,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "123,,code123,name123,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc123,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment123,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.5-122b-a10b,Qwen: Qwen3.5-122B-A10B,1772053789,262144,0.00000026,0.00000208,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "124,,code124,name124,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc124,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment124,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.5-flash-02-23,Qwen: Qwen3.5-Flash,1772053776,1000000,0.000000065,0.00000026,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "125,,code125,name125,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc125,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment125,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.1-pro-preview-customtools,Google: Gemini 3.1 Pro Preview Custom Tools,1772045923,1048576,0.000002,0.000012,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "126,,code126,name126,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc126,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment126,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.3-codex,OpenAI: GPT-5.3-Codex,1771959164,400000,0.00000175,0.000014,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "127,,code127,name127,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc127,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment127,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,aion-labs/aion-2.0,AionLabs: Aion-2.0,1771881306,131072,0.0000008,0.0000016,Yes,No,Yes,Yes,No,aion-labs,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "128,,code128,name128,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc128,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment128,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3.1-pro-preview,Google: Gemini 3.1 Pro Preview,1771509627,1048576,0.000002,0.000012,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "129,,code129,name129,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc129,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment129,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-sonnet-4.6,Anthropic: Claude Sonnet 4.6,1771342990,1000000,0.000003,0.000015,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "130,,code130,name130,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc130,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment130,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.5-plus-02-15,Qwen: Qwen3.5 Plus 2026-02-15,1771229416,1000000,0.00000026,0.00000156,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "131,,code131,name131,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc131,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment131,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3.5-397b-a17b,Qwen: Qwen3.5 397B A17B,1771223018,262144,0.00000039,0.00000234,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "132,,code132,name132,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc132,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment132,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,minimax/minimax-m2.5,MiniMax: MiniMax M2.5,1770908502,204800,0.00000015,0.0000009,Yes,Yes,Yes,Yes,No,minimax,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "133,,code133,name133,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc133,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment133,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-5,Z.ai: GLM 5,1770829182,204800,0.00000095,0.00000255,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "134,,code134,name134,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc134,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment134,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-max-thinking,Qwen: Qwen3 Max Thinking,1770671901,262144,0.00000078,0.0000039,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "135,,code135,name135,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc135,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment135,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-4.6,Anthropic: Claude Opus 4.6,1770219050,1000000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "136,,code136,name136,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc136,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment136,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-coder-next,Qwen: Qwen3 Coder Next,1770164101,262144,0.00000011,0.0000008,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "137,,code137,name137,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc137,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment137,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openrouter/free,Free Models Router,1769917427,200000,0,0,Yes,Yes,Yes,Yes,No,openrouter,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "138,,code138,name138,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc138,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment138,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,stepfun/step-3.5-flash,StepFun: Step 3.5 Flash,1769728337,262144,0.0000001,0.0000003,Yes,No,Yes,No,No,stepfun,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "139,,code139,name139,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc139,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment139,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,moonshotai/kimi-k2.5,MoonshotAI: Kimi K2.5,1769487076,262144,0.00000057,0.00000285,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "140,,code140,name140,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc140,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment140,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,upstage/solar-pro-3,Upstage: Solar Pro 3,1769481200,128000,0.00000015,0.0000006,Yes,Yes,Yes,Yes,No,upstage,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "141,,code141,name141,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc141,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment141,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,minimax/minimax-m2-her,MiniMax: MiniMax M2-her,1769177239,65536,0.0000003,0.0000012,No,No,No,No,No,minimax,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "142,,code142,name142,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc142,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment142,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,writer/palmyra-x5,Writer: Palmyra X5,1769003823,1040000,0.0000006,0.000006,No,No,No,No,No,writer,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "143,,code143,name143,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc143,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment143,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-audio,OpenAI: GPT Audio,1768862569,128000,0.0000025,0.00001,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "144,,code144,name144,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc144,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment144,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-audio-mini,OpenAI: GPT Audio Mini,1768859419,128000,0.0000006,0.0000024,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "145,,code145,name145,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc145,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment145,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-4.7-flash,Z.ai: GLM 4.7 Flash,1768833913,202752,0.00000006,0.0000004,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "146,,code146,name146,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc146,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment146,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.2-codex,OpenAI: GPT-5.2-Codex,1768409315,400000,0.00000175,0.000014,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "147,,code147,name147,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc147,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment147,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,bytedance-seed/seed-1.6-flash,ByteDance Seed: Seed 1.6 Flash,1766505011,262144,0.000000075,0.0000003,Yes,Yes,Yes,Yes,No,bytedance-seed,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "148,,code148,name148,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc148,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment148,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,bytedance-seed/seed-1.6,ByteDance Seed: Seed 1.6,1766504997,262144,0.00000025,0.000002,Yes,Yes,Yes,Yes,No,bytedance-seed,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "149,,code149,name149,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc149,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment149,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,minimax/minimax-m2.1,MiniMax: MiniMax M2.1,1766454997,204800,0.0000003,0.0000012,Yes,No,Yes,Yes,No,minimax,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "150,,code150,name150,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc150,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment150,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-4.7,Z.ai: GLM 4.7,1766378014,204800,0.0000004,0.00000175,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "151,,code151,name151,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc151,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment151,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3-flash-preview,Google: Gemini 3 Flash Preview,1765987078,1048576,0.0000005,0.000003,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "152,,code152,name152,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc152,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment152,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-3-nano-30b-a3b,NVIDIA: Nemotron 3 Nano 30B A3B,1765731275,262144,0.00000005,0.0000002,Yes,Yes,Yes,Yes,No,nvidia,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "153,,code153,name153,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc153,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment153,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-3-nano-30b-a3b:free,NVIDIA: Nemotron 3 Nano 30B A3B (free),1765731275,256000,0,0,Yes,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "154,,code154,name154,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc154,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment154,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.2-chat,OpenAI: GPT-5.2 Chat,1765389783,128000,0.00000175,0.000014,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "155,,code155,name155,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc155,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment155,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.2-pro,OpenAI: GPT-5.2 Pro,1765389780,400000,0.000021,0.000168,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "156,,code156,name156,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc156,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment156,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.2,OpenAI: GPT-5.2,1765389775,400000,0.00000175,0.000014,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "157,,code157,name157,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc157,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment157,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/devstral-2512,Mistral: Devstral 2 2512,1765285419,262144,0.0000004,0.000002,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "158,,code158,name158,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc158,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment158,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,relace/relace-search,Relace: Relace Search,1765213560,256000,0.000001,0.000003,Yes,No,No,Yes,No,relace,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "159,,code159,name159,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc159,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment159,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-4.6v,Z.ai: GLM 4.6V,1765207462,131072,0.0000003,0.0000009,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "160,,code160,name160,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc160,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment160,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openrouter/bodybuilder,Body Builder (beta),1764903653,128000,-1,-1,No,No,No,No,No,openrouter,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "161,,code161,name161,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc161,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment161,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.1-codex-max,OpenAI: GPT-5.1-Codex-Max,1764878934,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "162,,code162,name162,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc162,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment162,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,amazon/nova-2-lite-v1,Amazon: Nova 2 Lite,1764696672,1000000,0.0000003,0.0000025,Yes,No,Yes,No,No,amazon,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "163,,code163,name163,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc163,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment163,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/ministral-14b-2512,Mistral: Ministral 3 14B 2512,1764681735,262144,0.0000002,0.0000002,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "164,,code164,name164,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc164,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment164,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/ministral-8b-2512,Mistral: Ministral 3 8B 2512,1764681654,262144,0.00000015,0.00000015,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "165,,code165,name165,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc165,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment165,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/ministral-3b-2512,Mistral: Ministral 3 3B 2512,1764681560,131072,0.0000001,0.0000001,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "166,,code166,name166,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc166,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment166,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-large-2512,Mistral: Mistral Large 3 2512,1764624472,262144,0.0000005,0.0000015,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "167,,code167,name167,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc167,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment167,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-v3.2,DeepSeek: DeepSeek V3.2,1764594642,163840,0.000000269,0.0000004,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "168,,code168,name168,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc168,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment168,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-4.5,Anthropic: Claude Opus 4.5,1764010580,200000,0.000005,0.000025,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "169,,code169,name169,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc169,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment169,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,allenai/olmo-3-32b-think,AllenAI: Olmo 3 32B Think,1763758276,65536,0.00000015,0.0000005,No,Yes,Yes,Yes,No,allenai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "170,,code170,name170,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc170,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment170,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-3-pro-image-preview,Google: Nano Banana Pro (Gemini 3 Pro Image Preview),1763653797,65536,0.000002,0.000012,No,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "171,,code171,name171,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc171,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment171,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepcogito/cogito-v2.1-671b,Deep Cogito: Cogito v2.1 671B,1763071233,128000,0.00000125,0.00000125,No,Yes,Yes,Yes,No,deepcogito,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "172,,code172,name172,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc172,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment172,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.1,OpenAI: GPT-5.1,1763060305,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "173,,code173,name173,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc173,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment173,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.1-chat,OpenAI: GPT-5.1 Chat,1763060302,128000,0.00000125,0.00001,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "174,,code174,name174,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc174,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment174,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.1-codex,OpenAI: GPT-5.1-Codex,1763060298,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "175,,code175,name175,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc175,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment175,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5.1-codex-mini,OpenAI: GPT-5.1-Codex-Mini,1763057820,400000,0.00000025,0.000002,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "176,,code176,name176,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc176,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment176,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,moonshotai/kimi-k2-thinking,MoonshotAI: Kimi K2 Thinking,1762440622,262144,0.0000006,0.0000025,Yes,Yes,Yes,Yes,No,moonshotai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "177,,code177,name177,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc177,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment177,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,amazon/nova-premier-v1,Amazon: Nova Premier 1.0,1761950332,1000000,0.0000025,0.0000125,No,No,No,No,No,amazon,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "178,,code178,name178,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc178,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment178,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,perplexity/sonar-pro-search,Perplexity: Sonar Pro Search,1761854366,200000,0.000003,0.000015,No,Yes,Yes,No,Yes,perplexity,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "179,,code179,name179,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc179,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment179,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/voxtral-small-24b-2507,Mistral: Voxtral Small 24B 2507,1761835144,32000,0.0000001,0.0000003,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "180,,code180,name180,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc180,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment180,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-oss-safeguard-20b,OpenAI: gpt-oss-safeguard-20b,1761752836,131072,0.000000075,0.0000003,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "181,,code181,name181,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc181,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment181,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-nano-12b-v2-vl:free,NVIDIA: Nemotron Nano 12B 2 VL (free),1761675565,128000,0,0,Yes,No,Yes,No,No,nvidia,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "182,,code182,name182,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc182,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment182,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,minimax/minimax-m2,MiniMax: MiniMax M2,1761252093,204800,0.000000255,0.00000102,Yes,Yes,Yes,Yes,No,minimax,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "183,,code183,name183,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc183,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment183,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-vl-32b-instruct,Qwen: Qwen3 VL 32B Instruct,1761231332,131072,0.000000104,0.000000416,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "184,,code184,name184,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc184,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment184,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,ibm-granite/granite-4.0-h-micro,IBM: Granite 4.0 Micro,1760927695,131000,0.000000017,0.000000112,No,No,No,Yes,No,ibm-granite,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "185,,code185,name185,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc185,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment185,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5-image-mini,OpenAI: GPT-5 Image Mini,1760624583,400000,0.0000025,0.000002,No,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "186,,code186,name186,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc186,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment186,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-haiku-4.5,Anthropic: Claude Haiku 4.5,1760547638,200000,0.000001,0.000005,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "187,,code187,name187,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc187,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment187,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-vl-8b-thinking,Qwen: Qwen3 VL 8B Thinking,1760463746,131072,0.000000117,0.000001365,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "188,,code188,name188,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc188,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment188,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-vl-8b-instruct,Qwen: Qwen3 VL 8B Instruct,1760463308,262144,0.000000117,0.000000455,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "189,,code189,name189,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc189,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment189,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5-image,OpenAI: GPT-5 Image,1760447986,400000,0.00001,0.00001,No,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "190,,code190,name190,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc190,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment190,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o3-deep-research,OpenAI: o3 Deep Research,1760129661,200000,0.00001,0.00004,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "191,,code191,name191,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc191,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment191,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o4-mini-deep-research,OpenAI: o4 Mini Deep Research,1760129642,200000,0.000002,0.000008,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "192,,code192,name192,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc192,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment192,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-2.5-flash-image,Google: Nano Banana (Gemini 2.5 Flash Image),1759870431,32768,0.0000003,0.0000025,No,Yes,No,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "193,,code193,name193,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc193,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment193,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-vl-30b-a3b-thinking,Qwen: Qwen3 VL 30B A3B Thinking,1759794479,262144,0.00000013,0.00000156,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "194,,code194,name194,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc194,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment194,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-vl-30b-a3b-instruct,Qwen: Qwen3 VL 30B A3B Instruct,1759794476,262144,0.00000015,0.0000006,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "195,,code195,name195,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc195,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment195,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5-pro,OpenAI: GPT-5 Pro,1759776663,400000,0.000015,0.00012,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "196,,code196,name196,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc196,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment196,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-4.6,Z.ai: GLM 4.6,1759235576,204800,0.0000005,0.000002,Yes,Yes,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "197,,code197,name197,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc197,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment197,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-sonnet-4.5,Anthropic: Claude Sonnet 4.5,1759161676,1000000,0.000003,0.000015,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "198,,code198,name198,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc198,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment198,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-v3.2-exp,DeepSeek: DeepSeek V3.2 Exp,1759150481,163840,0.00000027,0.00000041,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "199,,code199,name199,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc199,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment199,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,thedrummer/cydonia-24b-v4.1,TheDrummer: Cydonia 24B V4.1,1758931878,131072,0.0000003,0.0000005,No,Yes,No,Yes,No,thedrummer,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "200,,code200,name200,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc200,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment200,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,relace/relace-apply-3,Relace: Relace Apply 3,1758891572,256000,0.00000085,0.00000125,No,No,No,No,No,relace,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "201,,code201,name201,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc201,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment201,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-vl-235b-a22b-thinking,Qwen: Qwen3 VL 235B A22B Thinking,1758668690,131072,0.00000026,0.0000026,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "202,,code202,name202,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc202,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment202,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-vl-235b-a22b-instruct,Qwen: Qwen3 VL 235B A22B Instruct,1758668687,262144,0.00000021,0.0000019,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "203,,code203,name203,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc203,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment203,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-max,Qwen: Qwen3 Max,1758662808,262144,0.00000078,0.0000039,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "204,,code204,name204,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc204,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment204,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-coder-plus,Qwen: Qwen3 Coder Plus,1758662707,1000000,0.00000065,0.00000325,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "205,,code205,name205,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc205,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment205,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5-codex,OpenAI: GPT-5 Codex,1758643403,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "206,,code206,name206,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc206,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment206,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-v3.1-terminus,DeepSeek: DeepSeek V3.1 Terminus,1758548275,163840,0.00000027,0.000001,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "207,,code207,name207,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc207,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment207,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-coder-flash,Qwen: Qwen3 Coder Flash,1758115536,1000000,0.000000195,0.000000975,Yes,No,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "208,,code208,name208,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc208,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment208,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-next-80b-a3b-thinking,Qwen: Qwen3 Next 80B A3B Thinking,1757612284,262144,0.0000000975,0.00000078,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "209,,code209,name209,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc209,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment209,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-next-80b-a3b-instruct,Qwen: Qwen3 Next 80B A3B Instruct,1757612213,262144,0.0000001,0.0000011,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "210,,code210,name210,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc210,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment210,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen-plus-2025-07-28,Qwen: Qwen Plus 0728,1757347599,1000000,0.00000026,0.00000078,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "211,,code211,name211,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc211,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment211,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen-plus-2025-07-28:thinking,Qwen: Qwen Plus 0728 (thinking),1757347599,1000000,0.00000026,0.00000078,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "212,,code212,name212,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc212,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment212,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nvidia/nemotron-nano-9b-v2:free,NVIDIA: Nemotron Nano 9B V2 (free),1757106807,128000,0,0,Yes,Yes,Yes,Yes,No,nvidia,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "213,,code213,name213,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc213,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment213,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,moonshotai/kimi-k2-0905,MoonshotAI: Kimi K2 0905,1757021147,262144,0.0000006,0.0000025,Yes,Yes,No,Yes,No,moonshotai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "214,,code214,name214,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc214,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment214,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-30b-a3b-thinking-2507,Qwen: Qwen3 30B A3B Thinking 2507,1756399192,81920,0.00000013,0.00000156,Yes,No,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "215,,code215,name215,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc215,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment215,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nousresearch/hermes-4-70b,Nous: Hermes 4 70B,1756236182,131072,0.00000013,0.0000004,No,No,Yes,Yes,No,nousresearch,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "216,,code216,name216,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc216,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment216,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nousresearch/hermes-4-405b,Nous: Hermes 4 405B,1756235463,131072,0.000001,0.000003,No,No,Yes,Yes,No,nousresearch,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "217,,code217,name217,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc217,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment217,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-chat-v3.1,DeepSeek: DeepSeek V3.1,1755779628,163840,0.00000025,0.00000095,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "218,,code218,name218,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc218,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment218,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-medium-3.1,Mistral: Mistral Medium 3.1,1755095639,131072,0.0000004,0.000002,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "219,,code219,name219,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc219,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment219,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-4.5v,Z.ai: GLM 4.5V,1754922288,65536,0.0000006,0.0000018,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "220,,code220,name220,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc220,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment220,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,ai21/jamba-large-1.7,AI21: Jamba Large 1.7,1754669020,256000,0.000002,0.000008,Yes,No,No,Yes,No,ai21,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "221,,code221,name221,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc221,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment221,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5-chat,OpenAI: GPT-5 Chat,1754587837,128000,0.00000125,0.00001,No,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "222,,code222,name222,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc222,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment222,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5,OpenAI: GPT-5,1754587413,400000,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "223,,code223,name223,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc223,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment223,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5-mini,OpenAI: GPT-5 Mini,1754587407,400000,0.00000025,0.000002,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "224,,code224,name224,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc224,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment224,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-5-nano,OpenAI: GPT-5 Nano,1754587402,400000,0.00000005,0.0000004,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "225,,code225,name225,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc225,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment225,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-oss-120b,OpenAI: gpt-oss-120b,1754414231,131072,0.000000037,0.00000017,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "226,,code226,name226,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc226,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment226,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-oss-20b,OpenAI: gpt-oss-20b,1754414229,131072,0.00000003,0.00000013,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "227,,code227,name227,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc227,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment227,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-oss-20b:free,OpenAI: gpt-oss-20b (free),1754414229,131072,0,0,Yes,Yes,Yes,Yes,No,openai,free,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "228,,code228,name228,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc228,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment228,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-4.1,Anthropic: Claude Opus 4.1,1754411591,200000,0.000015,0.000075,Yes,Yes,Yes,Yes,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "229,,code229,name229,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc229,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment229,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/codestral-2508,Mistral: Codestral 2508,1754079630,256000,0.0000003,0.0000009,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "230,,code230,name230,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc230,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment230,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-coder-30b-a3b-instruct,Qwen: Qwen3 Coder 30B A3B Instruct,1753972379,262144,0.00000007,0.00000027,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "231,,code231,name231,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc231,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment231,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-30b-a3b-instruct-2507,Qwen: Qwen3 30B A3B Instruct 2507,1753806965,262144,0.0000001,0.0000003,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "232,,code232,name232,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc232,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment232,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-4.5,Z.ai: GLM 4.5,1753471347,131072,0.0000006,0.0000022,Yes,No,Yes,Yes,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "233,,code233,name233,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc233,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment233,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,z-ai/glm-4.5-air,Z.ai: GLM 4.5 Air,1753471258,131072,0.00000013,0.00000085,Yes,No,Yes,No,No,z-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "234,,code234,name234,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc234,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment234,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-235b-a22b-thinking-2507,Qwen: Qwen3 235B A22B Thinking 2507,1753449557,262144,0.0000003,0.000003,Yes,No,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "235,,code235,name235,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc235,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment235,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-coder,Qwen: Qwen3 Coder 480B A35B,1753230546,262144,0.0000003,0.000001,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "236,,code236,name236,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc236,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment236,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,bytedance/ui-tars-1.5-7b,ByteDance: UI-TARS 7B,1753205056,128000,0.0000001,0.0000002,No,Yes,No,No,No,bytedance,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "237,,code237,name237,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc237,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment237,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-2.5-flash-lite,Google: Gemini 2.5 Flash Lite,1753200276,1048576,0.0000001,0.0000004,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "238,,code238,name238,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc238,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment238,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-235b-a22b-2507,Qwen: Qwen3 235B A22B Instruct 2507,1753119555,262144,0.00000009,0.00000055,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "239,,code239,name239,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc239,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment239,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,moonshotai/kimi-k2,MoonshotAI: Kimi K2 0711,1752263252,131072,0.00000057,0.0000023,Yes,No,No,No,No,moonshotai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "240,,code240,name240,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc240,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment240,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,cognitivecomputations/dolphin-mistral-24b-venice-edition,Venice: Uncensored,1752094966,128000,0.0000002,0.0000009,No,No,No,Yes,No,cognitivecomputations,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "241,,code241,name241,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc241,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment241,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,tencent/hunyuan-a13b-instruct,Tencent: Hunyuan A13B Instruct,1751987664,131072,0.00000014,0.00000057,No,Yes,Yes,Yes,No,tencent,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "242,,code242,name242,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc242,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment242,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,morph/morph-v3-large,Morph: Morph V3 Large,1751910858,262144,0.0000009,0.0000019,No,Yes,No,Yes,No,morph,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "243,,code243,name243,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc243,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment243,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,morph/morph-v3-fast,Morph: Morph V3 Fast,1751910002,81920,0.0000008,0.0000012,No,No,No,No,No,morph,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "244,,code244,name244,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc244,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment244,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,baidu/ernie-4.5-vl-424b-a47b,Baidu: ERNIE 4.5 VL 424B A47B,1751300903,123000,0.00000042,0.00000125,No,No,Yes,No,No,baidu,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "245,,code245,name245,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc245,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment245,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-small-3.2-24b-instruct,Mistral: Mistral Small 3.2 24B,1750443016,256000,0.0000001,0.0000003,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "246,,code246,name246,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc246,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment246,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,minimax/minimax-m1,MiniMax: MiniMax M1,1750200414,1000000,0.00000055,0.0000022,Yes,No,Yes,No,No,minimax,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "247,,code247,name247,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc247,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment247,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-2.5-flash,Google: Gemini 2.5 Flash,1750172488,1048576,0.0000003,0.0000025,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "248,,code248,name248,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc248,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment248,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-2.5-pro,Google: Gemini 2.5 Pro,1750169544,1048576,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "249,,code249,name249,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc249,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment249,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o3-pro,OpenAI: o3 Pro,1749598352,200000,0.00002,0.00008,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "250,,code250,name250,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc250,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment250,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-2.5-pro-preview,Google: Gemini 2.5 Pro Preview 06-05,1749137257,1048576,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "251,,code251,name251,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc251,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment251,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-r1-0528,DeepSeek: R1 0528,1748455170,163840,0.0000005,0.00000215,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "252,,code252,name252,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc252,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment252,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-opus-4,Anthropic: Claude Opus 4,1747931245,200000,0.000015,0.000075,Yes,No,Yes,No,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "253,,code253,name253,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc253,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment253,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-sonnet-4,Anthropic: Claude Sonnet 4,1747930371,1000000,0.000003,0.000015,Yes,No,Yes,No,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "254,,code254,name254,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc254,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment254,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemma-3n-e4b-it,Google: Gemma 3n 4B,1747776824,32768,0.00000006,0.00000012,No,Yes,No,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "255,,code255,name255,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc255,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment255,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-medium-3,Mistral: Mistral Medium 3,1746627341,131072,0.0000004,0.000002,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "256,,code256,name256,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc256,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment256,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemini-2.5-pro-preview-05-06,Google: Gemini 2.5 Pro Preview 05-06,1746578513,1048576,0.00000125,0.00001,Yes,Yes,Yes,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "257,,code257,name257,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc257,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment257,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,arcee-ai/virtuoso-large,Arcee AI: Virtuoso Large,1746478885,131072,0.00000075,0.0000012,Yes,No,No,No,No,arcee-ai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "258,,code258,name258,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc258,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment258,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meta-llama/llama-guard-4-12b,Meta: Llama Guard 4 12B,1745975193,1048576,0.00000018,0.00000018,No,No,No,Yes,No,meta-llama,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "259,,code259,name259,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc259,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment259,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-30b-a3b,Qwen: Qwen3 30B A3B,1745878604,131072,0.00000013,0.00000052,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "260,,code260,name260,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc260,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment260,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-8b,Qwen: Qwen3 8B,1745876632,131072,0.000000117,0.000000455,Yes,No,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "261,,code261,name261,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc261,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment261,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-14b,Qwen: Qwen3 14B,1745876478,131072,0.0000002275,0.00000091,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "262,,code262,name262,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc262,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment262,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-32b,Qwen: Qwen3 32B,1745875945,131072,0.00000008,0.00000028,Yes,Yes,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "263,,code263,name263,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc263,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment263,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen3-235b-a22b,Qwen: Qwen3 235B A22B,1745875757,131072,0.000000455,0.00000182,Yes,No,Yes,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "264,,code264,name264,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc264,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment264,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o4-mini-high,OpenAI: o4 Mini High,1744824212,200000,0.0000011,0.0000044,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "265,,code265,name265,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc265,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment265,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o3,OpenAI: o3,1744823457,200000,0.000002,0.000008,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "266,,code266,name266,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc266,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment266,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o4-mini,OpenAI: o4 Mini,1744820942,200000,0.0000011,0.0000044,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "267,,code267,name267,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc267,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment267,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4.1,OpenAI: GPT-4.1,1744651385,1047576,0.000002,0.000008,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "268,,code268,name268,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc268,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment268,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4.1-mini,OpenAI: GPT-4.1 Mini,1744651381,1047576,0.0000004,0.0000016,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "269,,code269,name269,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc269,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment269,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4.1-nano,OpenAI: GPT-4.1 Nano,1744651369,1047576,0.0000001,0.0000004,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "270,,code270,name270,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc270,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment270,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meta-llama/llama-4-maverick,Meta: Llama 4 Maverick,1743881822,1048576,0.0000002,0.0000008,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "271,,code271,name271,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc271,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment271,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meta-llama/llama-4-scout,Meta: Llama 4 Scout,1743881519,1310720,0.0000001,0.0000003,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "272,,code272,name272,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc272,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment272,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-chat-v3-0324,DeepSeek: DeepSeek V3 0324,1742824755,163840,0.00000027,0.00000112,Yes,Yes,No,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "273,,code273,name273,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc273,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment273,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o1-pro,OpenAI: o1-pro,1742423211,200000,0.00015,0.0006,No,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "274,,code274,name274,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc274,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment274,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-small-3.1-24b-instruct,Mistral: Mistral Small 3.1 24B,1742238937,128000,0.000000351,0.000000555,No,No,No,No,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "275,,code275,name275,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc275,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment275,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemma-3-4b-it,Google: Gemma 3 4B,1741905510,131072,0.00000005,0.0000001,No,Yes,No,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "276,,code276,name276,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc276,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment276,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemma-3-12b-it,Google: Gemma 3 12B,1741902625,131072,0.00000005,0.00000015,Yes,Yes,No,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "277,,code277,name277,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc277,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment277,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,cohere/command-a,Cohere: Command A,1741894342,256000,0.0000025,0.00001,No,Yes,No,Yes,No,cohere,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "278,,code278,name278,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc278,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment278,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4o-mini-search-preview,OpenAI: GPT-4o-mini Search Preview,1741818122,128000,0.00000015,0.0000006,No,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "279,,code279,name279,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc279,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment279,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4o-search-preview,OpenAI: GPT-4o Search Preview,1741817949,128000,0.0000025,0.00001,No,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "280,,code280,name280,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc280,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment280,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,rekaai/reka-flash-3,Reka Flash 3,1741812813,65536,0.0000001,0.0000002,No,Yes,Yes,No,No,rekaai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "281,,code281,name281,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc281,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment281,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemma-3-27b-it,Google: Gemma 3 27B,1741756359,262144,0.00000008,0.00000045,Yes,Yes,No,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "282,,code282,name282,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc282,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment282,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,thedrummer/skyfall-36b-v2,TheDrummer: Skyfall 36B V2,1741636566,32768,0.00000055,0.0000008,No,Yes,No,Yes,No,thedrummer,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "283,,code283,name283,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc283,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment283,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,perplexity/sonar-reasoning-pro,Perplexity: Sonar Reasoning Pro,1741313308,128000,0.000002,0.000008,No,No,Yes,No,Yes,perplexity,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "284,,code284,name284,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc284,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment284,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,perplexity/sonar-pro,Perplexity: Sonar Pro,1741312423,200000,0.000003,0.000015,No,No,No,No,Yes,perplexity,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "285,,code285,name285,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc285,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment285,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,perplexity/sonar-deep-research,Perplexity: Sonar Deep Research,1741311246,128000,0.000002,0.000008,No,No,Yes,No,Yes,perplexity,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "286,,code286,name286,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc286,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment286,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-saba,Mistral: Saba,1739803239,32768,0.0000002,0.0000006,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "287,,code287,name287,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc287,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment287,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o3-mini-high,OpenAI: o3 Mini High,1739372611,200000,0.0000011,0.0000044,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "288,,code288,name288,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc288,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment288,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,aion-labs/aion-rp-llama-3.1-8b,AionLabs: Aion-RP 1.0 (8B),1738696718,32768,0.0000008,0.0000016,No,No,No,No,No,aion-labs,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "289,,code289,name289,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc289,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment289,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen2.5-vl-72b-instruct,Qwen: Qwen2.5 VL 72B Instruct,1738410311,128000,0.0000008,0.000001,No,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "290,,code290,name290,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc290,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment290,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen-plus,Qwen: Qwen-Plus,1738409840,1000000,0.00000026,0.00000078,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "291,,code291,name291,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc291,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment291,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o3-mini,OpenAI: o3 Mini,1738351721,200000,0.0000011,0.0000044,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "292,,code292,name292,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc292,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment292,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-small-24b-instruct-2501,Mistral: Mistral Small 3,1738255409,32768,0.00000005,0.00000008,No,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "293,,code293,name293,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc293,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment293,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,perplexity/sonar,Perplexity: Sonar,1738013808,127072,0.000001,0.000001,No,No,No,No,Yes,perplexity,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "294,,code294,name294,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc294,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment294,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-r1-distill-llama-70b,DeepSeek: R1 Distill Llama 70B,1737663169,8192,0.0000008,0.0000008,No,No,Yes,No,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "295,,code295,name295,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc295,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment295,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-r1,DeepSeek: R1,1737381095,163840,0.0000007,0.0000025,Yes,Yes,Yes,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "296,,code296,name296,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc296,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment296,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,minimax/minimax-01,MiniMax: MiniMax-01,1736915462,1000192,0.0000002,0.0000011,No,No,No,No,No,minimax,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "297,,code297,name297,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc297,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment297,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,microsoft/phi-4,Microsoft: Phi 4,1736489872,16384,0.00000007,0.00000014,No,Yes,No,Yes,No,microsoft,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "298,,code298,name298,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc298,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment298,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,deepseek/deepseek-chat,DeepSeek: DeepSeek V3,1735241320,163840,0.0000002002,0.0000008001,Yes,Yes,No,Yes,No,deepseek,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "299,,code299,name299,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc299,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment299,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,sao10k/l3.3-euryale-70b,Sao10K: Llama 3.3 Euryale 70B,1734535928,131072,0.00000065,0.00000075,No,Yes,No,Yes,No,sao10k,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "300,,code300,name300,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc300,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment300,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/o1,OpenAI: o1,1734459999,200000,0.000015,0.00006,Yes,Yes,Yes,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "301,,code301,name301,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc301,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment301,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,cohere/command-r7b-12-2024,Cohere: Command R7B (12-2024),1734158152,128000,0.0000000375,0.00000015,No,Yes,No,Yes,No,cohere,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "302,,code302,name302,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc302,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment302,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meta-llama/llama-3.3-70b-instruct,Meta: Llama 3.3 70B Instruct,1733506137,131072,0.00000013,0.0000004,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "303,,code303,name303,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc303,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment303,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,amazon/nova-lite-v1,Amazon: Nova Lite 1.0,1733437363,300000,0.00000006,0.00000024,No,No,No,No,No,amazon,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "304,,code304,name304,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc304,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment304,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,amazon/nova-micro-v1,Amazon: Nova Micro 1.0,1733437237,128000,0.000000035,0.00000014,No,No,No,No,No,amazon,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "305,,code305,name305,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc305,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment305,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,amazon/nova-pro-v1,Amazon: Nova Pro 1.0,1733436303,300000,0.0000008,0.0000032,No,No,No,No,No,amazon,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "306,,code306,name306,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc306,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment306,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4o-2024-11-20,OpenAI: GPT-4o (2024-11-20),1732127594,128000,0.0000025,0.00001,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "307,,code307,name307,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc307,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment307,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-large-2407,Mistral Large 2407,1731978415,131072,0.000002,0.000006,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "308,,code308,name308,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc308,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment308,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen-2.5-coder-32b-instruct,Qwen2.5 Coder 32B Instruct,1731368400,32768,0.00000066,0.000001,No,No,No,No,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "309,,code309,name309,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc309,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment309,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,thedrummer/unslopnemo-12b,TheDrummer: UnslopNemo 12B,1731103448,32768,0.0000004,0.0000004,Yes,Yes,No,Yes,No,thedrummer,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "310,,code310,name310,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc310,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment310,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthracite-org/magnum-v4-72b,Magnum v4 72B,1729555200,16384,0.000003,0.000005,No,Yes,No,Yes,No,anthracite-org,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "311,,code311,name311,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc311,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment311,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen-2.5-7b-instruct,Qwen: Qwen2.5 7B Instruct,1729036800,32768,0.00000004,0.0000001,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "312,,code312,name312,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc312,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment312,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,inflection/inflection-3-pi,Inflection: Inflection 3 Pi,1728604800,8000,0.0000025,0.00001,No,No,No,No,No,inflection,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "313,,code313,name313,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc313,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment313,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,inflection/inflection-3-productivity,Inflection: Inflection 3 Productivity,1728604800,8000,0.0000025,0.00001,No,No,No,No,No,inflection,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "314,,code314,name314,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc314,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment314,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,thedrummer/rocinante-12b,TheDrummer: Rocinante 12B,1727654400,65536,0.00000025,0.0000005,No,Yes,No,Yes,No,thedrummer,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "315,,code315,name315,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc315,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment315,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meta-llama/llama-3.2-1b-instruct,Meta: Llama 3.2 1B Instruct,1727222400,60000,0.000000027,0.000000201,No,No,No,No,No,meta-llama,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "316,,code316,name316,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc316,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment316,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meta-llama/llama-3.2-3b-instruct,Meta: Llama 3.2 3B Instruct,1727222400,131072,0.00000005,0.00000033,No,Yes,No,No,No,meta-llama,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "317,,code317,name317,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc317,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment317,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,qwen/qwen-2.5-72b-instruct,Qwen2.5 72B Instruct,1726704000,32768,0.00000036,0.0000004,Yes,Yes,No,Yes,No,qwen,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "318,,code318,name318,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc318,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment318,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,cohere/command-r-08-2024,Cohere: Command R (08-2024),1724976000,128000,0.00000015,0.0000006,Yes,Yes,No,Yes,No,cohere,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "319,,code319,name319,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc319,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment319,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,cohere/command-r-plus-08-2024,Cohere: Command R+ (08-2024),1724976000,128000,0.0000025,0.00001,Yes,Yes,No,Yes,No,cohere,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "320,,code320,name320,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc320,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment320,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,sao10k/l3.1-euryale-70b,Sao10K: Llama 3.1 Euryale 70B v2.2,1724803200,131072,0.00000085,0.00000085,Yes,Yes,No,Yes,No,sao10k,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "321,,code321,name321,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc321,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment321,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nousresearch/hermes-3-llama-3.1-70b,Nous: Hermes 3 70B Instruct,1723939200,131072,0.0000007,0.0000007,No,Yes,No,Yes,No,nousresearch,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "322,,code322,name322,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc322,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment322,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,nousresearch/hermes-3-llama-3.1-405b,Nous: Hermes 3 405B Instruct,1723766400,131072,0.000001,0.000001,No,Yes,No,Yes,No,nousresearch,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "323,,code323,name323,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc323,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment323,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,sao10k/l3-lunaris-8b,Sao10K: Llama 3 8B Lunaris,1723507200,8192,0.00000004,0.00000005,No,Yes,No,Yes,No,sao10k,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "324,,code324,name324,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc324,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment324,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4o-2024-08-06,OpenAI: GPT-4o (2024-08-06),1722902400,128000,0.0000025,0.00001,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "325,,code325,name325,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc325,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment325,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meta-llama/llama-3.1-70b-instruct,Meta: Llama 3.1 70B Instruct,1721692800,131072,0.0000004,0.0000004,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "326,,code326,name326,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc326,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment326,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,meta-llama/llama-3.1-8b-instruct,Meta: Llama 3.1 8B Instruct,1721692800,131072,0.00000005,0.00000008,Yes,Yes,No,Yes,No,meta-llama,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "327,,code327,name327,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc327,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment327,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-nemo,Mistral: Mistral Nemo,1721347200,131072,0.000000019,0.00000003,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "328,,code328,name328,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc328,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment328,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4o-mini,OpenAI: GPT-4o-mini,1721260800,128000,0.00000015,0.0000006,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "329,,code329,name329,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc329,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment329,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4o-mini-2024-07-18,OpenAI: GPT-4o-mini (2024-07-18),1721260800,128000,0.00000015,0.0000006,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "330,,code330,name330,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc330,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment330,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,google/gemma-2-27b-it,Google: Gemma 2 27B,1720828800,8192,0.00000065,0.00000065,No,Yes,No,Yes,No,google,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "331,,code331,name331,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc331,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment331,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4o,OpenAI: GPT-4o,1715558400,128000,0.0000025,0.00001,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "332,,code332,name332,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc332,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment332,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4o-2024-05-13,OpenAI: GPT-4o (2024-05-13),1715558400,128000,0.000005,0.000015,Yes,Yes,No,Yes,Yes,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "333,,code333,name333,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc333,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment333,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mixtral-8x22b-instruct,Mistral: Mixtral 8x22B Instruct,1713312000,65536,0.000002,0.000006,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "334,,code334,name334,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc334,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment334,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,microsoft/wizardlm-2-8x22b,WizardLM-2 8x22B,1713225600,65535,0.00000062,0.00000062,No,No,No,Yes,No,microsoft,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "335,,code335,name335,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc335,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment335,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4-turbo,OpenAI: GPT-4 Turbo,1712620800,128000,0.00001,0.00003,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "336,,code336,name336,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc336,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment336,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,anthropic/claude-3-haiku,Anthropic: Claude 3 Haiku,1710288000,200000,0.00000025,0.00000125,Yes,No,No,No,No,anthropic,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "337,,code337,name337,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc337,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment337,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mistralai/mistral-large,Mistral Large,1708905600,128000,0.000002,0.000006,Yes,Yes,No,Yes,No,mistralai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "338,,code338,name338,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc338,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment338,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-3.5-turbo-0613,OpenAI: GPT-3.5 Turbo (older v0613),1706140800,4095,0.000001,0.000002,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "339,,code339,name339,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc339,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment339,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4-turbo-preview,OpenAI: GPT-4 Turbo Preview,1706140800,128000,0.00001,0.00003,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "340,,code340,name340,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc340,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment340,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openrouter/auto,Auto Router,1699401600,2000000,-1,-1,Yes,Yes,Yes,Yes,Yes,openrouter,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "341,,code341,name341,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc341,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment341,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-3.5-turbo-instruct,OpenAI: GPT-3.5 Turbo Instruct,1695859200,4095,0.0000015,0.000002,No,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "342,,code342,name342,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc342,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment342,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-3.5-turbo-16k,OpenAI: GPT-3.5 Turbo 16k,1693180800,16385,0.000003,0.000004,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "343,,code343,name343,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc343,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment343,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,mancer/weaver,Mancer: Weaver (alpha),1690934400,8000,0.0000005,0.00000075,No,Yes,No,Yes,No,mancer,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "344,,code344,name344,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc344,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment344,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,undi95/remm-slerp-l2-13b,ReMM SLERP 13B,1689984000,6144,0.00000045,0.00000065,No,Yes,No,Yes,No,undi95,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "345,,code345,name345,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc345,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment345,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,gryphe/mythomax-l2-13b,MythoMax 13B,1688256000,8192,0.00000006,0.00000006,No,Yes,No,Yes,No,gryphe,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "346,,code346,name346,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc346,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment346,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-3.5-turbo,OpenAI: GPT-3.5 Turbo,1685232000,16385,0.0000005,0.0000015,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
$data[] = "347,,code347,name347,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc347,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment347,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,openai/gpt-4,OpenAI: GPT-4,1685232000,8191,0.00003,0.00006,Yes,Yes,No,Yes,No,openai,,img,tn,zn,tmp,f49,f50,f51,f52,f53";
pdo_insert( $dbname, $tblname, $data );
}
function pdo_insert_leds_cab() {
global $dbname;
$tblname="leds_cab";
$data[] = "led_id,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os";
$data[] = "110,cm12,cm12,cm12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm12,,,,,,cm12,,,10.5.50.001,,,,,err01,fix01,os01,ab";
$data[] = "120,cn12,cn12,cn12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn12,,,,,,cn12,,,10.5.50.001,,,,,err01,fix01,os01,ac";
$data[] = "130,co12,co12,co12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co12,,,,,,co12,,,10.5.50.001,,,,,err01,fix01,os01,ad";
$data[] = "140,cp12,cp12,cp12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp12,,,,,,cp12,,,10.5.50.001,,,,,err01,fix01,os01,ae";
$data[] = "150,cq12,cq12,cq12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq12,,,,,,cq12,,,10.5.50.001,,,,,err01,fix01,os01,af";
$data[] = "160,cw12,cw12,cw12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw12,,,,,,cw12,,,10.5.50.001,,,,,err01,fix01,os01,ag";
$data[] = "170,ct12,ct12,ct12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct12,,,,,,ct12,,,10.5.50.001,,,,,err01,fix01,os01,ah";
$data[] = "180,cu12,cu12,cu12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu12,,,,,,cu12,,,10.5.50.001,,,,,err01,fix01,os01,ai";
$data[] = "190,cz17,cz17,cz17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cz17,,,,,,cz17,,,10.5.50.001,,,,,err01,fix01,os01,aj";
$data[] = "200,cy17,cy17,cy17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy17,,,,,,cy17,,,10.5.50.001,,,,,err01,fix01,os01,ak";
$data[] = "210,cx17,cx17,cx17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx17,,,,,,cx17,,,10.5.50.001,,,,,err01,fix01,os01,al";
$data[] = "220,cw17,cw17,cw17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw17,,,,,,cw17,,,10.5.50.001,,,,,err01,fix01,os01,ba";
$data[] = "230,cv17,cv17,cv17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv17,,,,,,cv17,,,10.5.50.001,,,,,err01,fix01,os01,bb";
$data[] = "240,cu17,cu17,cu17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu17,,,,,,cu17,,,10.5.50.001,,,,,err01,fix01,os01,bc";
$data[] = "250,ct17,ct17,ct17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct17,,,,,,ct17,,,10.5.50.001,,,,,err01,fix01,os01,bd";
$data[] = "260,cr17,cr17,cr17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr17,,,,,,cr17,,,10.5.50.001,,,,,err01,fix01,os01,be";
$data[] = "270,cq17,cq17,cq17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq17,,,,,,cq17,,,10.5.50.001,,,,,err01,fix01,os01,bf";
$data[] = "280,cp17,cp17,cp17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp17,,,,,,cp17,,,10.5.50.001,,,,,err01,fix01,os01,bg";
$data[] = "290,co17,co17,co17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co17,,,,,,co17,,,10.5.50.001,,,,,err01,fix01,os01,bh";
$data[] = "300,cn17,cn17,cn17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn17,,,,,,cn17,,,10.5.50.001,,,,,err01,fix01,os01,bi";
$data[] = "310,cm17,cm17,cm17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm17,,,,,,cm17,,,10.5.50.001,,,,,err01,fix01,os01,bj";
$data[] = "320,cm20,cm20,cm20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm20,,,,,,cm20,,,10.5.50.001,,,,,err01,fix01,os01,bk";
$data[] = "330,cn20,cn20,cn20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn20,,,,,,cn20,,,10.5.50.001,,,,,err01,fix01,os01,bl";
$data[] = "340,co20,co20,co20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co20,,,,,,co20,,,10.5.50.001,,,,,err01,fix01,os01,ca";
$data[] = "350,cp20,cp20,cp20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp20,,,,,,cp20,,,10.5.50.001,,,,,err01,fix01,os01,cb";
$data[] = "360,cq20,cq20,cq20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq20,,,,,,cq20,,,10.5.50.001,,,,,err01,fix01,os01,cc";
$data[] = "370,cr20,cr20,cr20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr20,,,,,,cr20,,,10.5.50.001,,,,,err01,fix01,os01,cd";
$data[] = "380,cs20,cs20,cs20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cs20,,,,,,cs20,,,10.5.50.001,,,,,err01,fix01,os01,ce";
$data[] = "390,ct20,ct20,ct20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct20,,,,,,ct20,,,10.5.50.001,,,,,err01,fix01,os01,cf";
$data[] = "400,cu20,cu20,cu20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu20,,,,,,cu20,,,10.5.50.001,,,,,err01,fix01,os01,cg";
$data[] = "410,cv20,cv20,cv20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv20,,,,,,cv20,,,10.5.50.001,,,,,err01,fix01,os01,ch";
$data[] = "420,cw20,cw20,cw20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw20,,,,,,cw20,,,10.5.50.001,,,,,err01,fix01,os01,ci";
$data[] = "430,cx20,cx20,cx20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx20,,,,,,cx20,,,10.5.50.001,,,,,err01,fix01,os01,cj";
$data[] = "440,cy20,cy20,cy20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy20,,,,,,cy20,,,10.5.50.001,,,,,err01,fix01,os01,ck";
$data[] = "450,cz26,cz26,cz26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cz26,,,,,,cz26,,,10.5.50.001,,,,,err01,fix01,os01,cl";
$data[] = "460,cy26,cy26,cy26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy26,,,,,,cy26,,,10.5.50.001,,,,,err01,fix01,os01,da";
$data[] = "470,cx26,cx26,cx26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx26,,,,,,cx26,,,10.5.50.001,,,,,err01,fix01,os01,db";
$data[] = "480,cw26,cw26,cw26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw26,,,,,,cw26,,,10.5.50.001,,,,,err01,fix01,os01,dc";
$data[] = "490,cv26,cv26,cv26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv26,,,,,,cv26,,,10.5.50.001,,,,,err01,fix01,os01,dd";
$data[] = "500,cu26,cu26,cu26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu26,,,,,,cu26,,,10.5.50.001,,,,,err01,fix01,os01,de";
$data[] = "510,ct26,ct26,ct26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct26,,,,,,ct26,,,10.5.50.001,,,,,err01,fix01,os01,df";
$data[] = "520,cr26,cr26,cr26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr26,,,,,,cr26,,,10.5.50.001,,,,,err01,fix01,os01,dg";
$data[] = "530,cq26,cq26,cq26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq26,,,,,,cq26,,,10.5.50.001,,,,,err01,fix01,os01,dh";
$data[] = "540,cp26,cp26,cp26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp26,,,,,,cp26,,,10.5.50.001,,,,,err01,fix01,os01,di";
$data[] = "550,co26,co26,co26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co26,,,,,,co26,,,10.5.50.001,,,,,err01,fix01,os01,dj";
$data[] = "560,cn26,cn26,cn26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn26,,,,,,cn26,,,10.5.50.001,,,,,err01,fix01,os01,dk";
$data[] = "570,cm26,cm26,cm26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm26,,,,,,cm26,,,10.5.50.001,,,,,err01,fix01,os01,dl";
$data[] = "580,cm29,cm29,cm29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm29,,,,,,cm29,,,10.5.50.001,,,,,err01,fix01,os01,ea";
$data[] = "590,cn29,cn29,cn29,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn29,,,,,,cn29,,,10.5.50.001,,,,,err01,fix01,os01,eb";
$data[] = "600,co29,co29,co29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co29,,,,,,co29,,,10.5.50.001,,,,,err01,fix01,os01,ec";
$data[] = "610,cp29,cp29,cp29,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp29,,,,,,cp29,,,10.5.50.001,,,,,err01,fix01,os01,ed";
$data[] = "620,cq29,cq29,cq29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq29,,,,,,cq29,,,10.5.50.001,,,,,err01,fix01,os01,ee";
$data[] = "630,cr29,cr29,cr29,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr29,,,,,,cr29,,,10.5.50.001,,,,,err01,fix01,os01,ef";
$data[] = "640,cs29,cs29,cs29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cs29,,,,,,cs29,,,10.5.50.001,,,,,err01,fix01,os01,eg";
$data[] = "650,ct29,ct29,ct29,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct29,,,,,,ct29,,,10.5.50.001,,,,,err01,fix01,os01,eh";
$data[] = "660,cu29,cu29,cu29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu29,,,,,,cu29,,,10.5.50.001,,,,,err01,fix01,os01,ei";
$data[] = "670,cv29,cv29,cv29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv29,,,,,,cv29,,,10.5.50.001,,,,,err01,fix01,os01,ej";
$data[] = "680,cw29,cw29,cw29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw29,,,,,,cw29,,,10.5.50.001,,,,,err01,fix01,os01,ek";
$data[] = "690,cx29,cx29,cx29,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx29,,,,,,cx29,,,10.5.50.001,,,,,err01,fix01,os01,el";
$data[] = "700,cy29,cy29,cy29,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy29,,,,,,cy29,,,,,,,,,,,";
$data[] = "710,cz34,cz34,cz34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cz34,,,,,,cz34,,,10.5.50.001,,,,,err01,fix01,os01,fa";
$data[] = "720,cy34,cy34,cy34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy34,,,,,,cy34,,,10.5.50.001,,,,,err01,fix01,os01,fb";
$data[] = "730,cx34,cx34,cx34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx34,,,,,,cx34,,,10.5.50.001,,,,,err01,fix01,os01,fc";
$data[] = "740,cw34,cw34,cw34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw34,,,,,,cw34,,,10.5.50.001,,,,,err01,fix01,os01,fd";
$data[] = "750,cv34,cv34,cv34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv34,,,,,,cv34,,,10.5.50.001,,,,,err01,fix01,os01,fe";
$data[] = "760,cu34,cu34,cu34,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu34,,,,,,cu34,,,10.5.50.001,,,,,err01,fix01,os01,ff";
$data[] = "770,ct34,ct34,ct34,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct34,,,,,,ct34,,,10.5.50.001,,,,,err01,fix01,os01,fg";
$data[] = "780,cr34,cr34,cr34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr34,,,,,,cr34,,,10.5.50.001,,,,,err01,fix01,os01,fh";
$data[] = "790,cq34,cq34,cq34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq34,,,,,,cq34,,,10.5.50.001,,,,,err01,fix01,os01,fi";
$data[] = "800,cp34,cp34,cp34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp34,,,,,,cp34,,,10.5.50.001,,,,,err01,fix01,os01,fj";
$data[] = "810,co34,co34,co34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,co34,,,,,,co34,,,10.5.50.001,,,,,err01,fix01,os01,fk";
$data[] = "820,cn34,cn34,cn34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn34,,,,,,cn34,,,10.5.50.001,,,,,err01,fix01,os01,fl";
$data[] = "830,cm34,cm34,cm34,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm34,,,,,,cm34,,,10.5.50.001,,,,,err01,fix01,os01,ga";
$data[] = "840,cm37,cm37,cm37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm37,,,,,,cm37,,,10.5.50.001,,,,,err01,fix01,os01,gb";
$data[] = "850,cn37,cn37,cn37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn37,,,,,,cn37,,,10.5.50.001,,,,,err01,fix01,os01,gc";
$data[] = "860,co37,co37,co37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co37,,,,,,co37,,,10.5.50.001,,,,,err01,fix01,os01,gd";
$data[] = "870,cp37,cp37,cp37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp37,,,,,,cp37,,,10.5.50.001,,,,,err01,fix01,os01,ge";
$data[] = "880,cq37,cq37,cq37,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq37,,,,,,cq37,,,10.5.50.001,,,,,err01,fix01,os01,gf";
$data[] = "890,cr37,cr37,cr37,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr37,,,,,,cr37,,,10.5.50.001,,,,,err01,fix01,os01,gg";
$data[] = "900,cs37,cs37,cs37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cs37,,,,,,cs37,,,10.5.50.001,,,,,err01,fix01,os01,gh";
$data[] = "910,ct37,ct37,ct37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct37,,,,,,ct37,,,10.5.50.001,,,,,err01,fix01,os01,gi";
$data[] = "920,cu37,cu37,cu37,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu37,,,,,,cu37,,,10.5.50.001,,,,,err01,fix01,os01,gj";
$data[] = "930,cv37,cv37,cv37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv37,,,,,,cv37,,,10.5.50.001,,,,,err01,fix01,os01,gk";
$data[] = "940,cw37,cw37,cw37,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw37,,,,,,cw37,,,10.5.50.001,,,,,err01,fix01,os01,gl";
$data[] = "950,cx37,cx37,cx37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx37,,,,,,cx37,,,10.5.50.001,,,,,err01,fix01,os01,ha";
$data[] = "960,cy37,cy37,cy37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy37,,,,,,cy37,,,10.5.50.001,,,,,err01,fix01,os01,hb";
$data[] = "970,cz42,cz42,cz42,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cz42,,,,,,cz42,,,10.5.50.001,,,,,err01,fix01,os01,hc";
$data[] = "980,cy42,cy42,cy42,current,red,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy42,,,,,,cy42,,,10.5.50.001,,,,,err01,fix01,os01,hd";
$data[] = "990,cx42,cx42,cx42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx42,,,,,,cx42,,,10.5.50.001,,,,,err01,fix01,os01,he";
$data[] = "1000,cw42,cw42,cw42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw42,,,,,,cw42,,,10.5.50.001,,,,,err01,fix01,os01,hf";
$data[] = "1010,cv42,cv42,cv42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv42,,,,,,cv42,,,10.5.50.001,,,,,err01,fix01,os01,hg";
$data[] = "1020,cu42,cu42,cu42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu42,,,,,,cu42,,,10.5.50.001,,,,,err01,fix01,os01,hh";
$data[] = "1030,ct42,ct42,ct42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct42,,,,,,ct42,,,10.5.50.001,,,,,err01,fix01,os01,hi";
$data[] = "1040,cr42,cr42,cr42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr42,,,,,,cr42,,,10.5.50.001,,,,,err01,fix01,os01,hj";
$data[] = "1050,cq42,cq42,cq42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq42,,,,,,cq42,,,10.5.50.001,,,,,err01,fix01,os01,hk";
$data[] = "1060,cp42,cp42,cp42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp42,,,,,,cp42,,,10.5.50.001,,,,,err01,fix01,os01,hl";
$data[] = "1070,co42,co42,co42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co42,,,,,,co42,,,10.5.50.001,,,,,err01,fix01,os01,ia";
$data[] = "1080,cn42,cn42,cn42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn42,,,,,,cn42,,,10.5.50.001,,,,,err01,fix01,os01,ib";
$data[] = "1090,cm42,cm42,cm42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm42,,,,,,cm42,,,10.5.50.001,,,,,err01,fix01,os01,ic";
$data[] = "1100,cm45,cm45,cm45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm45,,,,,,cm45,,,10.5.50.001,,,,,err01,fix01,os01,id";
$data[] = "1110,cn45,cn45,cn45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn45,,,,,,cn45,,,10.5.50.001,,,,,err01,fix01,os01,ie";
$data[] = "1120,co45,co45,co45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co45,,,,,,co45,,,10.5.50.001,,,,,err01,fix01,os01,if";
$data[] = "1130,cp45,cp45,cp45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp45,,,,,,cp45,,,10.5.50.001,,,,,err01,fix01,os01,ig";
$data[] = "1140,cq45,cq45,cq45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq45,,,,,,cq45,,,10.5.50.001,,,,,err01,fix01,os01,ih";
$data[] = "1150,cr45,cr45,cr45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr45,,,,,,cr45,,,10.5.50.001,,,,,err01,fix01,os01,ii";
$data[] = "1160,cs45,cs45,cs45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cs45,,,,,,cs45,,,10.5.50.001,,,,,err01,fix01,os01,ij";
$data[] = "1170,ct45,ct45,ct45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct45,,,,,,ct45,,,10.5.50.001,,,,,err01,fix01,os01,ik";
$data[] = "1180,cu45,cu45,cu45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cu45,,,,,,cu45,,,10.5.50.001,,,,,err01,fix01,os01,il";
$data[] = "1190,cv45,cv45,cv45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv45,,,,,,cv45,,,10.5.50.001,,,,,err01,fix01,os01,ja";
$data[] = "1200,cw45,cw45,cw45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cw45,,,,,,cw45,,,10.5.50.001,,,,,err01,fix01,os01,jb";
$data[] = "1210,cx45,cx45,cx45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx45,,,,,,cx45,,,10.5.50.001,,,,,err01,fix01,os01,jc";
$data[] = "1220,cy45,cy45,cy45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy45,,,,,,cy45,,,10.5.50.001,,,,,err01,fix01,os01,jd";
$data[] = "1230,ct51,ct51,ct51,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct51,,,,,,ct51,,,10.5.50.001,,,,,err01,fix01,os01,je";
$data[] = "1240,cr51,cr51,cr51,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cr51,,,,,,cr51,,,10.5.50.001,,,,,err01,fix01,os01,jf";
$data[] = "1250,cq51,cq51,cq51,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cq51,,,,,,cq51,,,10.5.50.001,,,,,err01,fix01,os01,jg";
$data[] = "1260,cp51,cp51,cp51,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cp51,,,,,,cp51,,,10.5.50.001,,,,,err01,fix01,os01,jh";
$data[] = "1270,co51,co51,co51,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co51,,,,,,co51,,,10.5.50.001,,,,,err01,fix01,os01,ji";
$data[] = "1280,cn51,cn51,cn51,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn51,,,,,,cn51,,,10.5.50.001,,,,,err01,fix01,os01,jj";
$data[] = "1290,cm51,cm51,cm51,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cm51,,,,,,cm51,,,10.5.50.001,,,,,err01,fix01,os01,jk";
$data[] = "1300,db04,db04,db04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,db04,,,,,,db04,,,10.5.50.001,,,,,err01,fix01,os01,jl";
$data[] = "1310,dc04,dc04,dc04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc04,,,,,,dc04,,,10.5.50.001,,,,,err01,fix01,os01,ka";
$data[] = "1320,dd04,dd04,dd04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd04,,,,,,dd04,,,10.5.50.001,,,,,err01,fix01,os01,kb";
$data[] = "1330,de04,de04,de04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de04,,,,,,de04,,,10.5.50.001,,,,,err01,fix01,os01,kc";
$data[] = "1340,df04,df04,df04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df04,,,,,,df04,,,10.5.50.001,,,,,err01,fix01,os01,kd";
$data[] = "1350,dg04,dg04,dg04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg04,,,,,,dg04,,,10.5.50.001,,,,,err01,fix01,os01,ke";
$data[] = "1360,dh04,dh04,dh04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh04,,,,,,dh04,,,10.5.50.001,,,,,err01,fix01,os01,kf";
$data[] = "1370,dj04,dj04,dj04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj04,,,,,,dj04,,,10.5.50.001,,,,,err01,fix01,os01,kg";
$data[] = "1380,dk04,dk04,dk04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk04,,,,,,dk04,,,10.5.50.001,,,,,err01,fix01,os01,kh";
$data[] = "1390,dl04,dl04,dl04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl04,,,,,,dl04,,,10.5.50.001,,,,,err01,fix01,os01,ki";
$data[] = "1400,dm04,dm04,dm04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm04,,,,,,dm04,,,10.5.50.001,,,,,err01,fix01,os01,kj";
$data[] = "1410,dn04,dn04,dn04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn04,,,,,,dn04,,,10.5.50.001,,,,,err01,fix01,os01,kk";
$data[] = "1420,do04,do04,do04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do04,,,,,,do04,,,10.5.50.001,,,,,err01,fix01,os01,kl";
$data[] = "1430,do09,do09,do09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do09,,,,,,do09,,,10.5.50.001,,,,,err01,fix01,os01,la";
$data[] = "1440,dn09,dn09,dn09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn09,,,,,,dn09,,,10.5.50.001,,,,,err01,fix01,os01,lb";
$data[] = "1450,dm09,dm09,dm09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm09,,,,,,dm09,,,10.5.50.001,,,,,err01,fix01,os01,lc";
$data[] = "1460,dl09,dl09,dl09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl09,,,,,,dl09,,,10.5.50.001,,,,,err01,fix01,os01,ld";
$data[] = "1470,dk09,dk09,dk09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk09,,,,,,dk09,,,10.5.50.001,,,,,err01,fix01,os01,le";
$data[] = "1480,dj09,dj09,dj09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj09,,,,,,dj09,,,10.5.50.001,,,,,err01,fix01,os01,lf";
$data[] = "1490,di09,di09,di09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di09,,,,,,di09,,,10.5.50.001,,,,,err01,fix01,os01,lg";
$data[] = "1500,dh09,dh09,dh09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh09,,,,,,dh09,,,10.5.50.001,,,,,err01,fix01,os01,lh";
$data[] = "1510,dgoi,dgoi,dgoi,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dgoi,,,,,,dgoi,,,10.5.50.001,,,,,err01,fix01,os01,li";
$data[] = "1520,df09,df09,df09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df09,,,,,,df09,,,10.5.50.001,,,,,err01,fix01,os01,lj";
$data[] = "1530,de09,de09,de09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de09,,,,,,de09,,,10.5.50.001,,,,,err01,fix01,os01,lk";
$data[] = "1540,dd09,dd09,dd09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd09,,,,,,dd09,,,10.5.50.001,,,,,err01,fix01,os01,ll";
$data[] = "1550,dc09,dc09,dc09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc09,,,,,,dc09,,,10.5.50.001,,,,,err01,fix01,os01,ma";
$data[] = "1560,db12,db12,db12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,db12,,,,,,db12,,,10.5.50.001,,,,,err01,fix01,os01,mb";
$data[] = "1570,dc12,dc12,dc12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc12,,,,,,dc12,,,10.5.50.001,,,,,err01,fix01,os01,mc";
$data[] = "1580,dd12,dd12,dd12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd12,,,,,,dd12,,,10.5.50.001,,,,,err01,fix01,os01,md";
$data[] = "1590,de12,de12,de12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de12,,,,,,de12,,,10.5.50.001,,,,,err01,fix01,os01,me";
$data[] = "1600,df12,df12,df12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df12,,,,,,df12,,,10.5.50.001,,,,,err01,fix01,os01,mf";
$data[] = "1610,dg12,dg12,dg12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg12,,,,,,dg12,,,10.5.50.001,,,,,err01,fix01,os01,mg";
$data[] = "1620,dh12,dh12,dh12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh12,,,,,,dh12,,,10.5.50.001,,,,,err01,fix01,os01,mh";
$data[] = "1630,dj12,dj12,dj12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj12,,,,,,dj12,,,10.5.50.001,,,,,err01,fix01,os01,mi";
$data[] = "1640,dk12,dk12,dk12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk12,,,,,,dk12,,,10.5.50.001,,,,,err01,fix01,os01,mj";
$data[] = "1650,dl12,dl12,dl12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl12,,,,,,dl12,,,10.5.50.001,,,,,err01,fix01,os01,mk";
$data[] = "1660,dm12,dm12,dm12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm12,,,,,,dm12,,,10.5.50.001,,,,,err01,fix01,os01,ml";
$data[] = "1670,dn12,dn12,dn12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn12,,,,,,dn12,,,10.5.50.001,,,,,err01,fix01,os01,na";
$data[] = "1680,do12,do12,do12,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do12,,,,,,do12,,,10.5.50.001,,,,,err01,fix01,os01,nb";
$data[] = "1690,do17,do17,do17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do17,,,,,,do17,,,10.5.50.001,,,,,err01,fix01,os01,nc";
$data[] = "1700,dn17,dn17,dn17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn17,,,,,,dn17,,,10.5.50.001,,,,,err01,fix01,os01,nd";
$data[] = "1710,dl17,dl17,dl17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl17,,,,,,dl17,,,10.5.50.001,,,,,err01,fix01,os01,ne";
$data[] = "1720,dk17,dk17,dk17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk17,,,,,,dk17,,,10.5.50.001,,,,,err01,fix01,os01,nf";
$data[] = "1730,dj17,dj17,dj17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj17,,,,,,dj17,,,10.5.50.001,,,,,err01,fix01,os01,ng";
$data[] = "1740,di17,di17,di17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di17,,,,,,di17,,,10.5.50.001,,,,,err01,fix01,os01,nh";
$data[] = "1750,dh17,dh17,dh17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh17,,,,,,dh17,,,10.5.50.001,,,,,err01,fix01,os01,ni";
$data[] = "1760,dg17,dg17,dg17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg17,,,,,,dg17,,,10.5.50.001,,,,,err01,fix01,os01,nj";
$data[] = "1770,df17,df17,df17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df17,,,,,,df17,,,10.5.50.001,,,,,err01,fix01,os01,nk";
$data[] = "1780,de17,de17,de17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de17,,,,,,de17,,,10.5.50.001,,,,,err01,fix01,os01,nl";
$data[] = "1790,dc17,dc17,dc17,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc17,,,,,,dc17,,,10.5.50.001,,,,,err01,fix01,os01,oa";
$data[] = "1800,dc20,dc20,dc20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc20,,,,,,dc20,,,10.5.50.001,,,,,err01,fix01,os01,ob";
$data[] = "1810,dd20,dd20,dd20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd20,,,,,,dd20,,,10.5.50.001,,,,,err01,fix01,os01,oc";
$data[] = "1820,de20,de20,de20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de20,,,,,,de20,,,10.5.50.001,,,,,err01,fix01,os01,od";
$data[] = "1830,df20,df20,df20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df20,,,,,,df20,,,10.5.50.001,,,,,err01,fix01,os01,oe";
$data[] = "1840,dg20,dg20,dg20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg20,,,,,,dg20,,,10.5.50.001,,,,,err01,fix01,os01,of";
$data[] = "1850,dh20,dh20,dh20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh20,,,,,,dh20,,,10.5.50.001,,,,,err01,fix01,os01,og";
$data[] = "1860,di20,di20,di20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di20,,,,,,di20,,,10.5.50.001,,,,,err01,fix01,os01,oh";
$data[] = "1870,dj20,dj20,dj20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj20,,,,,,dj20,,,10.5.50.001,,,,,err01,fix01,os01,oi";
$data[] = "1880,dk20,dk20,dk20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk20,,,,,,dk20,,,10.5.50.001,,,,,err01,fix01,os01,oj";
$data[] = "1890,dl20,dl20,dl20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl20,,,,,,dl20,,,10.5.50.001,,,,,err01,fix01,os01,ok";
$data[] = "1900,dm20,dm20,dm20,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm20,,,,,,dm20,,,10.5.50.001,,,,,err01,fix01,os01,ol";
$data[] = "1910,dn26,dn26,dn26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn26,,,,,,dn26,,,10.5.50.001,,,,,err01,fix01,os01,pa";
$data[] = "1920,dm26,dm26,dm26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm26,,,,,,dm26,,,10.5.50.001,,,,,err01,fix01,os01,pb";
$data[] = "1930,dl26,dl26,dl26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl26,,,,,,dl26,,,10.5.50.001,,,,,err01,fix01,os01,pc";
$data[] = "1940,dk26,dk26,dk26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk26,,,,,,dk26,,,10.5.50.001,,,,,err01,fix01,os01,pd";
$data[] = "1950,dj26,dj26,dj26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj26,,,,,,dj26,,,10.5.50.001,,,,,err01,fix01,os01,pe";
$data[] = "1960,di26,di26,di26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di26,,,,,,di26,,,10.5.50.001,,,,,err01,fix01,os01,pf";
$data[] = "1970,dh26,dh26,dh26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh26,,,,,,dh26,,,10.5.50.001,,,,,err01,fix01,os01,pg";
$data[] = "1980,dg26,dg26,dg26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg26,,,,,,dg26,,,10.5.50.001,,,,,err01,fix01,os01,ph";
$data[] = "1990,df26,df26,df26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df26,,,,,,df26,,,10.5.50.001,,,,,err01,fix01,os01,pi";
$data[] = "2000,de26,de26,de26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de26,,,,,,de26,,,10.5.50.001,,,,,err01,fix01,os01,pj";
$data[] = "2010,dd26,dd26,dd26,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd26,,,,,,dd26,,,10.5.50.001,,,,,err01,fix01,os01,pk";
$data[] = "2020,db29,db29,db29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,db29,,,,,,db29,,,10.5.50.001,,,,,err01,fix01,os01,pl";
$data[] = "2030,dc29,dc29,dc29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc29,,,,,,dc29,,,10.5.50.001,,,,,err01,fix01,os01,sa";
$data[] = "2040,dd29,dd29,dd29,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd29,,,,,,dd29,,,10.5.50.001,,,,,err01,fix01,os01,sb";
$data[] = "2050,de29,de29,de29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de29,,,,,,de29,,,10.5.50.001,,,,,err01,fix01,os01,sc";
$data[] = "2060,df29,df29,df29,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,df29,,,,,,df29,,,10.5.50.001,,,,,err01,fix01,os01,sd";
$data[] = "2070,dg29,dg29,dg29,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg29,,,,,,dg29,,,10.5.50.001,,,,,err01,fix01,os01,se";
$data[] = "2080,dh29,dh29,dh29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh29,,,,,,dh29,,,10.5.50.001,,,,,err01,fix01,os01,sf";
$data[] = "2090,dj29,dj29,dj29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj29,,,,,,dj29,,,10.5.50.001,,,,,err01,fix01,os01,sg";
$data[] = "2100,dk29,dk29,dk29,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk29,,,,,,dk29,,,10.5.50.001,,,,,err01,fix01,os01,sh";
$data[] = "2110,dl29,dl29,dl29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl29,,,,,,dl29,,,10.5.50.001,,,,,err01,fix01,os01,si";
$data[] = "2120,dm29,dm29,dm29,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm29,,,,,,dm29,,,10.5.50.001,,,,,err01,fix01,os01,sj";
$data[] = "2130,dn29,dn29,dn29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn29,,,,,,dn29,,,10.5.50.001,,,,,err01,fix01,os01,sk";
$data[] = "2140,do29,do29,do29,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do29,,,,,,do29,,,10.5.50.001,,,,,err01,fix01,os01,sl";
$data[] = "2150,do34,do34,do34,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do34,,,,,,do34,,,10.5.50.001,,,,,err01,fix01,os01,ta";
$data[] = "2160,dn34,dn34,dn34,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn34,,,,,,dn34,,,10.5.50.001,,,,,err01,fix01,os01,tb";
$data[] = "2170,dm34,dm34,dm34,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm34,,,,,,dm34,,,10.5.50.001,,,,,err01,fix01,os01,tc";
$data[] = "2180,dl34,dl34,dl34,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl34,,,,,,dl34,,,10.5.50.001,,,,,err01,fix01,os01,td";
$data[] = "2190,dk34,dk34,dk34,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk34,,,,,,dk34,,,10.5.50.001,,,,,err01,fix01,os01,te";
$data[] = "2200,dj34,dj34,dj34,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj34,,,,,,dj34,,,10.5.50.001,,,,,err01,fix01,os01,tf";
$data[] = "2210,di34,di34,di34,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di34,,,,,,di34,,,10.5.50.001,,,,,err01,fix01,os01,tg";
$data[] = "2220,dh34,dh34,dh34,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh34,,,,,,dh34,,,10.5.50.001,,,,,err01,fix01,os01,th";
$data[] = "2230,dg34,dg34,dg34,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg34,,,,,,dg34,,,10.5.50.001,,,,,err01,fix01,os01,ti";
$data[] = "2240,df34,df34,df34,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,df34,,,,,,df34,,,10.5.50.001,,,,,err01,fix01,os01,tj";
$data[] = "2250,de34,de34,de34,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de34,,,,,,de34,,,10.5.50.001,,,,,err01,fix01,os01,tk";
$data[] = "2260,dd34,dd34,dd34,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd34,,,,,,dd34,,,10.5.50.001,,,,,err01,fix01,os01,tl";
$data[] = "2270,dc34,dc34,dc34,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc34,,,,,,dc34,,,10.5.50.001,,,,,err01,fix01,os01,ua";
$data[] = "2280,dc37,dc37,dc37,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc37,,,,,,dc37,,,10.5.50.001,,,,,err01,fix01,os01,ub";
$data[] = "2300,dd37,dd37,dd37,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd37,,,,,,dd37,,,10.5.50.001,,,,,err01,fix01,os01,ud";
$data[] = "2310,de37,de37,de37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de37,,,,,,de37,,,10.5.50.001,,,,,err01,fix01,os01,ue";
$data[] = "2320,df37,df37,df37,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,df37,,,,,,df37,,,10.5.50.001,,,,,err01,fix01,os01,uf";
$data[] = "2330,dg37,dg37,dg37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg37,,,,,,dg37,,,10.5.50.001,,,,,err01,fix01,os01,ug";
$data[] = "2340,dh37,dh37,dh37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh37,,,,,,dh37,,,10.5.50.001,,,,,err01,fix01,os01,uh";
$data[] = "2350,dj37,dj37,dj37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj37,,,,,,dj37,,,10.5.50.001,,,,,err01,fix01,os01,ui";
$data[] = "2360,dk37,dk37,dk37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk37,,,,,,dk37,,,10.5.50.001,,,,,err01,fix01,os01,uj";
$data[] = "2370,dl37,dl37,dl37,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl37,,,,,,dl37,,,10.5.50.001,,,,,err01,fix01,os01,uk";
$data[] = "2380,dm37,dm37,dm37,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm37,,,,,,dm37,,,10.5.50.001,,,,,err01,fix01,os01,ul";
$data[] = "2390,dn37,dn37,dn37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn37,,,,,,dn37,,,10.5.50.001,,,,,err01,fix01,os01,va";
$data[] = "2400,do37,do37,do37,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do37,,,,,,do37,,,10.5.50.001,,,,,err01,fix01,os01,vb";
$data[] = "2410,do42,do42,do42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do42,,,,,,do42,,,10.5.50.001,,,,,err01,fix01,os01,vc";
$data[] = "2420,dn42,dn42,dn42,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn42,,,,,,dn42,,,10.5.50.001,,,,,err01,fix01,os01,vd";
$data[] = "2430,dm42,dm42,dm42,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm42,,,,,,dm42,,,10.5.50.001,,,,,err01,fix01,os01,ve";
$data[] = "2440,dl42,dl42,dl42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl42,,,,,,dl42,,,10.5.50.001,,,,,err01,fix01,os01,vf";
$data[] = "2450,dk42,dk42,dk42,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk42,,,,,,dk42,,,10.5.50.001,,,,,err01,fix01,os01,vg";
$data[] = "2460,dj42,dj42,dj42,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj42,,,,,,dj42,,,10.5.50.001,,,,,err01,fix01,os01,vh";
$data[] = "2470,di42,di42,di42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,di42,,,,,,di42,,,10.5.50.001,,,,,err01,fix01,os01,vi";
$data[] = "2480,dh42,dh42,dh42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh42,,,,,,dh42,,,10.5.50.001,,,,,err01,fix01,os01,vj";
$data[] = "2490,dg42,dg42,dg42,current,blu,50,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg42,,,,,,dg42,,,10.5.50.001,,,,,err01,fix01,os01,vk";
$data[] = "2500,df42,df42,df42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df42,,,,,,df42,,,10.5.50.001,,,,,err01,fix01,os01,vl";
$data[] = "2510,de42,de42,de42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de42,,,,,,de42,,,10.5.50.001,,,,,err01,fix01,os01,wa";
$data[] = "2520,dd42,dd42,dd42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd42,,,,,,dd42,,,10.5.50.001,,,,,err01,fix01,os01,wb";
$data[] = "2530,dd42,dd42,dd42,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd42,,,,,,dd42,,,10.5.50.001,,,,,err01,fix01,os01,wc";
$data[] = "2540,db45,db45,db45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,db45,,,,,,db45,,,10.5.50.001,,,,,err01,fix01,os01,wd";
$data[] = "2550,dc45,dc45,dc45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dc45,,,,,,dc45,,,10.5.50.001,,,,,err01,fix01,os01,we";
$data[] = "2560,dd45,dd45,dd45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dd45,,,,,,dd45,,,10.5.50.001,,,,,err01,fix01,os01,wf";
$data[] = "2570,de45,de45,de45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,de45,,,,,,de45,,,10.5.50.001,,,,,err01,fix01,os01,wg";
$data[] = "2580,df45,df45,df45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,df45,,,,,,df45,,,10.5.50.001,,,,,err01,fix01,os01,wh";
$data[] = "2590,dg45,dg45,dg45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dg45,,,,,,dg45,,,10.5.50.001,,,,,err01,fix01,os01,wi";
$data[] = "2600,dh45,dh45,dh45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dh45,,,,,,dh45,,,10.5.50.001,,,,,err01,fix01,os01,wj";
$data[] = "2610,dj45,dj45,dj45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dj45,,,,,,dj45,,,10.5.50.001,,,,,err01,fix01,os01,wk";
$data[] = "2620,dk45,dk45,dk45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dk45,,,,,,dk45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2630,dl45,dl45,dl45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dl45,,,,,,dl45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2640,dm45,dm45,dm45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dm45,,,,,,dm45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2650,dn45,dn45,dn45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,dn45,,,,,,dn45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2660,do45,do45,do45,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,do45,,,,,,do45,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2670,cy04,cy04,cy04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cy04,,,,,,cy04,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2680,cx04,cx04,cx04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cx04,,,,,,cx04,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2690,cv04,cv04,cv04,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv04,,,,,,cv04,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2700,cv09,cv09,cv09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cv09,,,,,,cv09,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2710,ct09,ct09,ct09,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,ct09,,,,,,ct09,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2720,co08,co08,co08,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,co08,,,,,,co08,,,10.5.50.001,,,,,err01,fix01,os01,wl";
$data[] = "2730,cn03,cn03,cn03,current,grn,0,manual,20100315,nocmd,cmdout,windows,misc,,,,,cn03,,,,,,cn03,,,10.5.50.001,,,,,err01,fix01,os01,wl";
pdo_insert( $dbname, $tblname, $data );
}
function pdo_insert_leds_doc() {
global $dbname;
$tblname="leds_doc";
$data[] = "led_id,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,yyyy,fy,p,q,wk,begdt,begday,enddt,endday,oy,status,est,inv,senddt,recvdt,senddts,recvdts,invdt,invnum,hrs,amt,ytd,tot,rem,cid,rate,rate1,est1,hrs1,amt1,ytd1,tot1,rem1,invdt1,invnum1,senddt1,recvdt1,senddts1,recvdts1,status1,rate2,est2,hrs2,amt2,ytd2,tot2,rem2,invdt2,invnum2,senddt2,recvdt2,recvdts2,senddts2,status2,kludge,desc";
$data[] = "1,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,yyyy,fy,p,q,wk,begdt,begday,enddt,endday,oy,status,est,inv,senddt,recvdt,senddts,recvdts,invdt,invnum,hrs,amt,ytd,tot,rem,cid,rate,rate1,est1,hrs1,amt1,ytd1,tot1,rem1,invdt1,invnum1,senddt1,recvdt1,senddts1,recvdts1,status1,rate2,est2,hrs2,amt2,ytd2,tot2,rem2,invdt2,invnum2,senddt2,recvdt2,recvdts2,senddts2,status2,kludge,desc";
$data[] = "2,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,yyyy,fy,p,q,wk,begdt,begday,enddt,endday,oy,status,est,inv,senddt,recvdt,senddts,recvdts,invdt,invnum,hrs,amt,ytd,tot,rem,cid,rate,rate1,est1,hrs1,amt1,ytd1,tot1,rem1,invdt1,invnum1,senddt1,recvdt1,senddts1,recvdts1,status1,rate2,est2,hrs2,amt2,ytd2,tot2,rem2,invdt2,invnum2,senddt2,recvdt2,recvdts2,senddts2,status2,kludge,desc";
$data[] = "3,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,yyyy,fy,p,q,wk,begdt,begday,enddt,endday,oy,status,est,inv,senddt,recvdt,senddts,recvdts,invdt,invnum,hrs,amt,ytd,tot,rem,cid,rate,rate1,est1,hrs1,amt1,ytd1,tot1,rem1,invdt1,invnum1,senddt1,recvdt1,senddts1,recvdts1,status1,rate2,est2,hrs2,amt2,ytd2,tot2,rem2,invdt2,invnum2,senddt2,recvdt2,recvdts2,senddts2,status2,kludge,desc";
$data[] = "4,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,yyyy,fy,p,q,wk,begdt,begday,enddt,endday,oy,status,est,inv,senddt,recvdt,senddts,recvdts,invdt,invnum,hrs,amt,ytd,tot,rem,cid,rate,rate1,est1,hrs1,amt1,ytd1,tot1,rem1,invdt1,invnum1,senddt1,recvdt1,senddts1,recvdts1,status1,rate2,est2,hrs2,amt2,ytd2,tot2,rem2,invdt2,invnum2,senddt2,recvdt2,recvdts2,senddts2,status2,kludge,desc";
$data[] = "5,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,yyyy,fy,p,q,wk,begdt,begday,enddt,endday,oy,status,est,inv,senddt,recvdt,senddts,recvdts,invdt,invnum,hrs,amt,ytd,tot,rem,cid,rate,rate1,est1,hrs1,amt1,ytd1,tot1,rem1,invdt1,invnum1,senddt1,recvdt1,senddts1,recvdts1,status1,rate2,est2,hrs2,amt2,ytd2,tot2,rem2,invdt2,invnum2,senddt2,recvdt2,recvdts2,senddts2,status2,kludge,desc";
$data[] = "6,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,yyyy,fy,p,q,wk,begdt,begday,enddt,endday,oy,status,est,inv,senddt,recvdt,senddts,recvdts,invdt,invnum,hrs,amt,ytd,tot,rem,cid,rate,rate1,est1,hrs1,amt1,ytd1,tot1,rem1,invdt1,invnum1,senddt1,recvdt1,senddts1,recvdts1,status1,rate2,est2,hrs2,amt2,ytd2,tot2,rem2,invdt2,invnum2,senddt2,recvdt2,recvdts2,senddts2,status2,kludge,desc";
$data[] = "7,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,yyyy,fy,p,q,wk,begdt,begday,enddt,endday,oy,status,est,inv,senddt,recvdt,senddts,recvdts,invdt,invnum,hrs,amt,ytd,tot,rem,cid,rate,rate1,est1,hrs1,amt1,ytd1,tot1,rem1,invdt1,invnum1,senddt1,recvdt1,senddts1,recvdts1,status1,rate2,est2,hrs2,amt2,ytd2,tot2,rem2,invdt2,invnum2,senddt2,recvdt2,recvdts2,senddts2,status2,kludge,desc";
pdo_insert( $dbname, $tblname, $data );
}
function pdo_insert_leds_us() {
global $dbname;
$tblname="leds_us";
$data[] = "led_id,led_status,led_code,led_name,led_dttm,led_color,led_speed,led_type,led_date,led_cmd,led_cmdout,led_desc,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,led_width,led_height,led_comment,led_filename,led_user,led_user_ip,led_referer,led_remote_port,led_viewrole,led_user_agent,led_unique_id,led_err,led_fix,led_os,id,gender,title,fname,lname,str_no,str_name,city,state,country,zip,coord_lat,coord_long,tz_offset,tz_descr,email,login_uuid,login_user,login_pass,login_salt,login_md5,login_sha1,login_sha256,dob_date,dob_age,reg_dt,reg_age,phn,cell,id_name,id_val,img,tn,zn,nat,tmp";
$data[] = "2,,code2,name2,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc2,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment2,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,id,gender,title,fname,,lname,str_no,str_name,city,state,country,zip,coord_lat,coord_long,tz_offset,tz_descr,email,login_uuid,login_user,login_pass,login_salt,login_md5,login_sha1,login_sha256,dob_date,dob_age,reg_dt,reg_age,phn,cell,id_name,id_val,img,tn,zn,tmp,f68,nat,f69,f70";
$data[] = "3,,code3,name3,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc3,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment3,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m11,male,Mr,Terrence,,Larson,681,Broadway,Guam,Greater Manchester,United Kingdom,zip,56.2487,-75.2567,+10:00,Eastern Australia,terrence.larson@example.com,Vladivostok,terrence.larson@example.com,e8f10663-189b-4650-95fe-0441ea7d516e,tinymouse518,5759c0fb60b88fc73f662f40d15f99f9f9115cc5,9d313b2189939df780a82d9626de55f71ab005c2a27280cb672ee147c22de373,dc3a8e781d914efe7e613295c18468dd,5759c0fb60b88fc73f662f40d15f99f9f9115cc5,9d313b2189939df780a82d9626de55f71ab005c2a27280cb672ee147c22de373,2008-09-20T10:08:59.366Z,17,2008-09-20T10:08:59.366Z,17,0117113 717 8047,07701 533248,imgs/us/m11.jpg,imgs/us/tn/tn_m11.jpg,imgs/us/zn/zn_m11.jpg,tmp,f68,nat,f69,f70";
$data[] = "4,,code4,name4,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc4,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment4,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m12,male,Mr,Jesse,,Payne,8490,Green Lane,Lichfield,Hampshire,United Kingdom,Y2 4QW,60.5226,29.0676,-9:00,Alaska,jesse.payne@example.com,7f5ea77c-4cb0-46fe-940d-1e0d9405ec22,blueswan252,yuteOmoVurrmegti,65fI9OYZ,fba57512ee0656f06ba3512b6c025f58,3964b0237fc25230483fbf89773e622a3955cad3,73bfa0744bad4743ac880f4de094ca317553112b364af9f0b40b4be33825d5ec,1957-12-04T04:58:26.762Z,68,2009-10-31T23:07:00.370Z,16,019467 75204,07596 375841,NINO,SR 78 64 29 X,imgs/us/m12.jpg,imgs/us/zn/zn_m12.jpg,imgs/us/zn/zn_m12.jpg,tmp,f68,GB,f69,f70";
$data[] = "6,,code6,name6,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc6,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment6,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m17,male,Mr,Colin,,Meyer,9454,South Street,Seoul,Derbyshire,United Kingdom,zip,11.8327,-106.4779,+9:00,Tokyo,email,Osaka,Sapporo,login_pass,colin.meyer@example.com,wynWOkth,073c637871d2189e47c9ada15923c24e97fd3d56229371705792ef590b01321c,dbPuENFflw,wynWOkth,acb62ab0f739fe2e161cb523599ea468,2012-07-23T00:25:08.594Z,14,1952-01-21T16:46:26.011Z,74,2012-07-23T00:25:08.594Z,14,imgs/us/m17.jpg,imgs/us/tn/tn_m17.jpg,imgs/us/zn/zn_m17.jpg,tmp,f68,nat,f69,f70";
$data[] = "7,,code7,name7,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc7,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment7,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m17,male,Mr,Colin,,Meyer,9454,South Street,Seoul,Derbyshire,United Kingdom,zip,11.8327,-106.4779,+9:00,Tokyo,lyna.roy@example.com,Lima,lyna.roy@example.com,119050bc-c03b-4b7e-9bf0-a09bef8b6807,colin.meyer@example.com,login_md5,acb62ab0f739fe2e161cb523599ea468,dbPuENFflw,dob_date,acb62ab0f739fe2e161cb523599ea468,1952-01-21T16:46:26.011Z,14,1952-01-21T16:46:26.011Z,74,06-04-98-33-38,14,imgs/us/m17.jpg,imgs/us/tn/tn_m17.jpg,imgs/us/zn/zn_w32.jpg,tmp,f68,nat,f69,f70";
$data[] = "8,,code8,name8,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc8,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment8,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m18,female,Ms,Gretchen,,Wiens,1320,Waldweg,Calcutta,Berlin,Germany,27370,7.9245,-18.1901,+5:30,Bombay,gretchen.wiens@example.com,Madras,gretchen.wiens@example.com,gretchen.wiens@example.com,7b2005b7-7038-4979-a35a-dc8251f4827a,d1289652ee3026d79ab3b7b43d2f7f39,bedc3ebd3c598595f9e5c161137441dc9fe91a467acc0027a0b8cd2d8738f7b1,sTUPOwI6,d1289652ee3026d79ab3b7b43d2f7f39,5f652f7197bb003fcecb24be6da4383be53dd824,2022-01-27T04:29:03.149Z,4,40,2022-01-27T04:29:03.149Z,4,0155-4605855,imgs/us/w18.jpg,imgs/us/tn/tn_m18.jpg,imgs/us/zn/zn_m18.jpg,tmp,f68,nat,f69,f70";
$data[] = "9,,code9,name9,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc9,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment9,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m19,male,Mr,Phillip,,Snyder,162,W Pecan St,Jacksonville,Iowa,United States,88479,67.9416,-155.7341,-2:00,Mid-Atlantic,phillip.snyder@example.com,33c55bf7-7ecb-4379-b7a6-f4498826ff3b,lazypeacock820,BLboZexG,LoLyLCJ2,c037822ee5049c9bedca62449c19fa48,84f512e9df9367f0914e881ee3f06b13df876d7e,431b4f5161ad83784bd823e79e1b23ab8252cc913b2a70bd4f9f4431b92b240f,1950-05-21T13:58:25.079Z,76,2008-07-04T14:26:46.455Z,18,(327) 485-5788,(828) 808-6828,SSN,163-42-0342,imgs/us/m19.jpg,imgs/us/zn/zn_m19.jpg,imgs/us/zn/zn_m19.jpg,tmp,f68,US,f69,f70";
$data[] = "10,,code10,name10,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc10,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment10,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m20,male,Mr,Bryan,,Kelly,2649,Victoria Road,Ripon,Northamptonshire,United Kingdom,A2 1DX,-26.0805,-162.8766,-9:00,Alaska,bryan.kelly@example.com,174f9608-c4ed-474c-99a8-2314dfac8ab9,organicdog135,EssI,pQThwdbO,81c87985b9e88f45361b6486a7abbe32,df10b8ecbbe9653deadb989d17dcadea196d14ac,127f23fec495672fe8c676d621ce498c1e4176e58d09fd42433e7682aa56ab61,1972-05-09T23:50:25.854Z,54,2011-06-07T01:17:43.194Z,15,017684 05922,07587 076357,NINO,YS 30 66 43 Z,imgs/us/m20.jpg,imgs/us/zn/zn_m20.jpg,imgs/us/zn/zn_m20.jpg,tmp,f68,GB,f69,f70";
$data[] = "11,,code11,name11,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc11,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment11,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m21,female,Miss,Susie,,Vargas,1408,Alexander Road,Calcutta,Tyne and Wear,United Kingdom,zip,17.6772,-90.2798,+5:30,Bombay,debbie.ferguson@example.com,Jakarta,debbie.ferguson@example.com,66b1b6dd-ed7e-40de-aaf9-8743a5a5f532,d3c3420c-214e-4f4c-86cf-c2e31edccdc5,69fe4da66ca3d27ae0abb1d1d195ba7a,0c42e2d474ac587375971d92b5fce400459c1100,6mTe47cP,69fe4da66ca3d27ae0abb1d1d195ba7a,0c42e2d474ac587375971d92b5fce400459c1100,2011-07-21T10:42:12.410Z,15,(287) 314-4843,2011-07-21T10:42:12.410Z,15,0161 505 4348,imgs/us/w21.jpg,imgs/us/tn/tn_m21.jpg,imgs/us/zn/zn_m21.jpg,tmp,f68,nat,f69,f70";
$data[] = "12,,code12,name12,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc12,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment12,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m21,male,Mr,Arnold,,Stewart,7642,The Green,Calcutta,Tyne and Wear,United Kingdom,zip,-40.7702,-115.1696,+5:30,Bombay,arnold.stewart@example.com,Madras,arnold.stewart@example.com,arnold.stewart@example.com,08a2b41a-3a5e-42a5-a4d7-9e17da4909a2,c46997b028ee7ebddb74e9cb2bd21dbf,a5f2681ae83cf161b4dc4881759ec33b9198695aea1a1443d95538c53229f068,FFjQcmml,c46997b028ee7ebddb74e9cb2bd21dbf,d53662c224994181728f300804c4076afaf428da,2003-11-13T10:59:11.476Z,22,41,2003-11-13T10:59:11.476Z,22,01586 606198,imgs/us/m21.jpg,imgs/us/tn/tn_m21.jpg,imgs/us/zn/zn_m21.jpg,tmp,f68,nat,f69,f70";
$data[] = "13,,code13,name13,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc13,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment13,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m21,male,Mr,Chester,,Hall,6259,Windsor Road,Glasgow,Central,United Kingdom,M4I 5AQ,3.4828,46.4264,-7:00,Mountain Time (US & Canada),chester.hall@example.com,68862f72-5a94-429b-a929-520628723882,happyleopard391,dSLcwF,FAxVjcTl,533b1b7a0651e9a900ca0010b2ca9d78,cf320ac33b70df177790ba55e143ff371aad3ad2,d25ae9198c9c1cc7aafa5cad20e44a1fdd169d68283eab45403c5c5dc44f56e2,1992-05-23T06:47:47.961Z,34,2011-12-27T10:37:03.766Z,14,017683 43405,07142 519319,NINO,ZM 27 70 49 Z,imgs/us/m21.jpg,imgs/us/zn/zn_m21.jpg,imgs/us/zn/zn_m21.jpg,tmp,f68,GB,f69,f70";
$data[] = "14,,code14,name14,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc14,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment14,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m21,male,Mr,Marshall,,Simmons,1700,Spring Hill Rd,New Delhi,Florida,United States,61905,71.8045,-50.1072,+5:30,Bombay,arnold.stewart@example.com,Madras,marshall.simmons@example.com,marshall.simmons@example.com,882a0332-dc87-4892-b6fa-f498da9b13fe,e2eaf4e6b5118ab5f33029cb63284525,fca9620c3362f7090ccd3391d218dc4eb124a6b5,Enb6B6MR,e2eaf4e6b5118ab5f33029cb63284525,fca9620c3362f7090ccd3391d218dc4eb124a6b5,2007-10-23T14:18:22.141Z,18,(570) 489-3402,2007-10-23T14:18:22.141Z,18,07191 694315,imgs/us/m32.jpg,imgs/us/tn/tn_m21.jpg,imgs/us/zn/zn_m32.jpg,tmp,f68,nat,f69,f70";
$data[] = "15,,code15,name15,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc15,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment15,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m24,male,Mr,Landon,,Harrison,385,Timber Wolf Trail,Calcutta,Wisconsin,United States,84102,-57.6347,-83.3249,+5:30,Bombay,kelly.watts@example.com,Georgetown,kelly.watts@example.com,b756716e-5ff1-4aaa-89e7-c8c99cc414c1,3686aa2a-5fa7-46e3-af01-ec4647a889c1,fba83a5805b8b0b5261d1a727236bbf1,58d2cdc4626cbd36bd69e618d8b69ceb181f1fd3,xwLRvUOL,fba83a5805b8b0b5261d1a727236bbf1,58d2cdc4626cbd36bd69e618d8b69ceb181f1fd3,2009-05-19T18:33:17.197Z,17,(642) 710-4572,2009-05-19T18:33:17.197Z,17,(991) 574-3713,imgs/us/m24.jpg,imgs/us/tn/tn_m24.jpg,imgs/us/zn/zn_m24.jpg,tmp,f68,nat,f69,f70";
$data[] = "16,,code16,name16,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc16,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment16,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m24,male,Mr,Landon,,Harrison,385,Timber Wolf Trail,Calcutta,Wisconsin,United States,84102,-57.6347,-83.3249,+5:30,Bombay,landon.harrison@example.com,Madras,landon.harrison@example.com,landon.harrison@example.com,3686aa2a-5fa7-46e3-af01-ec4647a889c1,fba83a5805b8b0b5261d1a727236bbf1,658c9187bdadf23878f94cd1cc8dbc13e07a3224305e7b2958892767e488feba,xwLRvUOL,fba83a5805b8b0b5261d1a727236bbf1,58d2cdc4626cbd36bd69e618d8b69ceb181f1fd3,2009-05-19T18:33:17.197Z,17,(642) 710-4572,2009-05-19T18:33:17.197Z,17,(991) 574-3713,imgs/us/m24.jpg,imgs/us/tn/tn_m24.jpg,imgs/us/zn/zn_m24.jpg,tmp,f68,nat,f69,f70";
$data[] = "17,,code17,name17,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc17,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment17,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m27,female,Miss,Ellen,,Edwards,8156,Grove Road,Perth,Derbyshire,United Kingdom,zip,-66.3685,-73.6702,+8:00,Beijing,ellen.edwards@example.com,Singapore,ellen.edwards@example.com,ellen.edwards@example.com,13918439-4ebe-42e9-b3e7-8b5ad2730f8d,1aaa8319670c2b95d1bc1e0aa8bf5f79,982acdfa5ef2c313b3d13abfa47100a318545ee2c942fc4faa21a5b77d285512,KDcQM5VH,1aaa8319670c2b95d1bc1e0aa8bf5f79,166ef3f995f60c30451e49fa61403ecf45c43bee,2004-11-29T12:51:11.011Z,21,61,2004-11-29T12:51:11.011Z,21,015394 19761,imgs/us/w27.jpg,imgs/us/tn/tn_m27.jpg,imgs/us/zn/zn_m27.jpg,tmp,f68,nat,f69,f70";
$data[] = "18,,code18,name18,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc18,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment18,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m27,female,Mrs,Becky,,Hansen,7178,Richmond Road,Seoul,Gloucestershire,United Kingdom,zip,-0.2578,-89.8712,+9:00,Tokyo,email,Osaka,Sapporo,Yakutsk,becky.hansen@example.com,login_md5,237a64e2f475ba76aa04107fc0847a6c,MPaRiyJpvwgQF,dob_date,237a64e2f475ba76aa04107fc0847a6c,2020-07-13T14:47:48.398Z,6,1964-09-11T13:35:36.521Z,61,2020-07-13T14:47:48.398Z,6,imgs/us/w76.jpg,imgs/us/tn/tn_m27.jpg,imgs/us/zn/zn_m27.jpg,tmp,f68,nat,f69,f70";
$data[] = "19,,code19,name19,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc19,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment19,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m27,male,Mr,Edgar,,Kim,3288,Victoria Street,Seoul,Northamptonshire,United Kingdom,zip,67.0036,130.1057,+9:00,Tokyo,email,Osaka,Sapporo,login_pass,edgar.kim@example.com,HplsNbog,518a7a329e41472ba49615e3c3e67dcb113b684a7d439c0e3dc1d94c64d08bef,wiluhyaCyGoxkaNN,HplsNbog,fa77bd231217dea49f4ce8bf7f6cd48a,2008-04-15T18:31:13.474Z,18,1961-08-28T00:11:40.835Z,64,2008-04-15T18:31:13.474Z,18,imgs/us/m27.jpg,imgs/us/tn/tn_m27.jpg,imgs/us/zn/zn_m27.jpg,tmp,f68,nat,f69,f70";
$data[] = "20,,code20,name20,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc20,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment20,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m28,female,Ms,Kelly,,Watts,269,Pockrus Page Rd,Paris,Louisiana,United States,50358,74.7953,-39.9070,-3:00,Brazil,zack.chapman@example.com,Madrid,zack.chapman@example.com,b756716e-5ff1-4aaa-89e7-c8c99cc414c1,organicostrich518,3aadb9626e60c96ad5330270a15c2d67c285268f,7956b5fa41ead70f3330418a787fc9dfa371a109c84e0fc36b0d475fbc1493ad,6859a12427b146e06fcfe2b206f57732,3aadb9626e60c96ad5330270a15c2d67c285268f,7956b5fa41ead70f3330418a787fc9dfa371a109c84e0fc36b0d475fbc1493ad,2004-11-19T03:50:24.459Z,14,(919) 562-1514,14,(647) 775-8540,(919) 562-1514,imgs/us/m28.jpg,imgs/us/tn/tn_m28.jpg,imgs/us/zn/zn_w85.jpg,tmp,f68,nat,f69,f70";
$data[] = "22,,code22,name22,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc22,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment22,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m29,male,Mr,Arthur,,Legrand,742,Rue Chaziere,Bogota,Haute-Loire,France,44470,10.0925,139.5695,-5:00,Eastern Time (US & Canada),arthur.legrand@example.com,Lima,arthur.legrand@example.com,a70c990c-c235-46de-a51d-99f1e7af6fad,angrybutterfly209,39796006707562424323a91bfa1697978e1618d7,20f68e3fef26166a12cfd10c224ebb9e40cb58e4eec24abc0d15e27b5bd55db8,f7e6385ef8fc915d7e92eaeb8320a865,39796006707562424323a91bfa1697978e1618d7,20f68e3fef26166a12cfd10c224ebb9e40cb58e4eec24abc0d15e27b5bd55db8,2018-03-12T14:00:20.251Z,8,2018-03-12T14:00:20.251Z,8,04-82-20-48-47,06-59-72-12-61,imgs/us/m29.jpg,imgs/us/tn/tn_m29.jpg,imgs/us/zn/zn_m29.jpg,tmp,f68,nat,f69,f70";
$data[] = "23,,code23,name23,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc23,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment23,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m29,male,Mr,Arthur,,Legrand,742,Rue Chaziere,Bogota,Haute-Loire,France,44470,10.0925,139.5695,-5:00,Eastern Time (US & Canada),terrence.larson@example.com,Vladivostok,terrence.larson@example.com,e8f10663-189b-4650-95fe-0441ea7d516e,angrybutterfly209,39796006707562424323a91bfa1697978e1618d7,20f68e3fef26166a12cfd10c224ebb9e40cb58e4eec24abc0d15e27b5bd55db8,f7e6385ef8fc915d7e92eaeb8320a865,39796006707562424323a91bfa1697978e1618d7,20f68e3fef26166a12cfd10c224ebb9e40cb58e4eec24abc0d15e27b5bd55db8,2018-03-12T14:00:20.251Z,8,2018-03-12T14:00:20.251Z,8,04-82-20-48-47,07701 533248,imgs/us/m29.jpg,imgs/us/tn/tn_m29.jpg,imgs/us/zn/zn_m29.jpg,tmp,f68,nat,f69,f70";
$data[] = "24,,code24,name24,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc24,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment24,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m2,male,Mr,Jim,,Lawson,3523,The Crescent,London,County Fermanagh,United Kingdom,zip,83.6960,-179.3785,0:00,Western Europe Time,jim.lawson@example.com,Lisbon,jim.lawson@example.com,jim.lawson@example.com,ac331856-cb08-4a6d-92a2-eb76b88afabd,188576765749ff55a51678d5dfd96679,154aeb1eac06bd86fe6b53d3c63998ae969d5c837168e5134415605d2748b4bd,EjJdcmW2,188576765749ff55a51678d5dfd96679,67c528a47529103db8b19e998dc104cad1cf2ffa,2021-08-02T08:45:34.627Z,5,68,2021-08-02T08:45:34.627Z,5,017687 13286,imgs/us/m2.jpg,imgs/us/tn/tn_m2.jpg,imgs/us/zn/zn_m2.jpg,tmp,f68,nat,f69,f70";
$data[] = "25,,code25,name25,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc25,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment25,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m32,male,Mr,Ercan,,Goering,9883,Kastanienweg,New Delhi,Brandenburg,Germany,31574,30.4943,-25.2541,+1:00,Brussels,marshall.simmons@example.com,Madras,marshall.simmons@example.com,ercan.goring@example.com,69a11b9d-4231-4a23-b6b4-082c930a76a6,bf2c5c5b8df5f83cacc454a6adf7c435,5de2a4cbf189bda28286381a93a70d698b3f1ae5,6J4HTolt,bf2c5c5b8df5f83cacc454a6adf7c435,5de2a4cbf189bda28286381a93a70d698b3f1ae5,2020-04-16T12:26:33.654Z,6,(520) 364-9828,2020-04-16T12:26:33.654Z,6,0427-4151526,imgs/us/m5.jpg,imgs/us/tn/tn_m32.jpg,imgs/us/zn/zn_m5.jpg,tmp,f68,nat,f69,f70";
$data[] = "26,,code26,name26,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc26,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment26,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m32,male,Mr,Marshall,,Simmons,1700,Spring Hill Rd,Calcutta,Florida,United States,61905,71.8045,-50.1072,+5:30,Bombay,marshall.simmons@example.com,Madras,marshall.simmons@example.com,marshall.simmons@example.com,882a0332-dc87-4892-b6fa-f498da9b13fe,e2eaf4e6b5118ab5f33029cb63284525,69b57f9a2bcdc8a7f431e3c5a82c7fdd7f8495a8582c420b943eea6f48333a4b,Enb6B6MR,e2eaf4e6b5118ab5f33029cb63284525,fca9620c3362f7090ccd3391d218dc4eb124a6b5,2007-10-23T14:18:22.141Z,18,(520) 364-9828,2007-10-23T14:18:22.141Z,18,(570) 489-3402,imgs/us/m32.jpg,imgs/us/tn/tn_m32.jpg,imgs/us/zn/zn_m32.jpg,tmp,f68,nat,f69,f70";
$data[] = "28,,code28,name28,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc28,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment28,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m3,male,Mr,Celian,,Perrin,3251,Place de LAbde-Franz-Stock,natalie.messerschmidt@example.com,Mayotte,France,35977,85.3691,73.6100,+6:00,Almaty,natalie.messerschmidt@example.com,Colombo,celian.perrin@example.com,8c2910fd-c2c7-4009-84e2-0577bf719bba,smallpeacock495,2f67a0687d30f8dede4defa4366b5fc992fca4f0,1f833e31a24789f10a7e71898459eedc6f8cd3bbf11b1c9bad06df3f5cd24ec1,6009006ed7c9a9ce4618cd24f52ee08a,2f67a0687d30f8dede4defa4366b5fc992fca4f0,1f833e31a24789f10a7e71898459eedc6f8cd3bbf11b1c9bad06df3f5cd24ec1,2008-06-30T10:33:17.585Z,18,2008-06-30T10:33:17.585Z,18,0952-2280533,0172-6724091,imgs/us/m3.jpg,imgs/us/tn/tn_m3.jpg,imgs/us/zn/zn_m3.jpg,tmp,f68,nat,f69,f70";
$data[] = "29,,code29,name29,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc29,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment29,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m3,male,Mr,Everett,,Martinez,8769,New Road,Caracas,Gwent,United Kingdom,zip,-47.0152,-153.3039,-4:00,Atlantic Time (Canada),apolline.clement@example.com,New Caledonia,apolline.clement@example.com,a7be0ef7-3df8-469a-b153-b6d91c465968,smallfrog847,ed4d1754b966a5a6e4ed466ead8c842f3691f93c,a807018ea2277925d572622af44a9c39a56c96641c893776d5c5815925ea0f03,4a2c0545c93347de43afd940d5038773,ed4d1754b966a5a6e4ed466ead8c842f3691f93c,a807018ea2277925d572622af44a9c39a56c96641c893776d5c5815925ea0f03,2002-04-16T23:00:55.522Z,24,2002-04-16T23:00:55.522Z,24,04-64-78-12-97,06-99-46-30-46,imgs/us/m3.jpg,imgs/us/tn/tn_m3.jpg,imgs/us/zn/zn_m3.jpg,tmp,f68,nat,f69,f70";
$data[] = "30,,code30,name30,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc30,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment30,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m3,male,Mr,Everett,,Martinez,8769,New Road,Caracas,Gwent,United Kingdom,zip,-47.0152,-153.3039,-4:00,Atlantic Time (Canada),everett.martinez@example.com,La Paz,everett.martinez@example.com,7166755c-617d-48f8-a4c3-abb0115c49e3,smallfrog847,ed4d1754b966a5a6e4ed466ead8c842f3691f93c,a807018ea2277925d572622af44a9c39a56c96641c893776d5c5815925ea0f03,4a2c0545c93347de43afd940d5038773,ed4d1754b966a5a6e4ed466ead8c842f3691f93c,a807018ea2277925d572622af44a9c39a56c96641c893776d5c5815925ea0f03,2002-04-16T23:00:55.522Z,24,2002-04-16T23:00:55.522Z,24,013873 70438,07756 591586,imgs/us/m3.jpg,imgs/us/tn/tn_m3.jpg,imgs/us/zn/zn_m3.jpg,tmp,f68,nat,f69,f70";
$data[] = "31,,code31,name31,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc31,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment31,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m40,male,Mr,Roland,,Henry,6567,Mcclellan Rd,Edgewood,Maryland,United States,95285,76.9610,4.8838,-9:00,Alaska,roland.henry@example.com,301128b8-027f-4b25-aaff-b6777dcffab7,heavymouse159,YCTeqbwbVpmX,q6uyw55x,7f810400094760e76a8888f8e9efe89d,02dbea2bfc244feb5a6c39f9fed97a80a6916533,c2db8676e2ac73c23d293f653c08172ae923732d29d530c34f2e75d2707e8ceb,1983-02-08T07:23:11.815Z,43,2002-06-23T13:12:27.169Z,24,(395) 834-9518,(653) 689-8536,SSN,830-06-3205,imgs/us/m40.jpg,imgs/us/zn/zn_m40.jpg,imgs/us/zn/zn_m40.jpg,tmp,f68,US,f69,f70";
$data[] = "32,,code32,name32,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc32,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment32,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m41,male,Mr,Mael,,Garnier,6668,Rue de Bonnel,Guam,Tarn-et-Garonne,France,30771,-64.3844,-150.9730,+10:00,Eastern Australia,mael.garnier@example.com,Vladivostok,mael.garnier@example.com,be5df56e-e506-40d1-9aa3-f7a4f192bf95,silverbutterfly984,60f59b75fb6c619359e2a753515849a659e37d84,72a79776f4156494ec21fd27d6320a3aa8bd85d0a4463dc677817f3ab27dfd7e,25ea7e709322f4867e07229ac663f003,60f59b75fb6c619359e2a753515849a659e37d84,72a79776f4156494ec21fd27d6320a3aa8bd85d0a4463dc677817f3ab27dfd7e,2012-09-20T12:01:46.696Z,13,2012-09-20T12:01:46.696Z,13,05-53-50-20-95,06-93-84-41-87,imgs/us/m41.jpg,imgs/us/tn/tn_m41.jpg,imgs/us/zn/zn_m41.jpg,tmp,f68,nat,f69,f70";
$data[] = "33,,code33,name33,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc33,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment33,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m41,male,Mr,Maël,,Garnier,6668,Rue de Bonnel,Guam,Tarn-et-Garonne,France,30771,-64.3844,-150.9730,+10:00,Eastern Australia,mael.garnier@example.com,Vladivostok,mael.garnier@example.com,be5df56e-e506-40d1-9aa3-f7a4f192bf95,silverbutterfly984,60f59b75fb6c619359e2a753515849a659e37d84,72a79776f4156494ec21fd27d6320a3aa8bd85d0a4463dc677817f3ab27dfd7e,25ea7e709322f4867e07229ac663f003,60f59b75fb6c619359e2a753515849a659e37d84,72a79776f4156494ec21fd27d6320a3aa8bd85d0a4463dc677817f3ab27dfd7e,2012-09-20T12:01:46.696Z,13,2012-09-20T12:01:46.696Z,13,05-53-50-20-95,06-93-84-41-87,imgs/us/m41.jpg,imgs/us/tn/tn_m41.jpg,imgs/us/zn/zn_m41.jpg,tmp,f68,nat,f69,f70";
$data[] = "34,,code34,name34,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc34,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment34,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m42,female,Ms,Marina,,Markgraf,2996,Birkenstrasse,Tbilisi,Saarland,Germany,59186,54.8170,166.6920,+3:00,Baghdad,frank.rhodes@example.com,Baku,marina.markgraf@example.com,marina.markgraf@example.com,9f1921b6-6573-40cd-ab81-1cff50954094,34f4278e626ff037d6d5afa846e8b663,9af5d404ac958a25f9277c2e5148550bd18497dc,lSSTCeeL,34f4278e626ff037d6d5afa846e8b663,9af5d404ac958a25f9277c2e5148550bd18497dc,2010-06-30T23:27:31.917Z,16,(952) 520-8790,2010-06-30T23:27:31.917Z,16,0490-4902907,imgs/us/w59.jpg,imgs/us/tn/tn_m42.jpg,imgs/us/zn/zn_m59.jpg,tmp,f68,nat,f69,f70";
$data[] = "35,,code35,name35,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc35,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment35,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m42,male,Mr,Frank,,Rhodes,2176,James St,Muscat,Delaware,United States,51146,54.3140,-111.0160,+4:00,Abu Dhabi,frank.rhodes@example.com,Baku,frank.rhodes@example.com,frank.rhodes@example.com,5cc71433-aa1a-4c18-ba3a-b897e852af3f,eaa522f966805069aa75a9c6b4c7ecf0,8b413c120687556d1e03c6fbed790febc84a2abcea030416f51fac0cf3fb7bff,4lx0r1NB,eaa522f966805069aa75a9c6b4c7ecf0,3bde42d2e4fcd78534184017fc2b8da7403b2d69,2017-04-06T01:07:16.691Z,9,(851) 824-3645,2017-04-06T01:07:16.691Z,9,(851) 824-3645,imgs/us/m42.jpg,imgs/us/tn/tn_m42.jpg,imgs/us/zn/zn_m42.jpg,tmp,f68,nat,f69,f70";
$data[] = "36,,code36,name36,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc36,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment36,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m42,male,Mr,Frank,,Rhodes,2176,James St,Muscat,Delaware,United States,51146,54.3140,-111.0160,+4:00,Abu Dhabi,frank.rhodes@example.com,Baku,frank.rhodes@example.com,frank.rhodes@example.com,5cc71433-aa1a-4c18-ba3a-b897e852af3f,eaa522f966805069aa75a9c6b4c7ecf0,8b413c120687556d1e03c6fbed790febc84a2abcea030416f51fac0cf3fb7bff,4lx0r1NB,eaa522f966805069aa75a9c6b4c7ecf0,3bde42d2e4fcd78534184017fc2b8da7403b2d69,2017-04-06T01:07:16.691Z,9,(952) 520-8790,2017-04-06T01:07:16.691Z,9,(851) 824-3645,imgs/us/m42.jpg,imgs/us/tn/tn_m42.jpg,imgs/us/zn/zn_m42.jpg,tmp,f68,nat,f69,f70";
$data[] = "37,,code37,name37,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc37,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment37,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m45,female,Miss,Sylvia,,Sanchez,8825,Adams St,London,Florida,United States,91948,39.2535,-22.1311,0:00,Western Europe Time,sylvia.sanchez@example.com,Lisbon,sylvia.sanchez@example.com,sylvia.sanchez@example.com,8c3d0ce1-6a46-4028-a3bc-6dbcecc401b0,171500fdd099989a7e8e2de068b2ffee,21766a7b27516ba72a9023356d9f598d9d1634210b6ea8128bb4084241c3f780,P9I0vv30,171500fdd099989a7e8e2de068b2ffee,b2ece6adc99ed51a611eb2f9e41342b4a8f5b563,2012-02-01T20:13:15.231Z,14,(889) 849-0886,2012-02-01T20:13:15.231Z,14,(721) 634-7064,imgs/us/w45.jpg,imgs/us/tn/tn_m45.jpg,imgs/us/zn/zn_m45.jpg,tmp,f68,nat,f69,f70";
$data[] = "38,,code38,name38,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc38,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment38,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m49,male,Mr,Daniel,,Torres,3933,Mockingbird Ln,Fairfield,Hawaii,United States,63012,-50.1710,56.8472,-8:00,Pacific Time (US & Canada),daniel.torres@example.com,45457a56-ba59-4ec5-b500-45409c002a1f,bluelion631,wowJEYis,IlRN83Od,86e046b26452a7fa48eb51cc7e999f4f,3593c720cf5d20091c0f9324b314c7052557536f,163464c566265eb6ac074454652b2965c00b679796188e6879830048224ebcbb,1956-10-28T18:59:19.361Z,69,2018-05-19T11:34:16.419Z,8,(205) 366-2065,(752) 900-5580,SSN,160-37-5929,imgs/us/m49.jpg,imgs/us/zn/zn_m49.jpg,imgs/us/zn/zn_m49.jpg,tmp,f68,US,f69,f70";
$data[] = "39,,code39,name39,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc39,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment39,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m53,male,Mr,Clemens,,Drees,3330,Lindenweg,Wassenberg,Saarland,Germany,11269,-79.9325,172.9441,-9:00,Alaska,clemens.drees@example.com,bf20922b-6b5a-44b8-95d2-efd2d5139358,bigladybug692,jQ,eAcWwCTk,b5221695a33c13ee8480e1252aa3941f,1bdba1a2d714948ded59513b4547c27199cd4b46,a894e6fd69ad81f1a2c888be4698ea7eb57c613e9e634caf716a8e3eace3aaef,1962-10-25T17:37:57.478Z,63,2015-04-26T00:17:32.584Z,11,0886-1469727,0174-3266300,SVNR,70 251062 D 425,imgs/us/m53.jpg,imgs/us/zn/zn_m53.jpg,imgs/us/zn/zn_m53.jpg,tmp,f68,DE,f69,f70";
$data[] = "40,,code40,name40,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc40,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment40,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m57,male,Mr,Loan,,Fabre,922,Rue Abel,Grenoble,Lozère,France,43102,-70.5490,9.0172,-3:30,Newfoundland,loan.fabre@example.com,3a7f3441-e11f-4403-aa34-3113dfe2a683,blueostrich385,pdTeVOfePOoL,vPKZY1Ka,6df92881fc8b12a6b3695f91de1f525e,657aec07f597590a9ec9a1d8048d29744e85bfaa,4235e43a01b622a946e4cb638570ec708ffea990cd9e6d85f692b2c5786e8b87,1975-01-14T17:02:00.728Z,51,2017-11-13T13:14:03.372Z,8,03-47-96-56-51,06-97-22-27-52,INSEE,1750093437974 50,imgs/us/m57.jpg,imgs/us/zn/zn_m57.jpg,imgs/us/zn/zn_m57.jpg,tmp,f68,FR,f69,f70";
$data[] = "41,,code41,name41,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc41,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment41,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m5,male,Mr,Ercan,,Goering,9883,Kastanienweg,Copenhagen,Brandenburg,Germany,31574,30.4943,-25.2541,+1:00,Brussels,email,Madrid,Paris,ercan.goring@example.com,69a11b9d-4231-4a23-b6b4-082c930a76a6,bf2c5c5b8df5f83cacc454a6adf7c435,271bbf610b6f58ea1549a312503bb66d27b1a1a423064ec28c3c0ac9b1c500e7,6J4HTolt,bf2c5c5b8df5f83cacc454a6adf7c435,5de2a4cbf189bda28286381a93a70d698b3f1ae5,2020-04-16T12:26:33.654Z,6,65,2020-04-16T12:26:33.654Z,6,0427-4151526,imgs/us/m5.jpg,imgs/us/tn/tn_m5.jpg,imgs/us/zn/zn_m5.jpg,tmp,f68,nat,f69,f70";
$data[] = "42,,code42,name42,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc42,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment42,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m5,male,Mr,Jessie,,Wallace,8621,Grove Road,Brighton and Hove,Hampshire,United Kingdom,RL9 2HH,11.4125,-113.7230,-2:00,Mid-Atlantic,jessie.wallace@example.com,d5bc5e75-daca-4ed0-bed5-56e340d809d2,happybear915,nFegQr,kseSj2BK,26ddd7c4850ef9e0cf78d741920dcfb7,2f54238fbd7060851deac90b534f0517429d94a1,1ba40e49a60e4d518814fc07b8311fcddfbeed1e2b4bbd497d40e705013653a1,1952-01-26T22:26:43.737Z,74,2019-05-14T18:51:05.594Z,7,016974 30408,07590 846939,NINO,XA 48 41 13 W,imgs/us/m5.jpg,imgs/us/zn/zn_m5.jpg,imgs/us/zn/zn_m5.jpg,tmp,f68,GB,f69,f70";
$data[] = "43,,code43,name43,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc43,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment43,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m65,female,Miss,Natalia,,Gleich,5460,Muehlweg,Hong Kong,Hessen,Germany,59472,0.1134,46.4444,-5:00,Eastern Time (US & Canada),jules.dupont@example.com,Singapore,jules.dupont@example.com,b8506022-f18f-43d7-8069-3c082dc1a63e,purplebear880,fc0f2b42dafbf58ec587a1b9d4dc7aec55e54275,e115ace9162c959695a16bab2e9edcf30a435c30ce7b77909a2e917606d308be,e9c058a937687bc4a1b41d2e84f0908f,fc0f2b42dafbf58ec587a1b9d4dc7aec55e54275,e115ace9162c959695a16bab2e9edcf30a435c30ce7b77909a2e917606d308be,2005-02-18T21:09:03.504Z,21,2005-02-18T21:09:03.504Z,21,0222-7115610,01-97-43-75-56,imgs/us/m65.jpg,imgs/us/tn/tn_m65.jpg,imgs/us/zn/zn_w32.jpg,tmp,f68,nat,f69,f70";
$data[] = "44,,code44,name44,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc44,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment44,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m65,male,Mr,Jules,,Dupont,1957,Rue Pierre-Delore,Perth,Mayotte,France,79547,-70.6011,-145.9652,+8:00,Beijing,jules.dupont@example.com,Singapore,jules.dupont@example.com,jules.dupont@example.com,1d70ab37-d6ec-417e-9d31-7d241b2d795c,fc99afca8f231cac0baffe1374a19dbc,ef326bdf2be02e09f1fe7884dabb2825e77413991851b407e966ebef32de412a,npeHuxXS,fc99afca8f231cac0baffe1374a19dbc,b5fac74eed690a4b5bced6b7d6c7f3c0744919b3,2004-12-12T15:13:01.359Z,21,47,2004-12-12T15:13:01.359Z,21,01-97-43-75-56,imgs/us/m65.jpg,imgs/us/tn/tn_m65.jpg,imgs/us/zn/zn_m65.jpg,tmp,f68,nat,f69,f70";
$data[] = "45,,code45,name45,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc45,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment45,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,m68,male,Mr,Marvin,,Hock,7216,Mittelstraße,Hemmingen,Nordrhein-Westfalen,Germany,89074,-64.1788,39.9291,-2:00,Mid-Atlantic,marvin.hock@example.com,36a3c5a8-e8bc-4898-b2a4-fb99a0f67d44,blackmouse191,BdnDA,XvBucdsw,58de7b418c25b3bb347aec5c0a4b033b,2d0a9d0b2e2660502ec7f9aa0dd6e186a3fcffb7,d6b1bc1c6451d991a1cf71c21e20fadb6b5486745867c07491cd69db206e4c7a,1998-11-17T02:55:42.044Z,27,2018-01-06T01:16:10.328Z,8,0511-2653698,0171-2098483,SVNR,20 161198 H 102,imgs/us/m68.jpg,imgs/us/zn/zn_m68.jpg,imgs/us/zn/zn_m68.jpg,tmp,f68,DE,f69,f70";
$data[] = "139,,code139,name139,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc139,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment139,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,w93,female,Miss,Natalie,,Messerschmidt,2665,Blumenstrasse,Dhaka,Schleswig-Holstein,Germany,45320,-23.9341,66.0892,+6:00,Almaty,natalie.messerschmidt@example.com,Colombo,natalie.messerschmidt@example.com,8c2910fd-c2c7-4009-84e2-0577bf719bba,happytiger490,343e697b7f25c3fc28b79533d019ca40675e4766,604c9e51e2b98044a2453ce88aea4e086ca2539b4136009554a509417575c60b,ae65e33d0bc24a45f4dc75637dc35278,343e697b7f25c3fc28b79533d019ca40675e4766,604c9e51e2b98044a2453ce88aea4e086ca2539b4136009554a509417575c60b,2015-08-30T07:58:35.085Z,10,2015-08-30T07:58:35.085Z,10,0952-2280533,0172-6724091,imgs/us/w93.jpg,imgs/us/tn/tn_w93.jpg,imgs/us/zn/zn_w93.jpg,tmp,f68,nat,f69,f70";
$data[] = "140,,code140,name140,20260802,green,0,manual,led_date,led_cmd,led_cmdout,desc140,led_misc,led_city,led_bldg,led_loc_code,led_floor,led_group,led_orgs,led_title,led_published,50,50,comment140,led_filename,led_user,led_user_ip,led_referer,led_user_agent,led_remote_port,,w96,female,Ms,Victoire,,Leroy,1840,Rue Courbet,London,Pyrenees-Orientales,France,43006,29.2647,-89.2715,0:00,Western Europe Time,email,Lisbon,victoire.leroy@example.com,victoire.leroy@example.com,1a9b83f1-198d-412a-85b9-f4f9e38f0ce0,6ffc6740a71610fe0e3429a309b8df14,ff670af1943f188e170a15a77585a66df42e683dc661200489d53508a683f8e7,BVILcTJp,6ffc6740a71610fe0e3429a309b8df14,d3b1a7031189139468912d04a68ceba3186d6806,2008-08-27T17:32:04.565Z,17,50,2008-08-27T17:32:04.565Z,17,04-08-90-75-98,imgs/us/w96.jpg,imgs/us/tn/tn_w96.jpg,imgs/us/zn/zn_w96.jpg,tmp,f68,nat,f69,f70";
pdo_insert( $dbname, $tblname, $data );
}
function pdo_insert_hw() {
$dbfile=$GLOBALS['dbfile'];
$tblname="hw";
$dt=date("Y-m-d H:i:s");
$data[] = "code,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "ftp1a,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "ftp2a,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "ftp3a,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "api1,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "ascrv1,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "host1,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
print( "BUGS1953 pdo_insert_hw: $dbfile $tblname $data<br>\n" );
print_r( $data );
# pdo_insert( $dbfile, $tblname, $data );
}
function pdo_insert_n11() {
$dbfile=$GLOBALS['dbfile'];
$tblname="n11";
$dt=date("Y-m-d H:i:s");
$data[] = "code,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "ftp1a,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "ftp2a,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "ftp3a,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "api1,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "ascrv1,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
$data[] = "host1,status,x,y,grp,name,phone,email,ip,dttm,comment,unique_id";
pdo_insert( $dbfile, $tblname, $data );
}
function pdo_insert_obj() {
$dbfile=$GLOBALS['dbfile'];
$tblname="obj";
$dt=date("Y-m-d H:i:s");
$data[] = "filename,width,height,nhor,nvert,title,desc";
$data[] = "petri_1053_600_13_6.jpg,1053,600,13,1,petri dishes large 1053x600,desc01";
$data[] = "petri_526_300_13_6.jpg,526,300,13,1,petri dishes small 526x300,desc02";
$data[] = "strip_goplayers.jpg,4819,200,17,1,goplayer 4819x200,desc03";
$data[] = "strip_helmet.jpg,10880,480,17,1,helmet 10880x480,desc04";
$data[] = "strip_p100.jpg,1280,480,2,1,p100 two sides,desc05";
$data[] = "usf_1711_200_8_1.jpg,1711,200,8,1,us female body 1711x200,desc06";
$data[] = "usf_3464_405_8_1.jpg,3464,405,8,1,us female body 3464x405,desc07";
$data[] = "usf_855_100_8_1.jpg,855,100,8,1,us female body 855x100,desc08";
$data[] = "usf_head_3464_72_8_1.jpg,3452,72,8,1,femail head 3464x72,desc09";
$data[] = "usm_1711_200_8_1.jpg,1711,200,8,1,mail body 1711x200,desc10";
$data[] = "usm_3464_405_8_1.jpg,3464,405,8,1,us male body 3464x405,desc11";
$data[] = "usm_855_100_8_1.jpg,855,100,8,1,us male body 855x100,desc12";
$data[] = "usm_head_3464_64_8_1.jpg,3452,64,8,1,us male head 3464x64,desc13";
pdo_insert( $dbfile, $tblname, $data );
}
function pdo_insert_pano() {
$dbfile=$GLOBALS['dbfile'];
$tblname="pano";
$dt=date("Y-m-d H:i:s");
$data[] = "filename,width,height,nhor,nvert,title,desc";
$data[] = "pano_creek.jpg,2000,1000,0,0,pano creek,desc01";
$data[] = "pano_fort.jpg,2000,1000,0,0,pano fort,desc02";
$data[] = "pano_fort2.jpg,2000,1000,0,0,pano fort2,desc03";
$data[] = "pano_grotto.jpg,2000,1000,0,0,pano grotto.jpg,desc04";
$data[] = "pano_jtf_entrance.jpg,5607,512,0,0,pano entrance,desc05";
$data[] = "pano_night.jpg,2000,1000,0,0,pano night,desc06";
$data[] = "pano_office.jpg,2000,1000,0,0,pano office,desc07";
$data[] = "pano_templet.gif,600,300,0,0,pano templet,desc08";
$data[] = "pano_templet2.jpg,300,154,0,0,pano templet2,desc09";
pdo_insert( $dbfile, $tblname, $data );
}
function pdo_grid_array($options) {
$output = "";
$output .= "<table id=\"list4\" class=\"scroll\" cellpadding=\"0\" cellspacing=\"0\">\n";
$output .= "</table>\n";
$output .= "<script type=\"text/javascript\">\n";
# $output .= "var gridimgpath = 'js/jqgrid-3.5.3/themes/redmond/imgs';\n";
$output .= "var gridimgpath = 'js/jqgrid-4.4.0/themes/redmond/imgs';\n";
$output .= "jQuery(\"#list4\").jqGrid({\n";
$output .= " datatype: \"local\",\n";
$output .= " height: 250,\n";
$output .= " colNames:['No','Date', 'Client', 'Amount','Tax','Total','Notes'],\n";
$output .= " colModel:[ \n";
$output .= " {name:'id',index:'id', width:60, sorttype:\"int\"},\n";
$output .= " {name:'date',index:'date', width:90, sorttype:\"date\"},\n";
$output .= " {name:'name',index:'name', width:100},\n";
$output .= " {name:'amount',index:'amount', width:80, align:\"right\",sorttype:\"float\"},\n";
$output .= " {name:'tax',index:'tax', width:80, align:\"right\",sorttype:\"float\"},\n";
$output .= " {name:'total',index:'total', width:80,align:\"right\",sorttype:\"float\"},\n";
$output .= " {name:'note',index:'note', width:150, sortable:false}\n";
$output .= " ], \n";
$output .= "imgpath: gridimgpath,\n";
$output .= "multiselect: true,\n";
$output .= "caption: \"Manipulating Array Data\"\n";
$output .= "});\n";
$output .= "var mydata = [\n";
$output .= " {id:\"1\",date:\"2007-10-01\",name:\"test\",note:\"note\",amount:\"200.00\",tax:\"10.00\",total:\"210.00\"},\n";
$output .= " {id:\"2\",date:\"2007-10-02\",name:\"test2\",note:\"note2\",amount:\"300.00\",tax:\"20.00\",total:\"320.00\"},\n";
$output .= " {id:\"3\",date:\"2007-09-01\",name:\"test3\",note:\"note3\",amount:\"400.00\",tax:\"30.00\",total:\"430.00\"},\n";
$output .= " {id:\"4\",date:\"2007-10-04\",name:\"test\",note:\"note\",amount:\"200.00\",tax:\"10.00\",total:\"210.00\"},\n";
$output .= " {id:\"5\",date:\"2007-10-05\",name:\"test2\",note:\"note2\",amount:\"300.00\",tax:\"20.00\",total:\"320.00\"},\n";
$output .= " {id:\"6\",date:\"2007-09-06\",name:\"test3\",note:\"note3\",amount:\"400.00\",tax:\"30.00\",total:\"430.00\"},\n";
$output .= " {id:\"7\",date:\"2007-10-04\",name:\"test\",note:\"note\",amount:\"200.00\",tax:\"10.00\",total:\"210.00\"},\n";
$output .= " {id:\"8\",date:\"2007-10-03\",name:\"test2\",note:\"note2\",amount:\"300.00\",tax:\"20.00\",total:\"320.00\"},\n";
$output .= " {id:\"9\",date:\"2007-09-01\",name:\"test3\",note:\"note3\",amount:\"400.00\",tax:\"30.00\",total:\"430.00\"}\n";
$output .= " ]; \n";
$output .= "for( var i=0; i <= mydata.length; i++) \n";
$output .= " jQuery(\"#list4\").addRowData(i+1,mydata[i]); \n";
$output .= "</script>\n";
return( $output );
}
function pdo_grid( $options ) {
$http_host=$_SERVER['HTTP_HOST'];
$php_self=$_SERVER['PHP_SELF'];
$js_output=$GLOBALS['js_output'];
$dbfiles = $GLOBALS['dbs'];
$url_dbcode=$options[2];
$url_table=$options[3];
$url_value=$options[4];
$url_value1=$options[5];
$url_value2=$options[6];
$url_zmcode=$options[4];
$url_zmtype=$options[5];
$url_zmrowid=$options[6];
# print( "pdo_gird_2877: o1=[$options[1]] o2=[$options[2]] o3=[$options[3]] o4=[$options[4]] o5=[$options[5]] o6=[$options[6]] o7=[$options[7]]<br>\n" );
# print( "pdo_grid_2878: _SESSION[hs_type]=[".$_SESSION['hs_type']."] dbcode=[$url_dbcode] url_table=[$url_table] url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype]<br>\n" );
if(( $url_zmtype == "" ) & ( $_SESSION['hs_type'] )) { $url_zmtype = $_SESSION['hs_type']; }
# print( "pdo_grid_2880: _SESSION[hs_type]=[".$_SESSION['hs_type']."] dbcode=$url_dbcode url_table=$url_table url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype] url_zmrowid=[$url_zmrowid]<br>\n" );
$role=$_SESSION['role'];
$theme=$_SESSION['theme'];
$gridimgpath = $_SESSION['gridimgpath'];
# print( "BUGS_2595 gridimgpath=[$gridimgpath] theme=$theme role=$role<br>\n" );
$page=1;
$records=1;
if( $url_dbcode == "" ) {
print( "<hr><h2>pdo_grid url_dbcode[$url_dbcode] url_table=[$url_table]</h2><hr>\n" );
foreach( $dbfiles as $dbcode => $dbinfo ) {
$dbfile=$dbfiles[$dbcode]['dbfile'];
$tblcnt=count( $dbfiles[$dbcode]['tables']);
$path_parts = pathinfo($dbfile);
$dbfile_filename=$path_parts['filename'];
# print( "<a href=$php_self?q=db/grid/$dbfile_filename>$dbfile_filename $tblcnt</a><br />\n" );
$output .= "<a href=$php_self?q=db/grid/$dbfile_filename>$dbfile_filename $tblcnt</a><br />\n";
}
return($output);
}
# select database/tables
if(( $url_dbcode != "" ) && ( $url_table == "" )) {
# print( "<hr><h2>$dttm MSG_3536: pdo_unload url_dbcode[$url_dbcode] url_table=[$url_table]</h2><hr>\n" );
$output .= "<hr><h2>$dttm MSG_3536: pdo_unload url_dbcode[$url_dbcode] url_table=[$url_table]</h2><hr>\n";
foreach( $dbfiles[$url_dbcode]['tables'] as $table => $tableinfo ) {
# print( "<a href=$php_self?q=db/grid/$url_dbcode/$tableinfo>$tableinfo </a><br />\n" );
$output .= "<a href=$php_self?q=db/grid/$url_dbcode/$tableinfo>$tableinfo </a><br />\n";
}
return( $output );
}
$dbfile=$dbfiles[$url_dbcode]['dbfile'];
# print( "pdo_grid BUGS_10700: url_dbcode=[$url_dbcode] dbfile=[$dbfile]<hr>\n" );
# $testfile="/home/ko/vg/kohpx_vg.db3";
# $testfile="$document_root/index1.php";
# $testfile="/home/ko/vg/kohpx_vg.db3";
$testfile="$document_root/ko_center/kohpx_vg.db3";
#/ if( file_exists( "/home/ko/vg/kohpx_vg.db3" )) {
#/ printf( "$progid MSG_3550: FOUND testfile=[$testfile]<hr>\n" );
#/ }
#/ else {
#/ printf( "$progid ERR_3550: NOTFOUND testfile=[$testfile]<hr>\n" );
#/ }
if( ! file_exists( $dbfile )) {
# print( "pdo_grid ERR: NOTFOUND url_dbcode=[$url_dbcode] dbfile=[$dbfile]<hr>\n" );
$output .= "pdo_grid ERR_1070: NOTFOUND url_dbcode=[$url_dbcode] dbfile=[$dbfile]<hr>\n";
return( $output );
}
$where_clause="";
$jqgrid_list_id = "list_$url_dbcode"."_$url_table"."_$url_value"."_$url_value1"."_$url_value2";
$jqgrid_pager_id = "pager_$url_dbcode"."_$url_table"."_$url_value"."_$url_value1"."_$url_value2";
$jqgrid_url = "url:'https:#$http_host$php_self";
$jqgrid_url .= "?q=db/gridxml/".$url_dbcode."/".$url_table."/".$url_value."/".$url_value1."/".$url_value2."',";
$jqgrid_editurl = "editurl:'https:#$http_host$php_self";
$jqgrid_editurl .= "?q=db/gridxml/".$url_dbcode."/".$url_table."/".$url_value."/".$url_value1."/".$url_value2."',";
# print( "BUGS_2925 pdo_grid url_table=[$url_table]<br>\n" );
if( $url_table == "zoomxml" ) {
$jqgrid_list_id = "list_$url_dbcode"."_$url_table"."_$url_zmcode"."_$url_zmtype"."_$url_zmrowid";
$jqgrid_pager_id = "pager_$url_dbcode"."_$url_table"."_$url_zmcode"."_$url_zmtype"."_$url_zmrowid";
$jqgrid_url = "url:'https:#$http_host$php_self";
$jqgrid_url .= "?q=db/gridxml/".$url_dbcode."/".$url_table."/".$url_zmcode."/".$url_zmtype."/".$url_zmrowid."',";
$jqgrid_editurl = "editurl:'https:#$http_host$php_self";
$jqgrid_editurl .= "?q=db/gridxml/".$url_dbcode."/".$url_table."/".$url_zmcode."/".$url_zmtype."/".$url_zmrowid."',";
switch( true ) {
case( $url_zmcode == "" & $url_zmtype == "" & $url_zmrowid == "" ):
$where_clause = "";
break;
case( $url_zmcode == "" & $url_zmtype == "" & $url_zmrowid != "" ):
$where_clause = "where rowid = '$url_zmrowid'";
break;
case( $url_zmcode == "" & $url_zmtype != "" & $url_zmrowid == "" ):
$where_clause = "where type = '$url_zmtype'";
break;
case( $url_zmcode == "" & $url_zmtype != "" & $url_zmrowid != "" ):
$where_clause = "where type = '$url_zmtype' and rowid='$zmrowid'";
break;
case( $url_zmcode == "all" & $url_zmtype == "all" & $url_zmrowid == "" ):
$where_clause = "";
break;
case( $url_zmcode == "" & $url_zmtype == "all" & $url_zmrowid == "" ):
$where_clause = "";
break;
case( $url_zmcode == "" & $url_zmtype == "all" & $url_zmrowid != "" ):
$where_clause = "where zoomxml_id = '$url_zmrowid'";
break;
case( $url_zmcode != "" & $url_zmtype == "" & $url_zmrowid == "" ):
# $where_clause = "where code = '$url_zmcode'";
break;
case( $url_zmcode != "" & $url_zmtype == "" & $url_zmrowid != "" ):
$where_clause = "where code = '$url_zmcode' and rowid = '$rowid'";
break;
case( $url_zmcode != "" & $url_zmtype != "" & $url_zmrowid == "" ):
$where_clause = "where code = '$url_zmcode' and type = '$url_zmtype'";
break;
case( $url_zmcode != "" & $url_zmtype != "" & $url_zmrowid != "" ):
$where_clause = "where code = '$url_zmcode' & type = '$url_zmtype' and rowid = '$url_rowid'";
break;
}
#/ print( "BUGS_2968 pdo_grid ZOOMXML: url_zmtype=[$url_zmtype] url_zmcode=[$url_zmcode] where=[$where_clause]\n" );
}
if( $url_table == "zoom" ) {
#/ print( "BUGS_2972 pdo_grid ZOOM: url_zmtype=[$url_zmtype] url_zmcode=[$url_zmcode] where=[$where_clause]\n" );
}
$pdo = newpdo($dbfile);
# $sql = "select count(*) pagetotal from $url_table";
$sql = "select count(*) pagetotal from $url_table $where_clause";
$output .= "<!-- pdo_grid_2986: sql=[$sql]<br> -->\n";
$output .= "<!-- pdo_grid_2987: where_clause=[$where_clause]<br> -->\n";
$sqlout = $pdo->query($sql);
$record = $sqlout->fetchall();
if(sizeof($record) != 0) {
# print( "sizeof record != 0 $record<br>\n" );
$total_pages=$record[0][0];
}
else {
$total_pages=0;
}
# $sql = "select * from $url_table";
# $sql = "select rowid,* from $url_table";
$sql = "select rowid,* from $url_table $where_clause";
# print( "BUGS_2999 sql=[$sql] url_table=[$url_table] where_clause=[$where_clause] $zmcode $zmtype<br>\n" );
# print( "BUGS_3000 url_table[$url_table] url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype] url_zmrowid=[$url_zmrowid]<br>\n" );
$result = $pdo->query($sql);
$collim = $result->columnCount();
$xml_rowid = 1;
$output = "";
$colmodel="";
$colnames="";
$coldata="";
$sortname="";
while($row = $result->fetch(PDO::FETCH_ASSOC)) {
$xml .= "<row id='". $xml_rowid . ";>\n";
if($xml_rowid == 1) {
# $output .= join(",", array_keys($row)) . "\n";
$colnames = " colNames:[";
$colmodel .= " colModel:[\n";
foreach( $row as $col => $val ) {
if( $sortname == "" ) { $sortname=$col; }
# $colnames .= "<td>hdrs:". $col. " = ".$val."</td>\n";
# $colnames .= " colNames:['No','Date', 'Client', 'Amount','Tax','Total','Notes'],\n";
$colnames .= "'$col',";
# $colmodel .= " {name:'".$col."',index:'".$col."', width:40 },\n";
$colmodel .= " {name:'".$col."',index:'".$col."', width:40, editable:true },\n";
}
$colnames .= "]\n";
$colnames = str_replace( ",]", "],", $colnames );
$colmodel .= "]";
$colmodel = str_replace( "},\n]", "}\n ],\n", $colmodel );
}
else {
# $output .= join(",", $row) ."\n";
$coldata .="<tr>\n";
foreach( $row as $col => $val ) {
# $colmodel .= "<td>cols: ". $col. " = ".$val."</td>\n";
# $output .= " colModel:[\n";
# $output .= " {name:'No',index:'id', width:55},\n";
# $output .= " {name:'Notes',index:'note', width:150, sortable:false} \n";
# $output .= " ],\n";
$coldata .= "<td>$val</td>";
}
$coldata .= "\n</tr>\n";
}
# $rowid++;
$xml_rowid++;
}
$pdo=null;
# $js_output .= "<script type=\"text/javascript\">\n";
# $js_output .= " var gridimgpath = 'js/themes/swanky-purse/imgs'\n";
# $js_output .= "jQuery(document).ready(function(){\n";
# $js_output .= " jQuery().ready(function(){\n";
$js_output .= " jQuery(\"#$jqgrid_list_id\").jqGrid({\n";
#/ $request="";
#/ if( $_REQUEST['rowid'] ) { $request .= "&rowid=".$_REQUEST['rowid']; }
#/ if( $_REQUEST['code'] ) { $request .= "&code=".$_REQUEST['code']; }
#/ if( $_REQUEST['type'] ) { $request .= "&type=".$_REQUEST['type']; }
$js_output .= " $jqgrid_url\n";
$js_output .= " $jqgrid_editurl\n";
# $js_output .= " $datatype: \"json\",\n";
$js_output .= " $datatype: \"xml\",\n";
$js_output .= $colnames;
$js_output .= $colmodel;
# $js_output .= " imgpath: \"js/jqgrid-3.5.3/themes/redmond/imgs\",\n";
$js_output .= " imgpath: gridimgpath,\n";
$js_output .= " height:400,\n";
# $js_output .= " rowNum:50,\n";
$rownum_default=10;
$rownum=$rownum_default;
if( $url_table == "zoom" ) { $rownum=50; }
if( $url_table == "zoomxml" ) { $rownum=25; }
$caption = "$url_dbcode $url_table $zmcode $where_clause";
#/ print( "BUGS_3081 CAPTION pdo_grid: caption=[$caption] rownum=[$rownum] url_table=[$url_table] where_clause=[$where_clause]<br>\n" );
$js_output .= " rowNum: $rownum,\n";
$js_output .= " autowidth: true,\n";
$js_output .= " rowList:[10,20,30,50, 100, 500, 1000],\n";
# $js_output .= " pager: jQuery('#pager1'),\n";
$js_output .= " pager: jQuery('#$jqgrid_pager_id'),\n";
$js_output .= " sortname: '".$sortname."',\n";
$js_output .= " viewrecords: true,\n";
$js_output .= " sortorder: \"asc\",\n";
# $js_output .= " sortorder: \"desc\",\n";
# $js_output .= " caption: \"jqgrid $url_dbcode $url_table $url_value\"\n";
# $js_output .= " caption: \"$url_dbcode $url_table $zmcode $where_clause\"\n";
$js_output .= " caption: \"$caption\"\n";
# $js_output .= " }).navGrid('#pager1',{edit:false,add:false,del:false});\n";
# $js_output .= " }).navGrid('#pager1',{edit:true,add:true,del:true});\n";
$js_output .= " }).navGrid('#$jqgrid_pager_id',{edit:true,add:true,del:true});\n";
$js_output .= "\n";
# $js_output .= " });\n";
# $js_output .= " });\n";
# $js_output .= "</script>\n";
$output = "";
#/ $output .= $html_theme_links;
$output .= "<table id=\"$jqgrid_list_id\" class=\"scroll\" cellpadding=\"0\" cellspacing=\"0\"></table>\n";
$output .= "<div id=\"$jqgrid_pager_id\" class=\"scroll\" style=\"text-align:center;\"></div>\n";
$output .= "\n";
$url_table=$options[3];
$url_value=$options[4];
$export_img="<img src=imgs/btn/export.png width=40 border=0>";
$import_img="<img src=imgs/btn/import.png width=40 border=0>";
$unload_img="<img src=imgs/btn/unload.png width=40 border=0>";
$load_img="<img src=imgs/btn/load.png width=40 border=0>";
$http_host=$_SERVER['HTTP_HOST'];
$php_self=$_SERVER['PHP_SELF'];
$output .= "<hr>\n";
$output .= "<a href=http:#$http_host$php_self?q=db/unload/$url_dbcode/$url_table>$unload_img unload (get) $url_dbcode $url_table</a>\n";
$output .= "     \n";
$output .= "<a href=http:#$http_host$php_self?q=db/load/$url_dbcode/$url_table> (put) $url_dbcode $url_table $import_img</a>\n";
$output .= "<hr>\n";
$GLOBALS['js_output'] = $js_output;
return( $output );
}
function pdo_insert_cfg() {
$dbfile=$GLOBALS['dbfile'];
$tblname="cfg";
$data[] = "fld,val,desc";
$data[] = "min,10,desc_min";
$data[] = "max,10,desc_ma\n";
$data[] = "minspaces,10,desc_minspaces";
$data[] = "maxspaces,80,desc_maxspaces";
$data[] = "leds_context,cab,desc_leds_context";
$data[] = "leds_contexts,ai cab doc us,desc_leds_context";
# print_r($data);
print( "BUGS_411 pdo_insert_cfg dbfile=$dbfile tblname=$tblname data0=".$data[0]." <br>\n" );
print( "BUGS_412 pdo_insert_cfg dbfile=$dbfile tblname=$tblname data1=".$data[1]." <br>\n" );
print( "BUGS_413 pdo_insert_cfg dbfile=$dbfile tblname=$tblname data2=".$data[2]." <br>\n" );
print( "BUGS_415 pdo_insert_cfg dbfile=$dbfile tblname=$tblname <br>\n" );
pdo_insert( $dbfile, $tblname, $data);
}
function pdo_unload($options) {
$php_self=$_SERVER['PHP_SELF'];
$dbfiles = $GLOBALS['dbs'];
if($_SESSION['role'] ) { $role=$_SESSION['role']; }
$role=$_SESSION['role'];
$GLOBALS['dbfiles'];
$GLOBALS['dbs'] = $dbfiles[$role];
$url_dbcode=$options[2];
$url_table=$options[3];
if( $url_dbcode == "" ) {
print( "<hr><h2>pdo_unload url_dbcode[$url_dbcode] url_table=[$url_table]</h2><hr>\n" );
$output = "";
$output .= "<a href=$php_self?q=db/unload/fp>unload_fp</a><br>\n";
$output .= "<a href=$php_self?q=db/unload/us>unload_us</a><br>\n";
$output .= "<a href=$php_self?q=db/unload/hw>unload_hw</a><br>\n";
$output .= "<a href=$php_self?q=db/unload/grid>unload_grid</a><br>\n";
$output .= "<br>\n";
$output .= "<a href=$php_self?q=db/unload/leds>unload_leds</a><br>\n";
$output .= "<a href=$php_self?q=db/unload/users>unload_users</a><br>\n";
$output .= "<a href=$php_self?q=db/unload/roles>unload_roles</a><br>\n";
print( $output );
print_r( $dbfiles );
foreach( $dbfiles as $dbcode => $dbinfo ) {
$dbfile=$dbfiles[$dbcode]['dbfile'];
$tblcnt=count( $dbfiles[$dbcode]['tables']);
$path_parts = pathinfo($dbfile);
$dbfile_filename=$path_parts['filename'];
print( "<a href=$php_self?q=db/unload/$dbfile_filename>$dbfile_filename $tblcnt</a><br />\n" );
}
return;
}
# select database/tables
if(( $url_dbcode != "" ) && ( $url_table == "" )) {
print( "<hr><h2>pdo_unload url_dbcode[$url_dbcode] url_table=[$url_table]</h2><hr>\n" );
foreach( $dbfiles[$url_dbcode]['tables'] as $table => $tableinfo ) {
print( "<a href=$php_self?q=db/unload/$url_dbcode/$tableinfo>$tableinfo </a><br />\n" );
}
return;
}
$dbfile=$dbfiles[$url_dbcode][dbfile];
if( ! file_exists( $dbfile )) {
print( "pdo_unload ERR: NOTFOUND url_dbcode=[$url_dbcode] dbfile=[$dbfile]<hr>\n" );
return;
}
$pdo = newpdo($dbfile);
$sql = "select * from $url_table";
$result = $pdo->query($sql);
$collim = $result->columnCount();
$countrows = 1;
$output = "";
while($row = $result->fetch(PDO::FETCH_ASSOC)) {
if($countrows == 1) {
$csvhdr=join(",",array_keys($row)) . "\n";
# $output .= join(",", array_keys($row)) . "\n";
$output .= join(",", $row) ."\n";
}
else {
$output .= join(",", $row) ."\n";
}
$countrows++;
}
$pdo=null;
# print( "$output" );
# print( "BUGS tblname=$tblname cols=$cols<br>\n" );
$dttm=date("Ymd_His");
$csvfile = "$url_dbcode"."_$url_table"."_$dttm.csv";
# print( "__FUNCTION__=".__FUNCTION__."<br>\n" );
# $content_type = "Content-type: application/csv Content-Disposition: \"inline; filename=$csvfile\"";
# print( "$content_type\n" );
# header( "$content_type" );
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
# header("Content-Length: " . strlen($out));
header("Content-type: text/x-csv");
# header("Content-type: text/csv");
# header("Content-type: application/vnd.ms-excel");
# header("Content-type: application/csv");
header("Content-Disposition: attachment; filename=$csvfile");
print( "$output" );
return;
}
function pdo_load($options) {
$php_self=$_SERVER['PHP_SELF'];
$dbfiles = $GLOBALS['dbs'];
$url_dbcode=$options[2];
$url_table=$options[3];
$dbcode=$url_dbcode;
$tblname=$url_table;
if( $url_dbcode == "" ) {
print( "<hr><h2>pdo_load url_dbcode[$url_dbcode] url_table=[$url_table]</h2><hr>\n" );
$output = "";
$output .= "<a href=$php_self?q=db/load/fp>load_fp</a><br>\n";
$output .= "<a href=$php_self?q=db/load/us>load_us</a><br>\n";
$output .= "<a href=$php_self?q=db/load/hw>load_hw</a><br>\n";
$output .= "<a href=$php_self?q=db/load/grid>load_grid</a><br>\n";
$output .= "<br>\n";
$output .= "<a href=$php_self?q=db/load/leds>load_leds</a><br>\n";
$output .= "<a href=$php_self?q=db/load/users>load_users</a><br>\n";
$output .= "<a href=$php_self?q=db/load/roles>load_roles</a><br>\n";
# print( $output );
# print_r( $dbfiles );
foreach( $dbfiles as $dbcode => $dbinfo ) {
$dbfile=$dbfiles[$dbcode]['dbfile'];
$tblcnt=count( $dbfiles[$dbcode]['tables']);
$path_parts = pathinfo($dbfile);
$dbfile_filename=$path_parts['filename'];
print( "<a href=$php_self?q=db/load/$dbfile_filename>$dbfile_filename $tblcnt</a><br />\n" );
}
return;
}
# select database/tables
if(( $url_dbcode != "" ) && ( $url_table == "" )) {
print( "<hr><h2>pdo_load url_dbcode[$url_dbcode] url_table=[$url_table]</h2><hr>\n" );
foreach( $dbfiles[$url_dbcode]['tables'] as $table => $tableinfo ) {
print( "<a href=$php_self?q=db/load/$url_dbcode/$tableinfo>$tableinfo </a><br />\n" );
}
return;
}
$url_filename = $_FILES['loaddata']['name'];
$url_filetype = $_FILES['loaddata']['type'];
$url_filetemp = $_FILES['loaddata']['tmp_name'];
$url_fileerror = $_FILES['loaddata']['error'];
$url_filesize = $_FILES['loaddata']['size'];
if(( $url_dbcode != "" ) && ( $url_table != "" ) && ( $url_filetemp == "" )) {
$output = "";
$output .= "<html>";
$output .= "<head><title>pdo_load</title></head>\n";
# $output .= "<body bgcolor=\"lightblue\">\n";
$output .= "<body bgcolor=\"linen\">\n";
$output .= "<b>leds_load_form</b>\n";
$output .= "<br>";
$output .= "url_filename=[$url_filename]<br>\n";
$output .= "url_filetype=[$url_filetype]<br>\n";
$output .= "url_filetemp=[$url_filetemp]<br>\n";
$output .= "url_fileerror=[$url_fileerror]<br>\n";
$output .= "url_filesize=[$url_filesize]<br>\n";
$output .= "<form method=\"post\" action=\"$php_self?q=db/load/$url_dbcode/$url_table/$url_filename\" enctype=\"multipart/form-data\">\n";
$output .= "<br/>\n";
$output .= "loadmode: <br>\n";
$load_delete_checked = "";
$load_update_checked = "";
if( $led_loadmode == "load_delete" ) { $load_delete_checked = "checked"; }
if( $led_loadmode == "load_update" ) { $load_checked_checked = "checked"; }
$output .= "<input type=\"radio\" name=\"loadmode\" value=\"load_delete\" $load_delete_checked />load_delete";
$output .= "<input type=\"radio\" name=\"loadmode\" value=\"load_update\" $load_update_checked />load_update";
$output .= "<br/>";
$output .= "load: <input type=\"file\" name=\"loaddata\" /><br />\n";
$output .= "<input type=\"hidden\" name=\"query_string\" value=\"$query_string\"/>\n";
$output .= "<input type=\"hidden\" name=\"loaddata_loos\" value=\"'". $globals['loaddata']."'\"/>\n";
$output .= "<input type=\"hidden\" name=\"dbcode\" value=\"$url_dbcode\"/>\n";
$output .= "<input type=\"hidden\" name=\"loadfile\" value=\"'". $globals['uploaded']."'\"/>\n";
$output .= "<input type=\"hidden\" name=\"table\" value=\"$url_table\"/>\n";
$output .= "<hr/>\n";
$output .= "<p>\n";
$output .= "<input type=\"submit\" name=\"load\" value=\"load\"/>\n";
$output .= "<input type=\"reset\"/>\n";
$output .= "</p>\n";
$output .= "</form>\n";
$output .= "</body>\n";
$output .= "<html>\n";
print( "$output" );
return;
}
if(( $url_dbcode != "" ) && ( $url_table != "" ) && ( $url_filetemp != "" )) {
$output = "";
$output .= "<head><title>fp_load</title></head>\n";
# $output .= "<body bgcolor=\"lightblue\">\n";
$output .= "<body bgcolor=\"linen\">\n";
$output .= "<b>fp_load</b>\n";
$output .= "<br>";
$output .= "url_filename=[$url_filename]<br>\n";
$output .= "url_filetype=[$url_filetype]<br>\n";
$output .= "url_filetemp=[$url_filetemp]<br>\n";
$output .= "url_fileerror=[$url_fileerror]<br>\n";
$output .= "url_filesize=[$url_filesize]<br>\n";
if( file_exists( $url_filetemp )) {
$output .= "pdo_load MSG: FOUND url_filetemp=[$url_filetemp]<br>\n";
$filedata= array();
$rownum=0;
$fp = fopen( $url_filetemp, "r" );
while(( $filetext = fgets($fp)) !== false ) {
$filedata[] = $filetext;
#/ $output .= "pdo_load CSV: rownum=$rownum filedata=[".$filedata[$rownum]. "]<br>\n";
$rownum++;
}
fclose($fp);
$dbfile=$dbfiles[$url_dbcode]['dbfile'];
if( ! file_exists( $dbfile )) {
print( "pdo_unload ERR: NOTFOUND dbfile=[$dbfile] <hr>\n" );
return;
}
else {
print( "pdo_unload MSG: FOUND dbfile=[$dbfile] <hr>\n" );
}
$data = $filedata;
$dttm=date("Ymd_His");
$newfile="$url_dbcode"."_".$url_table.".csv";
$savefile="$url_dbcode"."_".$url_table."_$dttm.csv";
$dbcode=$url_dbcode;
$tblname=$url_table;
$output .= "BUGS2311: pdo_insert( $url_dbcode, $url_table, \$data )<br>\n";
$output .= "BUGS2312: pdo_insert( $dbfile, $tblname, \$data )<br>\n";
$output .= "BUGS2313: copy( $newfile, $savefile )<br>\n";
$output .= "BUGS2314: copy( $url_filetemp, $newfile )<br>\n";
if( file_exists( $newfile )) { copy( $newfile, $savefile ); }
if( file_exists( $url_filetemp )) { copy( $url_filetemp, $newfile ); }
#/ print( "BUGS2315_PDO_INSERT_BEG: dbfile=[$dbfile] tblname=[$tblname]<br>\n" );
# print_r( $data );
pdo_insert( $dbfile, $tblname, $data );
#/ print( "BUGS2315_PDO_INSERT_END: dbfile=[$dbfile] [tblname=[$tblname]<br>\n" );
#/ print_r( $data );
}
else {
$output .= "pdo_load ERR: NOTFOUND url_filetemp=[$url_filetemp]<br>\n";
}
print( $output );
return;
}
$dbfile=$dbfiles[$url_dbcode][dbfile];
print( "pdo_load MSG: NOTFOUND url_dbcode=[$url_dbcode] dbfile=[$dbfile]<hr>\n" );
if( ! file_exists( $dbfile )) {
print( "pdo_load ERR: NOTFOUND url_dbcode=[$url_dbcode] dbfile=[$dbfile]<hr>\n" );
return;
}
}
function leds_zviewer( $zoom_file, $zoom_path, $zoom_xml ) {
# $xmlfile="$file"."_".$hscode."_hotspots.xml";
print( "leds_zviewer MSG: zoom_file=$zoom_file zoom_path=$zoom_path zoom_xml=$zoom_xml<br>\n" );
$output ="<html>\n";
$output .= "<head>\n";
$output .= "<title>leds_zviewer $zoom_path $zoom_file $zoom_xml</title>";
$output .= "<body bgcolor=\"linen\">\n";
$file=$zoom_file; $path=$zoom_path; $xml=$zoom_xml;
print( "leds_zviewer MSG1985: file=$file path=$path xml=$xml<hr>\n" );
$output .= "<div align=\"center\">\n";
$object = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\n";
$object .= "codebase=\"http:#download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\"\n";
$object .= "width=\"900\" height=\"500\"\n";
$object .= "id=\"ZoomifyHotspotViewer\"\n";
# $object .= "id=\"ZoomifyTourViewer\"\n";
# $object .= "id=\"zoomifyviewer\"\n";
$object .= ">\n";
$object .= "<param name=\"flashvars\"\n";
$object .= "value=\"zoomifyImagePath=$path$file&zoomifyHotspotsXMLPath=$xml\">\n";
$object .= "<param name=\"menu\" value=\"false\">\n";
$object .= "<param name=\"src\"\n";
$object .= "value=\"ZoomifyHotspotViewer.swf\">\n";
# $object .= "value=\"ZoomifyTourViewer.swf\">\n";
# $object .= "value=\"zoomifyviewer.swf\">\n";
$object .= "<embed\n";
$object .= "flashvars=\"zoomifyImagePath=$path$file&zoomifyHotspotsXMLPath=$xml\"\n";
$object .= "src=\"ZoomifyHotspotViewer.swf\"\n";
# $object .= "src=\"ZoomifyTourViewer.swf\"\n";
# $object .= "src=\"zoomifyviewer.swf\"\n";
$object .= "menu=\"false\"\n";
$object .= "pluginspage=\"http:#www.adobe.com/go/getflashplayer\"\n";
$object .= "type=\"application/x-shockwave-flash\"\n";
$object .= "width=\"900\" height=\"500\"\n";
$object .= "name=\"ZoomifyHotspotViewer\">\n";
# $object .= "name=\"ZoomifyTourViewer\">\n";
# $object .= "name=\"zoomifyviewer\">\n";
$object .= "</embed>\n";
$object .= "</object>\n";
$output .= $object;
$output .= "</div>\n";
$output .= "</body>\n";
$output .= "</html>\n";
print( "$output\n" );
}
function html_zviewer( $zoom_file, $zoom_path, $zoom_xml ) {
# $xmlfile="$file"."_".$hscode."_hotspots.xml";
# $output = "<hr>html_zviewer MSG_3948: zoom_file=$zoom_file zoom_path=$zoom_path zoom_xml=$zoom_xml<br>\n";
# $output .= "html_zviewer [$zoom_path] [$zoom_file] [$zoom_xml]</title>";
# $output .= "<body bgcolor=\"#ffffff\">\n";
$file=$zoom_file; $path=$zoom_path; $xml=$zoom_xml;
$output .= "<hr>html_zviewer MSG1985: file=$file path=$path xml=$xml<hr>\n";
$output .= "<div id=\"zviewer\" align=\"center\">\n";
$object = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\n";
$object .= "codebase=\"http:#download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\"\n";
$object .= "width=\"900\" height=\"500\"\n";
$object .= "id=\"ZoomifyHotspotViewer\"\n";
# $object .= "id=\"ZoomifyTourViewer\"\n";
# $object .= "id=\"zoomifyviewer\"\n";
$object .= ">\n";
$object .= "<param name=\"flashvars\"\n";
$object .= "value=\"zoomifyImagePath=$path$file&zoomifyHotspotsXMLPath=$xml\">\n";
$object .= "<param name=\"menu\" value=\"false\">\n";
$object .= "<param name=\"src\"\n";
$object .= "value=\"ZoomifyHotspotViewer.swf\">\n";
# $object .= "value=\"ZoomifyTourViewer.swf\">\n";
# $object .= "value=\"zoomifyviewer.swf\">\n";
$object .= "<embed\n";
$object .= "flashvars=\"zoomifyImagePath=$path$file&zoomifyHotspotsXMLPath=$xml\"\n";
$object .= "src=\"ZoomifyHotspotViewer.swf\"\n";
# $object .= "src=\"ZoomifyTourViewer.swf\"\n";
# $object .= "src=\"zoomifyviewer.swf\"\n";
$object .= "menu=\"false\"\n";
$object .= "pluginspage=\"http:#www.adobe.com/go/getflashplayer\"\n";
$object .= "type=\"application/x-shockwave-flash\"\n";
$object .= "width=\"900\" height=\"500\"\n";
$object .= "name=\"ZoomifyHotspotViewer\">\n";
# $object .= "name=\"ZoomifyTourViewer\">\n";
# $object .= "name=\"zoomifyviewer\">\n";
$object .= "</embed>\n";
$object .= "</object>\n";
$output .= $object;
$output .= "</div>\n";
return( "$output\n" );
}
function leds_ptviewer( $options ) {
$php_self=$_SERVER['PHP_SELF'];
$ptpath="./java/ptviewer";
$panopath="./media/pano";
$panofile="obj.jpg"; $width="640"; $height="480"; $nhor="25"; $nver="1";
$output = "";
if( $options[2] == "" ) {
$pdo = newpdo($GLOBALS['dbfile']);
$tblname="pano";
$output = "";
$output .= "<html><head><title>fp ptviewer index</title></head>\n";
# $output .= "<body bgcolor=lightblue>\n";
$output .= "<body bgcolor=linen>\n";
$output .= "<hr>fp ptviewer index<hr>\n";
$output .= "<hr>\n";
$output .= "<div class=pano>\n";
$output .= "<table>\n";
$sql = "select * from $tblname";
foreach( $pdo->query($sql) as $row ) {
$output .= "<tr><td>";
# $output .= "<a href=$php_self?q=ptviewer/pano_templet.gif/600/300 target=_blank>pano_templet</a><br>\n";
$output .= "<a href=$php_self?q=ptviewer/".$row['filename'];
$output .= "/".$row['width']."/".$row['height']." target=_blank>";
$output .= $row['filename']."</a></td><td>".$row['title']."</td></tr>\n";
}
$output .= "</table>\n";
$output .= "<hr>\n";
$output .= "</div>\n";
$output .= "</body></html>\n";
print( "$output" );
return;
# return( $output );
}
$panofile=$options[1];
$width=$options[2];
$height=$options[3];
$nhor=$options[4];
$nver=$options[5];
if( $nver == "" ) { $nver="1"; }
$panopathfile = "$panopath/$panofile";
$output .= "<html><head><title>fp ptviewer detail $panofile $width $height</title></head>\n";
# $output .= "<body bgcolor=lightblue>\n";
$output .= "<body bgcolor=linen>\n";
$output .= "<hr>fp ptviewer detail $panofile $width $height<hr>\n";
$output .= "<div id=\"ptviewer\">\n";
$output .= "<hr>\n";
$output .= "<applet code=\"ptviewer.class\" archive=\"$ptpath/ptviewer.jar\" ";
$output .= "width=$width height=$height>\n";
$output .= "<param name=file value=\"$panopathfile\">\n";
# $output .= "<param name=cursor value=\"CROSSHAIR\">\n";
$output .= "<param name=cursor value=\"MOVE\">\n";
$output .= "<param name=FOV value=\"-105\">\n";
$output .= "<param name=pan value=\"360\">\n";
# $output .= "<param name=imgLoadFeedback value=\"true\">\n";
# $output .= "<param name=showToolbar value=\"true\">\n";
# $output .= "<param name=inits value=\"ptviewer:startApplet(0)\">\n";
$output .= "</applet>\n";
$output .= "</div>\n";
$output .= "</body></html>\n";
return( $output );
}
function leds_zoom( $options ) {
$php_self=$_SERVER['PHP_SELF'];
$zoompath="./media/zoom/";
$output = "";
$url_zmcode=$options[1];
$url_zmtype=$options[2];
$url_zmrowid=$options[3];
# print( "leds_zoom MSG_4236: url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype] url_rowid=[$url_rowid]<br>\n" );
# print( "leds_zoom MSG_4237: _SESSION[hs_type]=[".$_SESSION['hs_type']."] url_zmtype=[$url_zmtype]<br>\n" );
# print( "leds_zoom MSG_4238: o0=[$options[0]] o1=[$options[1]] o2=[$options[2]] o3=[$options[3]]<br>\n" );
if( $url_zmtype != "" ) { $_SESSION['hs_type'] = $url_zmtype; }
# print( "leds_zoom MSG_4242: _SESSION[hs_type]=[".$_SESSION['hs_type']."] url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype]<br>\n" );
$html_links = html_links($options);
$html_btn_squares = html_btn_squares($options);
# $callback="$php_self?q=zoom/$url_zmcode/$url_zmtype/$url_zmrowid";
$callback="$php_self?q=zoom/$url_zmcode/\$hs/$url_zmrowid";
# print( "leds_zoom MSG_2660: url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype] url_rowid=[$url_rowid]<br>$callback\n" );
# print( "leds_zoom MSG_4252: callback=[$callback]<br>\n" );
$html_btn_hotspots = html_btn_hotspots($options, $callback);
$path_btn="./imgs/btn";
$query_string=$_SERVER['QUERY_STRING'];
$html_grid .= "<br>\n";
if(( ! isset( $_SESSION['grid_zoom'] )) || ( $_SESSION['grid_zoom'] == "" )) {
$zoom_options = array( "db", "grid", "fp", "zoom", "" );
$html_grid .= "<hr>\n";
$html_grid .= pdo_grid( $zoom_options );
$html_grid .= "<hr>\n";
$html_foot = html_footer($options);
}
if( $url_zmcode == "" ) {
# print( "BUGS_3938 zmcode=[$zmcode] zmtype=[$zmtype] o1=[$options[1]] o2=[$options[2]]<br>\n" );
if( $_SESSION['hs_type'] ) { $zmtype=$_SESSION['hs_type']; } else { $zmtype="none"; $_SESSION['hs_type'] = "none"; }
$zoomxml_options = array( "db", "grid", "fp", "zoomxml", "$url_zmcode", "$url_zmtype" );
switch( true ) {
case( $url_zmtype == "all" ):
$zoomxml_options = array( "db", "grid", "fp", "zoomxml", "all", "$url_zmtype" );
# $html_grid2 .= "BUGS_4270 leds_zoom ALL: url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype]<br>\n";
$html_grid2 .= pdo_grid( $zoomxml_options );
$html_grid2 .= "\n";
break;
case( $url_zmtype == "grid" ):
# $html_grid2 .= "BUGS_4275 leds_zoom GRID: url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype]<br>\n";
$html_grid2 .= pdo_grid( $zoomxml_options );
break;
case( $url_zmtype == "us" ):
# $html_grid2 .= "BUGS_4280 leds_zoom US: url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype]<br>\n";
$html_grid2 .= pdo_grid( $zoomxml_options );
break;
case( $url_zmtype == "hw" ):
# $html_grid2 .= "BUGS_4285 leds_zoom HW: url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype]<br>\n";
$html_grid2 .= pdo_grid( $zoomxml_options );
break;
case( $url_zmtype == "n11" ):
# $html_grid2 .= "BUGS_4290 leds_zoom 911: url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype]<br>\n";
$html_grid2 .= pdo_grid( $zoomxml_options );
break;
default:
# $html_grid2 .= "BUGS_4295 leds_zoom NONE: url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype]<br>\n";
}
$html_head = html_header($options);
$html = $html_head . $html_btn_squares . $html_btn_hotspots . $html_grid . $html_grid2 . $html_foot;
print( $html );
return;
}
$zoomxml_options = array( "db", "grid", "fp", "zoomxml", "$url_zmcode", "$url_zmtype", "$url_zmrowid" );
# $html_grid2 .= "BUGS_4307 leds_zoom ALL: url_zmcode=[$url_zmcode] url_zmtype=[$url_zmtype]<br>\n";
$html_grid2 .= pdo_grid( $zoomxml_options );
$html_grid2 .= "\n";
# screenshot rollover
# $path_imgs = "./imgs/fpb";
$rollover_nam = $row['led_name'];
$rollover_name = str_replace( "fp", "fpb", $rollover_nam );
$rollover_img = "$path_imgs/" . $rollover_name . ".png";
$rollover_title = $row['led_name'] . "(";
$rollover_title .= $row['led_title'] .") bldg(";
$rollover_title .= $row['led_bldg'] .") floor(";
$rollover_title .= $row['led_floor'].")";
$zoom_file = "$url_zmcode";
$zoom_path = $zoompath;
# $zoom_xml = sprintf( "%s_%s_%s_hotspots.xml", $url_zmcode, $url_zmtype, $url_zmrowid );
$zoom_xml = sprintf( "$php_self?q=zoomxml/%s/%s/%s", $url_zmcode, $url_zmtype, $url_zmrowid );
#/ $zoom_xml = sprintf( "$php_self?q=zoomxml/%s/%s/%s class=\"screenshot\" rel=\"%s\" title=\"%s\"",
#/ $url_zmcode, $url_zmtype, $url_zmrowid, $rollover_img, $rollover_title );
$html_zviewer = html_zviewer( $zoom_file, $zoom_path, $zoom_xml );
$html_zoom_detail = html_zoom_detail($options);
$html_head = html_header($options);
$html_links = html_links($options);
$html_foot = html_footer($options);
# $html = $html_head . $html_links . $html_grid . $html_grids . $html_foot;
$html_head = html_header($options);
$html = $html_head . $html_btn_squares . $html_btn_hotspots;
$html .= $html_zoom_detail;
$html .= $html_grid . $html_grid2;
$html .= $html_footer;
print( $html );
return;
}
function leds_ptobject( $options ) {
$php_self=$_SERVER['PHP_SELF'];
$output = "";
$ptpath="./java/ptviewer";
$objpath="./media/obj";
# $panofile="obj.jpg"; $width="640"; $height="480"; $nhor="25"; $nver="1";
$output = "";
if( $options[2] == "" ) {
$pdo = newpdo($GLOBALS['dbfile']);
$tblname="obj";
$output = "";
$output .= "<html><head><title>fp ptobject index</title></head>\n";
# $output .= "<body bgcolor=lightblue>\n";
$output .= "<body bgcolor=linen>\n";
$output .= "<hr>fp ptviewer index<hr>\n";
$output .= "<hr>\n";
$output .= "<div class=pano>\n";
$output .= "<table>\n";
$sql = "select * from $tblname";
foreach( $pdo->query($sql) as $row ) {
# $output .= "<a href=$php_self?q=ptobject/usm_855_100_8_1.jpg/855/100/8/1 target=_blank>usm_100</a><br>\n";
$output .= "<tr><td>";
# $output .= "<a href=$php_self?q=ptobject/obj_templet.gif/600/300/nhor/nver target=_blank>pano_templet</a><br>\n";
$output .= "<a href=$php_self?q=ptobject/".$row['filename'];
$output .= "/".$row['width']."/".$row['height'];
$output .= "/".$row['nhor']."/".$row['nvert']." target=_blank>";
$output .= $row['filename']."</a></td><td>".$row['title']."</td></tr>\n";
}
$output .= "</table>\n";
$output .= "</div>\n";
$output .= "<hr>\n";
# $output .= "</body></html>\n";
# print( "$output" );
# return;
return( $output );
}
$ptpath="./java/ptviewer";
$objectpath="./media/obj";
$objectfile="obj.jpg"; $width="640"; $height="480"; $nhor="25"; $nver="1";
$objectfile=$options[1];
$full_width=$options[2];
$full_height=$options[3];
$nhor=$options[4];
$nver=$options[5];
if( $nver == "" ) { $nver="1"; }
$width = round($full_width / $nhor);
$height = round($full_height / $nver);
$objectpathfile = "$objectpath/$objectfile";
#/ $output .= "<html><head><title>fp ptobject detail $objectfile $width $height $nhor $nver</title></head>\n";
#/ $output .= "<body bgcolor=lightblue>\n";
$output .= "<hr>fp ptobject detail $objectfile $width $height $nhor $nver<hr>\n";
$output .= "<div id=\"ptobject\">\n";
$output .= "<applet archive=$ptpath/ptviewer.jar \n";
$output .= "code=ptviewer.class width=$width height=$height name=ptviewer>\n";
$output .= "<param name=applet0 value=\"{code=ptobject.class} {file=$objectpathfile} {nhor=$nhor} {nver=$nver}\">\n";
$output .= "<param name=inits value=\"ptviewer:startApplet(0)\">\n";
$output .= "</applet>\n";
$output .= "</div>\n";
#. $output .= "<hr>\n";
# $output .= "</body></html>\n";
return( $output );
}
function leds_zview_xml( $options ) {
$php_self=$_SERVER['PHP_SELF'];
$http_host=$_SERVER['HTTP_HOST'];
$document_root=$_SERVER['DOCUMENT_ROOT'];
$xmlfile=$options[1];
$xmlfile_args=explode( "_", $xmlfile );
$fp = $xmlfile_args[0];
$fp_hs = $xmlfile_args[0];
$output = "";
# print_r( $options );
$xmlpathfile="$document_root/$options[1]";
if( file_exists( $xmlfile )) {
# $xmldata=array();
# $xmldata = file_get_contents( $xmlfile );
# $xmldata = file( $xmlfile, FILE_BINARY );
$xmldata = file( $xmlfile, FILE_TEXT );
foreach( $xmldata as $xmlline ) {
$output .= "$xmlline\n";
# print( "$xmlline\n" );
}
# print_r( $xmldata );
# print( "xmldata=[<hr>$xmldata<hr>]\n" );
return( $output );
}
else {
# $xmldata = leds_zview_xmltext();
$xmldata = leds_zview_xmlnew( $options );
$output .= $xmldata;
return( $output );
#/ print( $xmldata );
}
}
function leds_zview_details( $options ) {
$fp=$options[1];
$fp_hs=$options[2];
leds_show($options );
$output = "<hr>zview_details $options[1] $option[2]<hr>\n";
print( $output );
print_r($options);
return;
}
function leds_zview_xmltext() {
$document_root = $_SERVER['DOCUMENT_ROOT'];
$http_host = $_SERVER['HTTP_HOST'];
$php_self = $_SERVER['PHP_SELF'];
$xml = "<DATA>\n";
$xml .= " <HOTSPOTSETUP\n";
$xml .= " AUTOLOOP=\"0\"\n";
$xml .= " CHOICELIST=\"2\"\n";
$xml .= " LISTSOURCE=\"caption\"\n";
$xml .= " INITIALVISIBILITY=\"1\"\n";
$xml .= " MINSCALE=\"0.15\"\n";
$xml .= " MAXSCALE=\"2\"\n";
$xml .= " />\n";
$id=1;
$x="7000";
$y="6500";
$zoom="0";
$caption="$id. caption text";
$mediatype="url";
$media="./hrcstl_050.png";
$url = "http:#$php_self?q=zlink";
$url = "http:#google.com";
$urltarget="_blank";
$interval="2000";
$duration="500";
$transition="ZoomToView";
$xml .= " <HOTSPOT\n";
$xml .= " ID=\"$id\"\n";
$xml .= " X=\"$x\"\n";
$xml .= " Y=\"$y\"\n";
$xml .= " ZOOM=\"$zoom\"\n";
$xml .= " CAPTION=\"$caption\"\n";
$xml .= " MEDIATYPE=\"$mediatype\"\n";
$xml .= " MEDIA=\"$media\"\n";
$xml .= " URL=\"$url\"\n";
$xml .= " URLTARGET=\"$urltarget\"\n";
$xml .= " INTERVAL=\"$interval\"\n";
$xml .= " TRANSITION=\"$transition\"\n";
$xml .= " DURATION=\"$duration\">\n";
$xml .= " </HOTSPOT>\n";
$xml .= "</DATA>\n";
return( $xml );
}
function leds_zview_xmlnew( $options ) {
$http_host=$_SERVER['HTTP_HOST'];
$php_self=$_SERVER['PHP_SELF'];
$document_root=$_SERVER['DOCUMENT_ROOT'];
$dttm=date("Ymd_His");
$xmlfile=$options[1];
$xmlfile_args=explode( "_", $xmlfile );
$fp = $xmlfile_args[0];
$fp_hs = $xmlfile_args[0];
$fp_xmlfile=$options[1];
$fp_xmlfile_args=explode( "_", $fp_xmlfile );
$fp=$fp_xmlfile_args[0];
$fp_hs=$fp_xmlfile_args[1];
$path_btn="./imgs/btn";
if( $fp_hs != "" ) {
$path_btn_hs="$path_btn/btn_".$fp_hs.".gif";
}
else {
$path_btn_hs="$path_btn/btn_hrcstl.png";
}
$xml = leds_zoomxml( $options );
print( $xml );
return;
$xml = "<DATA>\n";
$xml .= " <HOTSPOTSETUP\n";
$xml .= " AUTOLOOP=\"0\"\n";
$xml .= " CHOICELIST=\"2\"\n";
$xml .= " LISTSOURCE=\"CAPTION\"\n";
$xml .= " INITIALVISIBILITY=\"1\"\n";
$xml .= " MINSCALE=\"0.15\"\n";
$xml .= " MAXSCALE=\"2\"\n";
$xml .= " />\n";
$xml .= " <HOTSPOT\n";
$xml .= " ID=\"1\"\n";
$xml .= " MEDIATYPE=\"url\"\n";
$xml .= " MEDIA=\"$path_btn/btn_hrcstl.png\"\n";
# $xml .= " URL=\"http:#google.com\"\n";
$xml .= " URL=\"$php_self?q=zview_details/$fp/$fp_hs/1\"\n";
$xml .= " URLTARGET=\"_blank\"\n";
$xml .= " X=\"1000\"\n";
$xml .= " Y=\"1000\"\n";
$xml .= " ZOOM=\"0\"\n";
$xml .= " CAPTION=\"1: ".$fp."_hotspots.xml - overview $fp_hs (10,10) $dttm\"\n";
$xml .= " INTERVAL=\"2000\"\n";
$xml .= " TRANSITION=\"ZoomToView\" \n";
$xml .= " DURATION=\"500\" >\n";
$xml .= " </HOTSPOT>\n";
$xml .= " <HOTSPOT \n";
$xml .= " ID=\"2\"\n";
$xml .= " MEDIATYPE=\"url\"\n";
$xml .= " MEDIA=\"$path_btn_hs\"\n";
# $xml .= " URL=\"http:#google.com\"\n";
$xml .= " URL=\"$php_self?q=zview_details/$fp/$fp_hs/2\"\n";
$xml .= " URLTARGET=\"_blank\"\n";
$xml .= " X=\"4660\"\n";
$xml .= " Y=\"3700\"\n";
$xml .= " ZOOM=\"55\" \n";
$xml .= " CAPTION=\"2: $fp"."_hotspots.xml - center $fp_hs (47,37) $dttm\"\n";
$xml .= " INTERVAL=\"2000\"\n";
$xml .= " TRANSITION=\"ZoomToView\" \n";
$xml .= " DURATION=\"500\" >\n";
$xml .= " </HOTSPOT>\n";
$xml .= "\n";
$xml .= " <HOTSPOT \n";
$xml .= " ID=\"3\"\n";
$xml .= " MEDIATYPE=\"url\"\n";
$xml .= " MEDIA=\"$path_btn_hs\"\n";
# $xml .= " URL=\"http:#google.com\"\n";
$xml .= " URL=\"$php_self?q=zview_details/$fp/$fp_hs/3\"\n";
$xml .= " URLTARGET=\"_blank\"\n";
$xml .= " X=\"1600\"\n";
$xml .= " Y=\"3800\"\n";
$xml .= " ZOOM=\"55\" \n";
$xml .= " CAPTION=\"3: ".$fp."_hotspots.xml - center left $fp_hs (10,38) $dttm\"\n";
$xml .= " INTERVAL=\"2000\"\n";
$xml .= " TRANSITION=\"ZoomToView\" \n";
$xml .= " DURATION=\"500\" >\n";
$xml .= " </HOTSPOT>\n";
$xml .= "\n";
$xml .= "</DATA>\n";
return( $xml );
}
function leds_zoomxml( $options ) {
$http_host=$_SERVER['HTTP_HOST'];
$php_self=$_SERVER['PHP_SELF'];
$document_root=$_SERVER['DOCUMENT_ROOT'];
$dttm=date("Ymd_His");
$zoom_code=$options[1];
$zoomxml_code=$options[2];
$xmlfile="./$zoom_code"."_".$zoomxml_code."_hotspots.xml";
$output = "";
# use existing xml file
if( file_exists( $xmlfile )) {
# $xmldata=array();
# $xmldata = file_get_contents( $xmlfile );
# $xmldata = file( $xmlfile, FILE_BINARY );
$xmldata = file( $xmlfile, FILE_TEXT );
foreach( $xmldata as $xmlline ) {
$output .= "$xmlline";
# print( "$xmlline\n" );
}
# print_r( $xmldata );
# print( "xmldata=[<hr>$xmldata<hr>]\n" );
# return;
return( $output );
}
$path_btn="./imgs/btn";
if( $fp_hs != "" ) {
$path_btn_hs="$path_btn/btn_".$zoomxml_code.".gif";
}
else {
$path_btn_hs="$path_btn/btn_hrcstl.png";
}
$xml = "<DATA>\n";
$xml .= " <HOTSPOTSETUP\n";
$xml .= " AUTOLOOP=\"0\"\n";
$xml .= " CHOICELIST=\"2\"\n";
$xml .= " LISTSOURCE=\"CAPTION\"\n";
$xml .= " INITIALVISIBILITY=\"1\"\n";
$xml .= " MINSCALE=\"0.15\"\n";
$xml .= " MAXSCALE=\"2\"\n";
$xml .= " />\n";
$output = "";
$output .= "<!-- leds_zoomxml: BUGS3100 o1=$options[1] o2=$options[2]<br> -->\n";
$output .= "<!-- leds_zoomxml: BUGS3101 zoom_code=$zoom_code zoomxml_code=$zoomxml_code zmlfile=$xmlfile<br> -->\n";
if( ! file_exists( $GLOBALS['dbfile'] )) {
$output .= "<hr>$php_self $dttm ERR: UNAVAILABLE dbfile=[".$GLOBALS['dbfile']."]<hr>\n";
return( $output );
}
# use xmlfile if it exits
if( file_exists( $xmlfile )) {
return( $output );
}
$pdo = newpdo($GLOBALS['dbfile']);
$tblname="zoomxml";
if( $zoomxml_code != "" ) {
if( is_numeric($zoomxml_code)) {
$sql = "select * from $tblname where code == '$zoom_code' and rowid == '$zoomxml_code'";
}
else {
$sql = "select * from $tblname where code == '$zoom_code' and type == '$zoomxml_code'";
}
}
else {
$sql = "select * from $tblname where code == '$zoom_code'";
}
$output .= "<!-- <hr>zoomxml MSG_3129: sql=[$sql]<hr> -->\n";
$id=100;
foreach( $pdo->query($sql) as $row ) {
$code=$row['code'];
$x=$row['x'];
$y=$row['y'];
$mediatype=$row['mediatype'];
$media=$row['media'];
$url=$row['url'];
$urltarget=$row['urltarget'];
$zoom=$row['zoom'];
$zoom="40";
$caption=$row['caption'];
$interval=$row['interval'];
$transition=$row['transition'];
$duration=$row['duration'];
$comment=$row['comment'];
# print( "zoomxml MSG_2985: x=$x y=$y comment=$comment<br>\n" );
$xml .= " <HOTSPOT \n";
$xml .= " ID=\"$id\"\n";
$xml .= " MEDIATYPE=\"$mediatype\"\n";
$xml .= " MEDIA=\"$media\"\n";
$xml .= " URL=\"$url\"\n";
# $xml .= " URL=\"$php_self?q=zview_details/$fp/$fp_hs/5\"\n";
$xml .= " URLTARGET=\"$urltarget\"\n";
$xml .= " X=\"$x\"\n";
$xml .= " Y=\"$y\"\n";
$xml .= " ZOOM=\"$zoom\"\n";
# $xml .= " CAPTION=\"3: ".$fp."_".$fp_hs."_hotspots.xml - $comment - $dttm\"\n";
$xml .= " CAPTION=\"$caption\"\n";
$xml .= " INTERVAL=\"$interval\"\n";
$xml .= " TRANSITION=\"$transition\" \n";
$xml .= " DURATION=\"$duration\" >\n";
$xml .= " </HOTSPOT>\n";
$id++;
}
$pdo=null;
$xml .= "</DATA>\n";
$xmltext=str_replace( "<", "(", $xml );
$xmltext=str_replace( ">", ")<br>", $xmltext );
print( "$xml\n" );
# print( "$xmltext\n" );
# return( $xml );
}
function js_scripts() {
$http_host=$_SERVER['HTTP_HOST'];
$php_self=$_SERVER['PHP_SELF'];
# expand collapse toggle
$output_css = "<style type=\"text/css\">\n";
# $output_css .= ".layer1 {margin: 0; padding: 0; width: 600px; }\n";
$output_css .= ".layer1 {margin: 0; padding: 0; }\n";
$output_css .= ".heading { \n";
$output_css .= " margin: 1px; color: white; padding: 3px 10px; cursor: pointer;\n";
$output_css .= " position: relative; background-color:grey;\n";
$output_css .= " }\n";
# $output_css .= ".content {padding: 5px 10px; background-color:#fafafa;}\n";
$output_css .= ".content {padding: 5px 10px; background-color:white;}\n";
$output_css .= "p { padding: 5px 0; }\n";
$output_css .= "</style>\n";
$output_css .= "\n";
$output_css .= "\n";
# $output_css .= head_jqui_css($options);
$output_css_jqui_dragdrop = "";
$output_css_jqui_dragdrop .= "<style type=\"text/css\"><!--\n";
$output_css_jqui_dragdrop .= "#drop { width:200px; height:150px; margin:3px auto; background:#eddaa8; font-size:16px;}\n";
$output_css_jqui_dragdrop .= "#drop #sw { text-decoration:underline; cursor:pointer; }\n";
$output_css_jqui_dragdrop .= "#drag { width:50px; height:40px; margin:2px auto; border:1px solid silver; font-size:16px;}\n";
$output_css_jqui_dragdrop .= "#drag .drg { margin:10px 12px; }\n";
$output_css_jqui_dragdrop .= "#drag div.drg { width:150px; height:50px; background:#07da08; border:2px solid blue;}\n";
$output_css_jqui_dragdrop .= "--></style>\n";
$output_css_jqui_resizable = "";
$output_css_jqui_resizable .= " <style>\n";
$output_css_jqui_resizable .= " #resizable { width: 150px; height: 150px; padding: 0.5em; }\n";
$output_css_jqui_resizable .= " #resizable h3 { text-align: center; margin: 0; }\n";
$output_css_jqui_resizable .= " </style>\n";
$output_css_jqui_resizable .= " <script>\n";
$output_css_jqui_resizable .= " $(function() {\n";
$output_css_jqui_resizable .= " $( \"#resizable\" ).resizable();\n";
$output_css_jqui_resizable .= " });\n";
$output_css_jqui_resizable .= " </script>\n";
# $js_output = "";
# if( $GLOBALS['js_output'] ) { $js_output = $GLOBALS['js_output']; }
$gridimgpaths['redmond1']="js/themes/redmond_save/imgs";
$gridimgpaths['redmond']="js/themes/redmond/imgs";
$gridimgpaths['humanity']="js/themes/humanity/imgs";
$gridimgpaths['frog']="js/themes/le-frog/imgs";
$gridimgpaths['swanky']="js/themes/swanky-purse/imgs";
$gridimgpaths['darkness']="js/themes/ui-darkness/imgs";
$gridimgpaths['lightness']="js/themes/ui-lightness/imgs";
$gridimgpaths['sunny']="js/themes/sunny/imgs";
$gridimgpaths['mint']="js/themes/mint-choc/imgs";
$themepaths['redmond1']="js/themes/redmond_save/jquery-ui-1.7.1.custom.css";
$themepaths['redmond']="js/themes/redmond/jquery-ui-1.7.2.custom.css";
$themepaths['humanity']="js/themes/humanity/jquery-ui-1.7.2.custom.css";
$themepaths['frog']="js/themes/le-frog/jquery-ui-1.7.2.custom.css";
$themepaths['swanky']="js/themes/swanky-purse/jquery-ui-1.7.2.custom.css";
$themepaths['darkness']="js/themes/ui-darkness/jquery-ui-1.7.2.custom.css";
$themepaths['lightness']="js/themes/ui-lightness/jquery-ui-1.7.2.custom.css";
$themepaths['sunny']="js/themes/sunny/jquery-ui-1.7.2.custom.css";
$themepaths['mint']="js/themes/mint-choc/jquery-ui-1.7.2.custom.css";
## $themepath=$themepaths[$theme];
## $gridimgpath=$gridimgpaths[$theme];
## $_SESSION['gridimgpath']=$gridimgpath;
# "js/jqgrid.3.5.3/themes/ui.jqgrid.css"
## $jq_css_includes_list = array(
## "js/fg-menu/fg.menu.css",
## "js/fg-menu/theme/ui.all.css",
## "$themepath",
## "js/jqgrid-4.4.0/themes/ui.jqgrid.css"
## );
## foreach( $jq_css_includes_list as $jq_css_include ) {
## if(! file_exists( $jq_css_include )) {
## $html_theme_links = "<!-- pdo_grid ERR_2435: NOTFOUND jq_css_include=[$jq_css_include]<br>-->\n";
## }
## else {
## $output .= "<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"$jq_css_include\" />\n";
## }
## }
$jq_includes_list = array(
# "js/jquery-1.3.2.js",
# "js/jqgrid.3.5.3/js/jquery-1.3.2.min.js",
# "js/jqgrid-4.4.0/js/jquery-1.7.2.min.js",
# "js/jqgrid-4.4.0/js/jquery-1.7.2.min.js",
# "js/jquery-ui-1.7.2/js/jquery-ui-1.7.2.custom.min.js",
"js/jquery-1.8.3.js",
"js/jquery-ui-1.9.2.custom.js",
# "js/jquery.ui.touch-punch.js",
"js/jqgrid-4.4.0/js/i18n/grid.locale-en.js",
"js/jqgrid-4.4.0/js/jquery.jqGrid.min.js",
# "js/jqgrid.3.5.3/js/i18n/grid.locale-en.js",
# "js/jqgrid.3.5.3/js/jquery.jqGrid.min.js",
"js/tooltip/tooltip_main_screenshot.js",
# "js/tooltip/tooltip_main_tooltip.js",
# "js/tooltip/tooltip_main_preview.js",
);
$output = "";
foreach( $jq_includes_list as $jq_include ) {
if(! file_exists( $jq_include )) {
$output .= "<!-- pdo_grid ERR_2455: NOTFOUND jq_include=[$jq_include]<br> -->\n";
}
else {
$output .= "<script src=\"$jq_include\" type=\"text/javascript\"></script>\n";
}
}
$output .= "\n";
$output .= $output_css;
# $output .= $output_css_jqui_dragdrop;
# $output .= $output_css_jqui_resizable;
$output .= "\n";
$output .= "\n";
$output .= "<script type=\"text/javascript\"><!--\n";
## $output .= "var gridimgpath = '$gridimgpath';\n";
## $output .= "$(document).ready(function(){\n";
## $output .= $js_output;
## $output .= jqui_script($options);
$output .= "--></script>\n";
$output .= "</script>\n";
return( $output );
}
function head_jqui_css($options) {
$output = "";
$output .= "<style>\n";
$output .= "#ko { \n";
# $output .= " background-image: url(imgs/ko/ko_100.png); \n";
$output .= " width: 90px; \n";
$output .= " height: 25px; \n";
$output .= " padding: 0.5em; \n";
$output .= " float: left; \n";
$output .= " margin: 10px 10px 10px 0; \n";
$output .= " }\n";
$output .= "#ko_drag { \n";
$output .= " background-color:white; \n";
# $output .= " background-image: url(imgs/ko/kob.png); \n";
$output .= " width: 90px; \n";
$output .= " height: 25px; \n";
$output .= " float: left; \n";
$output .= " padding: 0.5em; \n";
$output .= " margin: 10px 10px 10px 0; \n";
$output .= " }\n";
$output .= "#ko_drop { \n";
$output .= " background-color:white; \n";
# $output .= " background-image: url(imgs/ko/kiw.png); \n";
$output .= " width: 90px; \n";
$output .= " height: 20px; \n";
$output .= " padding: 0.5em; \n";
$output .= " float: left; \n";
$output .= " margin: 10px 10px 10px 0; \n";
$output .= " }\n";
$output .= "#ko_dragdrop { \n";
# $output .= " background-color:black; \n";
# $output .= " background-image: url(imgs/ko/kib.png); \n";
$output .= " width: 90; \n";
$output .= " height: 25; \n";
$output .= " padding: 0.5em; \n";
$output .= " float: left; \n";
$output .= " margin: 10px 10px 10px 0; \n";
$output .= " }\n";
$output .= "#ko_dropdrag { \n";
$output .= " background-color:white; \n";
# $output .= " background-image: url(imgs/ko/kiw.png); \n";
$output .= " width: 90; \n";
$output .= " height: 25; \n";
$output .= " padding: 0.5em; \n";
$output .= " float: left; \n";
$output .= " margin: 10px 10px 10px 0; \n";
$output .= " }\n";
$output .= "</style>\n";
$output .= html_style_leds_context();
return($output);
}
function jqui_script($options) {
$output = "";
$output .= " $(\"#ko\").draggable().droppable().resizable();\n";
$output .= " $(\"#ko_drag\").draggable();\n";
$output .= " $(\"#ko_drop\").droppable();\n";
$output .= " $(\"#ko_dragdrop\").draggable().droppable();\n";
$output .= " $(\"#ko_dropdrag\").droppable().draggable();\n";
$output .= " $( \"#ko\" ).droppable({\n";
$output .= " drop: function( event, ui ) {\n";
$output .= " var draggable_id = $(ui.draggable).attr('id');\n";
$output .= " var droppable_id = $(this).attr('id');\n";
$output .= " var url= \"https:#ka6/ko1/ko_center.php?q=jqui/ko/\"+ droppable_id + \"/\"+ draggable_id;\n";
$output .= "# alert( \"droppaable: \" + draggable_id + \" drop=\" + droppable_id );\n";
$output .= " alert( \"ko: \" + url );\n";
$output .= "# window.location = \"url\";\n";
$output .= " }\n";
$output .= " });\n";
$output .= " $( \"#ko_drag\" ).droppable({\n";
$output .= " drop: function( event, ui ) {\n";
$output .= " var draggable_id = $(ui.draggable).attr('id');\n";
$output .= " var droppable_id = $(this).attr('id');\n";
$output .= " var url= \"https:#ka6/ko1/ko_center.php?q=jqui/ko_drag/\"+ droppable_id + \"/\"+ draggable_id;\n";
$output .= "# alert( \"droppaable: \" + draggable_id + \" drop=\" + droppable_id );\n";
$output .= " alert( \"ko_drag: \" + url );\n";
$output .= "# window.location = \"url\";\n";
$output .= " }\n";
$output .= " });\n";
$output .= " $( \"#ko_drop\" ).droppable({\n";
$output .= " drop: function( event, ui ) {\n";
$output .= " var draggable_id = $(ui.draggable).attr('id');\n";
$output .= " var droppable_id = $(this).attr('id');\n";
$output .= " var url= \"https:#ka6/ko1/ko_center.php?q=jqui/ko_drop/\"+ droppable_id + \"/\"+ draggable_id;\n";
$output .= "# alert( \"droppaable: \" + draggable_id + \" drop=\" + droppable_id );\n";
$output .= " alert( \"ko_drop: \" + url );\n";
$output .= "# window.location = \"url\";\n";
$output .= " }\n";
$output .= " });\n";
$output .= " $( \"#ko_dragdrop\" ).droppable({\n";
$output .= " drop: function( event, ui ) {\n";
$output .= " var draggable_id = $(ui.draggable).attr('id');\n";
$output .= " var droppable_id = $(this).attr('id');\n";
$output .= " var url= \"https:#ka6/ko1/ko_center.php?q=jqui/ko_drop/\"+ droppable_id + \"/\"+ draggable_id;\n";
$output .= "# alert( \"droppaable: \" + draggable_id + \" drop=\" + droppable_id );\n";
$output .= " alert( \"ko_dragdrop: \" + url );\n";
$output .= "# window.location = \"url\";\n";
$output .= " }\n";
$output .= " });\n";
$output .= " $( \"#ko_dropdrag\" ).droppable({\n";
$output .= " drop: function( event, ui ) {\n";
$output .= " var draggable_id = $(ui.draggable).attr('id');\n";
$output .= " var droppable_id = $(this).attr('id');\n";
$output .= " var url= \"https:#ka6/ko1/ko_center.php?q=jqui/ko_drop/\"+ droppable_id + \"/\"+ draggable_id;\n";
$output .= "# alert( \"droppaable: \" + draggable_id + \" drop=\" + droppable_id );\n";
$output .= " alert( \"drop: \" + url );\n";
$output .= "# window.location = \"url\";\n";
$output .= " }\n";
$output .= " });\n";
$output .= " });\n";
# $output .= "</script>\n";
$output .= "\n";
return( $output );
}
function js_rollover( $options ) {
$output .= "<p><ul id=\"navigation\">\n";
$output .= " <li><a href=\"#1\"><img src=\"./imgs/btn/btn_black.gif\" border=\"0\"/></a></li>\n";
$output .= " <li><a href=\"#2\"><img src=\"./imgs/btn/btn_black.gif\" border=\"0\"/></a></li>\n";
$output .= " <li><a href=\"#3\"><img src=\"./imgs/btn/btn_black.gif\" border=\"0\"/></a></li>\n";
$output .= " <li><a href=\"#4\"><img src=\"./imgs/btn/btn_black.gif\" border=\"0\"/></a></li>\n";
$output .= " <li><a href=\"#5\"><img src=\"./imgs/btn/btn_black.gif\" border=\"0\"/></a></li>\n";
$output .= " </ul></p>\n";
$output .= "\n";
print( "$output" );
}
function css_rollovers_head( $options ) {
$output = "<style media=\"screen_blobs\">\n";
$output .= "\n";
$output .= "#blobs {\n";
$output .= " width: 300px;\n";
$output .= " height: 150px;\n";
$output .= " background: url(./imgs/icons/blobs.gif);\n";
$output .= " margin: 10px auto; padding: 0;\n";
$output .= " position: relative;\n";
$output .= "}\n";
$output .= "#blobs li {margin: 0; padding: 0; list-style: none; display: block; position: absolute;}\n";
$output .= "\n";
$output .= "#blobs a {display: block;}\n";
$output .= "\n";
$output .= "#blob1 {left: 9px; top: 7px; width: 86px; height: 130px;}\n";
$output .= "#blob2 {left: 77px; top: 16px; width: 79px; height: 86px;}\n";
$output .= "#blob3 {left: 160px; top: 0px; width: 112px; height: 77px;}\n";
$output .= "#blob4 {left: 173px; top: 57px; width: 120px; height: 80px;}\n";
$output .= "#blob5 {left: 110px; top: 102px; width: 98px; height: 45px;}\n";
$output .= "#blob1 a {height: 130px;}\n";
$output .= "#blob2 a {height: 86px;}\n";
$output .= "#blob3 a {height: 77px;}\n";
$output .= "#blob4 a {height: 80px;}\n";
$output .= "#blob5 a {height: 45px;}\n";
$output .= "\n";
$output .= "#blob1 a:hover {background: url(./imgs/icons/blobs.gif) -10px -307px no-repeat;}\n";
$output .= "#blob2 a:hover {background: url(./imgs/icons/blobs.gif) -77px -166px no-repeat;}\n";
$output .= "#blob3 a:hover {background: url(./imgs/icons/blobs.gif) -160px -300px no-repeat;}\n";
$output .= "#blob4 a:hover {background: url(./imgs/icons/blobs.gif) -173px -207px no-repeat;}\n";
$output .= "#blob5 a:hover {background: url(./imgs/icons/blobs.gif) -110px -402px no-repeat;}\n";
$output .= "\n";
$output .= " </style>\n";
$output .= "\n";
return( $output );
# print( "$output" );
}
function css_rollovers_href( $options ) {
$output .= "<div id=\"screen_blobs\">\n";
$output .= " <ul id=\"blobs\">\n";
$output .= " <li id=\"blob1\"><a href=\"#1\"></a></li>\n";
$output .= " <li id=\"blob2\"><a href=\"#2\"></a></li>\n";
$output .= " <li id=\"blob3\"><a href=\"#3\"></a></li>\n";
$output .= " <li id=\"blob4\"><a href=\"#4\"></a></li>\n";
$output .= " <li id=\"blob5\"><a href=\"#5\"></a></li>\n";
$output .= " </ul>\n";
$output .= " </div>\n";
$output .= "\n";
return( $output );
# print( "$output" );
}
function ko_imap($options) {
# php_self?q=mail
$host="localhost"; $user="user"; $pass="pass";
if( $options[1] != "" ) { $mode=$options[1]; }
if( $options[2] != "" ) { $host=$options[2]; }
if( $options[3] != "" ) { $user=$options[3]; }
if( $options[4] != "" ) { $pass=$options[4]; }
$message=1;
if( $_GET['message'] ) { $message=$_GET['message']; }
print( "<hr>ko_imap message=$message<br>\n" );
print_r($options);
$mailmodes = array( 'status', 'ping', 'info', 'listmailbox', 'attachments', 'struct', 'nummsg' );
if( $mode == "" ) {
$output = "";
foreach( $mailmodes as $mailmode ) {
$output .= "<a href=\"$php_self?q=mail/$mailmode\" target=_blank>$mailmode</a><br>\n";
}
print( $output );
return;
}
$imap = imap_open("{$host}INBOX","$user","$pass");
# $imap = imap_open("{$host:110/pop3}INBOX", $user, $pass);
# $imap = imap_open("{imap.mycompany.com:993/imap/ssl}INBOX", $user, $pass);
if (!$imap) { print_r(imap_errors());
return;
}
if( $mode == "ping" ) {
if (imap_ping($imap)) {
echo "ko_imap MSG: ping $host $user<br>";
}
else {
echo "ko_imap ERR: ping $host $user<br>";
}
}
if( $mode == "status" ) {
$status = imap_status($imap, "{localhost}INBOX", SA_ALL);
echo "Messages: ", $status->messages, "<BR>\n";
echo "Recent: ", $status->recent, "<BR>\n";
echo "Unseen: ", $status->unseen, "<BR>\n";
echo "UIDnext: ", $status->uidnext, "<BR>\n";
echo "UIDvalidity: ", $status->uidvalidity, "<BR>\n";
echo "Flags: ", $status->flags, "<BR>\n";
var_dump($status);
}
if( $mode == "info" ) {
$info = imap_mailboxmsginfo($imap);
echo "Date: " , $info->Date, "\n";
echo "Driver: ", $info->Driver, "\n";
echo "Mailbox: ", $info->Mailbox, "\n";
echo "Number of messages: ", $info->Nmsgs, "\n";
echo "Recent: ", $info->Recent, "\n";
echo "Unread; ", $info->Unread, "\n";
echo "Deleted: ", $info->Deleted, "\n";
echo "Size: ", $info->Size, "\n";
}
if( $mode == "nummsg" ) {
$number = imap_num_msg($imap);
echo "Number of messages: $number<BR>\n";
# display message subjects
for ($i=1; $i<=$number; $i++) {
$header = imap_header($imap, $i);
echo "Subject: ", $header->Subject, "<BR>\n";
}
}
if( $mode == "struct" ) {
# duimp out every property of the message
echo "<pre>\n\n";
print_r(imap_fetchstructure($imap, $message));
echo "\n\n</pre>";
}
# list mailboxes
if( $mode == "listmailbox" ) {
$boxes = imap_listmailbox($imap, "{localhost}", "*");
for ($i=0; $i<count($boxes); $i++) {
echo "Mailbox: $boxes[$i]<BR>\n";
}
}
if( $mode == "attachments" ) {
$info = imap_fetchstructure($imap, $message);
# find out how may parts the object has
$numparts = count($info->parts);
# find if if multipart message
if ($numparts > 1) {
echo "More then one part<BR>";
foreach ($info->parts as $part) {
if ($part->disposition == "INLINE") {
# inline message. Show number of lines
printf("Inline message has %s lines<BR>", $part->lines);
} elseif ($part->disposition == "ATTACHMENT") {
# an attachment
echo "Attachment found!";
# print out the file name
echo "Filename: ", $part->dparameters[0]->value;
}
}
}
else {
# only one part so get some useful info
echo "Only one part";
}
}
imap_close($imap);
}
function ko_sessions_start() {
session_start();
$_SESSION['user'] = $_POST['user'];
$_SESSION['data'] = $_POST['data'];
$_SESSION['hash'] = $_POST['hash'];
# $output = "<input type=\"hidden\" name=\"user\" value=\"" . htmlentities($_POST['user']) . "\">";
# $output .= "<input type=\"hidden\" name=\"data\" value=\"" . htmlentities($_POST['data']) . "\">";
# $output .= "<input type=\"hidden\" name=\"hash\" value=\"" . htmlentities($_POST['hash']) . "\">";
}
function ko_sessions() {
session_start();
$user=htmlentities($_SESSION['user']);
$data=htmlentities($_SESSION['data']);
$hash=htmlentities($_SESSION['hash']);
# if( isset($_SESSION['user'])) { ; }
# if( isset($_SESSION['role'])) { unset($_SESSION['role']); session_destroy(); }
}
function ko_validata() {
$secret = 'temp_secret_hash_code';
if (! $data = pc_decode($_POST['data'], $_POST['hash'])) {
print( "ko_validate ERR: crack attempt<br>\n" );
}
$data['user'] = $_POST['user'];
$data['stage']++;
unset($data['password']);
list ($data, $hash) = pc_encode($data);
# store data and hash in form
$output = "<form action=\"".$_SERVER['php_self']."?$query_string\" method=\"post\">";
$output .= "<input type=\"hidden\" name=\"data\" value=\"" . htmlentities($data)."\">\n";
$output .= "<input type=\"hidden\" name=\"hash\" value=\"" . htmlentities($hash)."\">\n";
$output .= "</form>\n";
}
function ko_validate_form() {
if(! ko_validate_form_user($_POST['user'])) {
$errors['user'] = "ERR: user";
}
if(! ko_validate_form_pass($_POST['pass'])) {
$errors['pass'] = "ERR: pass";
}
return $errors;
}
function ko_print_form($errors) {
$fields = array('name' => 'Name',
'rank' => 'Rank',
'serial' => 'Serial');
if( count($errors)) { print( "ko_print_form ERR: <br>\n" );}
$output = "<table>\n";
foreach( $fields as $field => $field_name) {
$output .= "<tr><td>";
if( !empty($errors[$field])) {
$output .= $errors[$field];
}
else {
$output .= " ";
}
$output .= "</td><td>";
$values = isset($_POST['field']) ? htmlentities($_POST['$field']) : '';
$output .= "$field_name";
$output .= "<input type=\"text\" name=\"$field\" value=\"$value\">";
$output .= "</td></tr>";
}
$output .= "</table>\n";
print( "$output" );
}
function ko_unique() {
$unique_id = unique_id(microtime(),1);
$output = "<input type=\"hidden\" name=\"unique_id\" value=\"".$unique_id."\">";
}
function ko_unique1() {
$GLOBALS['tblname'];
$unique_id = $pdo->quote($_POST['unique_id']);
$sth = $pdo->query("SELECT * from $tblname where unique_id = $unique_id");
if( $sth->numRows()) {
$output = "ERR ko_unique1<br>\n";
}
}
function pc_encode($data) {
$data = serialize($data);
$hash = md5($GLOBALS['secret'] . $data);
return array($data,$hash);
}
function pc_decode($data, $hash) {
if( !empty($data) && !empty($hash)) {
if( md5($GLOBALS['secret'] . $data) == $hash) {
return unserialize($data);
}
else {
error_log("pc_decode ERR: data modified");
return false;
}
}
return false;
}
function datediff ($interval,$date1,$date2) {
$timedifference = $date2 - $date1;
switch ($interval) {
# case 'w': $retval = bcdiv($timedifference,604800); break;
# case 'd': $retval = bcdiv($timedifference,86400); break;
# case 'h': $retval = bcdiv($timedifference,3600); break;
# case 'n': $retval = bcdiv($timedifference,60); break;
# case 's': $retval = $timedifference; break;
}
return $retval;
}
function datediff_leds( $diffdays ) {
# print( "<hr>BUGS datediff_leds BEG: diffdays=[$diffdays] color=[$color] speed=[$speed]<br><hr>\n" );
switch( $diffdays ) {
case ( $diffdays > 30 ): $color="red"; $speed="0"; break;
case ( $diffdays > 14 ) && ( $diffdays < 30): $color="red"; $speed="2"; break;
case ( $diffdays > 7 ): $color="red"; $speed="3"; break;
case ( $diffdays > 3 ): $color="blue"; $speed="0"; break;
case ( $diffdays > 1 ): $color="blue"; $speed="1"; break;
case ( $diffdays == 1 ): $color="blue"; $speed="2"; break;
case ( $diffdays == 0 ): $color="blue"; $speed="3"; break;
case ( $diffdays == "" ): $color="yellow"; $speed="0"; break;
case ( $diffdays == -1 ): $color="yellow"; $speed="1"; break;
case ( $diffdays < -31 ): $color="yellow"; $speed="2"; break;
case ( $diffdays < -30 ): $color="yellow"; $speed="3"; break;
case ( $diffdays < -14 ): $color="green"; $speed="0"; break;
case ( $diffdays < -7 ): $color="green"; $speed="1"; break;
case ( $diffdays < -3 ): $color="green"; $speed="2"; break;
case ( $diffdays < -2 ): $color="green"; $speed="3"; break;
case ( $diffdays < -1 ): $color="black"; $speed="0"; break;
}
return array( $diffdays, $color, $speed );
}
function fgmenu_head($options) {
$output .= "<!DOCTYPE html PUBLIC \"-#W3C#DTD XHTML 1.0 Strict#EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
$output .= "\n";
$output .= "<html xmlns=\"http:#www.w3.org/1999/xhtml\" xml:lang=\"en\">\n";
$output .= "<head>\n";
$output .= "<title>fgmenu $options[0] $options[1]</title>\n";
$output .= " <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n";
$output .= " \n";
$output .= " <script type=\"text/javascript\" src=\"./js/fg-menu/jquery-1.3.2.min.js\"></script>\n";
# $output .= " <script type=\"text/javascript\" src=\"./js/fg-menu/fg.menu.js\"></script>\n";
$output .= " <script type=\"text/javascript\" src=\"./js/fg-menu/fg.menu_ko.js\"></script>\n";
# $output .= " <script type=\"text/javascript\" src=\"./js/jqgrid.3.5.3/js/jquery.jqGrid.min.js\"></script>\n";
# $output .= " <script type=\"text/javascript\" src=\"./js/jqgrid.3.5.3/js/i18n/grid.locale-en.js\"></script>\n";
$output .= " <script type=\"text/javascript\" src=\"./js/jqgrid-4.4.0/js/jquery.jqGrid.min.js\"></script>\n";
$output .= " <script type=\"text/javascript\" src=\"./js/jqgrid-4.4.0/js/i18n/grid.locale-en.js\"></script>\n";
$output .= " \n";
$output .= " <link type=\"text/css\" href=\"./js/fg-menu/fg.menu.css\" media=\"screen\" rel=\"stylesheet\" />\n";
$output .= " <link type=\"text/css\" href=\"./js/fg-menu/theme/ui.all.css\" media=\"screen\" rel=\"stylesheet\" />\n";
$output .= " \n";
$output .= " <!-- styles for this example page only -->\n";
$output .= " <style type=\"text/css\">\n";
$output .= " body { font-size:62.5%; margin:0; padding:0; }\n";
$output .= " #menuLog { font-size:1.4em; margin:20px; }\n";
$output .= " .hidden { position:absolute; top:0; left:-9999px; width:1px; height:1px; overflow:hidden; }\n";
$output .= " \n";
$output .= " .fg-button { clear:left; margin:0 4px 40px 20px; padding: .4em 1em; text-decoration:none !important; cursor:pointer; position: relative; text-align: center; zoom: 1; }\n";
$output .= " .fg-button .ui-icon { position: absolute; top: 50%; margin-top: -8px; left: 50%; margin-left: -8px; }\n";
$output .= " a.fg-button { float:left; }\n";
$output .= " button.fg-button { width:auto; overflow:visible; } /* removes extra button width in IE */n";
$output .= " \n";
$output .= " .fg-button-icon-left { padding-left: 2.1em; }\n";
$output .= " .fg-button-icon-right { padding-right: 2.1em; }\n";
$output .= " .fg-button-icon-left .ui-icon { right: auto; left: .2em; margin-left: 0; }\n";
$output .= " .fg-button-icon-right .ui-icon { left: auto; right: .2em; margin-left: 0; }\n";
$output .= " .fg-button-icon-solo { display:block; width:8px; text-indent: -9999px; } /* solo icon buttons must have block properties for the text-indent to work */ n";
$output .= " \n";
$output .= " .fg-button.ui-state-loading .ui-icon { background: url(spinner_bar.gif) no-repeat 0 0; }\n";
$output .= " </style>\n";
$output .= " \n";
$output .= " <!-- style exceptions for IE 6 -->\n";
$output .= " <!--[if IE 6]>\n";
$output .= " <style type=\"text/css\">\n";
$output .= " .fg-menu-ipod .fg-menu li { width: 95%; }\n";
$output .= " .fg-menu-ipod .ui-widget-content { border:0; }\n";
$output .= " </style>\n";
$output .= " <![endif]--> \n";
$output .= " \n";
# $output = "";
# $output .= "<hr>fgmenu_head<hr>\n";
return( $output );
}
function fgmenu_js($options) {
$role=$_SESSION['role'];
# $role=$options[1];
$output .= " <script type=\"text/javascript\"> \n";
$output .= " $(function(){\n";
$output .= " # BUTTONS\n";
$output .= " $('.fg-button').hover(\n";
$output .= " function(){ $(this).removeClass('ui-state-default').addClass('ui-state-focus'); },\n";
$output .= " function(){ $(this).removeClass('ui-state-focus').addClass('ui-state-default'); }\n";
$output .= " );\n";
$output .= " \n";
# $output .= " # MENUS \n";
# $output .= " $('#flat').menu({ \n";
# $output .= " content: $('#flat').next().html(), # grab content from this page\n";
# $output .= " showSpeed: 400 \n";
# $output .= " });\n";
# $output .= " \n";
$output .= " $('#hierarchybreadcrumb').menu({\n";
$output .= " content: $('#hierarchybreadcrumb').next().html(),\n";
$output .= " backLink: false\n";
$output .= " });\n";
$output .= " \n";
$output .= " });\n";
$output .= " </script>\n";
$output .= " \n";
# $output .= " <!-- theme switcher button -->\n";
# $output .= " <script type=\"text/javascript\" src=\"http:#ui.jquery.com/applications/themeroller/themeswitchertool/\"></script>\n";
# $output .= " <script type=\"text/javascript\"> $(function(){ $('<div style=\"position: absolute; top: 20px; right: 300px;\" />').appendTo('body').themeswitcher(); }); </script>\n";
$output .= "</head>\n";
$output .= "\n";
return( $output );
}
function fgmenu_htm($options) {
$php_self=$_SERVER['PHP_SELF'];
$role=$_SESSION['role'];
# $role=$options[1];
$output = "<hr>$php_self fgmenu [".$options[0]."][".$options[1]."][".$options[2]."]<br><hr>\n";
$output .= fgmenu_head($options);
$output .= fgmenu_js($options);
$output .= html_btn_squares( $options, "" );
$output .= fgmenu_htm_body($options);
print( "$output\n" );
}
function fgmenu_htm_body($options) {
$php_self=$_SERVER['PHP_SELF'];
$role=$_SESSION['role'];
# $role=$options[1];
if( $role == "" ) {
$menucontent="./js/fg-menu/menuContent.html";
}
else {
$menucontent="./js/fg-menu/menuContent_$role.html";
}
$output = "";
$output .= "<p id=\"menuLog\">menuSelection_html $role: <span id=\"menuSelection\"></span></p>\n";
$output .= " <script type=\"text/javascript\"> \n";
$output .= " $.get('$menucontent', function(data){\n";
$output .= " $('#hierarchybreadcrumb').menu({ content: data, backLink: false });\n";
# $output .= " $('#hierarchybreadcrumb').menu({ content: data, hierarchybreadcrumb: true });\n";
$output .= " });\n";
$output .= " </script>\n";
$output .= "<a tabindex=\"0\" href=\"#fgmenu_htm_$role\" ";
$output .= " class=\"fg-button fg-button-icon-right ui-widget ui-state-default ui-corner-all\" ";
$output .= " id=\"hierarchybreadcrumb\"><span class=\"ui-icon ui-icon-triangle-1-s\"></span>\n";
$output .= " fgmenu_htm_$role\n";
$output .= " </a>\n";
$output .= "<div id=\"fgmenu_htm_$role\" class=\"hidden\">\n";
# $output .= "<ul>\n";
# $output .= " <li><a href=\"#$php_self?q=menu/1\">Menu_1</a>\n";
# $output .= " <ul>\n";
# $output .= " <li><a href=\"#$php_self?q=menu/1/1\">Menu_1_1</a></li>\n";
# $output .= " <li><a href=\"#$php_self?q=menu/1/2\">Menu_1_2</a></li>\n";
# $output .= " <li><a href=\"#$php_self?q=menu/1/3\">Menu_1_3</a></li>\n";
# $output .= " </ul>\n";
# $output .= " </li>\n";
# $output .= " </ul>\n";
$output .= " </div>\n";
return( $output );
}
function fgmenu_dyn($options) {
$php_self=$_SERVER['PHP_SELF'];
$role=$_SESSION['role'];
# $role=$options[1];
$output = "<hr>$php_self fgmenu [".$options[0]."][".$options[1]."][".$options[2]."]<br><hr>\n";
$output .= fgmenu_head($options);
$output .= fgmenu_js($options);
# $output .= "<body bgcolor=\"lightblue\">\n";
$output .= "<body bgcolor=\"linen\">\n";
$output .= fgmenu_dyn_body($options);
$output .= "</body>\n";
$output .= "</html>\n";
print( "$output\n" );
}
function fgmenu_dyn_body($options) {
$php_self=$_SERVER['PHP_SELF'];
$role=$_SESSION['role'];
print( "<hr>fgmenu_dyn_body MSG3339: role=[$role] <hr>\n" );
# $role=$options[1];
$menu_id=$role;
$menus[""][] = "?fgmenu/menu1,menu1";
$menus[""][] = "?fgmenu/menu2,menu2";
$menus[""][] = "?fgmenu/menu3,menu3";
$menus[""][] = "?fgmenu/menu4,menu4";
$menus[1][] = "?fgmenu/1,menu1";
$menus[1][] = "?fgmenu/2,menu2";
$menus[1][] = "?fgmenu/3,menu3";
$menus[1][] = "?fgmenu/4,menu4";
$menus[1][] = "?fgmenu/5,menu5";
$menus[1][] = "?fgmenu/6,menu6";
$menus[1][] = "?fgmenu/7,menu7";
$menus[2][] = "?fgmenu/2/1,menu1";
$menus[2][] = "?fgmenu/2/1/1,!menu11";
$menus[2][] = "?fgmenu/2/1/2,!menu12";
$menus[2][] = "?fgmenu/2/1/3,!menu13";
$menus[2][] = "?fgmenu/2/1/4,!menu14";
$menus[2][] = "?fgmenu/2/1/5,!menu15";
$menus[2][] = "?fgmenu/2/1/6,!menu16";
# $menus[2][] = "?fgmenu/2/1/1/1,!!menu111";
# $menus[2][] = "?fgmenu/2,menu3";
$menus[3][] = "?fgmenu/3/1,menu1";
$menus[3][] = "?fgmenu/3/2,menu2";
$menus[3][] = "?fgmenu/3/2/1,!menu2-1";
$menus[3][] = "?fgmenu/3/2/2,!menu2-2";
$menus[3][] = "?fgmenu/3/2/3,!menu2-3";
$menus[3][] = "?fgmenu/3/3,menu3";
$menus[3][] = "?fgmenu/3/3/1,!menu3-1";
$menus[3][] = "?fgmenu/3/3/2,!menu3-2";
$menus[3][] = "?fgmenu/3/3/2/1,!!menu3-2-1";
$menus[3][] = "?fgmenu/3/3/2/2,!!menu3-2-2";
$menus[3][] = "?fgmenu/3/3/2/3,!!menu3-2-3";
$menus[5][] = "?fgmenu/5/1,menu5-1";
$menus[5][] = "?fgmenu/5/1/1,!menu5-11";
$menus[anon][] = "?login/,login";
$menus[anon][] = "?logout/,logout";
$menus[anon][] = "?logout/,logout";
$menus[anon][] = "?menu/,menu";
$menus[anon][] = "?view/,view";
$menus[anon][] = "?update/,update";
$menus[admin][] = "?fgmenu/admin/db,db";
$menus[admin][] = "?fgmenu/admin/unload,!unload";
$menus[admin][] = "?fgmenu/admin/load,!load";
$menus[admin][] = "?fgmenu/admin/query,!query";
$menus[admin][] = "?fgmenu/admin/media,media";
$menus[admin][] = "?fgmenu/zoom,!zoom";
$menus[admin][] = "?fgmenu/objects,!object";
$menus[admin][] = "?fgmenu/pano,!pano";
$menus[users][] = "?fgmenu/users/update,update";
$menus[users][] = "?fgmenu/users/zoom,zoom";
$menus[users][] = "?fgmenu/users/object,object";
$menus[users][] = "?fgmenu/users/pano,pano";
$menus[op][] = "?fgmenu/op/iperms,iperms";
$menus[op][] = "?fgmenu/op/iperms,!periods_p";
$menus[op][] = "?fgmenu/op/iperms,!periods_pp";
$menus[op][] = "?fgmenu/op/iperms,!job2db";
$menus[op][] = "?fgmenu/op/iperms,!!mkwl";
$menus[op][] = "?fgmenu/op/iperms,!!viwl";
$menus[op][] = "?fgmenu/op/iperms,!!catwl";
$menus[op][] = "?fgmenu/op/iperms,!!runwl";
$menus[op][] = "?fgmenu/op/aors,!aors";
$menus[op][] = "?fgmenu/op/aors/txt2tif,!!txt2tif";
$menus[op][] = "?fgmenu/op/aors/txt2tif/mkwl,!!!mkwl";
$menus[op][] = "?fgmenu/op/aors/txt2tif/catwl,!!!catwl";
$menus[op][] = "?fgmenu/op/aors/txt2tif/runwl,!!!runwl";
$menus[op][] = "?fgmenu/op/aors/tif2api,!!tif2api";
$menus[op][] = "?fgmenu/op/aors/tif2api/mkwl,!!!mkwl";
$menus[op][] = "?fgmenu/op/aors/tif2api/catwl,!!!catwl";
$menus[op][] = "?fgmenu/op/aors/tif2api/runwl,!!!runwl";
$menus[op][] = "?fgmenu/op/ltrs,!ltrs";
$menus[op][] = "?fgmenu/op/ltrs/txt2tif,!!txt2tif";
$menus[op][] = "?fgmenu/op/ltrs/txt2tif/mkwl,!!!mkwl";
$menus[op][] = "?fgmenu/op/ltrs/txt2tif/catwl,!!!catwl";
$menus[op][] = "?fgmenu/op/ltrs/txt2tif/runwl,!!!runwl";
$menus[op][] = "?fgmenu/op/ltrs/tif2api,!!tif2api";
$menus[op][] = "?fgmenu/op/ltrs/tif2api/mkwl,!!!mkwl";
$menus[op][] = "?fgmenu/op/ltrs/tif2api/catwl,!!!catwl";
$menus[op][] = "?fgmenu/op/ltrs/tif2api/runwl,!!!runwl";
$menus[op][] = "?fgmenu/op/db/,db";
$menus[jk][] = "?fgmenu/jk/1,jk_menu1";
if( $menu_id == "" ) {
$j=0;
foreach( $menus as $key => $val ) {
$j++;
# print( "$j $key $val<br>\n" );
}
return;
}
if(! array_key_exists( $menu_id, $menus )) {
# print( "ERR_301: NOTFOUND menu_id=$menu_id <br>\n" );
return;
}
$output = "";
$output .= "<p id=\"menuLog\">menuSelection_dyn $role: <span id=\"menuSelection\"></span></p>\n";
$output .= "<a tabindex=\"0\"\n";
$output .= " href=\"#fgmenu_dyn_$role\" ";
$output .= " class=\"fg-button fg-button-icon-right ui-widget ui-state-default ui-corner-all\"\n";
$output .= " id=\"hierarchybreadcrumb\">\n";
$output .= " <span class=\"ui-icon ui-icon-triangle-1-s\"></span>\n";
$output .= " fgmenu_dyn_$role\n";
$output .= " </a>\n";
$output .= "<div id=\"fgmenu_dyn_$role\" class=\"hidden\">\n";
$fg_output = ""; $item_id=0;
$output .= $fg_output;
$output .= "</div><hr>\n";
$tmp_output=$fg_output;
$tmp_output=str_replace( "<a href", "(a href", $tmp_output );
$tmp_output=str_replace( "</a>", "(/a)<br>", $tmp_output );
$tmp_output=str_replace( "<li>", "(li)", $tmp_output );
$tmp_output=str_replace( "</li>", "(/li)<br>", $tmp_output );
$tmp_output=str_replace( "<ul>", "(ul)", $tmp_output );
$tmp_output=str_replace( "</ul>", "(/ul)<br>", $tmp_output );
print( "<hr>BUGS_3421 fgmenu_dyn_body<br>\n" );
print_r($menus[$role]);
print( "<hr>\n" );
print( $tmp_output );
print( "<hr>\n" );
return( $output );
}
function menutree( &$item_id, $menu, &$output ) {
$last_item_id=count($menu);
if( $item_id > $last_item_id ) return( $output );
$item_href=$items[0];
$item_levels=$items[1];
$item_level=count( explode( "!", $item_levels ));
$item_text=str_replace( "!", "", $item_levels );
for( $l=0; $l<$item_level; $l++ ) {$output .= " ";}
$output .= "<ul>\n";
while( $item_id < $last_item_id ) {
$items=explode( ",", $menu[$item_id] );
$item_href=$items[0];
$item_levels=$items[1];
$item_level=count( explode( "!", $item_levels ));
$item_text=str_replace( "!", "", $item_levels );
$next_item_id=$item_id+1;
$next_items=explode( ",", $menu[$next_item_id] );
$next_item_href=$next_items[0];
$next_item_levels=$next_items[1];
$next_item_level=count( explode( "!", $next_item_levels ));
$next_item_text=str_replace( "!", "", $next_item_levels );
print( "MENUTREE_CURR: item_id=[$item_id] level=[$item_level] item_href=[$item_href] item_text=[$item_text] last_item_id=[$last_item_id]<br>\n" );
print( "MENUTREE_NEXT: item_id=[$next_item_id] level=[$next_item_level] item_href=[$next_item_href] item_text=[$next_item_text]<hr>\n" );
if( $item_level == $next_item_level ) {
for( $l=0; $l<$item_level; $l++ ) {$output .= " ";}
$output .= "<li><a href=\"$item_href\">$item_text</a></li>\n";
}
if( $item_level < $next_item_level ) {
for( $l=0; $l<$item_level; $l++ ) {$output .= " ";}
$output .= "<li><a href=\"$item_href\">$item_text</a>\n";
$item_id++;
for( $l=0; $l<$item_level; $l++ ) {$output .= " ";}
$output .= "</li>\n";
}
if( $item_level > $next_item_level ) {
for( $l=0; $l<$item_level; $l++ ) {$output .= " ";}
$output .= "<li><a href=\"$item_href\">$item_text</a></li>\n";
last;
}
$item_id++;
}
for( $l=0; $l<$item_level; $l++ ) {$output .= " "; }
$output .= "</ul>\n";
return($output);
}
function main_todo() {
# phpinfo();
global $progid;
global $dttm;
if( isset($_REQUEST['plupload'])) {
# printf( "BUGS_305 PLUPLOAD<br>\n" );
$args="args";
$htmout=plupload($args);
printf( $htmout );
exit;
}
if( isset($_REQUEST['contacts'])) {
$htmout="";
$htmout=contacts('');
# printf($htmout);
exit;
}
if( isset($_REQUEST['kov'])) {
$htmout="";
$htmout=kov('');
# printf($htmout);
exit;
}
if( isset($_REQUEST['leds'])) {
$htmout=leds('');
printf( $htmout );
exit;
}
if( isset($_REQUEST['lists'])) {
# $file=""; $dr=""; $j=0; $k=0; $htmout=""; $db3="ko.db3"; $tbl="items";
$file=""; $dr=""; $j=0; $k=0; $htmout=""; $db3="ko_todo.db3"; $tbl="items";
$lists=$_REQUEST['lists'];
$tbl=$lists;
if($_SERVER['DOCUMENT_ROOT']) { $dr=$_SERVER['DOCUMENT_ROOT']; }
$drfile="$dr$file";
$drdb3="$dr$db3";
if( isset($_REQUEST['db3'])) {
$htmout=""; $j=0; $k=0;
$db3=$_REQUEST['db3'];
$db3fil="$dr/$db3";
$sql="select * from $tbl";
$fld="";
if( ! is_file($db3fil)) {
printf( "BUGS_313 NOTFOUND db3fil=$db3fil<br>\n" );
exit;
}
# $htmout .= sqlq( $db3fil, $sql, $fld );
$pdo = newpdo($db3fil);
if( $tbl == "letter" ) {
$sql="select rowid,text,desc from $tbl";
$psv="rowid|text|desc\n";
$sql="select rowid,text,desc from $tbl";
foreach( $pdo->query($sql) as $row ) {
$rowid=$row['rowid'];
$text=$row['text'];
$desc=$row['desc'];
$psv.="$rowid|$text|$desc\n";
}
printf( $htmout."\n".$psv );
exit;
}
if( $tbl == "contacts" ) {
$sql="select rowid,* from $tbl";
$psv="rowid|id|name|phn|firm|url|email|note|action\n";
$sql="select rowid,* from $tbl";
foreach( $pdo->query($sql) as $row ) {
$rowid=$row['rowid'];
$id=$row['id'];
$name=$row['name'];
$phn=$row['phn'];
$firm=$row['firm'];
$url=$row['url'];
$email=$row['email'];
$note=$row['note'];
$action=$row['action'];
$psv.="$rowid|$id|$name|$phn|$firm|$url|$email|$note|$action\n";
}
printf( $htmout."\n".$psv );
exit;
}
if( $tbl == "leds" ) {
$sql="select rowid,* from $tbl";
$psv="ROWID|led_id|led_status|led_code|led_name|led_dttm|led_color|led_speed|led_type|led_date|led_cmd|led_cmdout|led_desc|led_misc|led_city|led_bldg|led_loc_code|led_floor|led_group|led_orgs|led_title|led_published|led_width|led_height|led_comment|led_filename|led_user|led_user_ip|led_referer|led_remote_port|led_viewrole|led_user_agent|led_unique_id|led_err|led_fix|led_os";
$sql="select * from $tbl";
$rowid="";
$j=0;
foreach( $pdo->query($sql) as $row ) {
$j=$j+1;
# $rowid=$row['rowid'];
$led_id=$row['led_id'];
$led_status=$row['led_status'];
$led_code=$row['led_code'];
$led_name=$row['led_name'];
$led_dttm=$row['led_dttm'];
$led_color=$row['led_color'];
$led_speed=$row['led_speed'];
# printf( "BUGS_370 LEDS led_id=$led_id led_code=$led_code led_name=$led_name $led_color $led_speed\n" );
$led_type=$row['led_type'];
$led_date=$row['led_date'];
$led_cmd=$row['led_cmd'];
$led_cmdout=$row['led_cmdout'];
$led_desc=$row['led_desc'];
$led_misc=$row['led_misc'];
$led_city=$row['led_city'];
$led_bldg=$row['led_bldg'];
$led_loc_code=$row['led_loc_code'];
$led_floor=$row['led_floor'];
$led_group=$row['led_group'];
$led_orgs=$row['led_orgs'];
$led_title=$row['led_title'];
$led_published=$row['led_published'];
$led_width=$row['led_width'];
$led_height=$row['led_height'];
$led_comment=$row['led_comment'];
$led_filename=$row['led_filename'];
$led_user=$row['led_user'];
$led_user_ip=$row['led_user_ip'];
$led_referer=$row['led_referer'];
$led_remote_port=$row['led_remote_port'];
$led_viewrole=$row['led_viewrole'];
$led_user_agent=$row['led_user_agent'];
$led_unique_id=$row['led_unique_id'];
$led_err=$row['led_err'];
$led_fix=$row['led_fix'];
$led_os=$row['led_os'];
$psv.="$rowid|$led_id|$led_status|$led_code|$led_name|$led_dttm|$led_color|$led_speed|$led_type|$led_date|$led_cmd|$led_cmdout|$led_desc|$led_misc|$led_city|$led_bldg|$led_loc_code|$led_floor|$led_group|$led_orgs|$led_title|$led_published|$led_width|$led_height|$led_comment|$led_filename|$led_user|$led_user_ip|$led_referer|$led_remote_port|$led_viewrole|$led_user_agent|$led_unique_id|$led_err|$led_fix|$led_os<br>\n";
# printf( "BUGS_400 j=$j psv=$psv\n" );
}
printf( $psv );
exit;
}
$psv="rowid|pathfile|path|file|base|ext|dttm|exif_dt|exif_tm|desc|\n";
$sql="select rowid,pathfile,path,file,base,ext,dttm,exif_dt,exif_tm,desc from $tbl";
foreach( $pdo->query($sql) as $row ) {
$rowid=$row['rowid'];
$pathfile=$row['pathfile'];
$path=$row['path'];
$file=$row['file'];
$base=$row['base'];
$ext=$row['ext'];
$exif_dt=$row['exif_dt'];
$exif_tm=$row['exif_tm'];
$desc=$row['desc'];
$psv.="$rowid|$pathfile|$path|$file|$base|$ext|$dttm|$exif_dt|$exif_tm|$desc|\n";
}
printf( $htmout."\n".$psv );
exit;
}
if( $lists == "items" ) { $file="/ko/lists_items.txt"; }
if( $lists == "contacts" ) { $file="/ko/lists_contacts.txt"; }
if( $lists == "letter" ) { $file="/ko/lists_letter.txt"; }
if( $lists == "monkeytraps" ) { $file="/ko/lists_monkeytraps.txt"; }
if( $lists == "floods" ) { $file="/ko/lists_floods.txt"; }
if( $lists == "postturtles" ) { $file="/lists_postturtles.txt"; }
if( $lists == "coffee" ) { $file="/lists_coffee.txt"; }
$drfile="$dr$file";
if( is_file($drfile)) {
# printf( "BUGS_313 ___FOUND lists=$lists dr=$dr file=$file drfile=$drfile\n" );
$htmout=htmout_load($drfile);
}
else {
printf( "BUGS_313 NOTFOUND lists=$lists dr=$dr file=$file drfile=$drfile\n" );
exit;
}
printf( $htmout );
exit;
}
if( isset($_REQUEST["k9"])) {
$k9=$_REQUEST['k9'];
printf( "BUGS_22760 isset _K9 k9=$k9<br>\n" );
$htmout = k9($k9);
printf( $htmout );
exit;
}
if( isset($_REQUEST['img2b64'] )) {
$htmout = "";
$htmout .= "<html><head><title>/ka/ko.php?img2b64 20230129_1700</title></head>\n";
$img2b64=$_REQUEST['img2b64'];
$htm_koeye = gdImgToHTML( "./imgs/btn/koeye.png", $format='png' );
$htm_kobrd = gdImgToHTML( "./imgs/btn/kobrd.png", $format='png' );
$img_koeye = img2b64("./imgs/btn/koeye.png","png","html");
$img_kobrd = img2b64("./imgs/btn/kobrd.png","png","html");
$b64_koeye = img2b64("./imgs/btn/koeye.png","png","b64");
$b64_kobrd = img2b64("./imgs/btn/kobrd.png","png","b64");
$htmout .= "<a href=./imgs/btn/koeye.png target=_blank>\n";
$htmout .= $htm_koeye;
$htmout .= "</a><br>\n";
$htmout .= "<a href=./imgs/btn/kobrd.png target=_blank>\n";
$htmout .= $htm_kobrd;
$htmout .= "</a><br>\n";
$htmout .= "<hr color=black>\n";
$htmout .= "<a href=./imgs/btn/koeye.png target=_blank>\n";
$htmout .= $img_koeye;
$htmout .= "</a><br>\n";
$htmout .= "<a href=./imgs/btn/kobrd.png target=_blank>\n";
$htmout .= $img_kobrd;
$htmout .= "</a><br>\n";
$htmout .= "<hr color=black>\n";
$htmout .= "<a href=./imgs/btn/koeye.png target=_blank>\n";
$htmout .= "<img src=".$b64_koeye." height=30 border=0>\n";
$htmout .= "</a><br>\n";
$htmout .= "<a href=./imgs/btn/kobrd.png target=_blank>\n";
$htmout .= "<img src=". $b64_kobrd." height=30 border=0>\n";
$htmout .= "</a><br>\n";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
printf( $htmout);
exit;
}
if( isset($_FILES["image"])) {
printf( "BUGS_295 isset _FILES<br>\n" );
$htmout = img2dirs();
printf( $htmout );
exit;
}
if( isset($_REQUEST['txt2imgs'])) {
$htmout=txt2imgs('');
printf($htmout);
exit;
}
if( isset($_REQUEST['txt2img'])) {
$htmout="";
$img="./imgs/btn/koeye.png";
$fmt="b64";
$imgfil="./imgs/btn/kobrd.png";
$fontid="yokkmokk";
$text="sophia";
$fmt="";
$savefile="./imgs/btn/koeye_sophia.png";
$htmout=txt2img($imgfil,$fontid,$text,$fmt,$save);
printf($htmout);
exit;
}
if( isset($_REQUEST['gd'])) {
$options="";
$gd=$_REQUEST['gd'];
$htmout = gd($gd);
printf($htmout);
exit;
}
if( isset($_REQUEST['img2tn'])) {
$htmout = "";
$img=$_REQUEST['img2tn'];
if( $img == "" ) { $img="/fb/pages/zn/zn_1.jpg"; }
$htmout .= "<h1>BUGS_22860 img2tn img=$img</h1>";
$htmout=img2tn($img);
printf( $htmout );
}
if( isset($_REQUEST['kin'])) {
$htmout = "";
$options="kin_options";
$htmout .= "<h1>BUGS_22870 kin options=$options</h1>";
kin($options);
}
if( isset($_REQUEST['kup'])) {
printf( "<h1>BUGS_292 kup ko_kup</h1>" );
startup();
}
if( isset($_REQUEST['ko_kup'])) {
printf( "<h1>BUGS_293 ko_kup</h1>" );
ko_kup();
}
$args=array();
$id="";
$query_string="";
if( isset($_REQUEST['QUERY_STRING'])) {
$query_string = $_REQUEST['QUERY_string'];
}
# print( "\n<h1>BUGS_101 ko.php MAIN query_string=$query_string</h1><br>\n" );
if( isset($_REQUEST['ko_form']) || isset($_REQUEST['ko_form'] )) {
ko_form('');
exit;
}
if( isset($_REQUEST['ko_form_submit']) || isset($_REQUEST['ko_form_submit'] )) {
phpinfo();
exit;
}
if( isset($_REQUEST['scrub_upload_form']) || isset($_REQUEST['scrub_upload_form'] )) {
$options="";
scrub_upload_form( $options );
exit;
}
if( isset($_REQUEST['ko_upload']) || isset($_REQUEST['ko_upload2'] )) {
$options="";
$htmout=ko_upload2();
printf( "$htmout" );
exit;
}
if( isset($_REQUEST['ko_uploads']) || isset($_REQUEST['ko_uploads'] )) {
$options="";
$htmout=ko_uploads($options);
printf( "$htmout" );
exit;
}
if( isset($_REQUEST['bugs']) || isset($_REQUEST['bugs'] )) {
$options="";
$htmout=bugs($options);
printf( "<h1>BUGS_100 $htmout </h1>\n" );
exit;
}
$dbname="dgs";
$db3fil="$dbname.db3";
if( isset($_REQUEST['db2']) || isset($_REQUEST['db2'] )) {
$request_db2=$_REQUEST['db2'];
$server="localhost";
$user="root";
$pass="..root";
$htmout = "";
# $htmout .= htmout_head('db2');
$htmout .= "<html><head>\n";
$htmout .= htmout_load('ko_scripts.html');
$htmout .= htmout_load('ko_styles.html');
$htmout .= " </head>";
$htmout .= "<body bgcolor=linen onload=\"startup('db2);return false;\" >\n";
$htmout .= "<img src=\"/imgs/btn/koeye.png\" onclick=\"toggle('div_db2'); return false;\" height=24>\n";
$htmout .= "<div id=div_db2>\n";
$htmout .= " <hr color=goldenrod>\n";
$htmout .= " <h1>div_db2<h1>\n";
$server="localhost";
$dbname="dgs";
$sql2="show tables;";
$sql2="select * from ko_temp";
$sql2="select * from Players";
$dbname="zc"; $sql2="select * from Products";
$dbname="zc"; $sql2="select * from Categories";
$dbname="zc"; $sql2="select count(*) from Products";
$dbname="dgs"; $sql2="describe Players";
$dbname="dgs"; $sql2="show tables;";
$dbname="zc"; $sql2="show tables;";
$dbname="dgs"; $sql2="show tables;";
$db3fil="$dbname.db3";
$tblnum=1;
$dbname="dgs";
$j=0;
if( preg_match("/show/", $request_db2 )) {
$dbname="dgs"; $tbl="ko_temp";
$sql="show tables";
if( preg_match("/show_dgs/", $request_db2 )) { $dbname="dgs"; }
if( preg_match("/show_zc/", $request_db2 )) { $dbname="zc"; }
# print( "<h3>MSG_716 DB2 SHOW tbl=$tbl sql=$sql</h3>" );
$htmout_db2_query=db2_query( $server,$dbname,$tbl,$sql, $db3fil, $user,$pass );
print( $htmout_db2_query );
}
# print( "<h3>MSG_290 DB2 SELECT HEAD</h3>" );
if( preg_match("/select/", $request_db2 )) {
$tbl="ko_temp";
if( count(explode("_",$request_db2)) > 0 ) {
$tbl=explode("select_", $request_db2)[1];
}
$sql="select * from $tbl";
# print( "<h3>MSG_291 DB2 SELECT dbname=$dbname tbl=$tbl sq1=$sql</h3>" );
$htmout_db2_query=db2_query( $server,$dbname,$tbl,$sql, $db3fil, $user,$pass );
print( $htmout_db2_query );
}
if (( $_REQUEST['db2'] == "creates" ) || ( $_REQUEST['db2'] == "creates" )) {
# print( "<h3>BUGS_275 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
$tbls=explode("\n", show_tables($dbname));
$tbls_len=count($tbls);
# print( "<h3>BUGS_270 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
foreach( $tbls as $tbl ) {
if( $tbl == "" ) {
# print( "<h1>BUGS_270 SKIP j=$j tbl=$tbl</h1>" );
continue;
}
$j=$j+1;
$sql2="describe $tbl;";
$sql="";
print( "<h2>BUGS_280 j=$j dbname=$dbname tbl=$tbl sql=$sql db3fil=$db3fil</h2>" );
# mysql2sql3_insert( $server,$dbname,$tbl,$user,$pass,$db3fil);
mysql2sql3_create( $server,$dbname,$tbl,$user,$pass,$db3fil);
}
}
if (( $_REQUEST['db2'] == "inserts" ) || ( $_REQUEST['db2'] == "inserts" )) {
# print( "<h3>BUGS_275 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
$tbls=explode("\n", show_tables($dbname));
$tbls_len=count($tbls);
# print( "<h3>BUGS_270 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
foreach( $tbls as $tbl ) {
if( $tbl == "" ) {
# print( "<h1>BUGS_270 SKIP j=$j tbl=$tbl</h1>" );
continue;
}
$j=$j+1;
$sql2="describe $tbl;";
$sql="";
print( "<h2>BUGS_280 j=$j dbname=$dbname tbl=$tbl sql=$sql db3fil=$db3fil</h2>" );
mysql2sql3_insert( $server,$dbname,$tbl,$user,$pass,$db3fil);
mysql2sql3_create( $server,$dbname,$tbl,$user,$pass,$db3fil);
}
}
$user="root"; $pass="..root";
print( "<h1>BUGS_100 DB2</h1>" );
if( isset( $_REQUEST['db2'] )) { $dbname=$_REQUEST['db2']; }
if( isset( $_REQUEST['user'] )) { $user=$_REQUEST['user']; }
if( isset( $_REQUEST['db3fil'] )) { $db3fil=$_REQUEST['db3fil']; }
if( isset( $_REQUEST['sql'] )) { $sql=$_REQUEST['sql']; }
if( isset( $_REQUEST['fmt'] )) { $fmt=$_REQUEST['fmt']; }
$j=0; $k=0; $i=0;
if( isset( $_REQUEST['tbl'] )) { $tbl=$_REQUEST['tbl']; }
$dbname="zc"; $tbl="ko_temp";
$dbname="dgs"; $tbl="ko_temp";
$dbname="dgs"; $tbl="Players";
if( $dbname == "" ) { $dbname="dgs"; }
if( $dbname == "" ) { $dbname="zc"; }
print( "<h1>BUGS_310 j=$j k=$k dbname=$dbname tbl=$tbl sql2=$sql2</h1>" );
$htmout .= " </div>\n";
$htmout .= htmout_load('ko_divs.html');
$htmout .= htmout_tail('db2');
print($htmout);
exit;
}
if( isset($_REQUEST['db3']) || isset($_REQUEST['db3'] )) {
$htmout = "";
# $htmout .= htmout_head('db3');
$htmout .= "<html><head>\n";
$htmout .= " <title>$progid $dttm db3</title>\n";
$htmout .= htmout_load('ko_styles.html');
$htmout .= htmout_load('ko_scripts.html');
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen onload=\"startup('db3);return false;\" >\n";
$htmout .= "<img src=\"/imgs/btn/koeye.png\" onclick=\"toggle('div_db3'); return false;\" height=24>\n";
$htmout .= "<div id=div_db3>\n";
$htmout .= " <hr color=goldenrod>\n";
$htmout .= " <h1>div_db3<h1>\n";
$htmout .= db3($db3fil);
$htmout .= " </div>\n";
$htmout .= htmout_load('ko_divs.html');
$htmout .= htmout_tail('db3');
print($htmout);
exit;
}
if( isset($_REQUEST['file']) || isset($_REQUEST['file'] )) {
$filnam=$_REQUEST['file'];
if( file_exists( $filnam )) {
$filtxt=read_htmlfile($filnam);
print($filtxt);
}
else {
print( "ERR_430: NOTFOUND filnam=$filnam<br>\n" );
}
exit;
}
if( isset($_REQUEST['ko_coffeeshop']) || isset($_REQUEST['ko_coffeeshop'] )) {
$gid=""; $fmt="";
if( isset( $_REQUEST['db3'] )) { $db3=$_REQUEST['db3']; }
if( isset( $_REQUEST['fmt'] )) { $fmt=$_REQUEST['fmt']; }
$request="ko_coffeeshop";
$txt=""; $csv=""; $psv="";
$htmout=""; $htmout_table_head=""; $htmout_table_body="";
# print( "<h1>BUGS_400 gid=$gid fmt=$fmt</h1>" );
$json="{ \"$request\": [\n";
$htmout_table_head = "<table id=table_$request>\n";
$htmout_table_head .= "<tr><td style='text-align:center' colspan=14>gameid: $gid</td></tr>\n";
$htmout_table_head .= "<tr>";
$htmout_table_head .= "<td>row</td>";
$htmout_table_head .= "<td>ord</td>";
$htmout_table_head .= "<td>no</td>";
$htmout_table_head .= "<td>id</td>";
$htmout_table_head .= "<td>status</td>";
$htmout_table_head .= "<td>dttm</td>";
$htmout_table_head .= "<td>grp</td>";
$htmout_table_head .= "<td>item</td>";
$htmout_table_head .= "<td>logo</td>";
$htmout_table_head .= "<td>coffee_id</td>";
$htmout_table_head .= "<td>coffee_url</td>";
$htmout_table_head .= "<td>coffee_tn</td>";
$htmout_table_head .= "<td>logo</td>";
$htmout_table_head .= "<td>hostid</td>";
$htmout_table_head .= "<td>host</td>";
$htmout_table_head .= "<td>pdf</td>";
$htmout_table_head .= "<td>pdftxt</td>";
$htmout_table_head .= "<td>fb</td>";
$htmout_table_head .= "<td>fbtxt</td>";
$htmout_table_head .= "<td>gif</td>";
$htmout_table_head .= "<td>giftxt</td>";
$htmout_table_head .= "<td>mp3</td>";
$htmout_table_head .= "<td>mp3txt</td>";
$htmout_table_head .= "<td>mp4</td>";
$htmout_table_head .= "<td>mp4txt</td>";
$htmout_table_head .= "<td>bc</td>";
$htmout_table_head .= "<td>bctxt</td>";
$htmout_table_head .= "<td>yt</td>";
$htmout_table_head .= "<td>yttxt</td>";
$htmout_table_head .= "<td>pn</td>";
$htmout_table_head .= "<td>pntxt</td>";
$htmout_table_head .= "<td>sl</td>";
$htmout_table_head .= "<td>sltxt</td>";
$htmout_table_head .= "<td>tl</td>";
$htmout_table_head .= "<td>tltxt</td>";
$htmout_table_head .= "<td>tx</td>";
$htmout_table_head .= "<td>txtxt</td>";
$htmout_table_head .= "<td>zm</td>";
$htmout_table_head .= "<td>zmtxt</td>";
$htmout_table_head .= "<td>hostid</td>";
$htmout_table_head .= "<td>host</td>";
$htmout_table_head .= "<td>home</td>";
$htmout_table_head .= "<td>name</td>";
$htmout_table_head .= "<td>email</td>";
$htmout_table_head .= "<td>phn</td>";
$htmout_table_head .= "<td>fab</td>";
$htmout_table_head .= "<td>gab</td>";
$htmout_table_head .= "<td>pl</td>";
$htmout_table_head .= "<td>pt</td>";
$htmout_table_head .= "<td>ss</td>";
$htmout_table_head .= "<td>ts</td>";
$htmout_table_head .= "<td>tw</td>";
$htmout_table_head .= "<td>jitsi</td>";
$htmout_table_head .= "<td>chat</td>";
$htmout_table_head .= "<td>item</td>";
$htmout_table_head .= "<td>cnt</td>";
$htmout_table_head .= "<td>amt</td>";
$htmout_table_head .= "<td>note</td>";
$htmout_table_head .= "</tr>\n";
$psvhdr=""; $psvdta ="";
$psvhdr .= "row|ord|no|id|status|dttm|grp|item|logo|";
$psvhdr .= "coffee_id|coffee_url|coffee_tn|";
$psvhdr .= "fb|fbtxt|pdf|pdftxt|gif|giftxt|";
$psvhdr .= "mp3|mp3txt|mp4|mp4txt|bc|bctxt|rm|rmtxt|vm|vmtxt|yt|yttxt|";
$psvhdr .= "pn|pntxt|sl|sltxt|tl|tltxt|tx|txtxt|zm|zmtxt|";
$psvhdr .= "hostid|host|home|name|email|phn|";
$psvhdr .= "fab|gab|li|pl|pt|ss|ts|tw|jitsi|chat|";
$psvhdr .= "dm|dmtxt|dr|drtxt|gp|gptxt|js|jstxt|wm|wmtxt|zh|zhtxt|";
$psvhdr .= "itm|cnt|amt|note";
$psvhdr .= "\n";
$db3fil="ko.db3"; $fld=""; $output = "";
$sql="select * from ko_coffeeshop";
# $sql="select * from ko_coffeeshop where gid='$gid'";
# $bxbys = sqlq( $db3fil, $sql, $fld );
$pdo = newpdo($db3fil);
foreach( $pdo->query($sql) as $row ) {
$rowno=$row['rowno'];
$ord=$row['ord'];
$no=$row['no'];
$id=$row['id'];
$status=$row['status'];
$dttm=$row['dttm'];
$grp=$row['grp'];
$item=$row['item'];
$logo=$row['logo'];
$coffee_id=$row['coffee_id'];
$coffee_url=$row['coffee_url'];
$coffee_tn=$row['coffee_tn'];
$fb=$row['fb'];
$fbtxt=$row['fbtxt'];
$pdf=$row['pdf'];
$pdftxt=$row['pdftxt'];
$gif=$row['gif'];
$giftxt=$row['giftxt'];
$mp3=$row['mp3'];
$mp3txt=$row['mp3txt'];
$mp4=$row['mp4'];
$mp4txt=$row['mp4txt'];
$bc=$row['bc'];
$bctxt=$row['bctxt'];
$rm=$row['rm'];
$rmtxt=$row['rmtxt'];
$vm=$row['vm'];
$vmtxt=$row['vmtxt'];
$yt=$row['yt'];
$yttxt=$row['yttxt'];
$pn=$row['pn'];
$pntxt=$row['pntxt'];
$sl=$row['sl'];
$sltxt=$row['sltxt'];
$tl=$row['tl'];
$tltxt=$row['tltxt'];
$tx=$row['tx'];
$txtxt=$row['txtxt'];
$zm=$row['zm'];
$zmtxt=$row['zmtxt'];
$hostid=$row['hostid'];
$host=$row['host'];
$home=$row['home'];
$name=$row['name'];
$email=$row['email'];
$phn=$row['phn'];
$fab=$row['fab'];
$gab=$row['gab'];
$li=$row['li'];
$pl=$row['pl'];
$pt=$row['pt'];
$ss=$row['ss'];
$ts=$row['ts'];
$tw=$row['tw'];
$jitsi=$row['jitsi'];
$chat=$row['chat'];
$dm=$row['dm'];
$dmtxt=$row['dmtxt'];
$dr=$row['dr'];
$drtxt=$row['drtxt'];
$gp=$row['gp'];
$gbtxt=$row['gbtxt'];
$js=$row['js'];
$jstxt=$row['jstxt'];
$wm=$row['wm'];
$wmtxt=$row['wmtxt'];
$zh=$row['zh'];
$zhtxt=$row['zhtxt'];
$itm=$row['itm'];
$cnt=$row['cnt'];
$amt=$row['amt'];
$note=$row['note'];
$psvdta .= "$rowno|";
$psvdta .= "$ord|";
$psvdta .= "$no|";
$psvdta .= "$id|";
$psvdta .= "$status|";
$psvdta .= "$dttm|";
$psvdta .= "$grp|";
$psvdta .= "$item|";
$psvdta .= "$logo|";
$psvdta .= "$coffee_id|";
$psvdta .= "$coffee_url|";
$psvdta .= "$coffee_tn|";
$psvdta .= "$fb|";
$psvdta .= "$fbtxt|";
$psvdta .= "$pdf|";
$psvdta .= "$pdftxt|";
$psvdta .= "$gif|";
$psvdta .= "$giftxt|";
$psvdta .= "$mp3|";
$psvdta .= "$mp3txt|";
$psvdta .= "$mp4|";
$psvdta .= "$mp4txt|";
$psvdta .= "$bc|";
$psvdta .= "$bctxt|";
$psvdta .= "$rm|";
$psvdta .= "$rmtxt|";
$psvdta .= "$vm|";
$psvdta .= "$vmtxt|";
$psvdta .= "$yt|";
$psvdta .= "$yttxt|";
$psvdta .= "$pn|";
$psvdta .= "$pntxt|";
$psvdta .= "$sl|";
$psvdta .= "$sltxt|";
$psvdta .= "$tl|";
$psvdta .= "$tltxt|";
$psvdta .= "$tx|";
$psvdta .= "$txtxt|";
$psvdta .= "$zm|";
$psvdta .= "$zmtxt|";
$psvdta .= "$hostid|";
$psvdta .= "$host|";
$psvdta .= "$home|";
$psvdta .= "$name|";
$psvdta .= "$email|";
$psvdta .= "$phn|";
$psvdta .= "$fab|";
$psvdta .= "$gab|";
$psvdta .= "$li|";
$psvdta .= "$pl|";
$psvdta .= "$pt|";
$psvdta .= "$ss|";
$psvdta .= "$ts|";
$psvdta .= "$tw|";
$psvdta .= "$jitsi|";
$psvdta .= "$chat|";
$psvdta .= "$bitchute|";
$psvdta .= "$bitchutetxt|";
$psvdta .= "$shopify|";
$psvdta .= "$shopifytxt|";
$psvdta .= "$squareup|";
$psvdta .= "$squareuptxt|";
$psvdta .= "$stripe|";
$psvdta .= "$stripetxt|";
$psvdta .= "$dm|";
$psvdta .= "$dmtxt|";
$psvdta .= "$dr|";
$psvdta .= "$drtxt|";
$psvdta .= "$gp|";
$psvdta .= "$gptxt|";
$psvdta .= "$js|";
$psvdta .= "$jstxt|";
$psvdta .= "$wm|";
$psvdta .= "$wmtxt|";
$psvdta .= "$zh|";
$psvdta .= "$zhtxt|";
$psvdta .= "$itm|";
$psvdta .= "$cnt|";
$psvdta .= "$amt|";
$psvdta .= "$note<br>\n";
$json .= "{\n";
$json .= "\"rowno\":\"$rowno\",\n";
$json .= "\"ord\":\"$ord\",\n";
$json .= "\"no\":\"$no\",\n";
$json .= "\"id\":\"$id\",\n";
$json .= "\"status\":\"$status\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"grp\":\"$grp\",\n";
$json .= "\"item\":\"$item\",\n";
$json .= "\"logo\":\"$host\",\n";
$json .= "\"coffee_id\":\"$coffee_id\",\n";
$json .= "\"coffee_url\":\"$coffee_url\",\n";
$json .= "\"coffee_tn\":\"$coffee_tn\",\n";
$json .= "\"fb\":\"$fb\",\n";
$json .= "\"fbtxt\":\"$fbtxt\",\n";
$json .= "\"pdf\":\"$pdf\",\n";
$json .= "\"pdftxt\":\"$pdftxt\",\n";
$json .= "\"gif\":\"$gif\",\n";
$json .= "\"giftxt\":\"$giftxt\",\n";
$json .= "\"mp3\":\"$mp3\",\n";
$json .= "\"mp3txt\":\"$mp3txt\",\n";
$json .= "\"mp4\":\"$mp4\",\n";
$json .= "\"mp4txt\":\"$mp4txt\",\n";
$json .= "\"bc\":\"$bc\",\n";
$json .= "\"bctxt\":\"$bctxt\",\n";
$json .= "\"rm\":\"$rm\",\n";
$json .= "\"rmtxt\":\"$rmtxt\",\n";
$json .= "\"vm\":\"$vm\",\n";
$json .= "\"vmtxt\":\"$vmtxt\",\n";
$json .= "\"yt\":\"$yt\",\n";
$json .= "\"yttxt\":\"$yttxt\",\n";
$json .= "\"pn\":\"$pn\",\n";
$json .= "\"pntxt\":\"$pntxt\",\n";
$json .= "\"sl\":\"$sl\",\n";
$json .= "\"sltxt\":\"$sltxt\",\n";
$json .= "\"tl\":\"$tl\",\n";
$json .= "\"tltxt\":\"$tltxt\",\n";
$json .= "\"tx\":\"$tx\",\n";
$json .= "\"txtxt\":\"$txtxt\",\n";
$json .= "\"zm\":\"$zm\",\n";
$json .= "\"zmtxt\":\"$zmtxt\",\n";
$json .= "\"hostid\":\"$hostid\",\n";
$json .= "\"host\":\"$host\",\n";
$json .= "\"home\":\"$home\",\n";
$json .= "\"name\":\"$name\",\n";
$json .= "\"email\":\"$email\",\n";
$json .= "\"phn\":\"$phn\",\n";
$json .= "\"fab\":\"$fab\",\n";
$json .= "\"gab\":\"$gab\",\n";
$json .= "\"pl\":\"$pl\",\n";
$json .= "\"pt\":\"$pt\",\n";
$json .= "\"ss\":\"$ss\",\n";
$json .= "\"ts\":\"$ts\",\n";
$json .= "\"tw\":\"$tw\",\n";
$json .= "\"jitsi\":\"$jitsi\",\n";
$json .= "\"chat\":\"$chat\",\n";
$json .= "\"dm\":\"$dm\",\n";
$json .= "\"dmtxt\":\"$dmtxt\",\n";
$json .= "\"dr\":\"$dr\",\n";
$json .= "\"drtxt\":\"$drtxt\",\n";
$json .= "\"gp\":\"$gp\",\n";
$json .= "\"gptxt\":\"$gptxt\",\n";
$json .= "\"js\":\"$js\",\n";
$json .= "\"jstxt\":\"$jstxt\",\n";
$json .= "\"wm\":\"$wm\",\n";
$json .= "\"wmtxt\":\"$wmtxt\",\n";
$json .= "\"zh\":\"$zh\",\n";
$json .= "\"zhtxt\":\"$zhtxt\",\n";
$json .= "\"itm\":\"$itm\",\n";
$json .= "\"cnt\":\"$cnt\",\n";
$json .= "\"amt\":\"$amt\",\n";
$json .= "\"note\":\"$note\"\n";
$json .= "},\n";
$htmout_table_body .= "<tr>";
$htmout_table_body .= "<td>".$row['rowno']."</td>";
$htmout_table_body .= "<td>".$row['ord']."</td>";
$htmout_table_body .= "<td>".$row['no']."</td>";
$htmout_table_body .= "<td>".$row['id']."</td>";
$htmout_table_body .= "<td>".$row['status']."</td>";
$htmout_table_body .= "<td>".$row['dttm']."</td>";
$htmout_table_body .= "<td>".$row['grp']."</td>";
$htmout_table_body .= "<td>".$row['item']."</td>";
$htmout_table_body .= "<td>".$row['logo']."</td>";
$htmout_table_body .= "<td>".$row['coffee_id']."</td>";
$htmout_table_body .= "<td>".$row['coffee_url']."</td>";
$htmout_table_body .= "<td>".$row['coffee_tn']."</td>";
$htmout_table_body .= "<td>".$row['fb']."</td>";
$htmout_table_body .= "<td>".$row['fbtxt']."</td>";
$htmout_table_body .= "<td>".$row['pdf']."</td>";
$htmout_table_body .= "<td>".$row['pdftxt']."</td>";
$htmout_table_body .= "<td>".$row['gif']."</td>";
$htmout_table_body .= "<td>".$row['giftxt']."</td>";
$htmout_table_body .= "<td>".$row['mp3']."</td>";
$htmout_table_body .= "<td>".$row['mp3txt']."</td>";
$htmout_table_body .= "<td>".$row['mp4']."</td>";
$htmout_table_body .= "<td>".$row['mp4txt']."</td>";
$htmout_table_body .= "<td>".$row['bc']."</td>";
$htmout_table_body .= "<td>".$row['bctxt']."</td>";
$htmout_table_body .= "<td>".$row['rm']."</td>";
$htmout_table_body .= "<td>".$row['rmtxt']."</td>";
$htmout_table_body .= "<td>".$row['vm']."</td>";
$htmout_table_body .= "<td>".$row['vmtxt']."</td>";
$htmout_table_body .= "<td>".$row['yt']."</td>";
$htmout_table_body .= "<td>".$row['yttxt']."</td>";
$htmout_table_body .= "<td>".$row['pn']."</td>";
$htmout_table_body .= "<td>".$row['pntxt']."</td>";
$htmout_table_body .= "<td>".$row['sl']."</td>";
$htmout_table_body .= "<td>".$row['sltxt']."</td>";
$htmout_table_body .= "<td>".$row['tl']."</td>";
$htmout_table_body .= "<td>".$row['tltxt']."</td>";
$htmout_table_body .= "<td>".$row['tx']."</td>";
$htmout_table_body .= "<td>".$row['txtxt']."</td>";
$htmout_table_body .= "<td>".$row['zm']."</td>";
$htmout_table_body .= "<td>".$row['zmtxt']."</td>";
$htmout_table_body .= "<td>".$row['hostid']."</td>";
$htmout_table_body .= "<td>".$row['host']."</td>";
$htmout_table_body .= "<td>".$row['home']."</td>";
$htmout_table_body .= "<td>".$row['name']."</td>";
$htmout_table_body .= "<td>".$row['email']."</td>";
$htmout_table_body .= "<td>".$row['phn']."</td>";
$htmout_table_body .= "<td>".$row['fab']."</td>";
$htmout_table_body .= "<td>".$row['gab']."</td>";
$htmout_table_body .= "<td>".$row['li']."</td>";
$htmout_table_body .= "<td>".$row['pl']."</td>";
$htmout_table_body .= "<td>".$row['pt']."</td>";
$htmout_table_body .= "<td>".$row['ss']."</td>";
$htmout_table_body .= "<td>".$row['ts']."</td>";
$htmout_table_body .= "<td>".$row['tw']."</td>";
$htmout_table_body .= "<td>".$row['jitsi']."</td>";
$htmout_table_body .= "<td>".$row['dm']."</td>";
$htmout_table_body .= "<td>".$row['dmtxt']."</td>";
$htmout_table_body .= "<td>".$row['dr']."</td>";
$htmout_table_body .= "<td>".$row['drtxt']."</td>";
$htmout_table_body .= "<td>".$row['gp']."</td>";
$htmout_table_body .= "<td>".$row['gptxt']."</td>";
$htmout_table_body .= "<td>".$row['js']."</td>";
$htmout_table_body .= "<td>".$row['jstxt']."</td>";
$htmout_table_body .= "<td>".$row['wm']."</td>";
$htmout_table_body .= "<td>".$row['wmtxt']."</td>";
$htmout_table_body .= "<td>".$row['zh']."</td>";
$htmout_table_body .= "<td>".$row['zhtxt']."</td>";
$htmout_table_body .= "<td>".$row['itm']."</td>";
$htmout_table_body .= "<td>".$row['cnt']."</td>";
$htmout_table_body .= "<td>".$row['amt']."</td>";
$htmout_table_body .= "<td>".$row['note']."</td>";
$htmout_table_body .= "</tr>\n";
}
$psv = $psvhdr . $psvdta;
$csv=str_replace("|",",",$psv);
$txt=str_replace("|"," ",$psv);
$json .= "{\n";
$json .= "\"rowno\":\"$rowno\",\n";
$json .= "\"ord\":\"$ord\",\n";
$json .= "\"no\":\"$no\",\n";
$json .= "\"id\":\"$id\",\n";
$json .= "\"status\":\"$status\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"grp\":\"$grp\",\n";
$json .= "\"item\":\"$item\",\n";
$json .= "\"logo\":\"$logo\",\n";
$json .= "\"coffee_id\":\"$coffee_id\",\n";
$json .= "\"coffee_url\":\"$coffee_url\",\n";
$json .= "\"coffee_tn\":\"$coffee_tn\",\n";
$json .= "\"fb\":\"$fb\",\n";
$json .= "\"fbtxt\":\"$fbtxt\",\n";
$json .= "\"pdf\":\"$pdf\",\n";
$json .= "\"pdftxt\":\"$pdftxt\",\n";
$json .= "\"gif\":\"$gif\",\n";
$json .= "\"giftxt\":\"$giftxt\",\n";
$json .= "\"mp3\":\"$mp3\",\n";
$json .= "\"mp3txt\":\"$mp3txt\",\n";
$json .= "\"mp4\":\"$mp4\",\n";
$json .= "\"mp4txt\":\"$mp4txt\",\n";
$json .= "\"bc\":\"$bc\",\n";
$json .= "\"bctxt\":\"$bctxt\",\n";
$json .= "\"rm\":\"$rm\",\n";
$json .= "\"rmtxt\":\"$rmtxt\",\n";
$json .= "\"vm\":\"$vm\",\n";
$json .= "\"vmtxt\":\"$vmtxt\",\n";
$json .= "\"yt\":\"$yt\",\n";
$json .= "\"yttxt\":\"$yttxt\",\n";
$json .= "\"pn\":\"$pn\",\n";
$json .= "\"pntxt\":\"$pntxt\",\n";
$json .= "\"sl\":\"$sl\",\n";
$json .= "\"sltxt\":\"$sltxt\",\n";
$json .= "\"tl\":\"$tl\",\n";
$json .= "\"tltxt\":\"$tltxt\",\n";
$json .= "\"tx\":\"$tx\",\n";
$json .= "\"txtxt\":\"$txtxt\",\n";
$json .= "\"zm\":\"$zm\",\n";
$json .= "\"zmtxt\":\"$zmtxt\",\n";
$json .= "\"fab\":\"$fab\",\n";
$json .= "\"gab\":\"$gab\",\n";
$json .= "\"pl\":\"$pl\",\n";
$json .= "\"pt\":\"$pt\",\n";
$json .= "\"ss\":\"$ss\",\n";
$json .= "\"ts\":\"$ts\",\n";
$json .= "\"tw\":\"$tw\",\n";
$json .= "\"jitsi\":\"$jitsi\",\n";
$json .= "\"chat\":\"$chat\",\n";
$json .= "\"btc\":\"$btc\",\n";
$json .= "\"btctxt\":\"$btctxt\",\n";
$json .= "\"eth\":\"$eth\",\n";
$json .= "\"ethtxt\":\"$ethtxt\",\n";
$json .= "\"shopify\":\"$shopify\",\n";
$json .= "\"shopifytxt\":\"$shopifytxt\",\n";
$json .= "\"squareup\":\"$squareup\",\n";
$json .= "\"squareuptxt\":\"$squareuptxt\",\n";
$json .= "\"stripe\":\"$stripe\",\n";
$json .= "\"stripetxt\":\"$stripetxt\",\n";
$json .= "\"dm\":\"$dm\",\n";
$json .= "\"dmtxt\":\"$dmtxt\",\n";
$json .= "\"dr\":\"$dr\",\n";
$json .= "\"drtxt\":\"$drtxt\",\n";
$json .= "\"gp\":\"$gp\",\n";
$json .= "\"gptxt\":\"$gptxt\",\n";
$json .= "\"js\":\"$js\",\n";
$json .= "\"jstxt\":\"$jstxt\",\n";
$json .= "\"wm\":\"$wm\",\n";
$json .= "\"wmtxt\":\"$wmtxt\",\n";
$json .= "\"zh\":\"$zh\",\n";
$json .= "\"zhtxt\":\"$zhtxt\",\n";
$json .= "\"itm\":\"$itm\",\n";
$json .= "\"cnt\":\"$cnt\",\n";
$json .= "\"amt\":\"$amt\",\n";
$json .= "\"note\":\"$note\"\n";
$json .= "}\n";
$json .= "]}";
$htmout .= $htmout_table_head;
$htmout .= $htmout_table_body;
$htmout .= " </table>\n";
if( $fmt == "psv" ) { print($psv); exit; }
if( $fmt == "csv" ) { print($csv); exit; }
if( $fmt == "json" ) {
header('Content-type: application/json');
print($json); exit;
}
if( $fmt == "txt" ) { print($txt); exit; }
if( $fmt == "html" ) { print($htmout); exit; }
print( $psv );
# main rowno|ord|no|id|status|dttm|grp|item|logo|
# coffee coffee_id|coffee_url|coffee_tn|
# books fb|fbtxt|pdf|pdftxt|gif|giftxt|
# media mp3|mp3txt|mp4|mp4txt|bc|bctxt|rm|rmtxt|vm|vmtxt|yt|yttxt|
# views pn|pntxt|sl|sltxt|tl|tltxt|tx|txtxt|zm|zmtxt|
# contacts hostid|host|home|name|email|phn|
# smedia fab|gab|li|pl|ss|ts|tw|jitsi|chat|
# biz btc|btctxt|eth|ethtxt|shopify|shopifytxt|squareup|squareuptxt|stripe|stripetxt|
# amedia dm|dmtxt|dr|drtxt|gp|gptxt|js|jstxt|wm|wmtxt|zh|zhtxt|
# notes itm|cnt|amt|note
exit;
}
if( isset($_REQUEST['kogo_db3']) || isset($_REQUEST['kogo_db3'] )) {
$gid=""; $fmt="";
if( isset( $_REQUEST['kogo_db3'] )) { $gid=$_REQUEST['kogo_db3']; }
if( isset( $_REQUEST['fmt'] )) { $fmt=$_REQUEST['fmt']; }
$txt=""; $csv=""; $psv="";
$htmout=""; $htmout_table_head=""; $htmout_table_body="";
# print( "<h1>BUGS_400 gid=$gid fmt=$fmt</h1>" );
$json="{ \"kogo\": [\n";
$htmout_table_head = "<table id=table_$gid>\n";
$htmout_table_head .= "<tr><td style='text-align:center' colspan=14>gameid: $gid</td></tr>\n";
$htmout_table_head .= "<tr>";
$htmout_table_head .= "<td>gid</td>";
$htmout_table_head .= "<td>dttm</td>";
$htmout_table_head .= "<td>pb</td>";
$htmout_table_head .= "<td>pw</td>";
$htmout_table_head .= "<td>bxlim</td>";
$htmout_table_head .= "<td>bylim</td>";
$htmout_table_head .= "<td>bhandi</td>";
$htmout_table_head .= "<td>t</td>";
$htmout_table_head .= "<td>x</td>";
$htmout_table_head .= "<td>y</td>";
$htmout_table_head .= "<td>td</td>";
$htmout_table_head .= "<td>tdx</td>";
$htmout_table_head .= "<td>tdy</td>";
$htmout_table_head .= "<td>note</td>";
$htmout_table_head .= "</tr>\n";
$db3fil="kogo.db3"; $fld=""; $output = "";
$sql="select * from games where gid='$gid'";
# $bxbys = sqlq( $db3fil, $sql, $fld );
$pdo = newpdo($db3fil);
foreach( $pdo->query($sql) as $row ) {
$dttm=$row['dttm'];
$pb=$row['pb'];
$pw=$row['pw'];
$bxlim=$row['bxlim'];
$bylim=$row['bylim'];
$bhandi=$row['bhandi'];
$bhandi=$row['bhandi'];
$t=$row['t'];
$x=$row['x'];
$y=$row['y'];
$td=$row['td'];
$tdx=$row['tdx'];
$tdy=$row['tdy'];
$note=$row['note'];
$psv .= "$gid|";
$psv .= "$dttm|";
$psv .= "$pb|";
$psv .= "$pw|";
$psv .= "$bxlim|";
$psv .= "$bylim|";
$psv .= "$bhandi|";
$psv .= "$t|";
$psv .= "$x|";
$psv .= "$y|";
$psv .= "$td|";
$psv .= "$tdx|";
$psv .= "$tdy|";
$psv .= "$note<br>\n";
$json .= "{\n";
$json .= "\"gid\":\"$gid\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"pb\":\"$pb\",\n";
$json .= "\"pw\":\"$pw\",\n";
$json .= "\"bxlim\":\"$bxlim\",\n";
$json .= "\"bylim\":\"$bylim\",\n";
$json .= "\"bhandi\":\"$bhandi\",\n";
$json .= "\"t\":\"$t\",\n";
$json .= "\"x\":\"$x\",\n";
$json .= "\"y\":\"$y\",\n";
$json .= "\"td\":\"$td\",\n";
$json .= "\"tdx\":\"$tdx\",\n";
$json .= "\"tdy\":\"$tdy\",\n";
$json .= "\"note\":\"$note\"\n";
$json .= "},\n";
$htmout_table_body .= "<tr>";
$htmout_table_body .= "<td>".$row['gid']."</td>";
$htmout_table_body .= "<td>".$row['dttm']."</td>";
$htmout_table_body .= "<td>".$row['pb']."</td>";
$htmout_table_body .= "<td>".$row['pw']."</td>";
$htmout_table_body .= "<td>".$row['bxlim']."</td>";
$htmout_table_body .= "<td>".$row['bylim']."</td>";
$htmout_table_body .= "<td>".$row['bhandi']."</td>";
$htmout_table_body .= "<td>".$row['t']."</td>";
$htmout_table_body .= "<td>".$row['x']."</td>";
$htmout_table_body .= "<td>".$row['y']."</td>";
$htmout_table_body .= "<td>".$row['td']."</td>";
$htmout_table_body .= "<td>".$row['tdx']."</td>";
$htmout_table_body .= "<td>".$row['tdy']."</td>";
$htmout_table_body .= "<td>".$row['note']."</td>";
$htmout_table_body .= "</tr>\n";
}
$csv=str_replace("|",",",$psv);
$txt=str_replace("|"," ",$psv);
$json .= "{\n";
$json .= "\"gid\":\"$gid\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"pb\":\"$pb\",\n";
$json .= "\"pw\":\"$pw\",\n";
$json .= "\"bxlim\":\"$bxlim\",\n";
$json .= "\"bylim\":\"$bylim\",\n";
$json .= "\"bhandi\":\"$bhandi\",\n";
$json .= "\"t\":\"$t\",\n";
$json .= "\"x\":\"\",\n";
$json .= "\"y\":\"\",\n";
$json .= "\"td\":\"\",\n";
$json .= "\"tdx\":\"$tdx\",\n";
$json .= "\"tdy\":\"$tdy\",\n";
$json .= "\"note\":\"nextmove\"\n";
$json .= "}\n";
$json .= "]}";
$htmout .= $htmout_table_head;
$htmout .= $htmout_table_body;
$htmout .= " </table>\n";
# printf( "BUGS_2390: val=[$val] fld=[$fld] row=[$row]<br>\n" );
if( $fmt == "psv" ) { print($psv); exit; }
if( $fmt == "csv" ) { print($csv); exit; }
if( $fmt == "json" ) {
header('Content-type: application/json');
print($json); exit;
}
if( $fmt == "txt" ) { print($txt); exit; }
if( $fmt == "html" ) { print($htmout); exit; }
print( $psv );
exit;
}
if( isset($_REQUEST['kogo_bxbys']) || isset($_REQUEST['kogo_bxbys'] )) {
$bxbyid=$_REQUEST['kogo_bxbys'];
$htmout = "";
$bxbys=""; $t=1; $bxlim=19; $bylim=19;
$bxbyss = array();
$bxbyss['a'] = "1,1 1,2 1,3 1,4";
$bxbyss['b'] = "10,1 10,2 10,3 10,4";
$bxbyss['c'] = "19,1 19,2 19,3 19,4";
$bxbyss['ko'] = "1,2 3,2 2,1 2,3 2,3 3,4";
$bxbys=""; $bxbys_head=""; $bxbys_body="";$pb="pd"; $pw="pw";
$bxlim=19; $bylim=19; $bhandi=9;$t=0;$x=0;$y=0;$td=0;$tlim=0;$tdx=0;$tdy=0;
$dttm="20211203_1830";
if( $bxbyid == "" ) {
$htmout = "<h1>MSG_421 KOGO_BXBYS=$bxbyid $progid?kogo_bxbys=$bxbyid<h1>\n";
$tlim=$bxlim*$bylim;
for( $bx=1; $bx<$bxlim; $bx++ ) {
for( $by=1; $by<$bylim; $by++ ) {
$bxbys_body .= "$bxbyid,$t,$bx,$by,$td,$tdx,$tdy<br>\n";
$t=$t+1;
}
}
$bxbys_head="$bxbyid,$dttm,$pb,$pw,$bxlim,$bylim,$bhandi,$tlim,$tdx,$tdy<br>\n";
}
else {
$bxbys_body="";
if( ! isset( $bxbyss[$bxbyid] )) { print( "<h1>ERR_420 NOTFOUND bxbyid=$bxbyid</h1>"); exit;}
$bxbys = $bxbyss[$bxbyid]; $xyd="";
$tlim = count(explode(" ",$bxbys));
for( $t=0; $t<$tlim; $t++ ) {
$bx=""; $by=""; $td="";
$xyd=explode(" ",$bxbys);
$commas=count(explode(",",$xyd[$t]));
$bx = explode(",",$xyd[$t])[0];
if( $commas>1 ) {
$by = explode(",",$xyd[$t])[1];
}
if( $commas>2 ) {
$td = explode(",",$xyd[$t])[2];
if( isOdd($td)) { $tdx=$tdx+1; } else { $tdy=$tdx+1; }
}
$t1=$t+1;
$bxbys_body .= "$bxbyid,$t1,$bx,$by,$td<br>\n";
}
$bxbys_head="$bxbyid,$dttm,$pb,$pw,$bxlim,$bylim,$bhandi,$tlim,$tdx,$tdy<br>\n";
}
$bxbys = "";
$bxbys .= $bxbys_head . $bxbys_body;
# $htmout = "<h1>MSG_412 KOGO_BXBYS= $progid?todo=$kogo_bxbys<h1>\n";
print($bxbys);
exit;
}
if( isset($_REQUEST['kogo']) || isset($_REQUEST['kogo'] )) {
$kogo=$_REQUEST['kogo'];
if( $kogo == "" ) {
$htmout = "<h1>MSG_411 TODO=KOGO $progid?todo=$todo<h1>\n";
}
$htmout = "<h1>MSG_412 TODO=KOGO $progid?todo=$todo<h1>\n";
print($htmout);
exit;
}
if( isset($_REQUEST['todo']) || isset($_REQUEST['todo'] )) {
print( "BUGS_23860 main_todo() REQUEST_todo<br>\n" );
$todo="";
if( isset($_REQUEST['todo'] )) {
$request=$_REQUEST['todo'];
if( $request != "" ) { $todo=$request; }
print( "BUGS_23870 FINDIDS todo=$todo request=$request<br>\n");
}
if( isset($_REQUEST['fmt'] )) {$fmt=$_REQUEST['fmt'];}
$idfinds_ko='mp3s mp4s pdfs fbs zms yts bcs txts htmls';
# yts|find yt/txt -type f -maxdepth 1 -name "ytlist_202111*.txt" -exec cat {} \; | grep "youtube" | head -100
# bcs|find yt/txt -type f -maxdepth 1 -name "ytlist_202111*.txt" -exec cat {} \; | grep "bitchute" | head -100
# htmls|find yt/txt -type f -maxdepth 1 -name "ytlist_202111*.txt" -exec cat {} \; | grep ".html" | head -100
$idfinds='
mp4s_root|find /kb/vid -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp4s_dotdot|find ../kb/vid -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp4s|find ./mp4 -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp3s|find ../kb/aud/mp3 -type f -name "*.mp3"
pdfs|find pdf -type f -name "*.pdf"
pdfs1|find /pdf -type f -name "*.pdf"
pdfs2|find ./pdf -type f -name "*.pdf"
fbs|find fb -type d -name "pages" # fb
zms|find zm -type f -name "0-0-0.jpg" # zm
ka_mp4s|find ka/vid -type f -name "*.mp4" -o -name "*.webm"
ka_mp3s|find ka/aud -type f -name "*.mp3"
ka_pdfs|find ka/pdf -type f -name "*.pdf"
ka_fbs|find ka/fb -type d -name "pages" # fb
ka_zms|find ka/zm -type f -name "0-0-0.jpg" # zm
';
# ka_fbs|find fb -type f -name "index.html" # fb
# ka_zms|find zm -type f -name "zm*.htm*" # zm
# fbs|find ../zm -type f -name "zm*.htm*" # fb
# zms|find ../zm -type f -name "zm*.htm*" # zm
$idfinds_big='
mp4s|find /kb/vid -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp3s|find /kb/aud/mp3 -type f -name "*.mp3"
pdfs|find /pdf -type f -name "*.pdf"
ka_pdfs|find pdf -type f -name "*.pdf"
ko|find pdf -type f -maxdepth 1 -name "*.pdf"
kups|find ./kups -type f -name "*.*"
imgs|find ./imgs -type f -name "*.*"
jsons|find pdf -type f -name "*.json"
host_list|cat ./kb/media/host_list.psv
host_list_ka|cat ./kb/media/host_list_ka.psv
media_list|cat ./kb/media/media_list.psv
media_list_ka|cat ./kb/media/media_list_ka.psv
coffeec_list|cat ./kb/media/coffeec_list.psv
coffeec_list_ka|cat /kb/media/coffeec_list_ka.psv
coffee_list|cat /kb/media/coffee_list.psv
cat_ko_coffeeshop_psv|cat ko_coffeeshop.psv
cat_ko_coffeeshop_csv|cat ko_coffeeshop.csv
sql3_kups|select * from kups
sql3_ko_coffeeshop|select * from ko_coffeeshop
sql3_host_list|select * from host_list
sql3_host_list_ka|select * from host_list_ka
sql3_media_list|select * from media_list
sql3_media_list_ka|select * from media_list_ka
sql3_coffeec_list|select * from coffeec_list
sql3_coffeec_list_ka|select * from coffeec_list_ka
sql3_coffee_list|select * from coffee_list
sql3_coffee_list_ka|select * from coffee_list_ka
txts|find txt -type f -name "*.txt"
pns|find pn/imgs -type f -maxdepth 1 -name "*.jpg"
pdf_ko|find pdf -type f -name "*ko*.pdf"
pdf_iperms|find pdf -type f -name "*iperms*.pdf"
pdf_jtfdc|find pdf -type f -name "*jtfdc*.pdf"
pdf1|find pdf -type f -maxdepth 1 -name "*.pdf"
mp3s1|find kb/aud/mp3 -type f -maxdepth 1 -name "*.mp3"
yts|find kb/media/ -type f -maxdepth 1 -name "ko_media_yt.txt" -exec cat {} \; | grep "youtube" | head -100
bcs|find kb/media -type f -maxdepth 1 -name "ko_media_bc.txt" -exec cat {} \; | grep "bitchute" | head -100
htmls|find kb/media -type f -maxdepth 1 -name "ko_media_ht.txt" -exec cat {} \; | grep ".html" | head -100
pagesimgs|find ./pages -type f -maxdepth 1 -name "*.jpg"; find ./imgs -type f -maxdepth 1 -name "*.jpg" | grep -v "tn/";
pages|find fb/pages -type f -maxdepth 1 -name "*.jpg"
pdfs1|find pdf -type f -maxdepth 1 -name "*.pdf"
fbd1|find fb -type d -maxdepth 1 -name "*"
txts|find txt -type f -maxdepth 2 -name "*.txt"
htms|find . -type f -maxdepth 1 -name "??.html"
dirs_mp3|find kb/aud -type d -maxdepth 3 -name "*"
dirs_mp4|find kb/vid -type d -maxdepth 3 -name "*"
dirs_pdf|find pdf -type d -maxdepth 3 -name "*"
dirs_yts|find yt/txt -type d -maxdepth 3 -name "ytlist_*.txt"
dirs_fb|find fb -type d -maxdepth 1 -name "*"
dirs_pn|find pn -type d -maxdepth 3 -name "*"
dirs_tl|find tl -type d -maxdepth 3 -name "*"
dirs_zn|find tl -type d -maxdepth 3 -name "*"
';
$idfinds_tests='
mp3_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
mp4_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
pdf_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
txt_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
htm_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
yt_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
fb_today|fb/mars
pn_today|pn/imgs/pano_creek.jpg
tl_todatoday|
zm_todatoday|
mp3s_n|find kb/aud/mp3 -type f -name "<n>.mp3"
mp4s2|find kb/vid/jkwii -type f -maxdepth <d> f -name "<n>.mp4"
mp4s_p|find kb/vid/<p> -type f -maxdepth <d> -name "<n>.mp4"
mp4s_n|find kb/vid/<p> -type f -maxdepth <d> -name "<n>.mp4"
mp4_p|find kb/vid -type d -maxdepth <d> -name "<n>"
yts|cat /yt/txt/ytlist.txt | grep "<n>" | head -100
yts_lim|cat /yt/txt/ytlist.txt | grep "<n>" | head -<lim>
ht_mp3|kb/aud/mp3/library_of_congress.mp3
ht_mp4|kb/vid/jkwii/dutch_jackson_weightup.mp4
ht_yt||https:#www.youtube.com/watch?v=wQz5aG2tnd4|vladvt_megalithic_inca
ht_png|imgs/btn/koeye.png
ht_jpg|imgs/bg/bg_newton05b.jpg
ht_gif|imgs/gif/gifset_knots/knot1.gif
ht_zm|/index_zm.html
ht_zmd|/zm
ht_tl|/index_tl.html
ht_tld|/tl
find|find <p> -type f -maxdepth <lim> -name "<n>"
mp4s_jtfdc|find kb/vid -type f -name "jtfdc*.mp4"
gifd1|find imgs/gif -type d -maxdepth 2 -name "*"
gifs|find imgs/gif -type f -maxdepth 2 -name "*.gif"
pdfs|find pdf -type f -name "*.pdf"
pdfs2|find pdf/pdf -type f -maxdepth 1 -name "*.pdf"
fbd1|find fb -type d -maxdepth 1 -name "*"
fbds|find fb -type d -name "*"
pages|find fb/pages -type f -maxdepth 1 -name "*.jpg" \| head -5
pages_fb|find fb/pages -type f -maxdepth 1 -name "*.jpg"
pagesimgs|find ./pages -type f -maxdepth 1 -name "*.jpg"; find ./imgs -type f -maxdepth 1 -name "*.jpg";
topdirs|find / -type d -maxdepth 1 -name "??";
sh_ka1|./ka1.sh
sh_cp|find ./pages -type f -maxdepth 1 -name "*.jpg" | awk \'{ print "convert "$0" -resize 200x tn/tn_"$0" # "NF }\' | sed "s/jpg /png /"
sql3_sel_db3tbllim|sqlite3 <db3> "sel * from <tbl> limit <lim>";
sql3_sel_tbllim|sqlite3 ko.db3 "sel * from <tbl> limit <lim>";
sql3_tables|sqlite3 ko.db3 .tables
sql3_schema|sqlite3 ko.db3 .schema
sql3_files|sqlite3 ko.db3 "select * from files"
sql3_ko_coffee|sqlite3 ko.db3 "select * from coffee_list"
sql3_ko_media|sqlite3 ko.db3 "select * from media_list"
sql3_mp3|sqlite3 ko.db3 "select * from mp3"
sql3_mp4|sqlite3 ko.db3 "select * from mp4"
sql3_mp3|sqlite3 ko.db3 "select * from jpg"
sql3_books|sqlite3 ko.db3 "select * from books"
fb/iperms/pages|find fb/iperms/pages -type f -maxdepth 1 -name "*.jpg"
fb/konet/pages|find fb/konet/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdc/pages|find fb/jtfdc_pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdcr/pages|find fb/jtfdcr/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfinc/pages|find fb/jtfinc/pages -type f -maxdepth 1 -name "*.jpg"
fb/kt/pages|find fb/kt/pages -type f -maxdepth 1 -name "*.jpg"
fb/iperms/pages|find fb/iperms/pages -type f -maxdepth 1 -name "*.jpg"
fb/konet/pages|find fb/konet/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdc/pages|find fb/jtfdc_pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdcr/pages|find fb/jtfdcr/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfinc/pages|find fb/jtfinc/pages -type f -maxdepth 1 -name "*.jpg"
fb/kt/pages|find fb/kt/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/go/pages|find fb/go/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/kou/pages|find fb/kou/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/royal1/pages|find fb/royal1/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/iperms/imgs|find fb/iperms/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/konet/imgs|find fb/konet/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/jtfdc/imgs|find fb/jtfdc_imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/jtfdcr/imgs|find fb/jtfdcr/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/jtfinc/imgs|find fb/jtfinc/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/kt/imgs|find fb/kt/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/go/imgs|find fb/go/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/kou/imgs|find fb/kou/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/royal1/imgs|find fb/royal1/imgs -type f -maxdepth 1 -name "<n>.jpg"
tls|find tl -type f -maxdepth 1 -name "<*>.json"
zms|find zm -type f -name "0-0-0.jpg"
pns|find pn -type f -name "*.jpg"
du|du -h -d 1 .
du_dp|du -h -d <d>
';
# du -h --max-depth 1 . # bh
# du -h -d 1 . # depth 1
# du -h -depth . # depthtot
# print( "<h1>BUGS_24070 todo=$todo idfinds=$idfinds</h1><br>\n" );
$ids=explode("\n",$idfinds);
$htmout="";
$list="";
$todo="";
if( isset($_REQUEST['todo'])) { $todo=$_REQUEST['todo']; }
$db2=""; if( isset($_REQUEST['db2'])) { $db3=$_REQUEST['db2']; }
$db3=""; if( isset($_REQUEST['db3'])) { $db3=$_REQUEST['db3']; }
$tbl=""; if( isset($_REQUEST['tbl'])) { $tbl=$_REQUEST['tbl']; }
$sel=""; if( isset($_REQUEST['sel'])) { $sel=$_REQUEST['sel']; }
$fld=""; if( isset($_REQUEST['fld'])) { $fld=$_REQUEST['fld']; }
$val=""; if( isset($_REQUEST['val'])) { $val=$_REQUEST['val']; }
$fmt=""; if( isset($_REQUEST['fmt'])) { $fmt=$_REQUEST['fmt']; }
$lim=""; if( isset($_REQUEST['lim'])) { $lim=$_REQUEST['lim']; }
$a=""; if( isset($_REQUEST['a'])) { $a=$_REQUEST['a']; }
$b=""; if( isset($_REQUEST['b'])) { $b=$_REQUEST['b']; }
$c=""; if( isset($_REQUEST['c'])) { $c=$_REQUEST['c']; }
$d=""; if( isset($_REQUEST['d'])) { $d=$_REQUEST['d']; }
$d=""; if( isset($_REQUEST['d'])) { $d=$_REQUEST['d']; }
$e=""; if( isset($_REQUEST['e'])) { $e=$_REQUEST['e']; }
$f=""; if( isset($_REQUEST['f'])) { $f=$_REQUEST['f']; }
$g=""; if( isset($_REQUEST['g'])) { $g=$_REQUEST['g']; }
$h=""; if( isset($_REQUEST['h'])) { $h=$_REQUEST['h']; }
$i=""; if( isset($_REQUEST['i'])) { $i=$_REQUEST['i']; }
$j=""; if( isset($_REQUEST['j'])) { $j=$_REQUEST['j']; }
$k=""; if( isset($_REQUEST['k'])) { $k=$_REQUEST['k']; }
$l=""; if( isset($_REQUEST['l'])) { $l=$_REQUEST['l']; }
$m=""; if( isset($_REQUEST['m'])) { $m=$_REQUEST['m']; }
$n=""; if( isset($_REQUEST['n'])) { $n=$_REQUEST['n']; }
$o=""; if( isset($_REQUEST['o'])) { $o=$_REQUEST['o']; }
$p=""; if( isset($_REQUEST['p'])) { $p=$_REQUEST['p']; }
$q=""; if( isset($_REQUEST['q'])) { $q=$_REQUEST['q']; }
$r=""; if( isset($_REQUEST['r'])) { $r=$_REQUEST['r']; }
$s=""; if( isset($_REQUEST['s'])) { $s=$_REQUEST['s']; }
$t=""; if( isset($_REQUEST['t'])) { $t=$_REQUEST['t']; }
$u=""; if( isset($_REQUEST['u'])) { $u=$_REQUEST['u']; }
$v=""; if( isset($_REQUEST['v'])) { $v=$_REQUEST['v']; }
$w=""; if( isset($_REQUEST['w'])) { $w=$_REQUEST['w']; }
$x=""; if( isset($_REQUEST['x'])) { $x=$_REQUEST['x']; }
$y=""; if( isset($_REQUEST['y'])) { $y=$_REQUEST['y']; }
$z=""; if( isset($_REQUEST['z'])) { $z=$_REQUEST['z']; }
$ids=explode("\n",$idfinds);
$htmout="";
$list="";
$fmt="";
print("BUGS_24090 TODO todo=$todo db3=$db3 ids=$ids" );
if( isset($_REQUEST['fmt'])) { $fmt=$_REQUEST['fmt']; }
if(( $todo == "" )
|| ( $todo == "0" )
|| ( $todo == "list" )
|| ( $todo == "menu" )) {
print( "<h1>BUGS_24100 MENU todo=$todo</h1><br>\n" );
$htmout .= "<html>\n";
$htmout .= "<head>\n";
$htmout .= " <title>$progid $dttm todo</title>\n";
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen>\n";
# $htmout .= "<h1>todo</h1>\n";
$htmout .= "<a href=/index.html target=_blank>";
$htmout .= "<img src=ko.png height=20>";
$htmout .= "</a>\n";
$htmout .= "       ";
$htmout .= "$progid $dttm";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<table id=table_todo>";
$htmout .= "<tr><td>j</td><td width=100 >url</td><td width=125>id</td><td width=400>find</td></tr>\n";
for( $j=0; $j<count($ids); $j++ ) {
$line=$ids[$j];
$list .= $line;
if( $line === "" ) { continue; }
if( preg_match("/^#/", $line, $matches )) { continue; }
if( preg_match("/^</", $line, $matches)) {
# $list .= $line;
# $htmout .= $line;
# print( "<h2>MSG_385 HTMFMT line=$line</h2><br>\n" );
continue;
}
$id=explode("|",$line)[0];
if( $id === "" ) { continue; }
$find=""; $findtype="";
if( count(explode("|", $line)) > 1 ) {
$idpipe=$id."|";
$find=str_replace($idpipe,"",$line);
}
else {
$find=explode("|",$line)[1];
}
$matches2="";
# print( "<h1>BUGS_680 todo=$todo j=$j id=$id line=$line</h1><br>\n" );
# if( str_contains( $find, "# fb" )) { $findtype="fb"; }
# if( str_contains( $find, "# zm" )) { $findtype="zm"; }
$find=str_replace('<fmt>',$fmt, $find, $matches2);
$find=str_replace('<lim>',$lim, $find, $matches2);
$find=str_replace('<db3>',$db3, $find, $matches2);
$find=str_replace('<tbl>',$tbl, $find, $matches2);
$find=str_replace('<sel>',$sel, $find, $matches2);
$find=str_replace('<fld>',$fld, $find, $matches2);
$find=str_replace('<a>',$a, $find, $matches2);
$find=str_replace('<b>',$b, $find, $matches2);
$find=str_replace('<c>',$c, $find, $matches2);
$find=str_replace('<d>',$d, $find, $matches2);
$find=str_replace('<e>',$e, $find, $matches2);
$find=str_replace('<f>',$f, $find, $matches2);
$find=str_replace('<g>',$g, $find, $matches2);
$find=str_replace('<h>',$h, $find, $matches2);
$find=str_replace('<i>',$i, $find, $matches2);
$find=str_replace('<j>',$j, $find, $matches2);
$find=str_replace('<k>',$k, $find, $matches2);
$find=str_replace('<l>',$l, $find, $matches2);
$find=str_replace('<m>',$m, $find, $matches2);
$find=str_replace('<n>',$n, $find, $matches2);
$find=str_replace('<o>',$o, $find, $matches2);
$find=str_replace('<p>',$p, $find, $matches2);
$find=str_replace('<q>',$q, $find, $matches2);
$find=str_replace('<r>',$r, $find, $matches2);
$find=str_replace('<s>',$s, $find, $matches2);
$find=str_replace('<t>',$t, $find, $matches2);
$find=str_replace('<u>',$u, $find, $matches2);
$find=str_replace('<v>',$v, $find, $matches2);
$find=str_replace('<w>',$w, $find, $matches2);
$find=str_replace('<x>',$x, $find, $matches2);
$find=str_replace('<y>',$y, $find, $matches2);
$find=str_replace('<x>',$z, $find, $matches2);
# print( "<h3>BUGS_460 j=$j id=$id p=$p find=$find</h3>\n") ;
$k=$j+1;
$htmout .= "<tr>";
$htmout .= "<td>$k</td>";
$htmout .= "<td width=100>";
# $htmout .= "<a href=/ko.php?todo=$id target=_blank>\n";
$htmout .= "<a href=./ko_center.php?todo=$id target=_blank>\n";
$htmout .= "<img src=/imgs/btn/koeye.png height=25>";
$htmout .= "</a>";
$htmout .= "</td>\n";
$htmout .= "<td width=125><b>$id</b></td>";
$htmout .= "<td width=470>$find</td>";
$htmout .= "</tr>";
}
$htmout .= " </table>";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
if( $fmt == "list" ) { print( $list ); }
else { print( $htmout ); }
exit;
}
if( isset( $_REQUEST['todo'] )) {
$todo=$_REQUEST['todo'];
}
if( $todo == "ko_media_psv" ) {
$psvfil="ko_media.psv";
$fmt="psv";
$options=array($psvfil,$fmt);
if( file_exists( $psvfil )) {
$psv=psv_ko_media($options);
}
else {
$psv="ERR_2021 NOTFOUND psvfil=$psvfil fmt=$fmt";
}
print($psv);
exit;
}
if( $todo == "ko_coffeeshop_sql3" ) {
$db3fil="ko.db3";
$fmt="html";
$options=array($db3fil,$fmt);
$sqlout=sql3_ko_coffeeshop($options);
print_r($sqlout);
exit;
}
if( $todo == "sql3_ko_media" ) {
$db3fil="ko.db3";
$fmt="html";
$options=array($db3fil,$fmt);
$sqlout=sql3_ko_media($options);
print($sqlout);
exit;
}
$min=1; $max=3;
if( $todo == "ko" ) {
$id=$todo;
$min=0;$max=0;
$min=1; $max=count(explode(" ",$idfinds_ko))-1;
$random=random_int($min,$max);
$todo=explode(" ",$idfinds_ko)[$random];
}
for( $j=0; $j<count($ids); $j++) {
$line=$ids[$j];
$id=explode("|",$line)[0];
# print( "<h1>BUGS_871 j=$j id=$id line=$line todo=$todo</h1><br>\n" );
if( $id === "" ) { continue; }
if( $id != $todo ) {continue; }
# print( "<h1>BUGS_873 MATCH j=$j id=$id= todo=$todo= line=$line todo=$todo</h1><br>\n" );
# $find=explode("|",$line)[1];
$find=str_replace("$id|","", $line);
# print( "<h1>BUGS_675 id=$id find=$find line=$line</h1>" );
$list="";
$url=$find;
$url = urlcheck($url);
# print( "<h1>MSG_661 query_string=$query_string name=name id=$id find=$find</h1><br>\n" );
$find=str_replace_all($find);
# $find=str_replace("<n>", "$name", $find );
# print( "<h1>MSG_900 j=$j k=$k todo=$todo id=$id find=$find</h1><br>\n" );
$out = "";
# print( "<h1>BUGS_2056 find=$find</h1>" );
# pqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpq
exec( $find, $out, $err );
# bdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbd
$outcnt=count($out);
$script_filename=$_SERVER['SCRIPT_FILENAME']; # /Volumes/ka1tbr2/ht/ka/ko.php
$request_uri=$_SERVER['REQUEST_URI']; # /ka/ko.php?todo=ka_zms
$php_self=$_SERVER['PHP_SELF']; # /ka/ko.php
$query_string=$_SERVER['QUERY_STRING']; # todo=ka_zms
# if( $outcnt == 0 ) {
# $htmout = "";
# $htmout .= "<html><head><title>$request_uri NOTFOUND</title></head>\n";
# $htmout .= "<body bgcolor=wheat>\n";
# $htmout .= "<a href=$php_self target=_blank>";
# $htmout .= "<img src=/imgs/btn/ko.png height=50 border=0>$php_self</a>\n";
# $htmout .= "<h2>ERR_2080 NOTFOUND find=$find</h2>\n";
# $htmout .= "<h3>request_uri=$request_uri</h3>\n";
# $htmout .= "</body></html>\n";
# print( $htmout );
# phpinfo();
# $errtxt="<h2>ERR_2070 NOTFOUND find=$find</h2>\n";
# return($errtxt);
# }
# print( "<h1>BUGS_2060 outcnt=$outcnt fmt=$fmt out=".$out[2]."</h1>" );
$psv="";
$csv="";
$txt="";
$json="";
$json.="{\"todo\": [\n";
$dttm=date('Ymd_His');
$htmout = "";
$htmout .= "<html>\n";
$htmout .= "<head>\n";
$htmout .= " <title>todo=$todo $dttm</title>\n";
$icon="./favicon_ko64.ico";
# $htmout .= "<link rel=\"icon\" href=\"$icon\" type=\"image/icon\">\n";
$icon_png="koeye.png";
$icon_png="ko.png";
$icon_gif="koeye_handhither.gif";
# $htmout .= "<link rel=\"icon\" href=\"$icon_png\" type=\"image/png\">\n";
$htmout .= "<link rel=\"icon\" href=\"$icon_gif\" type=\"image/gif\">\n";
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen>\n";
$htmout .= " <div id=div_todo_$todo>\n";
$htmout .= " <h1>div_todo_$todo</h1>\n";
$htmout .= " <hr color=goldenrod>\n";
for( $j=0; $j< count($out); $j++ ) {
$line= $out[$j];
$txt .= $line."\n";
$psv .= $line."|\n";
$csv .= $line.",";
$json .= "{ \"j\":\"".$j."\", \"line\":\"".$line."\" },\n";
}
$psv .= preg_replace("/|$/", "", $psv );
$csv .= preg_replace("/|/", ",", $psv );
# $json .= preg_replace("/},$/", "}", $json );
# $json .= str_lreplace( ",$", "", $json );
$j=""; $line="";
$json .= "{ \"j\":\"".$j."\", \"line\":\"".$line."\" }\n";
# $json .= str_replace_last( ",", "" , $json );
$json .="]}\n\n";
$fmt="";
if( isset( $_REQUEST['fmt'] )) {$fmt=$_REQUEST['fmt']; }
# print( "<h1>BUGS_925 fmt=$fmt</h1>\n" );
if( $fmt == "txt" ) {
header('Content-type: text/plain');
print($txt); exit();
}
if( $fmt == "list" ) { print($txt);exit(); }
if( $fmt == "psv" ) { print($psv); exit(); }
if( $fmt == "csv" ) {
header('Content-type: text/csv');
print($csv); exit();
}
if( $fmt == "json" ) {
header('Content-type: application/json');
print( $json );
exit();
}
$k=1;
# if(! isset( $out[$k] )) {
# print( "<h1>MSG_2100 k=$k NOTFOUND \$out</h1>\n" );
# $url="./index.html?err=out";
# header('Location: '.$url);
# die();
# print( "<h1>MSG_2100 k=$k NOTFOUND \$out</h1>\n" );
# return($k);
# exit();
# }
$line="";
$out = [];
if( count($out) > 0 ) { $line=$out[$k]; }
# print( "<h1>MSG_2110 k=$k line=$line</h1>" );
# print( "<h1>MSG_2111 k=$k id=$id find=$find outcnt=$outcnt out0=".$out[0]." </h1><br>\n" );
# print( "<h2>MSG_704 out4=".$out[4]."</h2>" );
# print( "<h2>MSG_705 out5=".$out[5]."</h2>" );
# print( "<h2>MSG_706 out6=".$out[6]."</h2>" );
# print( "<h2>MSG_707 out7=".$out[7]."</h2>" );
$htmout_table = "";
$htmout_table .= "<table id=table_media>\n";
$htmout_table .= "<tr>";
$htmout_table .= "<td>j</td>";
$htmout_table .= "<td>k</td>";
$htmout_table .= "<td>tot</td>";
$htmout_table .= "<td>link</td>";
$htmout_table .= "<td>group</td>";
$htmout_table .= "<td width=400>base bugs_24480</td>";
$htmout_table .= "</tr>";
# $htmout_table .= "</table>";
$txt = "";
$psv = "";
$csv = "";
$sql = "";
$sql .= "insert into table files (\n";
$json = "";
$json .= "{\n";
# print( "<h1>BUGS_710 skiplist $htmout_table</table></h1>" );
$out_skiplist = skiplist($out);
$out=$out_skiplist;
$j=0; $k=0;
for( $j=0; $j<count($out); $j++ ) {
$k=$j+1;
$line = $out[$j]."\n";
$list .= $line."\n";
$pathfile = $line;
# print( "<h1>BUGS_950 j=$j k=$k line=$line</h1>" );
# $extension = pathinfo($pathfile, PATHINFO_EXTENSION);
$dirname=dirname($pathfile);
$group = str_replace("/","_", $dirname );
$temp= explode('.',$pathfile);
$ext = end($temp);
$base=basename($pathfile,".$ext");
$link = htmout_link($pathfile,'',$find);
# $url=$pathfile;
# $tn="/imgs/btn/koeye.png";
$txt .= "$line\n";
$psv .= "$j|$k|$outcnt|$pathfile|$link|$group|$base\n";
$csv .= "$j,$k,$outcnt,$pathfile,$link,$group,$base\n";
$sql .= "( 'j','k','outcnt',pathfile,'link','group','base' ),";
$json .= "{\n";
$json .= "'j':'$k', ";
$json .= " 'k':'$k', ";
$json .= "'outcnt':'$outcnt', ";
$json .= "'pathfile':'$pathfile', ";
$json .= "'link':'$link', ";
$json .= "'group':'$group', ";
$json .= "'base':'$base' ";
$json .= "},\n";
$htmout_table .= "<tr>";
$htmout_table .= "<td>$j</td>";
$htmout_table .= "<td>$k</td>";
$htmout_table .= "<td>$outcnt</td>";
$htmout_table .= "<td>".htmout_link($pathfile,'',$find)."</td>";
# $htmout_table .= "<td><img src=/imgs/btn/koeye_handhither.gif height=100></td>";
$htmout_table .= "<td>$group</td>";
$htmout_table .= "<td>$base</td>";
$htmout_table .= "</tr>\n";
# print( "<h3>BUGS_740 j=$j k=$k outcnt=$outcnt group=$group base=$base ext=$ext </h3>" );
$htmout_link=htmout_link($pathfile,'',$find);
# print( "<h3>BUGS_2020 j=$j k=$k pathfile=<$pathfile></h3>" );
# print( "<h3>BUGS_2021 j=$j k=$k htmout_link=<$htmout_link> find=$find</h3>" );
}
$json .= " }\n";
$matches = "";
$json = preg_replace( "/,}$/", "}", $matches );
$sql = preg_replace( "/,\)$/", ")", $matches );
$psv = preg_replace( "/|$/", "", $matches );
$csv = preg_replace( "/,$/", "", $matches );
$htmout_table .= " </table>";
$htmout .= "<hr color=goldenrod>";
$htmout .= $htmout_table;
$htmout .= "<hr color=goldenrod>";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
$fmt="";
if( isset($_REQUEST['fmt'])) { $fmt=$_REQUEST['fmt']; }
# print( "<h1>BUGS_1000 find=$find fmt=$fmt</h1>" );
if( $fmt == "txt" ) { print( $txt ); exit; }
if( $fmt == "psv" ) { print( $psv ); exit; }
if( $fmt == "csv" ) { print( $csv ); exit; }
if( $fmt == "sql" ) { print( $sql ); exit; }
if( $fmt == "json" ) {
header('Content-type: application/json');
print( $json );
exit;
}
if( $fmt == "html" ) { print( $htmout ); exit; }
print($htmout); exit;
print( "<h3>BUGS_1021 j=$j k=$k outcnt=$outcnt group=$group base=$base ext=$ext </h3>" );
}
# if( count($out) < 1 ) { print( "<h2>ERR_2160 NOTFOUND find=$find</h2>\n" ); }
$outcnt="";
$group="";
$base="";
$ext="";
# print( "<h3>BUGS_1022 j=$j k=$k outcnt=$outcnt group=$group base=$base ext=$ext </h3>" );
return($htmout);
exit;
}
if( isset($_REQUEST['ls-lat']) || isset($_REQUEST['ls'] )) {
if( isset($_REQUEST['ls-lat'])) {
$request_path=$_REQUEST['ls-lat'];
}
else {
$request_path=$_REQUEST['ls'];
}
# print( "<h1>BUGS_183 request_path=$request_path</h1><br>\n" );
if( $request_path === "" ) { exit; }
$pathparts = pathinfo($request_path);
$dirname=$pathparts['dirname'];
$basename=$pathparts['basename'];
$ext="";
if( isset($pathparts['extension'])) {
$ext=$pathparts['extension'];
}
$path=$dirname;
if( ! is_dir($path)) {
print( "\n<h1>ERR_122 LSLAT NOTFOUND path=$path</h1><br>\n");
exit;
}
$lscmd="ls $request_path";
if( isset($_SERVER['ls-lat'])) {
$lscmd="ls -lat $request_path";
}
# print( "\n<h1>MSG_199 LSLAT lscmd=$lscmd</h1><br>\n");
$htmout = "";
exec( $lscmd, $out, $err );
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
exit;
}
if( isset($_REQUEST['find'])) {
# 1 ?find=/fb/zc/pages/*.jpg
# 4 ?find=find $path -name $names
# 6 ?find=find $path -type d -name $names
# 6 ?find=find $path -maxdepth 2 -name $names
# 8 ?find=find $path -type d -maxdepth 2 -name $names
# 4 ?find=find $path -type d
# 6 ?find=find $path -type d -maxdepth $maxdepth
$request_find=""; $findargs=""; $findargs_len=0;
$request_find=$_REQUEST['find'];
$findargs = explode( " ", $request_find );
$findargs_len=count($findargs);
for( $j=0; $j<count($findargs); $j++ ) {
$findargs[$j]=str_replace("\"","",$findargs[$j]);
$findargs[$j]=str_replace("'","",$findargs[$j]);
}
# print( "<h1>BUGS_140 findargs_len=$findargs_len request_find=$request_find</h1><br>\n" );
$path="";
if( count($findargs) === 1 ) {
# print( "<h1>BUGS_141 findargs_len=$findargs_len request_find=$request_find</h1><br>\n" );
# $pathparts = pathinfo($request_find);
# $dirname=$pathparts['dirname'];
# $basename=$pathparts['basename'];
# $ext="";
# if( isset($pathparts['extension'])) {
# $ext=$pathparts['extension'];
# }
# print( "<h1>BUGS_161 dirname=$dirname basename=$basename request_find=$request_find</h1><br>\n" );
# $path=$dirname;
# $name=$basename;
$path="fb";
$type="d";
$maxdepth="1";
$name="??";
if( ! is_dir($path)) {
print( "<h1>ERR_163 NOTFOUND path=$path</h1><br>\n" );
exit;
}
$find="find $path -type $type -maxdepth $maxdepth -name \"$name\"";
# print( "<h1>MSG_164 FOUND path=$path name=$name</h1><br>\n" );
print( "<h1>MSG_2340 FOUND find=$find </h1><br>\n" );
exec( $find, $out, $err );
$htmout="";
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
# print( "<h1>MSG_161 find=$find htmout=$htmout</h1><br>\n" );
print( $htmout );
exit;
}
# print( "<h1>BUGS_150 path=$path request_find=$request_find</h1><br>\n" );
$path="";
$maxdepth="";
$type="";
$names="";
$query_string="";
if( isset( $_SERVER['QUERY_STRING'])) {
$query_string=$_SERVER['QUERY_STRING'];
}
# print( "<h1>BUGS_300 findargs_len=$findargs_len request_find=$request_find query_string=$query_string</h1><br>\n" );
if( $findargs_len === 2 ) {
print( "<h1>BUGS_142 findargs_len=$findargs_len request_find=$request_find</h1><br>\n" );
$path=$findargs[1];
$path=str_replace("\"","",$path );
if( ! is_dir($path)) {
print( "<h1>ERR_143 NOTFOUND path=$path=- request_find=$request_find</h1><br>\n" );
exit;
}
$path="fb"; $type="d"; $maxdepth="1"; $names="??";
$find="find $path -type $type -maxdepth $maxdepth -name \"$names\"";
exec($find,$out,$err);
print( "<h1>BUGS_2380 find=$find</h1><br>\n" );
$htmout="";
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
# phpinfo();
# $request_find=str_replace("%20"," ",$request_find);
exit;
}
if( $findargs_len === 3 ) {
print( "<h1>BUGS_303 findargs_len=$findargs_len $request_find=$request_find query_string=$query_string</h1><br>\n" );
exit;
}
# if( $findargs_len === 4 ) {
# print( "<h1>BUGS_304 findargs_len=$findargs_len $request_find=$request_find query_string=$query_string</h1><br>\n" );
# }
if( $findargs_len === 1 ) {
$path="fb";
$type="d";
$maxdepth="1";
$names="??";
$find="find $path -type $type -maxdepth $maxdepth -name \"$names\"";
exec( $find, $out, $err );
print( "BUGS_311 find=$find<br>\n" );
$htmout="";
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
# print_r($out);
exit;
}
# if( $findargs_len === 2 ) { exit; }
# if( $findargs_len === 3 ) { exit; }
# if( $findargs_len === 5 ) { exit; }
# if( $findargs_len === 7 ) { exit; }
if( $findargs_len > 8 ) { exit; }
# print( "<h1>BUGS_350 findargs_len=$findargs_len query_string=$query_string</h1>\n" );
if( $findargs_len === 1 ) {
# if( is_file($request_find)) {
# print( "<h1>BUGS_101 is_file FOUND request_find=$request_find</h1>");
# }
# else {
# print( "<h1>BUGS_102 is_file NOTFOUND request_find=$request_find</h1>");
# }
if( $request_find != "" ) {
$pathparts = pathinfo($request_find);
$dirname=$pathparts['dirname'];
$basename=$pathparts['basename'];
$ext="";
if( isset($pathparts['extension'])) {
$ext=$pathparts['extension'];
}
$path=$dirname;
$names=$basename;
$type="f";
if( $ext === "" ) {
$path=$request_find;
$type="";
$names="";
}
# print( "BUGS_150 dirname=$dirname names=$names ext=$ext<br>\n" );
# if( $basename === "" ) { $names=""; }
}
}
# ?find=find $path -name $names
# ?find=find $path -type $type
if( $findargs_len === 4 ) {
$path = $findargs[1];
if ($findargs[2] === "-type" ) { $type=$findargs[3]; }
if ($findargs[2] === "-maxdepth" ) { $maxdepth=$findargs[3]; }
if ($findargs[2] === "-name" ) { $names=$findargs[3]; }
# print( "<h1>BUGS_240 findargs3=".$findargs[3]." request_find=$request_find</h1><br>\n") ;
if( ! is_dir($path)) {
print( "<h1>BUGS_241 NOTFOUND path=$path request_find=$request_find</h1><br>\n") ;
exit;
}
# print( "<h1>BUGS_242 FOUND path=$path request_find=$request_find</h1><br>\n") ;
$find="find $path";
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) { $find .= " -name \"$names\""; }
# print( "<h1>BUGS_243 type=$type find=$find request_find=$request_find</h1><br>\n") ;
$htmout="";
exec($find, $out, $err );
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
# print( "<h1>BUGS_249 find=$find htmout=$htmout</h1><br>\n") ;
print( $htmout );
exit;
}
# ?find=find $path -type f -name $names
# ?find=find $path -maxdepth $maxdepth -name $names
# ?find=find $path -type d -maxdepth 1
if( $findargs_len === 6 ) {
# print( "<h1>BUGS_601 request_find=$request_find</h1><br>\n" );
$path="";
$type="";
$maxdepth="";
$names="";
$path = $findargs[1];
if( $findargs[2] === "-type" ) { $type=$findargs[3]; }
if( $findargs[2] === "-maxdepth" ) { $maxdepth=$findargs[3]; }
if( $findargs[2] === "-name" ) { $names=$findargs[3]; }
if( $findargs[4] === "-type" ) { $type=$findargs[5]; }
if( $findargs[4] === "-maxdepth" ) { $maxdepth=$findargs[5]; }
if( $findargs[4] === "-name" ) { $names=$findargs[5]; }
$find="find $path";
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) { $find .= " -name \"$names\""; }
$htmout="";
exec( $find, $out, $err );
for($j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
exit;
}
# ?find=find $path -type f -maxdepth $maxdepth -name $names
if( $findargs_len === 8 ) {
$path = $findargs[1];
if( ! is_dir($path)) { print( "<h1>NOTFOUND path=$path</h1><br>\n" ); exit; }
$find = "find $path";
if( $findargs[2] === "-type" ) { $type=$findargs[3]; }
if( $findargs[2] === "-maxdepth" ) { $maxdepth=$findargs[3]; }
if( $findargs[2] === "-name" ) { $names=$findargs[3]; }
if( $findargs[4] === "-type" ) { $type=$findargs[5]; }
if( $findargs[4] === "-maxdepth" ) { $maxdepth=$findargs[5]; }
if( $findargs[4] === "-name" ) { $names=$findargs[5]; }
if( $findargs[6] === "-type" ) { $type=$findargs[7]; }
if( $findargs[6] === "-maxdepth" ) { $maxdepth=$findargs[7]; }
if( $findargs[6] === "-name" ) { $names=$findargs[7]; }
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) { $find .= " -name \"$names\""; }
$htmout="";
# print( "<h1>BUGS_800 find=$find request_find=$request_find</h1><br>\n" );
exec( $find, $out, $err );
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
exit;
}
$find="find $path";
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) {
$names=str_replace("\"","",$names);
$names=str_replace("'","",$names);
$find .= " -name \"$names\"";
}
# $find="find $path -type $type -maxdepth $maxdepth -name \"$names\"";
# if( $names === "" ) {
# $find="find $path -type $type -maxdepth $maxdepth";
# }
# print( "<h1>BUGS_101 find=$find</h1>\n");
$htmout="";
$types="http html htm php mp4 mp3 jps png gif";
$l=0;
foreach( $types as $types ) {
if( preg_match( "/$type/", $find, $matches )) {
print( "MSG_680 l=$l type=$type find=$find<br>\n");
window.location($find);
exit;
}
$l++;
}
$url=$find;
# print( "MSG_681 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.http/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_682 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.html/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_683 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.htm/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_684 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.php/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_685 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.mp4/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_686 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.mp3/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_687 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.gif/", $url, $matches )) { window.open($url); exit; }
if( preg_match( "/.jpg/", $url, $matches )) { window.open($url); exit; }
if( preg_match( "/.png/", $url, $matches )) { window.open($url); exit; }
## $path="fb";
## $find="find $path -type f -maxdepth 1 -name \"*.*\"";
# if( is_dir($path)) {
## print( "<h1>MSG_271 find=$find</h1>\n" );
# exec( $find, $out, $err );
#
## print( "<h1>MSG_272 OUT find=$find</h1>\n" );
# $query_string="";
# if( isset($_SERVER['QUERY_STRING'] )) {
# $query_string=$_SERVER['QUERY_STRING'];
# }
## print( "<h1>MSG_273 OUT query_string=$query_string</h1>\n" );
## print_r($out);
# print_r($err);
# $outlen=count($out);
# $htmout="";
# $htmout .= "<hr color=goldenrod>\n";
# $list="";
# for( $j=0; $j<$outlen; $j++ ) {
# $htmout .= $out[$j]."<br>\n";
# $list .= $out[$j]."\n";
# }
# $htmout .= "<hr color=goldenrod>\n";
## print( "<h1>MSG_104 ERR</h1>\n" );
## print_r($err);
# $process = proc_open( $cmd, $descriptorspec, $pipes, $cwd_process );
# print( "<h1>MSG_250 LS DONE find=$find outlen=$outlen</h1>" );
# }
# else {
# print( "<h1>ERR_500 NOTFOUND path=$path request_find=$request_find query_string=$query_string</h1>\n" );
# exit();
# }
print( "<h1>MSG_900 LS DONE find=$find</h1>\n" );
if( $fmt == "list" ) { print ( $list ); return($list); }
if( $fmt == "list" ) { print ( $list ); return($list); }
print( $list );
return( $list );
# exit;
# }
# $path="fb";
# $find="find $path -type f -maxdepth 1 -name \"*.*\"";
if( is_dir($path)) {
# print( "<h1>MSG_271 find=$find</h1>\n" );
exec( $find, $out, $err );
# print( "<h1>MSG_272 OUT find=$find</h1>\n" );
$query_string="";
if( isset($_SERVER['QUERY_STRING'] )) {
$query_string=$_SERVER['QUERY_STRING'];
}
# print( "<h1>MSG_273 OUT query_string=$query_string</h1>\n" );
# print_r($out);
print_r($err);
$outlen=count($out);
$htmout="";
$htmout .= "<hr color=goldenrod>\n";
$list="";
for( $j=0; $j<$outlen; $j++ ) {
$htmout .= $out[$j]."<br>\n";
$list .= $out[$j]."\n";
}
$htmout .= "<hr color=goldenrod>\n";
# print( "<h1>MSG_104 ERR</h1>\n" );
# print_r($err);
# $process = proc_open( $cmd, $descriptorspec, $pipes, $cwd_process );
print( "<h1>MSG_250 LS DONE find=$find outlen=$outlen</h1>" );
}
else {
print( "<h1>ERR_500 NOTFOUND path=$path request_find=$request_find query_string=$query_string</h1>\n" );
exit();
}
# print( "<h1>MSG_109 LS DONE find=$find</h1>\n" );
# print( $htmout );
print( $list );
exit;
}
if( isset($_REQUEST['kolog'])) {
$db3file="ko.db3"; $tblname="kologs";
$todo=$_REQUEST['kolog'];
if( $todo == "" ) {$htmout=kolog($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "new" ) {$htmout=kolog_new($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "add" ) {$htmout=kolog_add($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "del" ) {$htmout=kolog_del($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "upd" ) {$htmout=kolog_upd($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "sel" ) {$htmout=kolog_sel($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "create" ) {$htmout=kolog_create($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "form" ) {$htmout=kolog_form($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "submit" ) {$htmout=kolog_submit($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "list" ) {$htmout=kolog_list($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "bugs" ) {$htmout=kolog_bugs($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "logs" ) {$htmout=kologs($db3file, $tblname, $args); print( $htmout ); exit; }
exit;
}
if( isset($_REQUEST['id'])) {
$id=$_REQUEST['id'];
if( $id == "bookmarkusb" ) {
$htmout=bookmarkusb();
# $htmout=bookmarkusb_form();
exit;
}
if( $id == "bookmarkusb_list" ) {
$htmout=bookmarkusb_list();
exit;
}
if( $id == "bookmarkusb_select" ) {
$htmout=bookmarkusb_select();
exit;
}
if( $id == "bookmarkusb_form" ) {
$htmout=bookmarkusb_form();
exit;
}
# print( "<h1>BUGS_100c REQUEST_id id=$id REQ=".$_REQUEST['id']."</h1><br>" );
}
# startup_ls();
# main_ka1();
# main_tl();
$htmlfile="index.html";
$htmout=read_htmlfile($htmlfile);
print( $htmout );
exit;
startup();
exit;
}
function main() {
global $progid;
$dttm=date('Ymd_His');
if( isset($_REQUEST['plupload'])) {
$args="args";
$htmout=plupload($args);
printf( $htmout );
exit;
}
if( isset($_REQUEST['contacts'])) {
$htmout="";
$htmout=contacts('');
# printf($htmout);
exit;
}
if( isset($_REQUEST['kov'])) {
$htmout="";
$htmout=kov('');
# printf($htmout);
exit;
}
if( isset($_REQUEST['leds'])) {
$htmout=leds('');
printf( $htmout );
exit;
}
if( isset($_REQUEST['lists'])) {
# $file=""; $dr=""; $j=0; $k=0; $htmout=""; $db3="ko.db3"; $tbl="items";
$file=""; $dr=""; $j=0; $k=0; $htmout=""; $db3="ko_todo.db3"; $tbl="items";
$lists=$_REQUEST['lists'];
$tbl=$lists;
if($_SERVER['DOCUMENT_ROOT']) { $dr=$_SERVER['DOCUMENT_ROOT']; }
$drfile="$dr$file";
$drdb3="$dr$db3";
if( isset($_REQUEST['db3'])) {
$htmout=""; $j=0; $k=0;
$db3=$_REQUEST['db3'];
$db3fil="$dr/$db3";
$sql="select * from $tbl";
$fld="";
if( ! is_file($db3fil)) {
printf( "BUGS_313 NOTFOUND db3fil=$db3fil<br>\n" );
exit;
}
# $htmout .= sqlq( $db3fil, $sql, $fld );
$pdo = newpdo($db3fil);
if( $tbl == "letter" ) {
$sql="select rowid,text,desc from $tbl";
$psv="rowid|text|desc\n";
$sql="select rowid,text,desc from $tbl";
foreach( $pdo->query($sql) as $row ) {
$rowid=$row['rowid'];
$text=$row['text'];
$desc=$row['desc'];
$psv.="$rowid|$text|$desc\n";
}
printf( $htmout."\n".$psv );
exit;
}
if( $tbl == "contacts" ) {
$sql="select rowid,* from $tbl";
$psv="rowid|id|name|phn|firm|url|email|note|action\n";
$sql="select rowid,* from $tbl";
foreach( $pdo->query($sql) as $row ) {
$rowid=$row['rowid'];
$id=$row['id'];
$name=$row['name'];
$phn=$row['phn'];
$firm=$row['firm'];
$url=$row['url'];
$email=$row['email'];
$note=$row['note'];
$action=$row['action'];
$psv.="$rowid|$id|$name|$phn|$firm|$url|$email|$note|$action\n";
}
printf( $htmout."\n".$psv );
exit;
}
if( $tbl == "leds" ) {
$sql="select rowid,* from $tbl";
$psv="ROWID|led_id|led_status|led_code|led_name|led_dttm|led_color|led_speed|led_type|led_date|led_cmd|led_cmdout|led_desc|led_misc|led_city|led_bldg|led_loc_code|led_floor|led_group|led_orgs|led_title|led_published|led_width|led_height|led_comment|led_filename|led_user|led_user_ip|led_referer|led_remote_port|led_viewrole|led_user_agent|led_unique_id|led_err|led_fix|led_os";
$sql="select * from $tbl";
$rowid="";
$j=0;
foreach( $pdo->query($sql) as $row ) {
$j=$j+1;
# $rowid=$row['rowid'];
$led_id=$row['led_id'];
$led_status=$row['led_status'];
$led_code=$row['led_code'];
$led_name=$row['led_name'];
$led_dttm=$row['led_dttm'];
$led_color=$row['led_color'];
$led_speed=$row['led_speed'];
# printf( "BUGS_370 LEDS led_id=$led_id led_code=$led_code led_name=$led_name $led_color $led_speed\n" );
$led_type=$row['led_type'];
$led_date=$row['led_date'];
$led_cmd=$row['led_cmd'];
$led_cmdout=$row['led_cmdout'];
$led_desc=$row['led_desc'];
$led_misc=$row['led_misc'];
$led_city=$row['led_city'];
$led_bldg=$row['led_bldg'];
$led_loc_code=$row['led_loc_code'];
$led_floor=$row['led_floor'];
$led_group=$row['led_group'];
$led_orgs=$row['led_orgs'];
$led_title=$row['led_title'];
$led_published=$row['led_published'];
$led_width=$row['led_width'];
$led_height=$row['led_height'];
$led_comment=$row['led_comment'];
$led_filename=$row['led_filename'];
$led_user=$row['led_user'];
$led_user_ip=$row['led_user_ip'];
$led_referer=$row['led_referer'];
$led_remote_port=$row['led_remote_port'];
$led_viewrole=$row['led_viewrole'];
$led_user_agent=$row['led_user_agent'];
$led_unique_id=$row['led_unique_id'];
$led_err=$row['led_err'];
$led_fix=$row['led_fix'];
$led_os=$row['led_os'];
$psv.="$rowid|$led_id|$led_status|$led_code|$led_name|$led_dttm|$led_color|$led_speed|$led_type|$led_date|$led_cmd|$led_cmdout|$led_desc|$led_misc|$led_city|$led_bldg|$led_loc_code|$led_floor|$led_group|$led_orgs|$led_title|$led_published|$led_width|$led_height|$led_comment|$led_filename|$led_user|$led_user_ip|$led_referer|$led_remote_port|$led_viewrole|$led_user_agent|$led_unique_id|$led_err|$led_fix|$led_os<br>\n";
# printf( "BUGS_400 j=$j psv=$psv\n" );
}
printf( $psv );
exit;
}
$psv="rowid|pathfile|path|file|base|ext|dttm|exif_dt|exif_tm|desc|\n";
$sql="select rowid,pathfile,path,file,base,ext,dttm,exif_dt,exif_tm,desc from $tbl";
foreach( $pdo->query($sql) as $row ) {
$rowid=$row['rowid'];
$pathfile=$row['pathfile'];
$path=$row['path'];
$file=$row['file'];
$base=$row['base'];
$ext=$row['ext'];
$exif_dt=$row['exif_dt'];
$exif_tm=$row['exif_tm'];
$desc=$row['desc'];
$psv.="$rowid|$pathfile|$path|$file|$base|$ext|$dttm|$exif_dt|$exif_tm|$desc|\n";
}
printf( $htmout."\n".$psv );
exit;
}
if( $lists == "items" ) { $file="/ko/lists_items.txt"; }
if( $lists == "contacts" ) { $file="/ko/lists_contacts.txt"; }
if( $lists == "letter" ) { $file="/ko/lists_letter.txt"; }
if( $lists == "monkeytraps" ) { $file="/ko/lists_monkeytraps.txt"; }
if( $lists == "floods" ) { $file="/ko/lists_floods.txt"; }
if( $lists == "postturtles" ) { $file="/lists_postturtles.txt"; }
if( $lists == "coffee" ) { $file="/lists_coffee.txt"; }
$drfile="$dr$file";
if( is_file($drfile)) {
# printf( "BUGS_313 ___FOUND lists=$lists dr=$dr file=$file drfile=$drfile\n" );
$htmout=htmout_load($drfile);
}
else {
printf( "BUGS_313 NOTFOUND lists=$lists dr=$dr file=$file drfile=$drfile\n" );
exit;
}
printf( $htmout );
exit;
}
if( isset($_REQUEST['kups'])) {
$kups=$_REQUEST['kups'];
if( $kups == "" ) {
$htmout = kups('');
}
if( $kups == "review" ) {
$htmout = kups_review('');
}
# printf( "BUGS_295 isset _FILES<br>\n" );
if( $kups == "go" ) {
$htmout = img2dirs();
}
printf( $htmout );
exit;
}
if( isset($_FILES["kups"])) {
printf( "BUGS_295 isset _FILES<br>\n" );
$htmout = img2dirs();
printf( $htmout );
exit;
}
if( isset($_REQUEST["k9"])) {
$k9=$_REQUEST['k9'];
printf( "BUGS_295 isset _K9 k9=$k9<br>\n" );
$htmout = k9($k9);
printf( $htmout );
exit;
}
if( isset($_REQUEST['img2b64'] )) {
# img2b64( $imgfil, $fmt );
# img2b64("./imgs/btn/kobrd.png","png","b64" );
# img2b64("./imgs/bg/ko_colorado_white.jpg","jpg","b64" );
# img2b64("./imgs/btn/kobrd.png","png","html" );
# img2b64("./imgs/btn/kobrd.png","png","" );
$htmout = "";
$htmout .= "<html><head><title>/ka/ko.php?img2b64 20230129_1700</title></head>\n";
$img2b64=$_REQUEST['img2b64'];
$htm_koeye = gdImgToHTML( "./imgs/btn/koeye.png", $format='png' );
$htm_kobrd = gdImgToHTML( "./imgs/btn/kobrd.png", $format='png' );
$img_koeye = img2b64("./imgs/btn/koeye.png","png","html");
$img_kobrd = img2b64("./imgs/btn/kobrd.png","png","html");
$b64_koeye = img2b64("./imgs/btn/koeye.png","png","b64");
$b64_kobrd = img2b64("./imgs/btn/kobrd.png","png","b64");
$htmout .= "<a href=./imgs/btn/koeye.png target=_blank>\n";
$htmout .= $htm_koeye;
$htmout .= "</a><br>\n";
$htmout .= "<a href=./imgs/btn/kobrd.png target=_blank>\n";
$htmout .= $htm_kobrd;
$htmout .= "</a><br>\n";
$htmout .= "<hr color=black>\n";
$htmout .= "<a href=./imgs/btn/koeye.png target=_blank>\n";
$htmout .= $img_koeye;
$htmout .= "</a><br>\n";
$htmout .= "<a href=./imgs/btn/kobrd.png target=_blank>\n";
$htmout .= $img_kobrd;
$htmout .= "</a><br>\n";
$htmout .= "<hr color=black>\n";
$htmout .= "<a href=./imgs/btn/koeye.png target=_blank>\n";
$htmout .= "<img src=".$b64_koeye." height=30 border=0>\n";
$htmout .= "</a><br>\n";
$htmout .= "<a href=./imgs/btn/kobrd.png target=_blank>\n";
$htmout .= "<img src=". $b64_kobrd." height=30 border=0>\n";
$htmout .= "</a><br>\n";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
printf( $htmout);
exit;
}
if( isset($_FILES["image"])) {
printf( "BUGS_295 isset _FILES<br>\n" );
$htmout = img2dirs();
printf( $htmout );
exit;
}
if( isset($_REQUEST['txt2imgs'])) {
$htmout=txt2imgs('');
printf($htmout);
exit;
}
if( isset($_REQUEST['txt2img'])) {
$htmout="";
$img="./imgs/btn/koeye.png";
$fmt="b64";
$imgfil="./imgs/btn/kobrd.png";
$fontid="yokkmokk";
$text="sophia";
$fmt="";
$savefile="./imgs/btn/koeye_sophia.png";
$htmout=txt2img($imgfil,$fontid,$text,$fmt,$save);
printf($htmout);
exit;
}
if( isset($_REQUEST['gd'])) {
$options="";
$gd=$_REQUEST['gd'];
$htmout = gd($gd);
printf($htmout);
exit;
}
if( isset($_REQUEST['img2tn'])) {
$htmout = "";
$img=$_REQUEST['img2tn'];
if( $img == "" ) { $img="/fb/pages/zn/zn_1.jpg"; }
$htmout .= "<h1>BUGS_290 img2tn img=$img</h1>";
$htmout=img2tn($img);
printf( $htmout );
}
if( isset($_REQUEST['kin'])) {
$htmout = "";
$options="kin_options";
$htmout .= "<h1>BUGS_291 kin options=$options</h1>";
kin($options);
}
if( isset($_REQUEST['kup'])) {
printf( "<h1>BUGS_292 kup ko_kup</h1>" );
startup();
}
if( isset($_REQUEST['ko_kup'])) {
printf( "<h1>BUGS_293 ko_kup</h1>" );
ko_kup();
}
$args=array();
$id="";
$query_string="";
if( isset($_REQUEST['QUERY_STRING'])) {
$query_string = $_REQUEST['QUERY_string'];
}
# print( "\n<h1>BUGS_101 ko.php MAIN query_string=$query_string</h1><br>\n" );
if( isset($_REQUEST['ko_form']) || isset($_REQUEST['ko_form'] )) {
ko_form('');
exit;
}
if( isset($_REQUEST['ko_form_submit']) || isset($_REQUEST['ko_form_submit'] )) {
phpinfo();
exit;
}
if( isset($_REQUEST['scrub_upload_form']) || isset($_REQUEST['scrub_upload_form'] )) {
$options="";
scrub_upload_form( $options );
exit;
}
if( isset($_REQUEST['ko_upload']) || isset($_REQUEST['ko_upload2'] )) {
$options="";
$htmout=ko_upload2();
printf( "$htmout" );
exit;
}
if( isset($_REQUEST['ko_uploads']) || isset($_REQUEST['ko_uploads'] )) {
$options="";
$htmout=ko_uploads($options);
printf( "$htmout" );
exit;
}
if( isset($_REQUEST['bugs']) || isset($_REQUEST['bugs'] )) {
$options="";
$htmout=bugs($options);
printf( "<h1>BUGS_100 $htmout </h1>\n" );
exit;
}
$dbname="dgs";
$db3fil="$dbname.db3";
if( isset($_REQUEST['db2']) || isset($_REQUEST['db2'] )) {
$request_db2=$_REQUEST['db2'];
$server="localhost";
$user="root";
$pass="..root";
$htmout = "";
# $htmout .= htmout_head('db2');
$htmout .= "<html><head>\n";
$htmout .= htmout_load('ko_scripts.html');
$htmout .= htmout_load('ko_styles.html');
$htmout .= " </head>";
$htmout .= "<body bgcolor=linen onload=\"startup('db2);return false;\" >\n";
$htmout .= "<img src=\"/imgs/btn/koeye.png\" onclick=\"toggle('div_db2'); return false;\" height=24>\n";
$htmout .= "<div id=div_db2>\n";
$htmout .= " <hr color=goldenrod>\n";
$htmout .= " <h1>div_db2<h1>\n";
$server="localhost";
$dbname="dgs";
$sql2="show tables;";
$sql2="select * from ko_temp";
$sql2="select * from Players";
$dbname="zc"; $sql2="select * from Products";
$dbname="zc"; $sql2="select * from Categories";
$dbname="zc"; $sql2="select count(*) from Products";
$dbname="dgs"; $sql2="describe Players";
$dbname="dgs"; $sql2="show tables;";
$dbname="zc"; $sql2="show tables;";
$dbname="dgs"; $sql2="show tables;";
$db3fil="$dbname.db3";
$tblnum=1;
$dbname="dgs";
$j=0;
if( preg_match("/show/", $request_db2 )) {
$dbname="dgs"; $tbl="ko_temp";
$sql="show tables";
if( preg_match("/show_dgs/", $request_db2 )) { $dbname="dgs"; }
if( preg_match("/show_zc/", $request_db2 )) { $dbname="zc"; }
# print( "<h3>MSG_716 DB2 SHOW tbl=$tbl sql=$sql</h3>" );
$htmout_db2_query=db2_query( $server,$dbname,$tbl,$sql, $db3fil, $user,$pass );
print( $htmout_db2_query );
}
# print( "<h3>MSG_290 DB2 SELECT HEAD</h3>" );
if( preg_match("/select/", $request_db2 )) {
$tbl="ko_temp";
if( count(explode("_",$request_db2)) > 0 ) {
$tbl=explode("select_", $request_db2)[1];
}
$sql="select * from $tbl";
# print( "<h3>MSG_291 DB2 SELECT dbname=$dbname tbl=$tbl sq1=$sql</h3>" );
$htmout_db2_query=db2_query( $server,$dbname,$tbl,$sql, $db3fil, $user,$pass );
print( $htmout_db2_query );
}
if (( $_REQUEST['db2'] == "creates" ) || ( $_REQUEST['db2'] == "creates" )) {
# print( "<h3>BUGS_275 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
$tbls=explode("\n", show_tables($dbname));
$tbls_len=count($tbls);
# print( "<h3>BUGS_270 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
foreach( $tbls as $tbl ) {
if( $tbl == "" ) {
# print( "<h1>BUGS_270 SKIP j=$j tbl=$tbl</h1>" );
continue;
}
$j=$j+1;
$sql2="describe $tbl;";
$sql="";
print( "<h2>BUGS_280 j=$j dbname=$dbname tbl=$tbl sql=$sql db3fil=$db3fil</h2>" );
# mysql2sql3_insert( $server,$dbname,$tbl,$user,$pass,$db3fil);
mysql2sql3_create( $server,$dbname,$tbl,$user,$pass,$db3fil);
}
}
if (( $_REQUEST['db2'] == "inserts" ) || ( $_REQUEST['db2'] == "inserts" )) {
# print( "<h3>BUGS_275 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
$tbls=explode("\n", show_tables($dbname));
$tbls_len=count($tbls);
# print( "<h3>BUGS_270 dbname=$dbname db3fil=$db3fil tbls_len=$tbls_len</h3>\n" );
foreach( $tbls as $tbl ) {
if( $tbl == "" ) {
# print( "<h1>BUGS_270 SKIP j=$j tbl=$tbl</h1>" );
continue;
}
$j=$j+1;
$sql2="describe $tbl;";
$sql="";
print( "<h2>BUGS_280 j=$j dbname=$dbname tbl=$tbl sql=$sql db3fil=$db3fil</h2>" );
mysql2sql3_insert( $server,$dbname,$tbl,$user,$pass,$db3fil);
mysql2sql3_create( $server,$dbname,$tbl,$user,$pass,$db3fil);
}
}
$user="root"; $pass="..root";
print( "<h1>BUGS_100 DB2</h1>" );
if( isset( $_REQUEST['db2'] )) { $dbname=$_REQUEST['db2']; }
if( isset( $_REQUEST['user'] )) { $user=$_REQUEST['user']; }
if( isset( $_REQUEST['db3fil'] )) { $db3fil=$_REQUEST['db3fil']; }
if( isset( $_REQUEST['sql'] )) { $sql=$_REQUEST['sql']; }
if( isset( $_REQUEST['fmt'] )) { $fmt=$_REQUEST['fmt']; }
$j=0; $k=0; $i=0;
if( isset( $_REQUEST['tbl'] )) { $tbl=$_REQUEST['tbl']; }
$dbname="zc"; $tbl="ko_temp";
$dbname="dgs"; $tbl="ko_temp";
$dbname="dgs"; $tbl="Players";
if( $dbname == "" ) { $dbname="dgs"; }
if( $dbname == "" ) { $dbname="zc"; }
# $db2=db2_connect($server,$dbname,$user,$pass);
# $htmout_db2_query = db2_query($db2,$dbname,$sql2 );
# $htmout_db2_exec = db2_exec($db2,$dbname,$sql2 );
print( "<h1>BUGS_310 j=$j k=$k dbname=$dbname tbl=$tbl sql2=$sql2</h1>" );
$htmout .= " </div>\n";
$htmout .= htmout_load('ko_divs.html');
$htmout .= htmout_tail('db2');
print($htmout);
exit;
}
if( isset($_REQUEST['db3']) || isset($_REQUEST['db3'] )) {
$htmout = "";
# $htmout .= htmout_head('db3');
$htmout .= "<html><head>\n";
$htmout .= " <title>$progid $dttm db3</title>\n";
$htmout .= htmout_load('ko_styles.html');
$htmout .= htmout_load('ko_scripts.html');
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen onload=\"startup('db3);return false;\" >\n";
$htmout .= "<img src=\"/imgs/btn/koeye.png\" onclick=\"toggle('div_db3'); return false;\" height=24>\n";
$htmout .= "<div id=div_db3>\n";
$htmout .= " <hr color=goldenrod>\n";
$htmout .= " <h1>div_db3<h1>\n";
$htmout .= db3($db3fil);
$htmout .= " </div>\n";
$htmout .= htmout_load('ko_divs.html');
$htmout .= htmout_tail('db3');
print($htmout);
exit;
}
if( isset($_REQUEST['file']) || isset($_REQUEST['file'] )) {
$filnam=$_REQUEST['file'];
if( file_exists( $filnam )) {
$filtxt=read_htmlfile($filnam);
print($filtxt);
}
else {
print( "ERR_430: NOTFOUND filnam=$filnam<br>\n" );
}
exit;
}
if( isset($_REQUEST['ko_coffeeshop']) || isset($_REQUEST['ko_coffeeshop'] )) {
$gid=""; $fmt="";
if( isset( $_REQUEST['db3'] )) { $db3=$_REQUEST['db3']; }
if( isset( $_REQUEST['fmt'] )) { $fmt=$_REQUEST['fmt']; }
$request="ko_coffeeshop";
$txt=""; $csv=""; $psv="";
$htmout=""; $htmout_table_head=""; $htmout_table_body="";
# print( "<h1>BUGS_400 gid=$gid fmt=$fmt</h1>" );
$json="{ \"$request\": [\n";
$htmout_table_head = "<table id=table_$request>\n";
$htmout_table_head .= "<tr><td style='text-align:center' colspan=14>gameid: $gid</td></tr>\n";
$htmout_table_head .= "<tr>";
$htmout_table_head .= "<td>row</td>";
$htmout_table_head .= "<td>ord</td>";
$htmout_table_head .= "<td>no</td>";
$htmout_table_head .= "<td>id</td>";
$htmout_table_head .= "<td>status</td>";
$htmout_table_head .= "<td>dttm</td>";
$htmout_table_head .= "<td>grp</td>";
$htmout_table_head .= "<td>item</td>";
$htmout_table_head .= "<td>logo</td>";
$htmout_table_head .= "<td>coffee_id</td>";
$htmout_table_head .= "<td>coffee_url</td>";
$htmout_table_head .= "<td>coffee_tn</td>";
$htmout_table_head .= "<td>logo</td>";
$htmout_table_head .= "<td>hostid</td>";
$htmout_table_head .= "<td>host</td>";
$htmout_table_head .= "<td>pdf</td>";
$htmout_table_head .= "<td>pdftxt</td>";
$htmout_table_head .= "<td>fb</td>";
$htmout_table_head .= "<td>fbtxt</td>";
$htmout_table_head .= "<td>gif</td>";
$htmout_table_head .= "<td>giftxt</td>";
$htmout_table_head .= "<td>mp3</td>";
$htmout_table_head .= "<td>mp3txt</td>";
$htmout_table_head .= "<td>mp4</td>";
$htmout_table_head .= "<td>mp4txt</td>";
$htmout_table_head .= "<td>bc</td>";
$htmout_table_head .= "<td>bctxt</td>";
$htmout_table_head .= "<td>yt</td>";
$htmout_table_head .= "<td>yttxt</td>";
$htmout_table_head .= "<td>pn</td>";
$htmout_table_head .= "<td>pntxt</td>";
$htmout_table_head .= "<td>sl</td>";
$htmout_table_head .= "<td>sltxt</td>";
$htmout_table_head .= "<td>tl</td>";
$htmout_table_head .= "<td>tltxt</td>";
$htmout_table_head .= "<td>tx</td>";
$htmout_table_head .= "<td>txtxt</td>";
$htmout_table_head .= "<td>zm</td>";
$htmout_table_head .= "<td>zmtxt</td>";
$htmout_table_head .= "<td>hostid</td>";
$htmout_table_head .= "<td>host</td>";
$htmout_table_head .= "<td>home</td>";
$htmout_table_head .= "<td>name</td>";
$htmout_table_head .= "<td>email</td>";
$htmout_table_head .= "<td>phn</td>";
$htmout_table_head .= "<td>fab</td>";
$htmout_table_head .= "<td>gab</td>";
$htmout_table_head .= "<td>pl</td>";
$htmout_table_head .= "<td>pt</td>";
$htmout_table_head .= "<td>ss</td>";
$htmout_table_head .= "<td>ts</td>";
$htmout_table_head .= "<td>tw</td>";
$htmout_table_head .= "<td>jitsi</td>";
$htmout_table_head .= "<td>chat</td>";
$htmout_table_head .= "<td>item</td>";
$htmout_table_head .= "<td>cnt</td>";
$htmout_table_head .= "<td>amt</td>";
$htmout_table_head .= "<td>note</td>";
$htmout_table_head .= "</tr>\n";
$psvhdr=""; $psvdta ="";
$psvhdr .= "row|ord|no|id|status|dttm|grp|item|logo|";
$psvhdr .= "coffee_id|coffee_url|coffee_tn|";
$psvhdr .= "fb|fbtxt|pdf|pdftxt|gif|giftxt|";
$psvhdr .= "mp3|mp3txt|mp4|mp4txt|bc|bctxt|rm|rmtxt|vm|vmtxt|yt|yttxt|";
$psvhdr .= "pn|pntxt|sl|sltxt|tl|tltxt|tx|txtxt|zm|zmtxt|";
$psvhdr .= "hostid|host|home|name|email|phn|";
$psvhdr .= "fab|gab|li|pl|pt|ss|ts|tw|jitsi|chat|";
$psvhdr .= "dm|dmtxt|dr|drtxt|gp|gptxt|js|jstxt|wm|wmtxt|zh|zhtxt|";
$psvhdr .= "itm|cnt|amt|note";
$psvhdr .= "\n";
$db3fil="ko.db3"; $fld=""; $output = "";
$sql="select * from ko_coffeeshop";
# $sql="select * from ko_coffeeshop where gid='$gid'";
# $bxbys = sqlq( $db3fil, $sql, $fld );
$pdo = newpdo($db3fil);
foreach( $pdo->query($sql) as $row ) {
$rowno=$row['rowno'];
$ord=$row['ord'];
$no=$row['no'];
$id=$row['id'];
$status=$row['status'];
$dttm=$row['dttm'];
$grp=$row['grp'];
$item=$row['item'];
$logo=$row['logo'];
$coffee_id=$row['coffee_id'];
$coffee_url=$row['coffee_url'];
$coffee_tn=$row['coffee_tn'];
$fb=$row['fb'];
$fbtxt=$row['fbtxt'];
$pdf=$row['pdf'];
$pdftxt=$row['pdftxt'];
$gif=$row['gif'];
$giftxt=$row['giftxt'];
$mp3=$row['mp3'];
$mp3txt=$row['mp3txt'];
$mp4=$row['mp4'];
$mp4txt=$row['mp4txt'];
$bc=$row['bc'];
$bctxt=$row['bctxt'];
$rm=$row['rm'];
$rmtxt=$row['rmtxt'];
$vm=$row['vm'];
$vmtxt=$row['vmtxt'];
$yt=$row['yt'];
$yttxt=$row['yttxt'];
$pn=$row['pn'];
$pntxt=$row['pntxt'];
$sl=$row['sl'];
$sltxt=$row['sltxt'];
$tl=$row['tl'];
$tltxt=$row['tltxt'];
$tx=$row['tx'];
$txtxt=$row['txtxt'];
$zm=$row['zm'];
$zmtxt=$row['zmtxt'];
$hostid=$row['hostid'];
$host=$row['host'];
$home=$row['home'];
$name=$row['name'];
$email=$row['email'];
$phn=$row['phn'];
$fab=$row['fab'];
$gab=$row['gab'];
$li=$row['li'];
$pl=$row['pl'];
$pt=$row['pt'];
$ss=$row['ss'];
$ts=$row['ts'];
$tw=$row['tw'];
$jitsi=$row['jitsi'];
$chat=$row['chat'];
$dm=$row['dm'];
$dmtxt=$row['dmtxt'];
$dr=$row['dr'];
$drtxt=$row['drtxt'];
$gp=$row['gp'];
$gbtxt=$row['gbtxt'];
$js=$row['js'];
$jstxt=$row['jstxt'];
$wm=$row['wm'];
$wmtxt=$row['wmtxt'];
$zh=$row['zh'];
$zhtxt=$row['zhtxt'];
$itm=$row['itm'];
$cnt=$row['cnt'];
$amt=$row['amt'];
$note=$row['note'];
$psvdta .= "$rowno|";
$psvdta .= "$ord|";
$psvdta .= "$no|";
$psvdta .= "$id|";
$psvdta .= "$status|";
$psvdta .= "$dttm|";
$psvdta .= "$grp|";
$psvdta .= "$item|";
$psvdta .= "$logo|";
$psvdta .= "$coffee_id|";
$psvdta .= "$coffee_url|";
$psvdta .= "$coffee_tn|";
$psvdta .= "$fb|";
$psvdta .= "$fbtxt|";
$psvdta .= "$pdf|";
$psvdta .= "$pdftxt|";
$psvdta .= "$gif|";
$psvdta .= "$giftxt|";
$psvdta .= "$mp3|";
$psvdta .= "$mp3txt|";
$psvdta .= "$mp4|";
$psvdta .= "$mp4txt|";
$psvdta .= "$bc|";
$psvdta .= "$bctxt|";
$psvdta .= "$rm|";
$psvdta .= "$rmtxt|";
$psvdta .= "$vm|";
$psvdta .= "$vmtxt|";
$psvdta .= "$yt|";
$psvdta .= "$yttxt|";
$psvdta .= "$pn|";
$psvdta .= "$pntxt|";
$psvdta .= "$sl|";
$psvdta .= "$sltxt|";
$psvdta .= "$tl|";
$psvdta .= "$tltxt|";
$psvdta .= "$tx|";
$psvdta .= "$txtxt|";
$psvdta .= "$zm|";
$psvdta .= "$zmtxt|";
$psvdta .= "$hostid|";
$psvdta .= "$host|";
$psvdta .= "$home|";
$psvdta .= "$name|";
$psvdta .= "$email|";
$psvdta .= "$phn|";
$psvdta .= "$fab|";
$psvdta .= "$gab|";
$psvdta .= "$li|";
$psvdta .= "$pl|";
$psvdta .= "$pt|";
$psvdta .= "$ss|";
$psvdta .= "$ts|";
$psvdta .= "$tw|";
$psvdta .= "$jitsi|";
$psvdta .= "$chat|";
$psvdta .= "$bitchute|";
$psvdta .= "$bitchutetxt|";
$psvdta .= "$shopify|";
$psvdta .= "$shopifytxt|";
$psvdta .= "$squareup|";
$psvdta .= "$squareuptxt|";
$psvdta .= "$stripe|";
$psvdta .= "$stripetxt|";
$psvdta .= "$dm|";
$psvdta .= "$dmtxt|";
$psvdta .= "$dr|";
$psvdta .= "$drtxt|";
$psvdta .= "$gp|";
$psvdta .= "$gptxt|";
$psvdta .= "$js|";
$psvdta .= "$jstxt|";
$psvdta .= "$wm|";
$psvdta .= "$wmtxt|";
$psvdta .= "$zh|";
$psvdta .= "$zhtxt|";
$psvdta .= "$itm|";
$psvdta .= "$cnt|";
$psvdta .= "$amt|";
$psvdta .= "$note<br>\n";
$json .= "{\n";
$json .= "\"rowno\":\"$rowno\",\n";
$json .= "\"ord\":\"$ord\",\n";
$json .= "\"no\":\"$no\",\n";
$json .= "\"id\":\"$id\",\n";
$json .= "\"status\":\"$status\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"grp\":\"$grp\",\n";
$json .= "\"item\":\"$item\",\n";
$json .= "\"logo\":\"$host\",\n";
$json .= "\"coffee_id\":\"$coffee_id\",\n";
$json .= "\"coffee_url\":\"$coffee_url\",\n";
$json .= "\"coffee_tn\":\"$coffee_tn\",\n";
$json .= "\"fb\":\"$fb\",\n";
$json .= "\"fbtxt\":\"$fbtxt\",\n";
$json .= "\"pdf\":\"$pdf\",\n";
$json .= "\"pdftxt\":\"$pdftxt\",\n";
$json .= "\"gif\":\"$gif\",\n";
$json .= "\"giftxt\":\"$giftxt\",\n";
$json .= "\"mp3\":\"$mp3\",\n";
$json .= "\"mp3txt\":\"$mp3txt\",\n";
$json .= "\"mp4\":\"$mp4\",\n";
$json .= "\"mp4txt\":\"$mp4txt\",\n";
$json .= "\"bc\":\"$bc\",\n";
$json .= "\"bctxt\":\"$bctxt\",\n";
$json .= "\"rm\":\"$rm\",\n";
$json .= "\"rmtxt\":\"$rmtxt\",\n";
$json .= "\"vm\":\"$vm\",\n";
$json .= "\"vmtxt\":\"$vmtxt\",\n";
$json .= "\"yt\":\"$yt\",\n";
$json .= "\"yttxt\":\"$yttxt\",\n";
$json .= "\"pn\":\"$pn\",\n";
$json .= "\"pntxt\":\"$pntxt\",\n";
$json .= "\"sl\":\"$sl\",\n";
$json .= "\"sltxt\":\"$sltxt\",\n";
$json .= "\"tl\":\"$tl\",\n";
$json .= "\"tltxt\":\"$tltxt\",\n";
$json .= "\"tx\":\"$tx\",\n";
$json .= "\"txtxt\":\"$txtxt\",\n";
$json .= "\"zm\":\"$zm\",\n";
$json .= "\"zmtxt\":\"$zmtxt\",\n";
$json .= "\"hostid\":\"$hostid\",\n";
$json .= "\"host\":\"$host\",\n";
$json .= "\"home\":\"$home\",\n";
$json .= "\"name\":\"$name\",\n";
$json .= "\"email\":\"$email\",\n";
$json .= "\"phn\":\"$phn\",\n";
$json .= "\"fab\":\"$fab\",\n";
$json .= "\"gab\":\"$gab\",\n";
$json .= "\"pl\":\"$pl\",\n";
$json .= "\"pt\":\"$pt\",\n";
$json .= "\"ss\":\"$ss\",\n";
$json .= "\"ts\":\"$ts\",\n";
$json .= "\"tw\":\"$tw\",\n";
$json .= "\"jitsi\":\"$jitsi\",\n";
$json .= "\"chat\":\"$chat\",\n";
$json .= "\"dm\":\"$dm\",\n";
$json .= "\"dmtxt\":\"$dmtxt\",\n";
$json .= "\"dr\":\"$dr\",\n";
$json .= "\"drtxt\":\"$drtxt\",\n";
$json .= "\"gp\":\"$gp\",\n";
$json .= "\"gptxt\":\"$gptxt\",\n";
$json .= "\"js\":\"$js\",\n";
$json .= "\"jstxt\":\"$jstxt\",\n";
$json .= "\"wm\":\"$wm\",\n";
$json .= "\"wmtxt\":\"$wmtxt\",\n";
$json .= "\"zh\":\"$zh\",\n";
$json .= "\"zhtxt\":\"$zhtxt\",\n";
$json .= "\"itm\":\"$itm\",\n";
$json .= "\"cnt\":\"$cnt\",\n";
$json .= "\"amt\":\"$amt\",\n";
$json .= "\"note\":\"$note\"\n";
$json .= "},\n";
$htmout_table_body .= "<tr>";
$htmout_table_body .= "<td>".$row['rowno']."</td>";
$htmout_table_body .= "<td>".$row['ord']."</td>";
$htmout_table_body .= "<td>".$row['no']."</td>";
$htmout_table_body .= "<td>".$row['id']."</td>";
$htmout_table_body .= "<td>".$row['status']."</td>";
$htmout_table_body .= "<td>".$row['dttm']."</td>";
$htmout_table_body .= "<td>".$row['grp']."</td>";
$htmout_table_body .= "<td>".$row['item']."</td>";
$htmout_table_body .= "<td>".$row['logo']."</td>";
$htmout_table_body .= "<td>".$row['coffee_id']."</td>";
$htmout_table_body .= "<td>".$row['coffee_url']."</td>";
$htmout_table_body .= "<td>".$row['coffee_tn']."</td>";
$htmout_table_body .= "<td>".$row['fb']."</td>";
$htmout_table_body .= "<td>".$row['fbtxt']."</td>";
$htmout_table_body .= "<td>".$row['pdf']."</td>";
$htmout_table_body .= "<td>".$row['pdftxt']."</td>";
$htmout_table_body .= "<td>".$row['gif']."</td>";
$htmout_table_body .= "<td>".$row['giftxt']."</td>";
$htmout_table_body .= "<td>".$row['mp3']."</td>";
$htmout_table_body .= "<td>".$row['mp3txt']."</td>";
$htmout_table_body .= "<td>".$row['mp4']."</td>";
$htmout_table_body .= "<td>".$row['mp4txt']."</td>";
$htmout_table_body .= "<td>".$row['bc']."</td>";
$htmout_table_body .= "<td>".$row['bctxt']."</td>";
$htmout_table_body .= "<td>".$row['rm']."</td>";
$htmout_table_body .= "<td>".$row['rmtxt']."</td>";
$htmout_table_body .= "<td>".$row['vm']."</td>";
$htmout_table_body .= "<td>".$row['vmtxt']."</td>";
$htmout_table_body .= "<td>".$row['yt']."</td>";
$htmout_table_body .= "<td>".$row['yttxt']."</td>";
$htmout_table_body .= "<td>".$row['pn']."</td>";
$htmout_table_body .= "<td>".$row['pntxt']."</td>";
$htmout_table_body .= "<td>".$row['sl']."</td>";
$htmout_table_body .= "<td>".$row['sltxt']."</td>";
$htmout_table_body .= "<td>".$row['tl']."</td>";
$htmout_table_body .= "<td>".$row['tltxt']."</td>";
$htmout_table_body .= "<td>".$row['tx']."</td>";
$htmout_table_body .= "<td>".$row['txtxt']."</td>";
$htmout_table_body .= "<td>".$row['zm']."</td>";
$htmout_table_body .= "<td>".$row['zmtxt']."</td>";
$htmout_table_body .= "<td>".$row['hostid']."</td>";
$htmout_table_body .= "<td>".$row['host']."</td>";
$htmout_table_body .= "<td>".$row['home']."</td>";
$htmout_table_body .= "<td>".$row['name']."</td>";
$htmout_table_body .= "<td>".$row['email']."</td>";
$htmout_table_body .= "<td>".$row['phn']."</td>";
$htmout_table_body .= "<td>".$row['fab']."</td>";
$htmout_table_body .= "<td>".$row['gab']."</td>";
$htmout_table_body .= "<td>".$row['li']."</td>";
$htmout_table_body .= "<td>".$row['pl']."</td>";
$htmout_table_body .= "<td>".$row['pt']."</td>";
$htmout_table_body .= "<td>".$row['ss']."</td>";
$htmout_table_body .= "<td>".$row['ts']."</td>";
$htmout_table_body .= "<td>".$row['tw']."</td>";
$htmout_table_body .= "<td>".$row['jitsi']."</td>";
$htmout_table_body .= "<td>".$row['dm']."</td>";
$htmout_table_body .= "<td>".$row['dmtxt']."</td>";
$htmout_table_body .= "<td>".$row['dr']."</td>";
$htmout_table_body .= "<td>".$row['drtxt']."</td>";
$htmout_table_body .= "<td>".$row['gp']."</td>";
$htmout_table_body .= "<td>".$row['gptxt']."</td>";
$htmout_table_body .= "<td>".$row['js']."</td>";
$htmout_table_body .= "<td>".$row['jstxt']."</td>";
$htmout_table_body .= "<td>".$row['wm']."</td>";
$htmout_table_body .= "<td>".$row['wmtxt']."</td>";
$htmout_table_body .= "<td>".$row['zh']."</td>";
$htmout_table_body .= "<td>".$row['zhtxt']."</td>";
$htmout_table_body .= "<td>".$row['itm']."</td>";
$htmout_table_body .= "<td>".$row['cnt']."</td>";
$htmout_table_body .= "<td>".$row['amt']."</td>";
$htmout_table_body .= "<td>".$row['note']."</td>";
$htmout_table_body .= "</tr>\n";
}
$psv = $psvhdr . $psvdta;
$csv=str_replace("|",",",$psv);
$txt=str_replace("|"," ",$psv);
$json .= "{\n";
$json .= "\"rowno\":\"$rowno\",\n";
$json .= "\"ord\":\"$ord\",\n";
$json .= "\"no\":\"$no\",\n";
$json .= "\"id\":\"$id\",\n";
$json .= "\"status\":\"$status\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"grp\":\"$grp\",\n";
$json .= "\"item\":\"$item\",\n";
$json .= "\"logo\":\"$logo\",\n";
$json .= "\"coffee_id\":\"$coffee_id\",\n";
$json .= "\"coffee_url\":\"$coffee_url\",\n";
$json .= "\"coffee_tn\":\"$coffee_tn\",\n";
$json .= "\"fb\":\"$fb\",\n";
$json .= "\"fbtxt\":\"$fbtxt\",\n";
$json .= "\"pdf\":\"$pdf\",\n";
$json .= "\"pdftxt\":\"$pdftxt\",\n";
$json .= "\"gif\":\"$gif\",\n";
$json .= "\"giftxt\":\"$giftxt\",\n";
$json .= "\"mp3\":\"$mp3\",\n";
$json .= "\"mp3txt\":\"$mp3txt\",\n";
$json .= "\"mp4\":\"$mp4\",\n";
$json .= "\"mp4txt\":\"$mp4txt\",\n";
$json .= "\"bc\":\"$bc\",\n";
$json .= "\"bctxt\":\"$bctxt\",\n";
$json .= "\"rm\":\"$rm\",\n";
$json .= "\"rmtxt\":\"$rmtxt\",\n";
$json .= "\"vm\":\"$vm\",\n";
$json .= "\"vmtxt\":\"$vmtxt\",\n";
$json .= "\"yt\":\"$yt\",\n";
$json .= "\"yttxt\":\"$yttxt\",\n";
$json .= "\"pn\":\"$pn\",\n";
$json .= "\"pntxt\":\"$pntxt\",\n";
$json .= "\"sl\":\"$sl\",\n";
$json .= "\"sltxt\":\"$sltxt\",\n";
$json .= "\"tl\":\"$tl\",\n";
$json .= "\"tltxt\":\"$tltxt\",\n";
$json .= "\"tx\":\"$tx\",\n";
$json .= "\"txtxt\":\"$txtxt\",\n";
$json .= "\"zm\":\"$zm\",\n";
$json .= "\"zmtxt\":\"$zmtxt\",\n";
$json .= "\"fab\":\"$fab\",\n";
$json .= "\"gab\":\"$gab\",\n";
$json .= "\"pl\":\"$pl\",\n";
$json .= "\"pt\":\"$pt\",\n";
$json .= "\"ss\":\"$ss\",\n";
$json .= "\"ts\":\"$ts\",\n";
$json .= "\"tw\":\"$tw\",\n";
$json .= "\"jitsi\":\"$jitsi\",\n";
$json .= "\"chat\":\"$chat\",\n";
$json .= "\"btc\":\"$btc\",\n";
$json .= "\"btctxt\":\"$btctxt\",\n";
$json .= "\"eth\":\"$eth\",\n";
$json .= "\"ethtxt\":\"$ethtxt\",\n";
$json .= "\"shopify\":\"$shopify\",\n";
$json .= "\"shopifytxt\":\"$shopifytxt\",\n";
$json .= "\"squareup\":\"$squareup\",\n";
$json .= "\"squareuptxt\":\"$squareuptxt\",\n";
$json .= "\"stripe\":\"$stripe\",\n";
$json .= "\"stripetxt\":\"$stripetxt\",\n";
$json .= "\"dm\":\"$dm\",\n";
$json .= "\"dmtxt\":\"$dmtxt\",\n";
$json .= "\"dr\":\"$dr\",\n";
$json .= "\"drtxt\":\"$drtxt\",\n";
$json .= "\"gp\":\"$gp\",\n";
$json .= "\"gptxt\":\"$gptxt\",\n";
$json .= "\"js\":\"$js\",\n";
$json .= "\"jstxt\":\"$jstxt\",\n";
$json .= "\"wm\":\"$wm\",\n";
$json .= "\"wmtxt\":\"$wmtxt\",\n";
$json .= "\"zh\":\"$zh\",\n";
$json .= "\"zhtxt\":\"$zhtxt\",\n";
$json .= "\"itm\":\"$itm\",\n";
$json .= "\"cnt\":\"$cnt\",\n";
$json .= "\"amt\":\"$amt\",\n";
$json .= "\"note\":\"$note\"\n";
$json .= "}\n";
$json .= "]}";
$htmout .= $htmout_table_head;
$htmout .= $htmout_table_body;
$htmout .= " </table>\n";
# printf( "BUGS_2390: val=[$val] fld=[$fld] row=[$row]<br>\n" );
if( $fmt == "psv" ) { print($psv); exit; }
if( $fmt == "csv" ) { print($csv); exit; }
if( $fmt == "json" ) {
header('Content-type: application/json');
print($json); exit;
}
if( $fmt == "txt" ) { print($txt); exit; }
if( $fmt == "html" ) { print($htmout); exit; }
print( $psv );
# main rowno|ord|no|id|status|dttm|grp|item|logo|
# coffee coffee_id|coffee_url|coffee_tn|
# books fb|fbtxt|pdf|pdftxt|gif|giftxt|
# media mp3|mp3txt|mp4|mp4txt|bc|bctxt|rm|rmtxt|vm|vmtxt|yt|yttxt|
# views pn|pntxt|sl|sltxt|tl|tltxt|tx|txtxt|zm|zmtxt|
# contacts hostid|host|home|name|email|phn|
# smedia fab|gab|li|pl|ss|ts|tw|jitsi|chat|
# biz btc|btctxt|eth|ethtxt|shopify|shopifytxt|squareup|squareuptxt|stripe|stripetxt|
# amedia dm|dmtxt|dr|drtxt|gp|gptxt|js|jstxt|wm|wmtxt|zh|zhtxt|
# notes itm|cnt|amt|note
exit;
}
if( isset($_REQUEST['kogo_db3']) || isset($_REQUEST['kogo_db3'] )) {
$gid=""; $fmt="";
if( isset( $_REQUEST['kogo_db3'] )) { $gid=$_REQUEST['kogo_db3']; }
if( isset( $_REQUEST['fmt'] )) { $fmt=$_REQUEST['fmt']; }
$txt=""; $csv=""; $psv="";
$htmout=""; $htmout_table_head=""; $htmout_table_body="";
# print( "<h1>BUGS_400 gid=$gid fmt=$fmt</h1>" );
$json="{ \"kogo\": [\n";
$htmout_table_head = "<table id=table_$gid>\n";
$htmout_table_head .= "<tr><td style='text-align:center' colspan=14>gameid: $gid</td></tr>\n";
$htmout_table_head .= "<tr>";
$htmout_table_head .= "<td>gid</td>";
$htmout_table_head .= "<td>dttm</td>";
$htmout_table_head .= "<td>pb</td>";
$htmout_table_head .= "<td>pw</td>";
$htmout_table_head .= "<td>bxlim</td>";
$htmout_table_head .= "<td>bylim</td>";
$htmout_table_head .= "<td>bhandi</td>";
$htmout_table_head .= "<td>t</td>";
$htmout_table_head .= "<td>x</td>";
$htmout_table_head .= "<td>y</td>";
$htmout_table_head .= "<td>td</td>";
$htmout_table_head .= "<td>tdx</td>";
$htmout_table_head .= "<td>tdy</td>";
$htmout_table_head .= "<td>note</td>";
$htmout_table_head .= "</tr>\n";
$db3fil="kogo.db3"; $fld=""; $output = "";
$sql="select * from games where gid='$gid'";
# $bxbys = sqlq( $db3fil, $sql, $fld );
$pdo = newpdo($db3fil);
foreach( $pdo->query($sql) as $row ) {
$dttm=$row['dttm'];
$pb=$row['pb'];
$pw=$row['pw'];
$bxlim=$row['bxlim'];
$bylim=$row['bylim'];
$bhandi=$row['bhandi'];
$bhandi=$row['bhandi'];
$t=$row['t'];
$x=$row['x'];
$y=$row['y'];
$td=$row['td'];
$tdx=$row['tdx'];
$tdy=$row['tdy'];
$note=$row['note'];
$psv .= "$gid|";
$psv .= "$dttm|";
$psv .= "$pb|";
$psv .= "$pw|";
$psv .= "$bxlim|";
$psv .= "$bylim|";
$psv .= "$bhandi|";
$psv .= "$t|";
$psv .= "$x|";
$psv .= "$y|";
$psv .= "$td|";
$psv .= "$tdx|";
$psv .= "$tdy|";
$psv .= "$note<br>\n";
$json .= "{\n";
$json .= "\"gid\":\"$gid\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"pb\":\"$pb\",\n";
$json .= "\"pw\":\"$pw\",\n";
$json .= "\"bxlim\":\"$bxlim\",\n";
$json .= "\"bylim\":\"$bylim\",\n";
$json .= "\"bhandi\":\"$bhandi\",\n";
$json .= "\"t\":\"$t\",\n";
$json .= "\"x\":\"$x\",\n";
$json .= "\"y\":\"$y\",\n";
$json .= "\"td\":\"$td\",\n";
$json .= "\"tdx\":\"$tdx\",\n";
$json .= "\"tdy\":\"$tdy\",\n";
$json .= "\"note\":\"$note\"\n";
$json .= "},\n";
$htmout_table_body .= "<tr>";
$htmout_table_body .= "<td>".$row['gid']."</td>";
$htmout_table_body .= "<td>".$row['dttm']."</td>";
$htmout_table_body .= "<td>".$row['pb']."</td>";
$htmout_table_body .= "<td>".$row['pw']."</td>";
$htmout_table_body .= "<td>".$row['bxlim']."</td>";
$htmout_table_body .= "<td>".$row['bylim']."</td>";
$htmout_table_body .= "<td>".$row['bhandi']."</td>";
$htmout_table_body .= "<td>".$row['t']."</td>";
$htmout_table_body .= "<td>".$row['x']."</td>";
$htmout_table_body .= "<td>".$row['y']."</td>";
$htmout_table_body .= "<td>".$row['td']."</td>";
$htmout_table_body .= "<td>".$row['tdx']."</td>";
$htmout_table_body .= "<td>".$row['tdy']."</td>";
$htmout_table_body .= "<td>".$row['note']."</td>";
$htmout_table_body .= "</tr>\n";
}
$csv=str_replace("|",",",$psv);
$txt=str_replace("|"," ",$psv);
$json .= "{\n";
$json .= "\"gid\":\"$gid\",\n";
$json .= "\"dttm\":\"$dttm\",\n";
$json .= "\"pb\":\"$pb\",\n";
$json .= "\"pw\":\"$pw\",\n";
$json .= "\"bxlim\":\"$bxlim\",\n";
$json .= "\"bylim\":\"$bylim\",\n";
$json .= "\"bhandi\":\"$bhandi\",\n";
$json .= "\"t\":\"$t\",\n";
$json .= "\"x\":\"\",\n";
$json .= "\"y\":\"\",\n";
$json .= "\"td\":\"\",\n";
$json .= "\"tdx\":\"$tdx\",\n";
$json .= "\"tdy\":\"$tdy\",\n";
$json .= "\"note\":\"nextmove\"\n";
$json .= "}\n";
$json .= "]}";
$htmout .= $htmout_table_head;
$htmout .= $htmout_table_body;
$htmout .= " </table>\n";
# printf( "BUGS_2390: val=[$val] fld=[$fld] row=[$row]<br>\n" );
if( $fmt == "psv" ) { print($psv); exit; }
if( $fmt == "csv" ) { print($csv); exit; }
if( $fmt == "json" ) {
header('Content-type: application/json');
print($json); exit;
}
if( $fmt == "txt" ) { print($txt); exit; }
if( $fmt == "html" ) { print($htmout); exit; }
print( $psv );
exit;
}
if( isset($_REQUEST['kogo_bxbys']) || isset($_REQUEST['kogo_bxbys'] )) {
$bxbyid=$_REQUEST['kogo_bxbys'];
$htmout = "";
$bxbys=""; $t=1; $bxlim=19; $bylim=19;
$bxbyss = array();
$bxbyss['a'] = "1,1 1,2 1,3 1,4";
$bxbyss['b'] = "10,1 10,2 10,3 10,4";
$bxbyss['c'] = "19,1 19,2 19,3 19,4";
$bxbyss['ko'] = "1,2 3,2 2,1 2,3 2,3 3,4";
$bxbys=""; $bxbys_head=""; $bxbys_body="";$pb="pd"; $pw="pw";
$bxlim=19; $bylim=19; $bhandi=9;$t=0;$x=0;$y=0;$td=0;$tlim=0;$tdx=0;$tdy=0;
$dttm="20211203_1830";
if( $bxbyid == "" ) {
$htmout = "<h1>MSG_421 KOGO_BXBYS=$bxbyid $progid?kogo_bxbys=$bxbyid<h1>\n";
$tlim=$bxlim*$bylim;
for( $bx=1; $bx<$bxlim; $bx++ ) {
for( $by=1; $by<$bylim; $by++ ) {
$bxbys_body .= "$bxbyid,$t,$bx,$by,$td,$tdx,$tdy<br>\n";
$t=$t+1;
}
}
$bxbys_head="$bxbyid,$dttm,$pb,$pw,$bxlim,$bylim,$bhandi,$tlim,$tdx,$tdy<br>\n";
}
else {
$bxbys_body="";
if( ! isset( $bxbyss[$bxbyid] )) { print( "<h1>ERR_420 NOTFOUND bxbyid=$bxbyid</h1>"); exit;}
$bxbys = $bxbyss[$bxbyid]; $xyd="";
$tlim = count(explode(" ",$bxbys));
for( $t=0; $t<$tlim; $t++ ) {
$bx=""; $by=""; $td="";
$xyd=explode(" ",$bxbys);
$commas=count(explode(",",$xyd[$t]));
$bx = explode(",",$xyd[$t])[0];
if( $commas>1 ) {
$by = explode(",",$xyd[$t])[1];
}
if( $commas>2 ) {
$td = explode(",",$xyd[$t])[2];
if( isOdd($td)) { $tdx=$tdx+1; } else { $tdy=$tdx+1; }
}
$t1=$t+1;
$bxbys_body .= "$bxbyid,$t1,$bx,$by,$td<br>\n";
}
$bxbys_head="$bxbyid,$dttm,$pb,$pw,$bxlim,$bylim,$bhandi,$tlim,$tdx,$tdy<br>\n";
}
$bxbys = "";
$bxbys .= $bxbys_head . $bxbys_body;
# $htmout = "<h1>MSG_412 KOGO_BXBYS= $progid?todo=$kogo_bxbys<h1>\n";
print($bxbys);
exit;
}
if( isset($_REQUEST['kogo']) || isset($_REQUEST['kogo'] )) {
$kogo=$_REQUEST['kogo'];
if( $kogo == "" ) {
$htmout = "<h1>MSG_411 TODO=KOGO $progid?todo=$todo<h1>\n";
}
$htmout = "<h1>MSG_412 TODO=KOGO $progid?todo=$todo<h1>\n";
print($htmout);
exit;
}
if( isset($_REQUEST['todo']) || isset($_REQUEST['todo'] )) {
$todo="";
# if( isset($_REQUEST['todo'] )) {
# $request=$_REQUEST['todo'];
# if( $request != "" ) { $todo=$request; }
# print( "\n<h1>MSG_130 FINDIDS todo=$todo request=$request</h1><br>\n");
# }
if( isset($_REQUEST['fmt'] )) {$fmt=$_REQUEST['fmt'];}
$idfinds_ko='mp3s mp4s pdfs fbs zms yts bcs txts htmls';
# yts|find yt/txt -type f -maxdepth 1 -name "ytlist_202111*.txt" -exec cat {} \; | grep "youtube" | head -100
# bcs|find yt/txt -type f -maxdepth 1 -name "ytlist_202111*.txt" -exec cat {} \; | grep "bitchute" | head -100
# htmls|find yt/txt -type f -maxdepth 1 -name "ytlist_202111*.txt" -exec cat {} \; | grep ".html" | head -100
$idfinds='
mp4s_root|find /kb/vid -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp4s_dotdot|find ../kb/vid -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp4s|find ./mp4 -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp3s|find ../kb/aud/mp3 -type f -name "*.mp3"
pdfs|find pdf -type f -name "*.pdf"
fbs|find fb -type d -name "pages" # fb
zms|find zm -type f -name "0-0-0.jpg" # zm
ka_mp4s|find ka/vid -type f -name "*.mp4" -o -name "*.webm"
ka_mp3s|find ka/aud -type f -name "*.mp3"
ka_pdfs|find ka/pdf -type f -name "*.pdf"
ka_fbs|find ka/fb -type d -name "pages" # fb
ka_zms|find ka/zm -type f -name "0-0-0.jpg" # zm
';
# ka_fbs|find fb -type f -name "index.html" # fb
# ka_zms|find zm -type f -name "zm*.htm*" # zm
# fbs|find ../zm -type f -name "zm*.htm*" # fb
# zms|find ../zm -type f -name "zm*.htm*" # zm
$idfinds_big='
mp4s|find /kb/vid -type f -maxdepth 3 -name "*.mp4" -o -name "*.webm"
mp3s|find /kb/aud/mp3 -type f -name "*.mp3"
pdfs|find /pdf -type f -name "*.pdf"
ka_pdfs|find pdf -type f -name "*.pdf"
ko|find pdf -type f -maxdepth 1 -name "*.pdf"
kups|find ./kups -type f -name "*.*"
imgs|find ./imgs -type f -name "*.*"
jsons|find pdf -type f -name "*.json"
host_list|cat ./kb/media/host_list.psv
host_list_ka|cat ./kb/media/host_list_ka.psv
media_list|cat ./kb/media/media_list.psv
media_list_ka|cat ./kb/media/media_list_ka.psv
coffeec_list|cat ./kb/media/coffeec_list.psv
coffeec_list_ka|cat /kb/media/coffeec_list_ka.psv
coffee_list|cat /kb/media/coffee_list.psv
cat_ko_coffeeshop_psv|cat ko_coffeeshop.psv
cat_ko_coffeeshop_csv|cat ko_coffeeshop.csv
sql3_kups|select * from kups
sql3_ko_coffeeshop|select * from ko_coffeeshop
sql3_host_list|select * from host_list
sql3_host_list_ka|select * from host_list_ka
sql3_media_list|select * from media_list
sql3_media_list_ka|select * from media_list_ka
sql3_coffeec_list|select * from coffeec_list
sql3_coffeec_list_ka|select * from coffeec_list_ka
sql3_coffee_list|select * from coffee_list
sql3_coffee_list_ka|select * from coffee_list_ka
txts|find txt -type f -name "*.txt"
pns|find pn/imgs -type f -maxdepth 1 -name "*.jpg"
pdf_ko|find pdf -type f -name "*ko*.pdf"
pdf_iperms|find pdf -type f -name "*iperms*.pdf"
pdf_jtfdc|find pdf -type f -name "*jtfdc*.pdf"
pdf1|find pdf -type f -maxdepth 1 -name "*.pdf"
mp3s1|find kb/aud/mp3 -type f -maxdepth 1 -name "*.mp3"
yts|find kb/media/ -type f -maxdepth 1 -name "ko_media_yt.txt" -exec cat {} \; | grep "youtube" | head -100
bcs|find kb/media -type f -maxdepth 1 -name "ko_media_bc.txt" -exec cat {} \; | grep "bitchute" | head -100
htmls|find kb/media -type f -maxdepth 1 -name "ko_media_ht.txt" -exec cat {} \; | grep ".html" | head -100
pagesimgs|find ./pages -type f -maxdepth 1 -name "*.jpg"; find ./imgs -type f -maxdepth 1 -name "*.jpg" | grep -v "tn/";
pages|find fb/pages -type f -maxdepth 1 -name "*.jpg"
pdfs1|find pdf -type f -maxdepth 1 -name "*.pdf"
fbd1|find fb -type d -maxdepth 1 -name "*"
txts|find txt -type f -maxdepth 2 -name "*.txt"
htms|find . -type f -maxdepth 1 -name "??.html"
dirs_mp3|find kb/aud -type d -maxdepth 3 -name "*"
dirs_mp4|find kb/vid -type d -maxdepth 3 -name "*"
dirs_pdf|find pdf -type d -maxdepth 3 -name "*"
dirs_yts|find yt/txt -type d -maxdepth 3 -name "ytlist_*.txt"
dirs_fb|find fb -type d -maxdepth 1 -name "*"
dirs_pn|find pn -type d -maxdepth 3 -name "*"
dirs_tl|find tl -type d -maxdepth 3 -name "*"
dirs_zn|find tl -type d -maxdepth 3 -name "*"
';
$idfinds_tests='
mp3_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
mp4_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
pdf_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
txt_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
htm_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
yt_today|find kb/aud/mp3 -type f -name "library_of_congress.mp3"
fb_today|fb/mars
pn_today|pn/imgs/pano_creek.jpg
tl_todatoday|
zm_todatoday|
mp3s_n|find kb/aud/mp3 -type f -name "<n>.mp3"
mp4s2|find kb/vid/jkwii -type f -maxdepth <d> f -name "<n>.mp4"
mp4s_p|find kb/vid/<p> -type f -maxdepth <d> -name "<n>.mp4"
mp4s_n|find kb/vid/<p> -type f -maxdepth <d> -name "<n>.mp4"
mp4_p|find kb/vid -type d -maxdepth <d> -name "<n>"
yts|cat /yt/txt/ytlist.txt | grep "<n>" | head -100
yts_lim|cat /yt/txt/ytlist.txt | grep "<n>" | head -<lim>
ht_mp3|kb/aud/mp3/library_of_congress.mp3
ht_mp4|kb/vid/jkwii/dutch_jackson_weightup.mp4
ht_yt||https:#www.youtube.com/watch?v=wQz5aG2tnd4|vladvt_megalithic_inca
ht_png|imgs/btn/koeye.png
ht_jpg|imgs/bg/bg_newton05b.jpg
ht_gif|imgs/gif/gifset_knots/knot1.gif
ht_zm|/index_zm.html
ht_zmd|/zm
ht_tl|/index_tl.html
ht_tld|/tl
find|find <p> -type f -maxdepth <lim> -name "<n>"
mp4s_jtfdc|find kb/vid -type f -name "jtfdc*.mp4"
gifd1|find imgs/gif -type d -maxdepth 2 -name "*"
gifs|find imgs/gif -type f -maxdepth 2 -name "*.gif"
pdfs|find pdf -type f -name "*.pdf"
pdfs2|find pdf/pdf -type f -maxdepth 1 -name "*.pdf"
fbd1|find fb -type d -maxdepth 1 -name "*"
fbds|find fb -type d -name "*"
pages|find fb/pages -type f -maxdepth 1 -name "*.jpg" \| head -5
pages_fb|find fb/pages -type f -maxdepth 1 -name "*.jpg"
pagesimgs|find ./pages -type f -maxdepth 1 -name "*.jpg"; find ./imgs -type f -maxdepth 1 -name "*.jpg";
topdirs|find / -type d -maxdepth 1 -name "??";
sh_ka1|./ka1.sh
sh_cp|find ./pages -type f -maxdepth 1 -name "*.jpg" | awk \'{ print "convert "$0" -resize 200x tn/tn_"$0" # "NF }\' | sed "s/jpg /png /"
sql3_sel_db3tbllim|sqlite3 <db3> "sel * from <tbl> limit <lim>";
sql3_sel_tbllim|sqlite3 ko.db3 "sel * from <tbl> limit <lim>";
sql3_tables|sqlite3 ko.db3 .tables
sql3_schema|sqlite3 ko.db3 .schema
sql3_files|sqlite3 ko.db3 "select * from files"
sql3_ko_coffee|sqlite3 ko.db3 "select * from coffee_list"
sql3_ko_media|sqlite3 ko.db3 "select * from media_list"
sql3_mp3|sqlite3 ko.db3 "select * from mp3"
sql3_mp4|sqlite3 ko.db3 "select * from mp4"
sql3_mp3|sqlite3 ko.db3 "select * from jpg"
sql3_books|sqlite3 ko.db3 "select * from books"
fb/iperms/pages|find fb/iperms/pages -type f -maxdepth 1 -name "*.jpg"
fb/konet/pages|find fb/konet/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdc/pages|find fb/jtfdc_pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdcr/pages|find fb/jtfdcr/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfinc/pages|find fb/jtfinc/pages -type f -maxdepth 1 -name "*.jpg"
fb/kt/pages|find fb/kt/pages -type f -maxdepth 1 -name "*.jpg"
fb/iperms/pages|find fb/iperms/pages -type f -maxdepth 1 -name "*.jpg"
fb/konet/pages|find fb/konet/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdc/pages|find fb/jtfdc_pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfdcr/pages|find fb/jtfdcr/pages -type f -maxdepth 1 -name "*.jpg"
fb/jtfinc/pages|find fb/jtfinc/pages -type f -maxdepth 1 -name "*.jpg"
fb/kt/pages|find fb/kt/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/go/pages|find fb/go/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/kou/pages|find fb/kou/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/royal1/pages|find fb/royal1/pages -type f -maxdepth 1 -name "<n>.jpg"
fb/iperms/imgs|find fb/iperms/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/konet/imgs|find fb/konet/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/jtfdc/imgs|find fb/jtfdc_imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/jtfdcr/imgs|find fb/jtfdcr/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/jtfinc/imgs|find fb/jtfinc/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/kt/imgs|find fb/kt/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/go/imgs|find fb/go/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/kou/imgs|find fb/kou/imgs -type f -maxdepth 1 -name "<n>.jpg"
fb/royal1/imgs|find fb/royal1/imgs -type f -maxdepth 1 -name "<n>.jpg"
tls|find tl -type f -maxdepth 1 -name "<*>.json"
zms|find zm -type f -name "0-0-0.jpg"
pns|find pn -type f -name "*.jpg"
du|du -h -d 1 .
du_dp|du -h -d <d>
';
# du -h --max-depth 1 . # bh
# du -h -d 1 . # depth 1
# du -h -depth . # depthtot
# print( "<h1>BUGS_760 todo=$todo idfinds=$idfinds</h1><br>\n" );
$ids=explode("\n",$idfinds);
$htmout="";
$list="";
$todo="";
if( isset($_REQUEST['todo'])) { $todo=$_REQUEST['todo']; }
$db2=""; if( isset($_REQUEST['db2'])) { $db3=$_REQUEST['db2']; }
$db3=""; if( isset($_REQUEST['db3'])) { $db3=$_REQUEST['db3']; }
$tbl=""; if( isset($_REQUEST['tbl'])) { $tbl=$_REQUEST['tbl']; }
$sel=""; if( isset($_REQUEST['sel'])) { $sel=$_REQUEST['sel']; }
$fld=""; if( isset($_REQUEST['fld'])) { $fld=$_REQUEST['fld']; }
$val=""; if( isset($_REQUEST['val'])) { $val=$_REQUEST['val']; }
$fmt=""; if( isset($_REQUEST['fmt'])) { $fmt=$_REQUEST['fmt']; }
$lim=""; if( isset($_REQUEST['lim'])) { $lim=$_REQUEST['lim']; }
$a=""; if( isset($_REQUEST['a'])) { $a=$_REQUEST['a']; }
$b=""; if( isset($_REQUEST['b'])) { $b=$_REQUEST['b']; }
$c=""; if( isset($_REQUEST['c'])) { $c=$_REQUEST['c']; }
$d=""; if( isset($_REQUEST['d'])) { $d=$_REQUEST['d']; }
$d=""; if( isset($_REQUEST['d'])) { $d=$_REQUEST['d']; }
$e=""; if( isset($_REQUEST['e'])) { $e=$_REQUEST['e']; }
$f=""; if( isset($_REQUEST['f'])) { $f=$_REQUEST['f']; }
$g=""; if( isset($_REQUEST['g'])) { $g=$_REQUEST['g']; }
$h=""; if( isset($_REQUEST['h'])) { $h=$_REQUEST['h']; }
$i=""; if( isset($_REQUEST['i'])) { $i=$_REQUEST['i']; }
$j=""; if( isset($_REQUEST['j'])) { $j=$_REQUEST['j']; }
$k=""; if( isset($_REQUEST['k'])) { $k=$_REQUEST['k']; }
$l=""; if( isset($_REQUEST['l'])) { $l=$_REQUEST['l']; }
$m=""; if( isset($_REQUEST['m'])) { $m=$_REQUEST['m']; }
$n=""; if( isset($_REQUEST['n'])) { $n=$_REQUEST['n']; }
$o=""; if( isset($_REQUEST['o'])) { $o=$_REQUEST['o']; }
$p=""; if( isset($_REQUEST['p'])) { $p=$_REQUEST['p']; }
$q=""; if( isset($_REQUEST['q'])) { $q=$_REQUEST['q']; }
$r=""; if( isset($_REQUEST['r'])) { $r=$_REQUEST['r']; }
$s=""; if( isset($_REQUEST['s'])) { $s=$_REQUEST['s']; }
$t=""; if( isset($_REQUEST['t'])) { $t=$_REQUEST['t']; }
$u=""; if( isset($_REQUEST['u'])) { $u=$_REQUEST['u']; }
$v=""; if( isset($_REQUEST['v'])) { $v=$_REQUEST['v']; }
$w=""; if( isset($_REQUEST['w'])) { $w=$_REQUEST['w']; }
$x=""; if( isset($_REQUEST['x'])) { $x=$_REQUEST['x']; }
$y=""; if( isset($_REQUEST['y'])) { $y=$_REQUEST['y']; }
$z=""; if( isset($_REQUEST['z'])) { $z=$_REQUEST['z']; }
$ids=explode("\n",$idfinds);
$htmout="";
$list="";
$fmt="";
# if( $todo == "" ) { print("<h1>BUGS_811 TODO=BLANK todo=$todo</h1>" ); }
# if( $todo == 0 ) { print("<h1>BUGS_812 TODO=NUM0 todo=$todo</h1>" ); }
# if( $todo == "0" ) { print("<h1>BUGS_813 TODO=NUMCHR todo=$todo</h1>" ); }
# if( $todo == "menu" ) { print("<h1>BUGS_814 TODO=MENU todo=$todo</h1>" ); }
# print("<h1>BUGS_1840 TODO todo=$todo</h1>" );
if( isset($_REQUEST['fmt'])) { $fmt=$_REQUEST['fmt']; }
if(( $todo == "" )
|| ( $todo == "0" )
|| ( $todo == "list" )
|| ( $todo == "menu" )) {
print( "<h1>BUGS_815 MENU todo=$todo</h1><br>\n" );
$htmout .= "<html>\n";
$htmout .= "<head>\n";
$htmout .= " <title>$progid $dttm todo</title>\n";
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen>\n";
# $htmout .= "<h1>todo</h1>\n";
$htmout .= "<a href=/index.html target=_blank>";
$htmout .= "<img src=ko.png height=20>";
$htmout .= "</a>\n";
$htmout .= "       ";
$htmout .= "$progid $dttm";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= "<table id=table_todo>";
$htmout .= "<tr><td>j</td><td width=100 >url</td><td width=125>id</td><td width=400>find</td></tr>\n";
for( $j=0; $j<count($ids); $j++ ) {
$line=$ids[$j];
$list .= $line;
if( $line === "" ) { continue; }
if( preg_match("/^#/", $line, $matches )) { continue; }
if( preg_match("/^</", $line, $matches)) {
# $list .= $line;
# $htmout .= $line;
# print( "<h2>MSG_385 HTMFMT line=$line</h2><br>\n" );
continue;
}
$id=explode("|",$line)[0];
if( $id === "" ) { continue; }
$find=""; $findtype="";
if( count(explode("|", $line)) > 1 ) {
$idpipe=$id."|";
$find=str_replace($idpipe,"",$line);
}
else {
$find=explode("|",$line)[1];
}
$matches2="";
# print( "<h1>BUGS_680 todo=$todo j=$j id=$id line=$line</h1><br>\n" );
# if( str_contains( $find, "# fb" )) { $findtype="fb"; }
# if( str_contains( $find, "# zm" )) { $findtype="zm"; }
$find=str_replace('<fmt>',$fmt, $find, $matches2);
$find=str_replace('<lim>',$lim, $find, $matches2);
$find=str_replace('<db3>',$db3, $find, $matches2);
$find=str_replace('<tbl>',$tbl, $find, $matches2);
$find=str_replace('<sel>',$sel, $find, $matches2);
$find=str_replace('<fld>',$fld, $find, $matches2);
$find=str_replace('<a>',$a, $find, $matches2);
$find=str_replace('<b>',$b, $find, $matches2);
$find=str_replace('<c>',$c, $find, $matches2);
$find=str_replace('<d>',$d, $find, $matches2);
$find=str_replace('<e>',$e, $find, $matches2);
$find=str_replace('<f>',$f, $find, $matches2);
$find=str_replace('<g>',$g, $find, $matches2);
$find=str_replace('<h>',$h, $find, $matches2);
$find=str_replace('<i>',$i, $find, $matches2);
$find=str_replace('<j>',$j, $find, $matches2);
$find=str_replace('<k>',$k, $find, $matches2);
$find=str_replace('<l>',$l, $find, $matches2);
$find=str_replace('<m>',$m, $find, $matches2);
$find=str_replace('<n>',$n, $find, $matches2);
$find=str_replace('<o>',$o, $find, $matches2);
$find=str_replace('<p>',$p, $find, $matches2);
$find=str_replace('<q>',$q, $find, $matches2);
$find=str_replace('<r>',$r, $find, $matches2);
$find=str_replace('<s>',$s, $find, $matches2);
$find=str_replace('<t>',$t, $find, $matches2);
$find=str_replace('<u>',$u, $find, $matches2);
$find=str_replace('<v>',$v, $find, $matches2);
$find=str_replace('<w>',$w, $find, $matches2);
$find=str_replace('<x>',$x, $find, $matches2);
$find=str_replace('<y>',$y, $find, $matches2);
$find=str_replace('<x>',$z, $find, $matches2);
# print( "<h3>BUGS_460 j=$j id=$id p=$p find=$find</h3>\n") ;
$k=$j+1;
$htmout .= "<tr>";
$htmout .= "<td>$k</td>";
$htmout .= "<td width=100>";
# $htmout .= "<a href=/ko.php?todo=$id target=_blank>\n";
$htmout .= "<a href=./ko_center.php?todo=$id target=_blank>\n";
$htmout .= "<img src=/imgs/btn/koeye.png height=25>";
$htmout .= "</a>";
$htmout .= "</td>\n";
$htmout .= "<td width=125><b>$id</b></td>";
$htmout .= "<td width=470>$find</td>";
$htmout .= "</tr>";
}
$htmout .= " </table>";
$htmout .= "<hr color=goldenrod>\n";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
if( $fmt == "list" ) { print( $list ); }
else { print( $htmout ); }
exit;
}
if( isset( $_REQUEST['todo'] )) {
$todo=$_REQUEST['todo'];
}
if( $todo == "ko_coffeeshop" ) {
$output=ko_coffeeshop('');
header('Content-type: text/plain');
print( $output );
}
if( $todo == "ko_coffeeshop_psv" ) {
$psvfil="ko_coffeeshop.psv";
$fmt="psv";
$options=array($psvfil,$fmt);
if( file_exists( $psvfil )) {
$psv=psv_ko_coffeeshop($options);
}
else {
$psv="ERR_2011 NOTFOUND psvfil=$psvfil fmt=$fmt";
}
print($psv);
exit;
}
if( $todo == "ko_coffeeshop_csv" ) {
$csvfil="ko_coffeeshop.csv";
$fmt="csv";
$options=array($csvfil,$fmt);
if( file_exists( $csvfil )) {
$csv=csv_ko_coffeeshop($options);
}
else {
$psv="ERR_2011 NOTFOUND csvfil=$csvfil fmt=$fmt";
}
print($psv);
exit;
}
if( $todo == "ko_media_psv" ) {
$psvfil="ko_media.psv";
$fmt="psv";
$options=array($psvfil,$fmt);
if( file_exists( $psvfil )) {
$psv=psv_ko_media($options);
}
else {
$psv="ERR_2021 NOTFOUND psvfil=$psvfil fmt=$fmt";
}
print($psv);
exit;
}
if( $todo == "ko_coffeeshop_sql3" ) {
$db3fil="ko.db3";
$fmt="html";
$options=array($db3fil,$fmt);
$sqlout=sql3_ko_coffeeshop($options);
print_r($sqlout);
exit;
}
if( $todo == "sql3_ko_media" ) {
$db3fil="ko.db3";
$fmt="html";
$options=array($db3fil,$fmt);
$sqlout=sql3_ko_media($options);
print($sqlout);
exit;
}
$min=1; $max=3;
if( $todo == "ko" ) {
$id=$todo;
$min=0;$max=0;
$min=1; $max=count(explode(" ",$idfinds_ko))-1;
$random=random_int($min,$max);
$todo=explode(" ",$idfinds_ko)[$random];
}
for( $j=0; $j<count($ids); $j++) {
$line=$ids[$j];
$id=explode("|",$line)[0];
# print( "<h1>BUGS_871 j=$j id=$id line=$line todo=$todo</h1><br>\n" );
if( $id === "" ) { continue; }
if( $id != $todo ) {continue; }
# print( "<h1>BUGS_873 MATCH j=$j id=$id= todo=$todo= line=$line todo=$todo</h1><br>\n" );
# $find=explode("|",$line)[1];
$find=str_replace("$id|","", $line);
# print( "<h1>BUGS_675 id=$id find=$find line=$line</h1>" );
$list="";
$url=$find;
$url = urlcheck($url);
# print( "<h1>MSG_661 query_string=$query_string name=name id=$id find=$find</h1><br>\n" );
$find=str_replace_all($find);
# $find=str_replace("<n>", "$name", $find );
# print( "<h1>MSG_900 j=$j k=$k todo=$todo id=$id find=$find</h1><br>\n" );
$out = "";
# print( "<h1>BUGS_2056 find=$find</h1>" );
# pqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpqpq
exec( $find, $out, $err );
# bdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbd
$outcnt=count($out);
print( "BUGS_18400 find=$find outcnt=$outcnt<br>\n" );
print_r($out);
$script_filename=$_SERVER['SCRIPT_FILENAME']; # /Volumes/ka1tbr2/ht/ka/ko.php
$request_uri=$_SERVER['REQUEST_URI']; # /ka/ko.php?todo=ka_zms
$php_self=$_SERVER['PHP_SELF']; # /ka/ko.php
$query_string=$_SERVER['QUERY_STRING']; # todo=ka_zms
# if( $outcnt == 0 ) {
# $htmout = "";
# $htmout .= "<html><head><title>$request_uri NOTFOUND</title></head>\n";
# $htmout .= "<body bgcolor=wheat>\n";
# $htmout .= "<a href=$php_self target=_blank>";
# $htmout .= "<img src=/imgs/btn/ko.png height=50 border=0>$php_self</a>\n";
# $htmout .= "<h2>ERR_2080 NOTFOUND find=$find</h2>\n";
# $htmout .= "<h3>request_uri=$request_uri</h3>\n";
# $htmout .= "</body></html>\n";
# print( $htmout );
# phpinfo();
# $errtxt="<h2>ERR_2070 NOTFOUND find=$find</h2>\n";
# return($errtxt);
# }
# print( "<h1>BUGS_2060 outcnt=$outcnt fmt=$fmt out=".$out[2]."</h1>" );
$psv="";
$csv="";
$txt="";
$json="";
$json.="{\"todo\": [\n";
$dttm=date('Ymd_His');
$htmout = "";
$htmout .= "<html>\n";
$htmout .= "<head>\n";
$htmout .= " <title>todo=$todo $dttm</title>\n";
$icon="./favicon_ko64.ico";
# $htmout .= "<link rel=\"icon\" href=\"$icon\" type=\"image/icon\">\n";
$icon_png="koeye.png";
$icon_png="ko.png";
$icon_gif="koeye_handhither.gif";
# $htmout .= "<link rel=\"icon\" href=\"$icon_png\" type=\"image/png\">\n";
$htmout .= "<link rel=\"icon\" href=\"$icon_gif\" type=\"image/gif\">\n";
$htmout .= " </head>\n";
$htmout .= "<body bgcolor=linen>\n";
$htmout .= " <div id=div_todo_$todo>\n";
$htmout .= " <h1>div_todo_$todo</h1>\n";
$htmout .= " <hr color=goldenrod>\n";
print( "BUGS_18447 todos" );
for( $j=0; $j< count($out); $j++ ) {
$line= $out[$j];
$txt .= $line."\n";
$psv .= $line."|\n";
$csv .= $line.",";
$json .= "{ \"j\":\"".$j."\", \"line\":\"".$line."\" },\n";
}
$psv .= preg_replace("/|$/", "", $psv );
$csv .= preg_replace("/|/", ",", $psv );
# $json .= preg_replace("/},$/", "}", $json );
# $json .= str_lreplace( ",$", "", $json );
$j=""; $line="";
$json .= "{ \"j\":\"".$j."\", \"line\":\"".$line."\" }\n";
# $json .= str_replace_last( ",", "" , $json );
$json .="]}\n\n";
$fmt="";
if( isset( $_REQUEST['fmt'] )) {$fmt=$_REQUEST['fmt']; }
# print( "<h1>BUGS_925 fmt=$fmt</h1>\n" );
if( $fmt == "txt" ) {
header('Content-type: text/plain');
print($txt); exit();
}
if( $fmt == "list" ) { print($txt);exit(); }
if( $fmt == "psv" ) { print($psv); exit(); }
if( $fmt == "csv" ) {
header('Content-type: text/csv');
print($csv); exit();
}
if( $fmt == "json" ) {
header('Content-type: application/json');
print( $json );
exit();
}
$k=1;
# if(! isset( $out[$k] )) {
# print( "<h1>MSG_2100 k=$k NOTFOUND \$out</h1>\n" );
# $url="./index.html?err=out";
# header('Location: '.$url);
# die();
# print( "<h1>MSG_2100 k=$k NOTFOUND \$out</h1>\n" );
# return($k);
# exit();
# }
$line="";
# $out = [];
if( count($out) > 0 ) { $line=$out[$k]; }
# print( "<h1>MSG_2110 k=$k line=$line</h1>" );
# print( "<h1>MSG_2111 k=$k id=$id find=$find outcnt=$outcnt out0=".$out[0]." </h1><br>\n" );
# print( "<h2>MSG_704 out4=".$out[4]."</h2>" );
# print( "<h2>MSG_705 out5=".$out[5]."</h2>" );
# print( "<h2>MSG_706 out6=".$out[6]."</h2>" );
# print( "<h2>MSG_707 out7=".$out[7]."</h2>" );
$htmout_table = "";
$htmout_table .= "<table id=table_media>\n";
$htmout_table .= "<tr>";
$htmout_table .= "<td>j</td>";
$htmout_table .= "<td>k</td>";
$htmout_table .= "<td>tot</td>";
$htmout_table .= "<td>link</td>";
$htmout_table .= "<td>group</td>";
$htmout_table .= "<td width=400>base bugs_18520</td>";
$htmout_table .= "</tr>";
# $htmout_table .= "</table>";
$txt = "";
$psv = "";
$csv = "";
$sql = "";
$sql .= "insert into table files (\n";
$json = "";
$json .= "{\n";
# print( "<h1>BUGS_710 skiplist $htmout_table</table></h1>" );
$out_skiplist = skiplist($out);
$out=$out_skiplist;
$outcnt=count($out);
$j=0; $k=0;
print( "BUGS_18530 j=$j k=$k outcnt=$outcnt <br>" );
for( $j=0; $j<count($out); $j++ ) {
$k=$j+1;
$line = $out[$j]."\n";
$list .= $line."\n";
$pathfile = $line;
# print( "<h1>BUGS_950 j=$j k=$k line=$line</h1>" );
print( "BUGS_18540 j=$j k=$k line=$line<br>\n" );
# $extension = pathinfo($pathfile, PATHINFO_EXTENSION);
$dirname=dirname($pathfile);
$group = str_replace("/","_", $dirname );
$temp= explode('.',$pathfile);
$ext = end($temp);
$base=basename($pathfile,".$ext");
$link = htmout_link($pathfile,'',$find);
# $url=$pathfile;
# $tn="/imgs/btn/koeye.png";
$txt .= "$line\n";
$psv .= "$j|$k|$outcnt|$pathfile|$link|$group|$base\n";
$csv .= "$j,$k,$outcnt,$pathfile,$link,$group,$base\n";
$sql .= "( 'j','k','outcnt',pathfile,'link','group','base' ),";
$json .= "{\n";
$json .= "'j':'$k', ";
$json .= " 'k':'$k', ";
$json .= "'outcnt':'$outcnt', ";
$json .= "'pathfile':'$pathfile', ";
$json .= "'link':'$link', ";
$json .= "'group':'$group', ";
$json .= "'base':'$base' ";
$json .= "},\n";
$htmout_table .= "<tr>";
$htmout_table .= "<td>$j</td>";
$htmout_table .= "<td>$k</td>";
$htmout_table .= "<td>$outcnt</td>";
$htmout_table .= "<td>".htmout_link($pathfile,'',$find)."</td>";
# $htmout_table .= "<td><img src=/imgs/btn/koeye_handhither.gif height=100></td>";
$htmout_table .= "<td>$group</td>";
$htmout_table .= "<td>$base</td>";
$htmout_table .= "</tr>\n";
# print( "<h3>BUGS_740 j=$j k=$k outcnt=$outcnt group=$group base=$base ext=$ext </h3>" );
$htmout_link=htmout_link($pathfile,'',$find);
# print( "<h3>BUGS_2020 j=$j k=$k pathfile=<$pathfile></h3>" );
# print( "<h3>BUGS_2021 j=$j k=$k htmout_link=<$htmout_link> find=$find</h3>" );
}
$json .= " }\n";
$matches = "";
$json = preg_replace( "/,}$/", "}", $matches );
$sql = preg_replace( "/,\)$/", ")", $matches );
$psv = preg_replace( "/|$/", "", $matches );
$csv = preg_replace( "/,$/", "", $matches );
$htmout_table .= " </table>";
$htmout .= "<hr color=goldenrod>";
$htmout .= $htmout_table;
$htmout .= "<hr color=goldenrod>";
$htmout .= " </body>\n";
$htmout .= " </html>\n";
$fmt="";
if( isset($_REQUEST['fmt'])) { $fmt=$_REQUEST['fmt']; }
# print( "<h1>BUGS_1000 find=$find fmt=$fmt</h1>" );
if( $fmt == "txt" ) { print( $txt ); exit; }
if( $fmt == "psv" ) { print( $psv ); exit; }
if( $fmt == "csv" ) { print( $csv ); exit; }
if( $fmt == "sql" ) { print( $sql ); exit; }
if( $fmt == "json" ) {
header('Content-type: application/json');
print( $json );
exit;
}
if( $fmt == "html" ) { print( $htmout ); exit; }
print($htmout); exit;
print( "<h3>BUGS_1021 j=$j k=$k outcnt=$outcnt group=$group base=$base ext=$ext </h3>" );
}
# if( count($out) < 1 ) { print( "<h2>ERR_2160 NOTFOUND find=$find</h2>\n" ); }
$outcnt="";
$group="";
$base="";
$ext="";
# print( "<h3>BUGS_1022 j=$j k=$k outcnt=$outcnt group=$group base=$base ext=$ext </h3>" );
return($htmout);
exit;
}
if( isset($_REQUEST['ls-lat']) || isset($_REQUEST['ls'] )) {
if( isset($_REQUEST['ls-lat'])) {
$request_path=$_REQUEST['ls-lat'];
}
else {
$request_path=$_REQUEST['ls'];
}
# print( "<h1>BUGS_183 request_path=$request_path</h1><br>\n" );
if( $request_path === "" ) { exit; }
$pathparts = pathinfo($request_path);
$dirname=$pathparts['dirname'];
$basename=$pathparts['basename'];
$ext="";
if( isset($pathparts['extension'])) {
$ext=$pathparts['extension'];
}
$path=$dirname;
if( ! is_dir($path)) {
print( "\n<h1>ERR_122 LSLAT NOTFOUND path=$path</h1><br>\n");
exit;
}
$lscmd="ls $request_path";
if( isset($_SERVER['ls-lat'])) {
$lscmd="ls -lat $request_path";
}
# print( "\n<h1>MSG_199 LSLAT lscmd=$lscmd</h1><br>\n");
$htmout = "";
exec( $lscmd, $out, $err );
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
exit;
}
if( isset($_REQUEST['find'])) {
# 1 ?find=/fb/zc/pages/*.jpg
# 4 ?find=find $path -name $names
# 6 ?find=find $path -type d -name $names
# 6 ?find=find $path -maxdepth 2 -name $names
# 8 ?find=find $path -type d -maxdepth 2 -name $names
# 4 ?find=find $path -type d
# 6 ?find=find $path -type d -maxdepth $maxdepth
$request_find=""; $findargs=""; $findargs_len=0;
$request_find=$_REQUEST['find'];
$findargs = explode( " ", $request_find );
$findargs_len=count($findargs);
for( $j=0; $j<count($findargs); $j++ ) {
$findargs[$j]=str_replace("\"","",$findargs[$j]);
$findargs[$j]=str_replace("'","",$findargs[$j]);
}
# print( "<h1>BUGS_140 findargs_len=$findargs_len request_find=$request_find</h1><br>\n" );
$path="";
if( count($findargs) === 1 ) {
# print( "<h1>BUGS_141 findargs_len=$findargs_len request_find=$request_find</h1><br>\n" );
# $pathparts = pathinfo($request_find);
# $dirname=$pathparts['dirname'];
# $basename=$pathparts['basename'];
# $ext="";
# if( isset($pathparts['extension'])) {
# $ext=$pathparts['extension'];
# }
# print( "<h1>BUGS_161 dirname=$dirname basename=$basename request_find=$request_find</h1><br>\n" );
# $path=$dirname;
# $name=$basename;
$path="fb";
$type="d";
$maxdepth="1";
$name="??";
if( ! is_dir($path)) {
print( "<h1>ERR_163 NOTFOUND path=$path</h1><br>\n" );
exit;
}
$find="find $path -type $type -maxdepth $maxdepth -name \"$name\"";
# print( "<h1>MSG_164 FOUND path=$path name=$name</h1><br>\n" );
print( "<h1>MSG_2340 FOUND find=$find </h1><br>\n" );
exec( $find, $out, $err );
$htmout="";
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
# print( "<h1>MSG_161 find=$find htmout=$htmout</h1><br>\n" );
print( $htmout );
exit;
}
# print( "<h1>BUGS_150 path=$path request_find=$request_find</h1><br>\n" );
$path="";
$maxdepth="";
$type="";
$names="";
$query_string="";
if( isset( $_SERVER['QUERY_STRING'])) {
$query_string=$_SERVER['QUERY_STRING'];
}
# print( "<h1>BUGS_300 findargs_len=$findargs_len request_find=$request_find query_string=$query_string</h1><br>\n" );
if( $findargs_len === 2 ) {
print( "<h1>BUGS_142 findargs_len=$findargs_len request_find=$request_find</h1><br>\n" );
$path=$findargs[1];
$path=str_replace("\"","",$path );
if( ! is_dir($path)) {
print( "<h1>ERR_143 NOTFOUND path=$path=- request_find=$request_find</h1><br>\n" );
exit;
}
$path="fb"; $type="d"; $maxdepth="1"; $names="??";
$find="find $path -type $type -maxdepth $maxdepth -name \"$names\"";
exec($find,$out,$err);
print( "<h1>BUGS_2380 find=$find</h1><br>\n" );
$htmout="";
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
# phpinfo();
# $request_find=str_replace("%20"," ",$request_find);
exit;
}
if( $findargs_len === 3 ) {
print( "<h1>BUGS_303 findargs_len=$findargs_len $request_find=$request_find query_string=$query_string</h1><br>\n" );
exit;
}
# if( $findargs_len === 4 ) {
# print( "<h1>BUGS_304 findargs_len=$findargs_len $request_find=$request_find query_string=$query_string</h1><br>\n" );
# }
if( $findargs_len === 1 ) {
$path="fb";
$type="d";
$maxdepth="1";
$names="??";
$find="find $path -type $type -maxdepth $maxdepth -name \"$names\"";
exec( $find, $out, $err );
print( "BUGS_311 find=$find<br>\n" );
$htmout="";
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
# print_r($out);
exit;
}
# if( $findargs_len === 2 ) { exit; }
# if( $findargs_len === 3 ) { exit; }
# if( $findargs_len === 5 ) { exit; }
# if( $findargs_len === 7 ) { exit; }
if( $findargs_len > 8 ) { exit; }
# print( "<h1>BUGS_350 findargs_len=$findargs_len query_string=$query_string</h1>\n" );
if( $findargs_len === 1 ) {
# if( is_file($request_find)) {
# print( "<h1>BUGS_101 is_file FOUND request_find=$request_find</h1>");
# }
# else {
# print( "<h1>BUGS_102 is_file NOTFOUND request_find=$request_find</h1>");
# }
if( $request_find != "" ) {
$pathparts = pathinfo($request_find);
$dirname=$pathparts['dirname'];
$basename=$pathparts['basename'];
$ext="";
if( isset($pathparts['extension'])) {
$ext=$pathparts['extension'];
}
$path=$dirname;
$names=$basename;
$type="f";
if( $ext === "" ) {
$path=$request_find;
$type="";
$names="";
}
# print( "BUGS_150 dirname=$dirname names=$names ext=$ext<br>\n" );
# if( $basename === "" ) { $names=""; }
}
}
# ?find=find $path -name $names
# ?find=find $path -type $type
if( $findargs_len === 4 ) {
$path = $findargs[1];
if ($findargs[2] === "-type" ) { $type=$findargs[3]; }
if ($findargs[2] === "-maxdepth" ) { $maxdepth=$findargs[3]; }
if ($findargs[2] === "-name" ) { $names=$findargs[3]; }
# print( "<h1>BUGS_240 findargs3=".$findargs[3]." request_find=$request_find</h1><br>\n") ;
if( ! is_dir($path)) {
print( "<h1>BUGS_241 NOTFOUND path=$path request_find=$request_find</h1><br>\n") ;
exit;
}
# print( "<h1>BUGS_242 FOUND path=$path request_find=$request_find</h1><br>\n") ;
$find="find $path";
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) { $find .= " -name \"$names\""; }
# print( "<h1>BUGS_243 type=$type find=$find request_find=$request_find</h1><br>\n") ;
$htmout="";
exec($find, $out, $err );
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
# print( "<h1>BUGS_249 find=$find htmout=$htmout</h1><br>\n") ;
print( $htmout );
exit;
}
# ?find=find $path -type f -name $names
# ?find=find $path -maxdepth $maxdepth -name $names
# ?find=find $path -type d -maxdepth 1
if( $findargs_len === 6 ) {
# print( "<h1>BUGS_601 request_find=$request_find</h1><br>\n" );
$path="";
$type="";
$maxdepth="";
$names="";
$path = $findargs[1];
if( $findargs[2] === "-type" ) { $type=$findargs[3]; }
if( $findargs[2] === "-maxdepth" ) { $maxdepth=$findargs[3]; }
if( $findargs[2] === "-name" ) { $names=$findargs[3]; }
if( $findargs[4] === "-type" ) { $type=$findargs[5]; }
if( $findargs[4] === "-maxdepth" ) { $maxdepth=$findargs[5]; }
if( $findargs[4] === "-name" ) { $names=$findargs[5]; }
$find="find $path";
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) { $find .= " -name \"$names\""; }
$htmout="";
exec( $find, $out, $err );
for($j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
exit;
}
# ?find=find $path -type f -maxdepth $maxdepth -name $names
if( $findargs_len === 8 ) {
$path = $findargs[1];
if( ! is_dir($path)) { print( "<h1>NOTFOUND path=$path</h1><br>\n" ); exit; }
$find = "find $path";
if( $findargs[2] === "-type" ) { $type=$findargs[3]; }
if( $findargs[2] === "-maxdepth" ) { $maxdepth=$findargs[3]; }
if( $findargs[2] === "-name" ) { $names=$findargs[3]; }
if( $findargs[4] === "-type" ) { $type=$findargs[5]; }
if( $findargs[4] === "-maxdepth" ) { $maxdepth=$findargs[5]; }
if( $findargs[4] === "-name" ) { $names=$findargs[5]; }
if( $findargs[6] === "-type" ) { $type=$findargs[7]; }
if( $findargs[6] === "-maxdepth" ) { $maxdepth=$findargs[7]; }
if( $findargs[6] === "-name" ) { $names=$findargs[7]; }
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) { $find .= " -name \"$names\""; }
$htmout="";
# print( "<h1>BUGS_800 find=$find request_find=$request_find</h1><br>\n" );
exec( $find, $out, $err );
for( $j=0; $j<count($out); $j++ ) {
$htmout .= $out[$j]."\n";
}
print( $htmout );
exit;
}
$find="find $path";
if( $type != "" ) { $find .= " -type $type"; }
if( $maxdepth != "" ) { $find .= " -maxdepth $maxdepth"; }
if( $names != "" ) {
$names=str_replace("\"","",$names);
$names=str_replace("'","",$names);
$find .= " -name \"$names\"";
}
# $find="find $path -type $type -maxdepth $maxdepth -name \"$names\"";
# if( $names === "" ) {
# $find="find $path -type $type -maxdepth $maxdepth";
# }
# print( "<h1>BUGS_101 find=$find</h1>\n");
$htmout="";
$types="http html htm php mp4 mp3 jps png gif";
$l=0;
foreach( $types as $types ) {
if( preg_match( "/$type/", $find, $matches )) {
print( "MSG_680 l=$l type=$type find=$find<br>\n");
window.location($find);
exit;
}
$l++;
}
$url=$find;
# print( "MSG_681 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.http/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_682 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.html/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_683 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.htm/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_684 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.php/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_685 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.mp4/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_686 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.mp3/", $url, $matches )) { window.open($url); exit; }
# print( "MSG_687 l=$l type=$type url=$url<br>\n");
if( preg_match( "/.gif/", $url, $matches )) { window.open($url); exit; }
if( preg_match( "/.jpg/", $url, $matches )) { window.open($url); exit; }
if( preg_match( "/.png/", $url, $matches )) { window.open($url); exit; }
## $path="fb";
## $find="find $path -type f -maxdepth 1 -name \"*.*\"";
# if( is_dir($path)) {
## print( "<h1>MSG_271 find=$find</h1>\n" );
# exec( $find, $out, $err );
#
## print( "<h1>MSG_272 OUT find=$find</h1>\n" );
# $query_string="";
# if( isset($_SERVER['QUERY_STRING'] )) {
# $query_string=$_SERVER['QUERY_STRING'];
# }
## print( "<h1>MSG_273 OUT query_string=$query_string</h1>\n" );
## print_r($out);
# print_r($err);
# $outlen=count($out);
# $htmout="";
# $htmout .= "<hr color=goldenrod>\n";
# $list="";
# for( $j=0; $j<$outlen; $j++ ) {
# $htmout .= $out[$j]."<br>\n";
# $list .= $out[$j]."\n";
# }
# $htmout .= "<hr color=goldenrod>\n";
## print( "<h1>MSG_104 ERR</h1>\n" );
## print_r($err);
# $process = proc_open( $cmd, $descriptorspec, $pipes, $cwd_process );
# print( "<h1>MSG_250 LS DONE find=$find outlen=$outlen</h1>" );
# }
# else {
# print( "<h1>ERR_500 NOTFOUND path=$path request_find=$request_find query_string=$query_string</h1>\n" );
# exit();
# }
print( "<h1>MSG_900 LS DONE find=$find</h1>\n" );
if( $fmt == "list" ) { print ( $list ); return($list); }
if( $fmt == "list" ) { print ( $list ); return($list); }
print( $list );
return( $list );
# exit;
# }
# $path="fb";
# $find="find $path -type f -maxdepth 1 -name \"*.*\"";
if( is_dir($path)) {
# print( "<h1>MSG_271 find=$find</h1>\n" );
exec( $find, $out, $err );
# print( "<h1>MSG_272 OUT find=$find</h1>\n" );
$query_string="";
if( isset($_SERVER['QUERY_STRING'] )) {
$query_string=$_SERVER['QUERY_STRING'];
}
# print( "<h1>MSG_273 OUT query_string=$query_string</h1>\n" );
# print_r($out);
print_r($err);
$outlen=count($out);
$htmout="";
$htmout .= "<hr color=goldenrod>\n";
$list="";
for( $j=0; $j<$outlen; $j++ ) {
$htmout .= $out[$j]."<br>\n";
$list .= $out[$j]."\n";
}
$htmout .= "<hr color=goldenrod>\n";
# print( "<h1>MSG_104 ERR</h1>\n" );
# print_r($err);
# $process = proc_open( $cmd, $descriptorspec, $pipes, $cwd_process );
print( "<h1>MSG_250 LS DONE find=$find outlen=$outlen</h1>" );
}
else {
print( "<h1>ERR_500 NOTFOUND path=$path request_find=$request_find query_string=$query_string</h1>\n" );
exit();
}
# print( "<h1>MSG_109 LS DONE find=$find</h1>\n" );
# print( $htmout );
print( $list );
exit;
}
if( isset($_REQUEST['kolog'])) {
$db3file="ko.db3"; $tblname="kologs";
$todo=$_REQUEST['kolog'];
if( $todo == "" ) {$htmout=kolog($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "new" ) {$htmout=kolog_new($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "add" ) {$htmout=kolog_add($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "del" ) {$htmout=kolog_del($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "upd" ) {$htmout=kolog_upd($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "sel" ) {$htmout=kolog_sel($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "create" ) {$htmout=kolog_create($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "form" ) {$htmout=kolog_form($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "submit" ) {$htmout=kolog_submit($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "list" ) {$htmout=kolog_list($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "bugs" ) {$htmout=kolog_bugs($db3file, $tblname, $args); print( $htmout ); exit; }
if( $todo == "logs" ) {$htmout=kologs($db3file, $tblname, $args); print( $htmout ); exit; }
exit;
}
if( isset($_REQUEST['id'])) {
$id=$_REQUEST['id'];
if( $id == "bookmarkusb" ) {
$htmout=bookmarkusb();
# $htmout=bookmarkusb_form();
exit;
}
if( $id == "bookmarkusb_list" ) {
$htmout=bookmarkusb_list();
exit;
}
if( $id == "bookmarkusb_select" ) {
$htmout=bookmarkusb_select();
exit;
}
if( $id == "bookmarkusb_form" ) {
$htmout=bookmarkusb_form();
exit;
}
# print( "<h1>BUGS_100c REQUEST_id id=$id REQ=".$_REQUEST['id']."</h1><br>" );
}
# startup_ls();
# main_ka1();
# main_tl();
# $htmlfile="index.html";
# $htmout=read_htmlfile($htmlfile);
# print( $htmout );
return;
# exit;
# startup();
# exit;
}
# main();
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer