$value){ // $page[] = $key; // } if(isset($_GET["type"])) $page[] = $_GET["type"]; // while (list($key, $val) = each($_GET)) { // $page[] = $key; // } if(count($page) != 0){ include "head.php"; if( !isset( $_COOKIE[ $COOKIE_NAME ] ) ){ for($i = 0; $i < count($page); $i++) IncludeObject::run( $dir.$page[$i].".html" ); }else{ $db = $gm[ $loginUserType ]->getDB(); $table = $db->searchTable( $db->getTable(), 'id', '=', $_COOKIE[ $COOKIE_NAME ] ); $rec = $db->getRecord( $table, 0 ); for($i = 0; $i < count($page); $i++) $gm[ $loginUserType ]->draw($dir.$page[$i].".html", $rec ); } include "foot.php"; }else{ print 'ERRORz'; } ?>