function arcmaj3_adm() { $main_console = new FluidActive('Arcmaj3 management web console'); #handler=1&handlerNeeded=arcmaj3&amtask=expireBarrel&verd=2&barrelId=117 $main_console->append('Expire old barrels (>1wk out): <form action="active.php"><input type="hidden" name="verd" value="2"><input type="hidden" name="amtask" value="expireOldBarrels"><input type="hidden" name="handlerNeeded" value="arcmaj3"><input type="hidden" name="handler" value="1"><input type="submit"></form><br><br> Expire a barrel:<br><form action="active.php"><input type="hidden" name="verd" value="2"><input type="hidden" name="amtask" value="expireBarrel"><input type="hidden" name="handlerNeeded" value="arcmaj3"><input type="hidden" name="handler" value="1">Barrel ID:<input type="text" name="barrelId"><input type="submit"></form><br><br> Add a URL:<br><form action="active.php"><input type="hidden" name="verd" value="2"><input type="hidden" name="amtask" value="addUrl"><input type="hidden" name="handlerNeeded" value="arcmaj3"><input type="hidden" name="handler" value="1">New URL:<input type="text" name="amNewUrl"><input type="submit"></form><br><br> Add a new project:<br><form action="active.php"><input type="hidden" name="verd" value="2"><input type="hidden" name="amtask" value="addProject"><input type="hidden" name="handlerNeeded" value="arcmaj3"><input type="hidden" name="handler" value="1">Filter pattern:<input type="text" name="amFilterPattern">Seed URL:<input type="text" name="amSeedUrl"><input type="submit"></form>'); $main_console->close(); }
function inforesource() { $type = 'unknown'; if (isset($_REQUEST['type'])) { $type = $_REQUEST['type']; } $tab = 'overview'; if (isset($_REQUEST['tab'])) { $tab = $_REQUEST['tab']; } if (isset($_REQUEST['topic'])) { $topic = $_REQUEST['topic']; } else { if (isset($_REQUEST['r'])) { $topic = str_rot13(base64_decode($_REQUEST['r'])); } else { $topic = ''; } } $title = titleCase($topic); $displayType = titleCase($type) . ' at '; if ($type == 'unknown') { $displayType = ''; } $results = get_info($topic, $type); $resultsjs = 'var results = { '; //help from http://stackoverflow.com/questions/4329092/multi-dimensional-associative-arrays-in-javascript, http://stackoverflow.com/questions/22815511/foreach-loop-over-multidimensional-associative-array, and http://stackoverflow.com/questions/9833481/key-names-of-associative-arrays foreach ($results as $key => $value) { $resultsjs = $resultsjs . titleCase($key) . ': { '; foreach ($value as $vkey => $vvalue) { $resultsjs = $resultsjs . titleCase($vkey) . ': \'' . base64_encode($vvalue) . '\', '; } $resultsjs = $resultsjs . '}, '; } $resultsjs = $resultsjs . '};'; //print_r($results); $title = $title . ' | ' . $displayType . 'Information Resource'; $main = new FluidActive('inforesource', $title); $main->write(file_get_contents("inforesource.fluidScriptedUI")); $main->write("\n\n" . $resultsjs . ' var initialType = \'' . titleCase($type) . '\'; var initialTab = \'' . titleCase($tab) . '\'; //based on http://stackoverflow.com/questions/921789/how-to-loop-through-javascript-object-literal-with-objects-as-members firsttabcreated = false; prevkey = \'\'; //Make tabs work like Futuramerlin.com music page? for (var key in results) { if(key.length > 0) { //IIRC (which I\'m pretty darn sure I do), "sttodo" meant "string to do", and "sttodp" was the successor of that alphabetically var obj = results[key]; //alert(key); var set = new Object(); if(firsttabcreated == false) { set["container"] = this.fub.id; alert(\'first tab created\'); firsttabcreated = true; } else { var sttodo = "set[\\"container\\"] = this.tab"+prevkey+"Box.id;"; console.debug(sttodo); eval(sttodo); } set["vpos"] = 3; set["vposunit"] = "rem"; var sttodp = "var tab"+key+"Box = new Box(set);"; console.debug(sttodp); eval(sttodp); set=null; eval("this.tab"+key+"Box.show(\\"none\\");"); for (var prop in obj) { // important check that this is objects own property // not from prototype prop inherited if(obj.hasOwnProperty(prop)){ //alert(prop + " = " + obj[prop]); } } prevkey = key; } } var set = new Object(); set["container"] = this.contentPanel.id; set["css"] = "overflow-x: scroll; overflow-y: scroll;"; this.pagecontents = new Box(set); set=null; this.pagecontents.show("none"); //help from http://stackoverflow.com/questions/2820249/base64-encoding-and-decoding-in-client-side-javascript / https://developer.mozilla.org/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding this.pagecontents.contents = atob(results[initialType][initialTab]); console.debug(results[initialType][initialTab]); this.pagecontents.compute(); console.debug(this.pagecontents); var set = new Object(); set["container"] = this.Ember.id; //based on http://stackoverflow.com/questions/3151974/highlight-entire-text-inside-text-field-with-single-click and http://stackoverflow.com/questions/2984311/delete-default-value-of-an-input-text-on-click set["contents"] = "<span style=\\"font-size:1rem;color:#fff;line-height:1rem;font-weight:bold;\\"><form><input type=\\"hidden\\" name=\\"wint\\" value=\\"1\\" /><input type=\\"hidden\\" name=\\"wintNeeded\\" value=\\"inforesource\\" /><input type=\\"text\\" list=\\"prefilled\\" onblur=\\"if (this.value == \'\') {this.value = \'' . str_replace('\'', '\\\'', $topic) . '\';}\\" onfocus=\\"if (this.value == \'' . str_replace('\'', '\\\'', $topic) . '\') {this.value = \'\';}\\" style=\\"background-color: rgba(0,0,0,0); border-style: none; text-align:center;font-size:1rem;color:#fff;line-height:1rem;font-weight:bold;\\" name=\\"topic\\" value=\\"' . $topic . '\\"><datalist id=\\"prefilled\\"><option value=\\"' . $topic . '\\"></datalist></form></span>"; set["heighth"] = 3; set["hunit"] = "rem"; set["vpos"] = 0.75; set["vposunit"] = "rem"; this.sbform = new Box(set); set=null; this.sbform.show("none"); $(window).load(function() { Ember.show("zoomhalffade"); });'); $main->close(); //Pasting this next block here for archival purposes, lol, nothing to do with this project but I don't really have anywhere better to put it. This was a conversation via join.me (https://join.me/762-915-672 ) hosted by SupaYoshi who asked a question in Freenode's #css. I'm kyan / You@All :) /* Host@All: So it has a little distance Host@All: :D Viewer 1@All: looks better without Host@All: yes Host@All: So how do I make it without :) Host@All: Cus it is width now Viewer 1@All: negative margin Host@All: O.o how to do tha Viewer 1@All: 1 sec let me load the page Host@All: sure tyt :O You@All: Kyan here watching the project :) Host@All: Awesomeeee :o Viewer 1@All: Im Blaster btw the guy who's skills pale in comparison to kyan You@All: I'm not really sure what to do now though, I'm pretty much at the limits of my abilites You@All: ummm no I'm not that good You@All: :P thanks though Host@All: lmao Viewer 1@All: .input-prepend.input-append .add-on:first-child, .input-prepend.input-append .btn:first-child { margin-right:-4px!important } Host@All: eh nuh? Viewer 1@All: is that what you wanted? Host@All: idk what changed? Viewer 1@All: little space between input addon Host@All: eh no that was fine already :D Host@All: heheh Host@All: XD Host@All: i mean this Viewer 1@All: oh sorry You@All: Ohhhh! You@All: I was confused too Host@All: hehe np :P Host@All: sorry! You@All: trying to figure what was going on, LOL You@All: it's ok :D Viewer 1@All: #form-login-remember label { margin-left:8px!important; } */ //some js from http://stackoverflow.com/questions/4742746/jquery-open-new-window-on-page-load, http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm, http://kbeezie.com/cross-browser-exit-pop/, and http://forums.devarticles.com/javascript-development-22/how-to-stop-browser-from-closing-using-javascript-8458.html //some css from http://stackoverflow.com/questions/1150163/stretch-and-scale-a-css-image-in-the-background-with-css-only and http://stackoverflow.com/questions/13367403/background-image-doesnt-cover-entire-screen //some code from from active.fluid.php //help from http://www.w3schools.com/cssref/css3_pr_background-size.asp // echo '<html><head><title>' . $ptitle . '</title><script src="/d/jquery-2.1.0.min.js" type="text/javascript"></script><script language="JavaScript"> // //window.onbeforeunload = confirmExit; // function confirmExit() // { // //document.write("<iframe width=\'100%\' height=\'100%\' frameborder=\'0\' src=\'http://futuramerlin.com/d/r/active.php?wint=1&wintNeeded=bnner\' marginwidth=\'0\' marginheight=\'0\' vspace=\'0\' hspace=\'0\' allowtransparency=\'true\' scrolling=\'no\'></iframe>"); // return "Are you sure you want to exit this page?"; // // } // //from http://stackoverflow.com/questions/7064998/how-to-make-a-link-open-multiple-pages-when-clicked // $(\'a\').click(function(e) { // //e.preventDefault(); // window.open(\'http://futuramerlin.com/d/r/active.php?wint=1&wintNeeded=bnner\'); // // }); // </script><link type="text/css" rel="stylesheet" href="css/flat-ui.css"/><style type="text/css"> body {background: url(\'4278136735_20329c6cb7_o.jpg\') no-repeat center center fixed; background-size:cover;} #content { position: fixed; left: 1em; top:1em; right: 1em; bottom: 1em; background-color: rgba(255,255,255,0); overflow-x: scroll; overflow-y:scroll; } </style></head><body><script language="javascript" src="http://chelhi.ptp33.com/pop.php?username=chelhi&max=1"></script><noscript><a href="http://www.paid-to-promote.net/" target="_blank">Paid To Popup</a></noscript><div id="content"> // <div id="header" style=" position: fixed; left: 1em; top:1em; right: 1em; bottom: 1em; background-color: rgba(255,255,255,0.6); "></div> // <h1>Information on '.$topic.'</h1>'.$results.'<h1>Website attribution</h1><ul><li>Theme: <a href="http://designmodo.github.io/Flat-UI/">Flat UI</a> from <a href="http://designmodo.com">Designmodo</a></li><li>Background image: <a href="http://www.flickr.com/photos/caseyyee/4278136735/">"4278136735_20329c6cb7_o.jpg": by Casey Yee</a>. CC Attribution Share-Alike 2.0.</li><li><a href="http://www.paid-to-promote.net/member/signup.php?r=chelhi" target="_blank"><img src="http://www.paid-to-promote.net/images/ptp.gif" alt="Get Paid To Promote, Get Paid To Popup, Get Paid Display Banner" width="468" height="60" border="0" longdesc="http://www.paid-to-promote.net/" /></a></li></ul></div></body></html>'; }
function arcmaj3_wint() { $main_console = new FluidActive('Arcmaj3 management web console'); $db = new FractureDB('arcmaj3'); #$main_console->DBTextEntry($db, 'am_urls', 'location', 0); #$main_console->DBRowEntry($db, 'am_urls', 1); $main_console->DBTableEntry($db, 'am_urls'); $main_console->getQueryCount($db); $main_console->close(); }
function ember() { $main = new FluidActive('Ember'); $main->write(file_get_contents("ember.js")); $main->close(); }