예제 #1
0
        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();
        }
예제 #2
0
파일: index.php 프로젝트: laiello/athletica
    setcookie("language", $cfgLanguage[$_GET['lang']]['short'], time() + $cfgCookieExpires);
    // update current cookies
    $_COOKIE['language_trans'] = $cfgLanguage[$_GET['lang']]['file'];
    $_COOKIE['language_doc'] = $cfgLanguage[$_GET['lang']]['doc'];
    $_COOKIE['language'] = $cfgLanguage[$_GET['lang']]['short'];
    // load new language files
    include $_COOKIE['language_trans'];
    $cfgURLDocumentation = $_COOKIE['language_doc'];
    $arg = 'admin';
}
// check on meeting password
$redirect = "";
$redirect2 = "";
$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($arg, $cfgOpenPages)) {
            $redirect = "?redirect={$arg}";
            $redirect2 = "&redirect={$arg}";
            $arg = "login";
        }
    }
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>