[ Index ]
 

Code source de Pluxml 0.3.1

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/ -> index.php (source)

   1  <?php
   2  # ***** BEGIN LICENSE BLOCK *****
   3  # This file is part of Pluxml.
   4  # Copyright (c) 2006 Skyline-arts.com. All rights reserved.
   5  #
   6  # Pluxml is free software; you can redistribute it and/or modify
   7  # it under the terms of the GNU General Public License as published by
   8  # the Free Software Foundation; either version 2 of the License, or
   9  # (at your option) any later version.
  10  #
  11  # Pluxml is distributed in the hope that it will be useful,
  12  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14  # GNU General Public License for more details.
  15  #
  16  # ***** END LICENSE BLOCK *****

  17  
  18  if(!file_exists('pluxml/conf/config.xml')){
  19      header('Content-Type: text/plain');
  20      echo "Pluxml n'est pas configuré\n";
  21      echo "Executer le fichier install.php pour lancer l'installation";
  22      exit;
  23  }
  24  
  25  # On inclut les librairies nécéssaires

  26  include  ('pluxml/lib/class.pluxml.php');
  27  include  ('pluxml/lib/lib.util.php');
  28  include  ('pluxml/lib/functions.php');
  29  
  30  # Création de l'objet principal

  31  $pluxml = new pluxml('pluxml/conf/config.xml','pluxml/conf/categorie.xml');
  32  $pluxml->mode(); # Définition du motif en fonction du mode

  33  
  34  if($pluxml->cat_all && $pluxml->all_files){
  35      $pluxml->cat_used = $pluxml->usedCategorie();
  36      $pluxml->arrayFiles(); # Création du tableau des fichiers à traiter

  37      $pluxml->pagination(); # Définition de la pagination

  38      $pluxml->arrayArticles(); # Création du tableau d'articles à afficher

  39  }
  40  
  41  # Insertion du template

  42  include ('pluxml/templates/'.$pluxml->style.'/template.php');
  43  ?>


Généré le : Sun Apr 8 12:13:41 2007 par Balluche grâce à PHPXref 0.7