mise en place de la release 0.7

passage pour le trunk a la version PHP 5 (voir le fichier RELEASE.fr pourplus de renseignement sur la nouvelle version de developpement)
This commit is contained in:
Leblanc Simon 2009-08-14 02:08:58 +00:00
commit 3145e721c3
286 changed files with 1971 additions and 78266 deletions

View file

@ -1,21 +1,68 @@
<?php
/**
* Strip-It HTML index
*
* @author Johann "nojhan" Dréo <nojhan@gmail.com>
* @license http://www.gnu.org/licenses/gpl.html GPL
* @copyright 2007 Johann Dréo
*
* @package stripit
*/
* Strip-It HTML index
*
* @license http://www.gnu.org/licenses/gpl.html GPL
* @copyright 2009 Johann Dréo, Simon Leblanc
* @author Johann "nojhan" Dréo <nojhan@gmail.com>
* @author Simon Leblanc <contact@leblanc-simon.eu>
* @package stripit
*/
set_include_path(get_include_path() . PATH_SEPARATOR . getcwd());
require_once 'inc/functions.php';
require_once 'strip_manager.php';
//Launch Cron
Cron::exec();
// instanciation and ouput
$ctl = new strip_manager;
$ctl->generate();
// Obtain the Config
$config = new Config();
?>
// Obtain the cache
$cache = Cache::getCache();
// Obtain the id asked
$last = Cache::getLastId();
if (isset($_GET['id']) === true && is_numeric($id) === true) {
$id = $_GET['id'];
if ($id > $last || $id < 0) {
$id = $last;
}
} else {
$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());
// 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';
}