Guest User

Untitled

a guest
Jun 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. if (!Table_Exists($userkaid))
  2. {
  3. $code2 = <<<CODE
  4. <fb:success> <fb:message>Oops!You have not saved any scores.</fb:message> Please wait while we re-direct you back to the Score page. </fb:success>
  5. <script>
  6. setTimeout(function() {document.setLocation('xxx.com/Add.php'); }, 9000);
  7. </script>
  8. CODE;
  9. echo "$code2";
  10. }
  11. else
  12. {
  13. $type = 'PS' ;
  14.  
  15. if (QTypeEntry_Exists($userkaid,$type))
  16. {
  17. $code3 = <<<CODE
  18. <fb:iframe src ="xxx.com/page.html" width='750' height='450' frameborder = '0'> CODE;
  19. echo "$code3";
  20. }
  21. else
  22. {
  23. $code3 = <<<CODE
  24. <fb:success> <fb:message>You have not saved any PS scores.</fb:message></fb:success>
  25. CODE;
  26.  
  27. echo "$code3";
  28. }
  29. }
  30. echo "entering ds";
  31.  
  32.  
  33. $type = 'DS';
  34.  
  35. if (QTypeEntry_Exists($userkaid,$type))
  36. {
  37. $code4 = <<<CODE
  38. <fb:iframe src ="xxx.com/page.html" width='750' height='450' frameborder = '0'>
  39. CODE;
  40. echo "$code4";
  41. }
  42. else
  43. {
  44. $code4 = <<<CODE
  45. <fb:success> <fb:message>You have not saved any DS scores.</fb:message></fb:success>
  46. CODE;
  47. echo "$code4";
  48. }
Add Comment
Please, Sign In to add comment