$output.=lm("<img src=\"".$theme->image("xml.gif")."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />",array("mod"=>"import","op"=>"fd"),"",array("title"=>t("View the list of syndicated websites in XML format.")))."<br />\n";
$output.=lm("<img src=\"".$theme->image("xml.gif")."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />",array("mod"=>"import","op"=>"fd"),"",array("title"=>t("View the list of syndicated websites in XML format.")))."<br />\n";
$result=db_query("SELECT n.nid, n.title FROM node n LEFT JOIN book b ON n.nid = b.nid WHERE b.parent = 0 ORDER BY b.weight, n.title");
while($book=db_fetch_object($result)){
menu_add("administer book '".check_output($book->title)."'","admin.php?mod=book&op=view&id=$book->nid","Display a book outline.",NULL,"collaborative books");
menu_add("administer book '$book->title'","admin.php?mod=book&op=view&id=$book->nid","Display a book outline.",NULL,"collaborative books");
}
}
...
...
@@ -360,7 +360,7 @@ function book_body($node) {
ob_end_clean();
}
else{
$output=check_output(filter($node->body),1);
$output=check_output(filter($node->body));
}
return$output;
...
...
@@ -419,7 +419,7 @@ function book_view($node, $main = 0) {
$output.=" <tr><td colspan=\"3\"><b><big>".check_output($node->title)."</big></b>".($node->body?"<br /><small><i>".t("Last updated by %u on %d",array("%u"=>format_name($node),"%d"=>format_date($node->created)))."</i></small> ":"")."</td></tr>";
$output.=" <tr><td colspan=\"3\"><b><big>$node->title</big></b>".($node->body?"<br /><small><i>".t("Last updated by %u on %d",array("%u"=>format_name($node),"%d"=>format_date($node->created)))."</i></small> ":"")."</td></tr>";
}
if($node->body){
...
...
@@ -436,7 +436,7 @@ function book_view($node, $main = 0) {
$output.=" <tr><td align=\"left\" width=\"33%\">".($prev?l(t("previous"),array("id"=>$prev->nid),"node","",array("title"=>t("View the previous page in this book."))):t("previous"))."</td><td align=\"center\" width=\"34%\">".lm(t("index"),array("mod"=>"book"),"",array("title"=>t("View this book's table of contents.")))."</td><td align=\"right\" width=\"33%\">".($next?l(t("next"),array("id"=>$next->nid),"node","",array("title"=>t("View the next page in this book."))):t("next"))."</td></tr>";
$result=db_query("SELECT n.nid, n.title FROM node n LEFT JOIN book b ON n.nid = b.nid WHERE b.parent = 0 ORDER BY b.weight, n.title");
while($book=db_fetch_object($result)){
menu_add("administer book '".check_output($book->title)."'","admin.php?mod=book&op=view&id=$book->nid","Display a book outline.",NULL,"collaborative books");
menu_add("administer book '$book->title'","admin.php?mod=book&op=view&id=$book->nid","Display a book outline.",NULL,"collaborative books");
}
}
...
...
@@ -360,7 +360,7 @@ function book_body($node) {
ob_end_clean();
}
else{
$output=check_output(filter($node->body),1);
$output=check_output(filter($node->body));
}
return$output;
...
...
@@ -419,7 +419,7 @@ function book_view($node, $main = 0) {
$output.=" <tr><td colspan=\"3\"><b><big>".check_output($node->title)."</big></b>".($node->body?"<br /><small><i>".t("Last updated by %u on %d",array("%u"=>format_name($node),"%d"=>format_date($node->created)))."</i></small> ":"")."</td></tr>";
$output.=" <tr><td colspan=\"3\"><b><big>$node->title</big></b>".($node->body?"<br /><small><i>".t("Last updated by %u on %d",array("%u"=>format_name($node),"%d"=>format_date($node->created)))."</i></small> ":"")."</td></tr>";
}
if($node->body){
...
...
@@ -436,7 +436,7 @@ function book_view($node, $main = 0) {
$output.=" <tr><td align=\"left\" width=\"33%\">".($prev?l(t("previous"),array("id"=>$prev->nid),"node","",array("title"=>t("View the previous page in this book."))):t("previous"))."</td><td align=\"center\" width=\"34%\">".lm(t("index"),array("mod"=>"book"),"",array("title"=>t("View this book's table of contents.")))."</td><td align=\"right\" width=\"33%\">".($next?l(t("next"),array("id"=>$next->nid),"node","",array("title"=>t("View the next page in this book."))):t("next"))."</td></tr>";