14 define(
'IN_INSTALLATION', 4);
15 include(
"../configuration.inc.php");
21 unset(
$_SESSION[
'session_peel_sql_premium']);
22 unset(
$_SESSION[
'session_install_finished']);
24 if (empty($_POST[
'choixbase'])) {
28 $_SESSION[
'session_install_choixbase'] = $_POST[
'choixbase'];
46 $liste = array(
"../lib/setup/info.inc.php",
"../sitemap.xml",
"../urllist.txt");
47 for($i = 0; $i < count(
$liste); $i++) {
48 if (!is_writable(
$liste[$i])) {
68 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'installation_verifdroits.tpl');
70 $tpl->assign(
'configuration_url',
'configuration.php');
71 $tpl->assign(
'choixbase_value',
$_SESSION[
'session_install_choixbase']);
76 $tpl->assign(
'STR_BEFORE_TWO_POINTS',
$GLOBALS[
'STR_BEFORE_TWO_POINTS']);
79 $tpl->assign(
'STR_ADMIN_INSTALL_CHECK_ACCESS_RIGHTS',
$GLOBALS[
'STR_ADMIN_INSTALL_CHECK_ACCESS_RIGHTS']);
80 $tpl->assign(
'STR_ADMIN_INSTALL_RIGHTS_OK',
$GLOBALS[
'STR_ADMIN_INSTALL_RIGHTS_OK']);
81 $tpl->assign(
'STR_ADMIN_INSTALL_RIGHTS_NOK',
$GLOBALS[
'STR_ADMIN_INSTALL_RIGHTS_NOK']);
82 $tpl->assign(
'STR_ADMIN_INSTALL_EXISTING_TABLES',
$GLOBALS[
'STR_ADMIN_INSTALL_EXISTING_TABLES']);
83 $tpl->assign(
'STR_ADMIN_INSTALL_EXPLAIN_RENAME_TABLES',
$GLOBALS[
'STR_ADMIN_INSTALL_EXPLAIN_RENAME_TABLES']);
84 $tpl->assign(
'STR_ADMIN_INSTALL_STEP_5_LINK_EXPLAIN',
$GLOBALS[
'STR_ADMIN_INSTALL_STEP_5_LINK_EXPLAIN']);
85 $tpl->assign(
'STR_ADMIN_INSTALL_CONTINUE_WITH_ERRORS_BUTTON',
$GLOBALS[
'STR_ADMIN_INSTALL_CONTINUE_WITH_ERRORS_BUTTON']);
88 include(
$GLOBALS[
'repertoire_modele'] .
"/admin_haut.php");
90 include(
$GLOBALS[
'repertoire_modele'] .
"/admin_bas.php");
fetch_row($query_result)
fetch_row()
redirect_and_die($url, $permanent_redirection=false, $avoid_loop=false)
Redirige vers l'URL demandée et arrête le programme.
if(!select_db($_SESSION['session_install_choixbase'], $GLOBALS['database_object'], true)) $error
word_real_escape_string($value)
Applique real_escape_string dans le cas où on n'insère qu'un seul mot, de moins de 30 caractères...
select_db($database_name, &$database_object, $continue_if_error=false)
select_db()
query($query, $die_if_error=false, $database_object=null, $silent_if_error=false, $security_sql_filter=true)
The query() function is meant to be called anywhere you want to make a query.
num_rows($query_result)
num_rows()
for($i=0;$i< count($liste);$i++) $sql
if(empty($_POST['choixbase'])) $_SESSION['session_install_choixbase']
for($i=0;$i< count($liste);$i++) $files_checkup_messages
$directories_checkup_messages