Register globals

Genericité
Ajout d'une "protection" dans le cas d'include de foot.php
This commit is contained in:
Alan Garcia 2012-08-21 13:13:04 +00:00
parent e7b1dcd803
commit 0de38113ba
4 changed files with 18 additions and 6 deletions

View File

@ -10,3 +10,6 @@ if ( $debug_alternc->status ) {
?>
</body>
</html>
<?php
exit(); // case of include('foot.php');
?>

View File

@ -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_") {

View File

@ -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");

View File

@ -162,11 +162,10 @@ 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();
}
}