rendered paste body<?php
session_start();
header("Content-Type: text/html;charset=utf-8");
..
connecttouserdatabase($usercatalog);
..
$_SESSION["total"]=0;
$_SESSION["curent"]=0;
READcount($son);
if ($_SESSION["total"]>4){
echo "<table><tr><td>";
echo "Generation of catalog... <input type=\"text\" id=\"T1\" name=\"T1\" size=\"2\" value=\"0\">% done:";
echo "</td><td width=\"400px\" bgcolor=\"#C0C0C0\">";
echo "<img id=\"progress\" border=\"4\" src=\"../../images/nav_back.gif\" width=\"0px\" height=\"10\">";
echo "</td></tr></table>";
}
...
read($son,$usercatalog,$level);
...
FUNCTION READ($son, $usercatalog, $level){
if ($_SESSION["total"] > 4){
$_SESSION["curent"]=$_SESSION["curent"]+1;
$_SESSION["proc"] = $_SESSION["curent"]*100/$_SESSION["total"];
echo $_SESSION["proc"]."<br>";
..