Alternc
latest
Alternc logiel libre pour l'hébergement
3.4.7.php
Go to the documentation of this file.
1
#!/usr/bin/php
2
<?php
3
4
// we don't check our AlternC session
5
if
(!chdir(
"/usr/share/alternc/panel"
))
6
exit
(1);
7
require(
"/usr/share/alternc/panel/class/config_nochk.php"
);
8
9
// we enumerate all tables in AlternC's database, and change (if necessary) their engine to InnoDB
10
11
$tables
=array();
12
$db
->query(
"SHOW TABLES;"
);
13
while
(
$db
->next_record()) {
14
$tables
[]=
$db
->Record[0];
15
}
16
echo
"Setting AlternC's tables to InnoDB engine\n"
;
17
foreach
(
$tables
as $table) {
18
$db
->query(
"ALTER TABLE `"
.$table.
"` ENGINE InnoDB;"
);
19
}
20
21
echo
"Done\n"
;
22
$tables
$tables
Definition:
3.4.7.php:11
exit
exit
Definition:
adm_doadd.php:70
$db
global $db
Definition:
bootstrap.php:26
install
upgrades
3.4.7.php
Generated on Sat Sep 16 2023 12:00:04 for Alternc by
1.9.1