Update of /cvsroot/phpslash/phpslash-dev/include/modules/story
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6766/phpslash-dev/include/modules/story
Modified Files:
backend.php
Log Message:
corrected host links.
Index: backend.php
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/story/backend.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** backend.php 6 Nov 2004 21:16:45 -0000 1.2
--- backend.php 15 Nov 2004 22:03:10 -0000 1.3
***************
*** 117,124 ****
--- 117,144 ----
$viewtpl = 'backendTxt.tpl';
break;
+ case 'wml-article':
+ if(array_key_exists('story_id', $ary)) {
+ $viewtpl = 'article-wml.tpl';
+ $story_ary = $story->extractStory($ary);
+ $stories[0] = $story_ary;
+ $ary['d'] = 'd';
+ header("Content-type: text/vnd.wap.wml");
+ break;
+ }
case 'wml':
$viewtpl = 'backendWml.tpl';
header("Content-type: text/vnd.wap.wml");
break;
+ case 'xhtmlb-article':
+ if(array_key_exists('story_id', $ary)) {
+ $viewtpl = 'article-xhtmlb.tpl';
+ $story_ary = $story->extractStory($ary);
+ $stories[0] = $story_ary;
+ $ary['d'] = 'd';
+ header("Content-type: text/vnd.wap.wml");
+ break;
+ } else {
+ echo "huh?";
+ }
case 'xhtmlb':
$viewtpl = 'backendXHTMLb.tpl';
***************
*** 201,204 ****
--- 221,226 ----
'INTRO_TEXT' => $description,
'INTRO_TEXT_HTML' => $stories[$i]['intro_text'],
+ 'BODY_TEXT' => htmlspecialchars(strip_tags($stories[$i]["body_text"])),
+ 'BODY_TEXT_HTML' => $stories[$i]['body_text'],
'IDX' => $i,
'DATEF' => $stories[$i]['datef'],
|