0) { $laien = 1; session_register("laien"); } } // CHECK PW $cp = mysql_query("SELECT verz_id FROM cms_dateien WHERE id='$object'"); $num_cp = mysql_NumRows($cp); if ($num_cp > 0) { $verz_id = mysql_result($cp,0,"verz_id"); if ($verz_id != 0) { $cp2 = mysql_query("SELECT upw FROM cms_verzeichnise WHERE id='$verz_id'"); if (mysql_fetch_row($cp2) > 0) { $vupw = mysql_result($cp2,0,"upw"); if ($vupw == 1) { if (! session_is_registered("laien")) { $klog = 1; } else { $klog = 0; } } } } } ?> GIUANNA