'; ?> eServiceTorget: Affiliate 0) { if( $r[0]['activated'] == null || $r[0]['activated'] == '0000-00-00' ) $warning = 'Vennligst først bekreft eposten.'; else { $_SESSION['aff_user'] = $r[0]['pk']; $_SESSION['aff_name'] = $userid; unset( $_SESSION['aff_admin'] ); $p = 'overview'; } } else $warning = 'Kombinasjonen av epost-adressen/passord ble ikke funnet.'; } // In case of timeout etc, if the user is not logged on, only certain pages are allowed if( !isset($_SESSION['aff_user'])) if( !in_array( $p, array( 'login', 'logout', 'contact', 'signup' ))) $p = 'login'; if( !preg_match( "#^../#", $p) && preg_match( "#^[a-z0-9_\ .\ ;]+$#i", $p) && file_exists('inc_' .$p .'.php')) include './inc_' .$p .'.php'; else include './inc_overview.php'; @mysql_close(); ?>