Example #1
0
/**
 * Return the permanent link for the strip
 *
 * @param integer $id The id of the actual strip
 * @param Lang $lang The Lang object use for the actual user
 * @return string The permanent link for the actual strip
 */
function getPermanentLink($id, Lang $lang)
{
    $url = Config::getUrl() . '/' . Config::getIndex() . '?id=';
    $nav_lang = '';
    if (isset($_GET['lang'])) {
        $nav_lang = '&lang=' . $lang;
    }
    return $url . $id . $nav_lang;
}
Example #2
0
    $limit = $_GET['limit'];
    if ($limit <= 0 || $limit > $last + 1) {
        $limit = $last + 1;
    }
} else {
    $limit = $last + 1;
}
$end = $last - $limit;
// Obtain the strips
$list = array();
for ($i = $last; $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);
// Navigation
$nav_img = Config::getUrl() . '/' . Config::getIndex() . '?id=';
// If necessary, obtain the forum data
$wotd = '';
if (Config::getUseFluxbb() === true) {
    $wotd = Forum::getWotdRss($lang);
}
// show the template
header('Content-Type: application/rss+xml');
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
include_once Config::getTemplateFolder() . '/' . Config::getTemplateRss() . '/template.rss';
Example #3
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';