Add a comment to the code and fix the indentation to match the rest of code.

This commit is contained in:
Mark Crane 2015-02-10 00:56:57 +00:00
parent cc96241171
commit 926d688237
1 changed files with 14 additions and 12 deletions

View File

@ -38,7 +38,9 @@
//includes
if (!defined('STDIN')) { include "root.php"; }
require_once "resources/require.php";
function rip_tags($string) {
//define a function to remove html tags
function rip_tags($string) {
// ----- remove HTML TAGs -----
$string = preg_replace ('/<[^>]*>/', ' ', $string);
@ -51,7 +53,7 @@ function rip_tags($string) {
// ----- remove multiple spaces -----
$string = trim(preg_replace('/ {2,}/', ' ', $string));
return $string;
}
}
//set init settings
ini_set('max_execution_time',1800); //30 minutes