summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5b3f804)
+function chars_encode($string) {\r
+ $chars = array();\r
+ $ent = null;\r
+ $chars = preg_split("//", $string, -1, PREG_SPLIT_NO_EMPTY);\r
+ for ($i = 0; $i < count($chars); $i++)\r
+ $ent[$i] = "&#" . ord($chars[$i]) . ";";\r
+ if (sizeof($ent) < 1)\r
+ return "";\r
+ return implode("",$ent);\r
+}\r
+\r
if (isOffline()) {\r
switch(THIS_PAGE) {\r
case 'do/contact':\r
if (isOffline()) {\r
switch(THIS_PAGE) {\r
case 'do/contact':\r
<div id="masthead">\r
<h1 id="header"><a href="http://sql.mit.edu/">sql.mit.edu</a></h1>\r
<h2 id="tagline">MIT SIPB MySQL Service for Athena<br />\r
<div id="masthead">\r
<h1 id="header"><a href="http://sql.mit.edu/">sql.mit.edu</a></h1>\r
<h2 id="tagline">MIT SIPB MySQL Service for Athena<br />\r
- email: <? echo htmlentities('sql@mit.edu'); ?></h2>\r
+ email: <?=chars_encode('sql@mit.edu')?></h2>\r
</div>\r
<div id="hmenu">\r
<?php isOnline() && include('menu.php'); ?>\r
</div>\r
<div id="hmenu">\r
<?php isOnline() && include('menu.php'); ?>\r