Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv12587/class
Modified Files:
functions.inc Story.class
Log Message:
hide email addresses from harvesters
Index: functions.inc
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** functions.inc 2001/11/13 22:01:27 1.79
--- functions.inc 2001/11/14 18:06:30 1.80
***************
*** 352,356 ****
Parameters : $title -> Title of the page being displayed
$metaobject -> Extra stuff about the page (Admin, Home, Poll)
! Accepts an array of name/value pairs for metatags
$section -> if supplied, generates blocks for this section
Accepts an array to pass to getBlocks
--- 352,358 ----
Parameters : $title -> Title of the page being displayed
$metaobject -> Extra stuff about the page (Admin, Home, Poll)
! Accepts an array of name/value pairs for metatags.
! Alternative navbar template or menu can be passed in
! navbar_ary[tpl] or navbar_ary[menu_ary].
$section -> if supplied, generates blocks for this section
Accepts an array to pass to getBlocks
***************
*** 401,406 ****
--- 403,413 ----
$templ->set_block ("header", "each_metatag", "metatag_block");
if ( is_array($metaobject)) {
+
$templ->set_var( XSITEOBJECT, $metaobject['object']);
unset($metaobject['object']);
+
+ $navbar_ary = $metaobject['navbar_ary'];
+ unset($metaobject['navbar_ary']);
+
while( list( $key, $value) = each( $metaobject )) {
$templ->set_var (array (
***************
*** 429,433 ****
SITETITLE => $title,
SEARCH_ACTION_URL => $action_url,
! NAVBAR => $navbar->getNavBar(),
TOPICBAR => $topicbar->getTopicBar(),
BLOCKS_COLUMN => $allblocks,
--- 436,440 ----
SITETITLE => $title,
SEARCH_ACTION_URL => $action_url,
! NAVBAR => $navbar->getNavBar($navbar_ary[tpl],$navbar_ary[menu_ary]),
TOPICBAR => $topicbar->getTopicBar(),
BLOCKS_COLUMN => $allblocks,
***************
*** 989,992 ****
--- 996,1019 ----
return $templatedir;
}
+
+ /**
+ * function str_html - returns a "html/ascii" string
+ *
+ * The string is converted to its ascii html equivalent
+ *
+ * "nospam" becomes "nospam"
+ *
+ * @param string string
+ *
+ * @access public
+ *
+ * @return string ordhtml
+ */
+
+ function str_html( $string) {
+ $ordhtml = "&#" . implode(';&#',unpack('C*char', $string)) .";";
+ return $ordhtml;
+ }
+
?>
Index: Story.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/Story.class,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** Story.class 2001/11/13 22:01:27 1.20
--- Story.class 2001/11/14 18:06:31 1.21
***************
*** 306,310 ****
BODY_TEXT => $ary[body_text],
DEPT => $ary[dept],
! URL => $ary[url],
NAME => $ary[realname],
DATEF => $ary[datef],
--- 306,310 ----
BODY_TEXT => $ary[body_text],
DEPT => $ary[dept],
! URL => str_html($ary[url]),
NAME => $ary[realname],
DATEF => $ary[datef],
***************
*** 457,461 ****
BODY_TEXT => $body_text,
DEPT => $stories_ary[$i][dept],
! URL => $stories_ary[$i][url],
NAME => $stories_ary[$i][name],
DATEF => $stories_ary[$i][datef],
--- 457,461 ----
BODY_TEXT => $body_text,
DEPT => $stories_ary[$i][dept],
! URL => str_html($stories_ary[$i][url]),
NAME => $stories_ary[$i][name],
DATEF => $stories_ary[$i][datef],
|