1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
<?php
/**
* \file admin/index.php
* \brief entry point of the Tepik database back office
*/
require_once '../lib_tepik.php';
require("../../smarty/libs/Smarty.class.php"); // We include the class Smarty
/**
* \var $error
* \brief an error message
*/
$error='';
/**
* \var $info
* \brief an info message to display
*/
$info='';
/**
* \var $page
* \brief the page where we are
*/
$page=isset($_REQUEST['page'])&&
in_array(trim($_REQUEST['page']),array('knowledgeElements','categories','languages','sentences','plants','import','pictures'))
?
trim($_REQUEST['page'])
:'';
/**
* \var $action
* \brief the action to do
*/
$action=isset($_REQUEST['action'])?trim($_REQUEST['action']):''; |
Partager