Advertisement
plas71k

fb app system: index.php

Dec 4th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.20 KB | None | 0 0
  1. <?php
  2. require 'config.php';
  3. require_once 'inc/lib/facebook.php';
  4. require_once 'inc/fb.php';
  5. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <title>';
  9. echo APP_NAME;
  10. echo '</title>
  11. <link rel="stylesheet" type="text/css" media="screen" href="';
  12. echo URL_APP;
  13. echo 'page/css/style.css" />
  14. <script src="';
  15. echo URL_APP;
  16. echo 'page/js/jquery.js" type="text/javascript"></script>
  17. <script src="';
  18. echo URL_APP;
  19. echo 'page/js/ajax.functions.js" type="text/javascript"></script>
  20. </head>
  21. <body>
  22.    <script type="text/javascript" src="https://connect.facebook.net/en_US/all.js"></script>
  23.    <script type="text/javascript">
  24.        FB.init({ appId  : \'';
  25.         echo APP_ID;
  26.         echo '\', status : true,  cookie : true,  xfbml  : true  });
  27.        var page_app = \'';
  28.         echo PAGE_APP;
  29.         echo '\';
  30.        var url_app = \'';
  31.         echo URL_APP;
  32.         echo '\';
  33.        
  34.        var liked = \'';
  35.         echo ($liked)?1:0;
  36.     echo '\';
  37.    </script>
  38.    <div id="fb-root" class="fb_reset"></div>
  39.    <div id="container">';
  40. if ($liked != true)
  41. {
  42. //=================================================== PAYMENT ====================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement