function GUI_Page($title, $scroll = FALSE, $additional_stylesheet = "") { // check on meeting password $pass = new Protect(); if ($pass->isRestricted($_COOKIE['meeting_id'])) { if (!$pass->isLoggedIn($_COOKIE['meeting_id'])) { // user not logged in -> only speaker access if (!in_array($title, $GLOBALS['cfgOpenPages'])) { ?> <script type="text/javascript"> parent.location.href = 'index.php?arg=admin'; </script> <?php } } } $this->title = $title; $this->scroll = $scroll; $this->stylesheet = "stylesheet.css"; $this->additional_stylesheet = $additional_stylesheet; $this->printHTMLHeader(); }
echo $strProtectMeetingInfo; ?> </td> </tr> <tr class='even'> <form name="meetingpw" method="post" action="admin.php" onsubmit="return checkForm();"> <input type="hidden" name="arg" value="set_password"> <td> <input type="password" name="password" size="30"/> <input type="submit" value="<?php echo $strSetPassword; ?> "/> <?php $p = new Protect(); if ($p->isRestricted($_COOKIE['meeting_id'])) { ?> <br/><br/><input type="button" value="<?php echo $strDeletePassword; ?> " onclick="removePassword()"> <?php } ?> </td> </form> </tr> </table> </td> </tr> </table><br/>