Skip to content

Commit

Permalink
optional, client side censorship flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DMXRoid committed Nov 30, 2011
1 parent 4fc22f8 commit a0eb025
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/commands/nocensor.class.php
@@ -0,0 +1,20 @@
<?php

require_once(dirname(__FILE__)."/../pfccommand.class.php");

class pfcCommand_nocensor extends pfcCommand
{
function run(&$xml_reponse, $p)
{
if(!isset($_SESSION["nocensor"]) || !$_SESSION["nocensor"]) {
$_SESSION["nocensor"] = true;
}
else {
$_SESSION["nocensor"] = false;
}

$xml_reponse->script("pfc.handleResponse('nocensor', 'ok', '');");
}
}

?>

0 comments on commit a0eb025

Please sign in to comment.