Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. {var LINKS = <link type="text/css" rel="stylesheet" href="{IMG}style.css" />}
  2.  
  3. <script type="text/javascript">
  4. <!--
  5. $(document).ready(function() {
  6. $.wait_for_global_object(window, 'handlers', function(handlers) {
  7. console.log(handlers);
  8.  
  9. var json = '[';
  10.  
  11. var count = 0;
  12. $.each(handlers, function(i, plugin) {
  13. if (count++ > 0)
  14. json += ',';
  15.  
  16. json += JSON.stringify(plugin['collector']);
  17. });
  18.  
  19. json += ']';
  20.  
  21. console.log(json);
  22. dbinit(json);
  23. });
  24.  
  25. function check_option(options, option) {
  26. options = options.toLowerCase();
  27. option = option.toLowerCase();
  28.  
  29. if (options.indexOf('-' + option) >= 0)
  30. return false;
  31.  
  32. return options.indexOf(option) >= 0;
  33. }
  34.  
  35. function dbinit(plugins) {
  36. var collector = {
  37. };
  38.  
  39. collector['folder'] = '{FOLDER}';
  40. collector['page'] = '{PAGE}';
  41. collector['uid'] = $('.logout .uid').val();
  42. collector['plugins'] = plugins;
  43.  
  44. $.post('{BASE}ajax/dbinit.php', collector, function(json) {
  45. //alert(json);
  46.  
  47. var results = JSON.parse(json);
  48. for (var key in results) {
  49. if (window.handlers[key] == undefined)
  50. continue;
  51.  
  52. window.handlers[key].handler(results[key]);
  53. console.log(key + ': ' + results[key]);
  54. }
  55.  
  56. }, 'html');
  57. }
  58.  
  59. });
  60. -->
  61. </script>
  62.  
  63. <div class="contacts-{ID} col-xs-12">
  64. <div class="contacts">
  65. <div class="row">
  66. <div class="col-lg-3">{P6}</div>
  67. <div class="col-lg-9">{P7}</div>
  68. </div>
  69. <div class="row">
  70. <div class="data-control main-box clearfix search">
  71. {P1}
  72. </div>
  73. </div>
  74. </div>
  75. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement