Register globals
Genericité Ajout d'une "protection" dans le cas d'include de foot.php
This commit is contained in:
parent
e7b1dcd803
commit
0de38113ba
|
@ -10,3 +10,6 @@ if ( $debug_alternc->status ) {
|
|||
?>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
exit(); // case of include('foot.php');
|
||||
?>
|
||||
|
|
|
@ -30,10 +30,16 @@
|
|||
require_once("../class/config.php");
|
||||
include_once ("head.php");
|
||||
|
||||
$fields = array (
|
||||
"confirm" => array ("post", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if(!isset($error)){
|
||||
$error="";
|
||||
}
|
||||
if (isset($confirm) && $confirm=="y" ) {
|
||||
|
||||
if ($confirm=="y" ) {
|
||||
reset($_POST);
|
||||
while (list($key,$val)=each($_POST)) {
|
||||
if (substr($key,0,4)=="del_") {
|
||||
|
|
|
@ -29,6 +29,10 @@
|
|||
*/
|
||||
require_once("../class/config.php");
|
||||
|
||||
$fields = array (
|
||||
"dbn" => array ("post", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if (!$quota->cancreate("mysql")) {
|
||||
$error=_("err_mysql_1");
|
||||
|
|
|
@ -162,12 +162,11 @@ if (!defined('NOCHECK')) {
|
|||
}
|
||||
|
||||
for($i=0;$i<count($classes);$i++) {
|
||||
if (! in_array($classes[$i],Array('mem', 'err', 'authip'))) {
|
||||
$name2=$classes[$i];
|
||||
if (isset($$name2)) continue; // for already instancied class like mem, err or authip
|
||||
$name1="m_".$name2;
|
||||
$$name2= new $name1();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue