daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2. if(stristr($_SERVER['PHP_SELF'], 'status.php')){
  3. exit("<strong>Error: </strong>Can't be opened directly!");
  4. }
  5. if($connection == 'mssql'){
  6. $db = &ADONewConnection($connection);
  7. $db->Connect($server,$username,$password,$kal_auth);
  8. }elseif($connection == 'odbc'){
  9. $db = &ADONewConnection($connection);
  10. $db->Connect($kal_auth,$username,$password);
  11. }
  12. $query = $db->Execute("SELECT Type,Status,Donator,Tickets_Panel FROM Login  WHERE UID = '".$_SESSION['kal_id']."'");
  13. $r = $query->fetchrow();
  14. $Support_Ticket = $r[3];
  15. $type = $r[0] ;
  16. $status = $r[1];
  17. $donator = $r[2];
  18. $querys = $db->Execute("SELECT [Read] FROM Tickets  WHERE UID = '".$_SESSION['kal_id']."' And [Read] = 'Not'");
  19. $rs = $querys->fetchrow();
  20. $read = $rs[0];
  21.  
  22. ?>
RAW Paste Data
Top