Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMcLear committed Aug 22, 2011
2 parents a5ff623 + faeb3c8 commit 24b7f56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example_big.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function genRandomString() { // A funtion to generate a random name if something
{
$name = $_GET["name"];
try {
$name = urldecode($name);
$instance->deletePad($name);
} catch (Exception $e) {
// the pad doesn't exist?
Expand Down Expand Up @@ -132,6 +133,7 @@ function genRandomString() { // A funtion to generate a random name if something
$padname = $padname[1];
$padContents = $instance->getText($pad); // Get the pad contents
$contents = $padContents->text;
$pad = urlencode($pad);
echo "<div class='pad'>";
echo "<h1><a href=$host/p/$pad>$padname</a></h1>";
echo " - <h2><a onClick='$(\"#contents$count\").slideDown();'>Preview</a></h2><br/>";
Expand Down

0 comments on commit 24b7f56

Please sign in to comment.