/"; for ($k=0; $k", "tag=" . $stuff[$k] . "'>" . $stuff[$k] . "", $outp); $outp = $inp; } } return str_replace("", "", $outp); } function dup($ins) { $first = $ins; $outs = str_replace("oursel", "ourselabs", $ins); $ins = str_replace("background-color", "position:absolute;left:50%;top:400;opacity:0.8;z-index:4;background-color", $outs); $outs = str_replace(" ", "", $ins); return $first . $outs; } $oursel = " 
"; $arr = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"); foreach ($arr as $value) { $oursel = str_replace("", "", $oursel); } foreach ($arr as $value) { $oursel = str_replace("", "", $oursel); } if (!isset($_GET['look'])) { header("Location: " . $_SERVER['REQUEST_URI'] . "?look=POST&tableid=[id]&tableth=[label]&tdbasis=[v]"); } if (isset($_GET['look']) || 1 == 1) { // analyze posted data $sru = str_replace("?" . $_SERVER['QUERY_STRING'], "", $_SERVER['REQUEST_URI']); $done = ""; $htmlis = "RJM Programming Blog GETME Summary - September, 2014
"; $numcols = 0; $thiscols = 0; $rowdat = ""; if ($_GET['look'] == "POST" || 1 == 1) { $idbasis = "[id]"; if (isset($_GET['tableid'])) { $idbasis = $_GET['tableid']; } $thbasis = "[label]"; if (isset($_GET['tableth'])) { $thbasis = $_GET['tableth']; } $tdbasis = "[v]"; if (isset($_GET['tabletd'])) { $tdbasis = $_GET['tabletd']; } // Create table of downloadable code at RJM Programming Wordpress blog ... http://www.rjmprogramming.com.au/wordpress // RJM Programming - September, 2014 // Date FileLink Path Extension DiffLinkAsApplicable WordpressSearchLink exec("find " . dirname(__FILE__) . "/ -name '*GETME' | sort > /tmp/basegetmelist.is 2> /dev/null"); $overall = file_get_contents("/tmp/basegetmelist.is"); $arroverall = explode("\n", $overall); $htmlis = str_replace("", "

 

", $htmlis); $rowdattemplate = ""; $qarr = array("Date (GMT)", "File", "Path off " . str_replace($_SERVER['DOCUMENT_ROOT'], "http://" . $_SERVER['HTTP_HOST'], dirname(__FILE__)) . "/", "Extension", "Blog Search Link", "Code Difference Link"); foreach ($qarr as &$qvalue) { if (str_replace("", "", $htmlis) == $htmlis) $htmlis = str_replace("", "", $htmlis); $htmlis = str_replace("", "" . $qvalue . "", $htmlis); $numcols++; $rowdattemplate = str_replace("", "" . $numcols . "", $rowdattemplate); } date_default_timezone_set('UTC'); $dsuff = "?datetime=" . date("Ymd.His"); $t = 1; for ($i=0; $i1", " id='" . date ("Ymd", filemtime($arroverall[$i])) . "'>" . str_replace(".", ".", date ("Ymd.His", filemtime($arroverall[$i]))) . "", $rowdat); $rowdat = str_replace(">2", " id='" . substr($myfile,0,1) . "'>" . "" . $myfile . "", $rowdat); if (strlen($mypath) > 0) { $fw = explode("/", $mypath); if (strpos($oursel, ">" . $fw[0] . "<") === false) { $oursel = str_replace("", "", $oursel); } $rowdat = str_replace(">3", " id='" . $fw[0] . "'>" . breadcrumbed($mypath) . "", $rowdat); } else { if (strpos($oursel, "><") === false) { $oursel = str_replace("", "", $oursel); } $rowdat = str_replace(">3", " id='0'>", $rowdat); } if (strpos($oursel, ">(" . $myext . ")<") === false) { $oursel = str_replace("", "", $oursel); } $rowdat = str_replace(">4", " id='(" . $myext . ")'>" . $myext . "", $rowdat); if (strpos($_SERVER['HTTP_HOST'], "rjmprogramming.com.au") !== false) { $rowdat = str_replace(">5", " id='" . str_replace("." . $myext, ".", $fil[sizeof($fil) - 1]) . str_replace("GETME", "", str_replace("_", "", str_replace("-", "", $ext[sizeof($ext) - 1]))) . "'>" . "" . $fil[sizeof($fil) - 1] . "", $rowdat); if (strpos($arroverall[$i], "--GETME") !== false || strpos($arroverall[$i], "__GETME") !== false || strpos($arroverall[$i], "-GETME") !== false || strpos($arroverall[$i], "_GETME") === false) { if (strpos($arroverall[$i], "--GETME") === false && !file_exists(str_replace("-" , "_", str_replace("__" , "_", $arroverall[$i]))) && str_replace("-" , "_", str_replace("__" , "_", $arroverall[$i])) != $arroverall[$i]) { $rowdat = str_replace(">6", ">", $rowdat); } else { $rowdat = str_replace(">6", " id='(" . str_replace("." . $myext, ".", $fil[sizeof($fil) - 1]) . str_replace("GETME", "", str_replace("_", "", str_replace("-", "", $ext[sizeof($ext) - 1]))) . ")'>" . "" . $fil[sizeof($fil) - 1] . "", $rowdat); } } else { $rowdat = str_replace(">6", ">", $rowdat); } } else { $rowdat = str_replace(">5", ">", $rowdat); $rowdat = str_replace(">6", ">", $rowdat); } $htmlis = str_replace("", $rowdat . "", $htmlis); } } $htmlis = str_replace("", "
Back
", $htmlis); } else { // analyze get data $htmlis = "

"; foreach($_GET as $key=>$value) { if ($key != "look") $htmlis = str_replace("

", str_replace("-", "[", str_replace("_", "]", $key)).'='.$value."

", $htmlis); } $htmlis = str_replace("", "
Back
", $htmlis); } if (str_replace(".php", ".htm", $_SERVER['SCRIPT_FILENAME']) != $_SERVER['SCRIPT_FILENAME']) { file_put_contents(str_replace(".php", ".htm", $_SERVER['SCRIPT_FILENAME']), str_replace("
"; $htmlis = str_replace("
", "\n
JSON Array data

", $htmlis); $htmlis = str_replace("
", "\n
", $htmlis); $htmlis = str_replace("
", "\n

or JSON Feed url

", $htmlis); $htmlis = str_replace("
", "\n


Table ID searchspec
", $htmlis); $htmlis = str_replace("
", "\n

Table Heading searchspec
", $htmlis); $htmlis = str_replace("
", "\n

Table Cell searchspec

", $htmlis); echo str_replace("

"; //echo $json; // try { // if (strpos($json, "\\") !== false && 1 == 2) { // $server_query = str_replace('{', '', str_replace('}', '', str_replace("'", "", str_replace('"', '', str_replace(',"', '&', str_replace('":', '=', str_replace("\\", "", $json))))))); // $htmlis = str_replace("
", "\n
", $htmlis); // } else { //echo $json; $objarr = json_decode(str_replace("\\", "", $json)); $server_query = http_build_query($objarr); // } // } catch (Exception $e) { // $server_query = str_replace('{', '', str_replace('}', '', str_replace("'", "", str_replace('"', '', str_replace(',"', '&', str_replace('":', '=', str_replace("\\", "", $json))))))); // } // version=0.6&status=ok&sig=&table=cols=[id=A&label=Country&type=string&pattern=,id=B&label=Population&type=number&pattern=#0.###############,id=C&label=Crude Birth Rate&type=number&pattern=#0.###############]&rows=[c=[v=China,v=1347000000&f=1347000000,v=12&f=12],c=[v=India,v=1241000000&f=1241000000,v=22&f=22],c=[v=United States,v=312000000&f=312000000,v=14&f=14],c=[v=Indonesia,v=238000000&f=238000000,v=18&f=18],c=[v=Brazil,v=197000000&f=197000000,v=15&f=15],c=[v=Pakistan,v=177000000&f=177000000,v=27&f=27],c=[v=Nigeria,v=162000000&f=162000000,v=40&f=40],c=[v=Bangladesh,v=151000000&f=151000000,v=20&f=20],c=[v=Russia,v=143000000&f=143000000,v=13&f=13],c=[v=Japan,v=128000000&f=128000000,v=8&f=8],c=[v=Mexico,v=115000000&f=115000000,v=19&f=19],c=[v=Philippines,v=96000000&f=96000000,v=25&f=25],c=[v=Vietnam,v=88000000&f=88000000,v=16&f=16],c=[v=Ethiopia,v=87000000&f=87000000,v=31&f=31],c=[v=Germany,v=81800000&f=81800000,v=8&f=8],c=[v=Egypt,v=82600000&f=82600000,v=23&f=23],c=[v=Iran,v=78000000&f=78000000,v=17&f=17],c=[v=Turkey,v=74000000&f=74000000,v=18&f=18],c=[v=Thailand,v=69500000&f=69500000,v=12&f=12],c=[v=Congo,v=67800000&f=67800000,v=43&f=43],c=[v=France,v=63300000&f=63300000,v=13&f=13],c=[v=United Kingdom,v=62700000&f=62700000,v=13&f=13],c=[v=Italy,v=60800000&f=60800000,v=9&f=9]] //$objarr = json_decode($json); //$server_query = http_build_query($objarr); $ds = urldecode($server_query); $ads = explode("&", $ds); for ($i=0; $i", "\n
", $htmlis); } echo str_replace("