PageRenderTime 48ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/gallery2.php

https://github.com/radicaldesigns/amp
PHP | 27 lines | 14 code | 9 blank | 4 comment | 0 complexity | d494a568674ef690b5a7e206f0baa963 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, BSD-3-Clause, LGPL-2.0, CC-BY-SA-3.0, AGPL-1.0
  1. <?php
  2. $modid = 8;
  3. $intro_id = 64;
  4. include("AMP/BaseDB.php");
  5. require_once('gallery2/embed.php');
  6. // initiate G2
  7. GalleryEmbed::init(array('embedUri' => 'gallery2.php', 'embedPath' => '/', 'relativeG2Path' => 'gallery2'));
  8. // user interface: you could disable sidebar in G2 and get it as separate HTML to put it into a block
  9. GalleryCapabilities::set('showSidebarBlocks', false);
  10. // handle the G2 request
  11. $g2moddata = GalleryEmbed::handleRequest();
  12. $dbcon=&AMP_Registry::getDbcon();
  13. $dbcon->SetFetchMode("ADODB_FETCH_ASSOC");
  14. include("AMP/BaseTemplate.php");
  15. print $g2moddata['headHtml'];
  16. print $g2moddata['bodyHtml'];
  17. #print_r ($g2moddata['sidebarBlocksHtml']);
  18. include("AMP/BaseFooter.php");