Synchro
This commit is contained in:
parent
a1f2c8e762
commit
af0654271d
@ -300,10 +300,8 @@ if(is_dir($dir))
|
|||||||
if (substr($file, strlen($file) -10) == '.class.php' && substr($file,0,8) == 'product.')
|
if (substr($file, strlen($file) -10) == '.class.php' && substr($file,0,8) == 'product.')
|
||||||
{
|
{
|
||||||
$parts = explode('.',$file);
|
$parts = explode('.',$file);
|
||||||
$classname = 'Product'.ucfirst($parts[1]);
|
$classname = 'Product'.ucfirst($parts[1]);
|
||||||
|
require_once($dir.$file);
|
||||||
require_once($dir.$file);
|
|
||||||
|
|
||||||
$module = new $classname();
|
$module = new $classname();
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
@ -312,9 +310,7 @@ if(is_dir($dir))
|
|||||||
print $module->description;
|
print $module->description;
|
||||||
|
|
||||||
print '</td><td align="center">';
|
print '</td><td align="center">';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (defined ("PRODUIT_SPECIAL_LIVRE") && PRODUIT_SPECIAL_LIVRE == 1)
|
if (defined ("PRODUIT_SPECIAL_LIVRE") && PRODUIT_SPECIAL_LIVRE == 1)
|
||||||
{
|
{
|
||||||
print img_tick();
|
print img_tick();
|
||||||
@ -327,9 +323,7 @@ if(is_dir($dir))
|
|||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&spe='.$parts[1].'&value=1">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&spe='.$parts[1].'&value=1">'.$langs->trans("Activate").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</td>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '</tr>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
@ -339,9 +333,6 @@ else
|
|||||||
print "<tr><td><b>ERROR</b>: $dir is not a directory !</td></tr>\n";
|
print "<tr><td><b>ERROR</b>: $dir is not a directory !</td></tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user