SSO
By: Xmoo | Date: Jun 22 2011 12:44 | Format: PHP | Expires: never | Size: 2.06 KB | Hits: 1454
- <?php
- ////////////////////////////////////////
- // (C)ontent (M)anagement (S)ystem //
- // Version: 1.0 //
- // By: Mohammad Moghtader //
- // Group: B31 //
- ////////////////////////////////////////
- include("inc/config.php"); //Configuratie includen
- include("inc/functions.php"); //Functie includen
- $sid = $_GET['sid'];
- $sss = mysql_query("SELECT * FROM ira_session WHERE session_id = '".$sid."'") or die(mysql_error());
- $jusername = $ttt->username;
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
- <!-- =============================== -->
- <!-- (S)elf (S)ervice (P)ortal -->
- <!-- Version: 1.0 -->
- <!-- By: Mohammad Moghtader -->
- <!-- Group: B31c -->
- <!-- =============================== -->
- <!-- (c) 2011 DBI -->
- <!-- All rights reserved -->
- <!-- =============================== -->
- <?php
- $query = ("SELECT * FROM ira_users WHERE username = '".$jusername."'");
- if ($record != 0){ //Controleren op gegevens
- $bbb = ("SELECT * FROM ira_users WHERE username = '".$jusername."'");
- $_SESSION['persid'] = $ddd->id; //Registreer de variabele
- $_SESSION['access'] = $ddd->usertype;
- echo "<meta http-equiv='refresh' content='0;url=index.php?p=thuis'>";
- } }
- else { echo "<script type='text/javascript'>alert('Foutieve gegevens!'); </script>";
- echo "<script type='text/javascript'>window.location='http://ssp.moghtader.net/'; </script>";
- echo "<script type='text/javascript'>window.location.reload; </script>"; }
- ?>
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago