Skip to content

Commit

Permalink
added phpdocumentor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
natepixel committed Jan 31, 2012
1 parent fdc510d commit 60a9f8f
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions www/disco/plugins/input_limiter/get_char_count.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
<?php
/**
* Simple character counting script that responds to AJAX POST
*
* This is used to maintain consistency in character counting between counting characters in
* real time in the browser and with counting characters in Reason/php/database.
*
* @package disco
* @subpackage plugins
* @author Nick Jones
* Simple character counting script that responds to AJAX POST
* Used to maintain consistency in character counting between counting characters in real time in
* the browser and with counting characters in Reason/php/database
*/
include_once( 'paths.php');
include_once( CARL_UTIL_INC . 'basic/misc.php' );
if(isset($_REQUEST['text']))
{
echo carl_util_count_html_text_characters($_REQUEST['text']);
}
else
{
echo 0;
}

/**
* Include dependencies.
*/
include_once( 'paths.php');
include_once( CARL_UTIL_INC . 'basic/misc.php' );

if(isset($_REQUEST['text']))
{
echo carl_util_count_html_text_characters($_REQUEST['text']);
}
else
{
echo 0;
}
?>

0 comments on commit 60a9f8f

Please sign in to comment.