/[health_html]/inc/global.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/global.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by ravilov, Fri Aug 3 09:56:32 2001 UTC revision 1.4 by ravilov, Mon Aug 13 08:16:02 2001 UTC
# Line 4  Line 4 
4                  $str = preg_replace("/(\<\/?\s*(\w+)>[^\>]*\>)/e",                  $str = preg_replace("/(\<\/?\s*(\w+)>[^\>]*\>)/e",
5                          "array_search(strtoupper('\\2'),\$allowed,false)?'\\1':HTMLSpecialChars('\\1')",                          "array_search(strtoupper('\\2'),\$allowed,false)?'\\1':HTMLSpecialChars('\\1')",
6                          $str);                          $str);
7                    $str = preg_replace("/(^\s+|\s+$)/", "", $str);
8                    $str = ereg_replace("\<", "&lt;", $str);
9                    $str = ereg_replace("\>", "&gt;", $str);
10                    $str = ereg_replace("\"", "&quot;", $str);
11                  return $str;                  return $str;
12          }          }
13          function ParseNewline($str) {          function ParseNewline($str) {
# Line 38  Line 42 
42                  }                  }
43                  return $ret;                  return $ret;
44          }          }
45            function isEdit() {
46                    global $PHP_SELF;
47                    return stristr($PHP_SELF, "/edit/") ? true : false;
48            }
49  ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26