Example #1
0
    $id = $last;
}
// Obtain the strip
$strip = Cache::getStrip($id);
// Obtain the language
if (isset($_GET['lang'])) {
    $lang = $_GET['lang'];
} else {
    $lang = Config::getLanguage();
}
$lang = getLang($lang);
// Obtain the navigation
list($nav_first, $nav_last, $nav_prev, $nav_next, $nav_gallery) = getNavigation($id, $last, $lang);
$nav_forum_post = Config::getFluxbbForum() . '/post.php?ttitle=' . urlencode($strip->getTitle()) . '&fid=' . Config::getFluxbbForumId();
$nav_forum_view = Config::getFluxbbForum() . '/redirect_stripit.php?ttitle=' . urlencode($strip->getTitle());
$permanent_link = htmlentities(getPermanentLink($id, $lang));
// If necessary, obtain the forum data
$comments = '';
$wotd = '';
if (Config::getUseFluxbb() === true) {
    $comments = Forum::getComments($strip, $lang);
    $wotd = Forum::getWotd($lang);
}
// show the template
if (isset($_GET['ajax']) === true) {
    // it's an ajax call, return an XML
    header('Content-type: text/xml');
    include_once Config::getTemplateFolder() . '/stripit.xml';
} else {
    include_once Config::getTemplateFolder() . '/' . Config::getTemplateName() . '/template.html';
}
Example #2
0
// Obtain the list of strip
$begin = $page * $limit;
$end = $begin + $limit;
if ($end > $last + 1) {
    $end = $last + 1;
}
for ($i = $begin; $i < $end; $i++) {
    $list[$i] = Cache::getStrip($i);
}
// Obtain the language
if (isset($_GET['lang'])) {
    $lang = $_GET['lang'];
} else {
    $lang = Config::getLanguage();
}
$lang = getLang($lang);
// Obtain the navigation
list($nav_first, $nav_last, $nav_prev, $nav_next) = getNavigationGallery($page, $last_page, $limit, $lang);
$nav_lang = '';
if (isset($_GET['lang'])) {
    $nav_lang = 'lang=' . $lang . '&';
}
$nav_img = Config::getUrl() . '/' . Config::getIndex() . '?' . $nav_lang . 'id=';
// If necessary, obtain the forum data
$wotd = '';
if (Config::getUseFluxbb() === true) {
    $wotd = Forum::getWotd($lang);
}
// show the template
include_once Config::getTemplateFolder() . '/' . Config::getTemplateName() . '/gallery.html';