,,

,,,,
,

,,<tt>,<table>,<tr>,<th>,<td>,<code>,<img>,<ul>,<ol>,<li>,<dl>,<dt>,<dd>,<hr>,<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<small>,<big>,<font>,<form>,<input>,<textarea>,<button>,<div>,<span>,<layer>,<ilayer>,<iframe>,<script>,<title>,<base>,<center>,<style>,<nobr>,<sup>,<sub>,<blockquote>,<super>";

ob_start();

$label = $_GET['lab'];
$page = $_GET['page'];

connect_db();

if ($page == null) {
   $sql = "SELECT id, user_id, tran_id, article, pagenum, content, keyword, teaser, pdf, rights, rights2, rightst, rightso, rightsi FROM article WHERE label='$label' and pagenum <= 1";
} else {
   $sql = "SELECT id, user_id, tran_id, article, pagenum, content, keyword, teaser, pdf, rights, rights2, rightst, rightso, rightsi FROM article WHERE label='$label' and pagenum='$page'";
}

$result = mysql_query($sql);
$data = @mysql_fetch_array($result);
$article_id = $data["id"];
$art = $data["article"];
$pnum = $data["pagenum"];
$user = $data["user_id"];
$tran = $data["tran_id"];
$keyword = $data["keyword"];
$teaser = $data["teaser"];
$pdf = $data["pdf"];
$rights = $data["rights"];
$rights2 = $data["rights2"];
$rightst = $data["rightst"];
$rightso = $data["rightso"];
$rightsi = $data["rightsi"];
$content = $data["content"];
$content = strtr($content, "()", "");
$content = strip_tags(stripslashes($content),$allowed_tags);
$content = strtr($content, "", "()");

// if pnum > 0, this is a multi-page article
if ($pnum > 0) {
   $sql = "SELECT count(*) as numpages from article where label='$label'";
   $result = mysql_query($sql);
   $data = @mysql_fetch_array($result);
   $numpages = $data["numpages"];
} else {
   $sql = "SELECT count(*) as numpages from article where label='$label'";
   $numpages = 1;
}

// user represents author
if ($user) {
   $sql = "SELECT name from author where id='$user'";
   $result = mysql_query($sql);
   $data = @mysql_fetch_array($result);
   $auth = $data["name"];
}
if ($tran) {
   $sql = "SELECT name from author where id='$tran'";
   $result = mysql_query($sql);
   $data = @mysql_fetch_array($result);
   $trans = $data["name"];
   $sql = "SELECT sc.section from section sc, article_section arsc where sc.id = arsc.section_id and arsc.article_id = $article_id and sc.category_id = 2 and arsc.priority = 1";
   $result = mysql_query($sql);
   $data = @mysql_fetch_array($result);
   $orig_lang= $data["section"];
}
if ($label == 'About') {
   $nealogo = 1;
}

$title_tag = "PlaNetwork Journal";
if ($art) {
 $title_tag .= " -> ". stripslashes(urldecode($art));
}

$showdate = "No";

include "header.php";

echo "
   <span class='headline'>$art</span>   
   <br>
";

if (($auth != null) && ($auth != "None")) {
   $uname = urlencode($auth);
   echo "
      <A HREF='bio.php?author=$uname' class='authorlinks'>$auth</A></em></strong><BR>
   ";
}

if ($teaser != null) {
   echo "
      <br><span class='smallbold'>$teaser</span>
   ";
}

echo "<font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#333333'><br>";

echo "
   <img src='./images/inline.gif' width='464' height='20' align='center'>
";

if ($pnum > 1) {
   $prevnum = $pnum-1;
   echo "
      [continued from <A HREF='article.php?lab=$label&page=$prevnum' class='smallbold'>$art, page $prevnum]</A><BR><BR>
   ";
}

$nlbr = "on";
if ($nlbr == "on"){
   echo nl2br($content);
} else {
   echo $content;
}

echo "
            <br>
            </font>
          </td>
        </tr>
      </table> 
      <BR><BR>
";

echo "
   <table width=463 border=0><tr><td>
   <font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#000000'>
   <center>
";

if ($numpages > 1) {
   if ($pnum < $numpages) {
      $nextnum = $pnum+1;
      echo "
         <BR>[continued at <A HREF='article.php?lab=$label&page=$nextnum'>$art, page $nextnum</A>]<BR><BR>
      ";
   }
}

if ($rightst != null) {
   echo "Translation copyright &copy; by $rightst<BR>";
}
if ($rightso != null) {
   echo "Original language text copyright &copy; by $rightso<BR>";
}
if ($rightsi != null) {
   echo "$rightsi<BR>";
}
echo "
   </font>
   </center>
   </td></tr></table>
";

include "footer.php";

ob_end_flush();
?>