-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
13 deletions.
There are no files selected for viewing
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
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; | ||
} | ||
?> |