This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finished 1000 requests | |
Server Software: nginx/0.7.65 | |
Server Hostname: www.evogames.org | |
Server Port: 80 | |
Document Path: / | |
Document Length: 4567 bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:javascript | |
| var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = array(); | |
//you load an array | |
$sql = whatever | |
while ($row = fetch array){ | |
$data[] = $row; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//load $user representing the logged in user | |
if ($user->is_connected()){ | |
$is_sysop = $user->is_sysop(); | |
} | |
if (isset($is_sysop) && $is_sysop && $_SERVER["REQUEST_METHOD"] == "POST"){ | |
//process a form, changing the database or whatever. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function someFunc(req_param, opt_param, opt_param2, callback){ | |
if (typeof opt_param == 'function'){ | |
callback = opt_param, opt_param = opt_param2 = undefined; | |
} | |
else if (typeof opt_param2 == 'function'){ | |
callback = opt_param2, opt_param2 = undefined; | |
} | |
//whatever else | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exception: JNLP not an applet. | |
JNLPException[category: Launch File Error : Exception: java.lang.Exception: JNLP not an applet : LaunchDesc: | |
<jnlp spec="1.0+" codebase="http://www.ideafreemonoid.org/client/" href="http://www.ideafreemonoid.org/client/dynamics-visualization.jnlp"> | |
<information> | |
<title>Dynamics Visualization</title> | |
<vendor>Gregory McWhirter</vendor> | |
<homepage href="null"/> | |
</information> | |
<update check="always" policy="always"/> | |
<resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
$("a").each(function (index, object){ | |
var obj = $(object); | |
obj.append(" (import)"); | |
obj.attr('href', "http://me.org/path/to/script.php?original="+encodeURIComponent(obj.attr('href'))); | |
obj.bind('click', function(){ | |
return confirm('Are you sure?'); | |
/*if (confirm('Are you sure?')){ | |
return true; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showPoll(pollid) | |
{ | |
if (pollid == 0){ | |
//target = document.getElementById("pollvote"); | |
//target.style.display="none"; | |
$("#pollvote").hide(); | |
//document.getElementById("pollview").innerHTML="Please Select a Poll"; | |
$("#pollview").html("Please Select a Poll"); | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function displaySearch(req, res, next){ | |
var api = req.app.set('iapi'); | |
var locals = { | |
query: '', | |
results: false, | |
crumbs: [{href: "/", text: "Home"}, | |
{href: "/player", text: "Players"}, | |
{href: "/player/search", text: "Search"}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setGlobalHeader(req, res, next){ | |
res.header("My-Header", "yay!"); | |
next(); | |
} |