Revision 1166
Added by Luisehahne about 16 years ago
| functions.php | ||
|---|---|---|
| 776 | 776 |
// Load module into DB |
| 777 | 777 |
function load_module($directory, $install = false) {
|
| 778 | 778 |
global $database,$admin,$MESSAGE; |
| 779 |
if(is_dir($directory) AND file_exists($directory.'/info.php')) |
|
| 780 |
{
|
|
| 781 |
require($directory.'/info.php'); |
|
| 779 |
if(is_dir($directory) AND file_exists($directory.'/info.php'))
|
|
| 780 |
{
|
|
| 781 |
require($directory.'/info.php');
|
|
| 782 | 782 |
if(isset($module_name)) |
| 783 | 783 |
{
|
| 784 | 784 |
if(!isset($module_license)) { $module_license = 'GNU General Public License'; }
|
| ... | ... | |
| 905 | 905 |
} |
| 906 | 906 |
} |
| 907 | 907 |
|
| 908 |
?>
|
|
| 908 |
?> |
|
Also available in: Unified diff
Fix Bugs headersend errors in some core files
delete whitespaces after ?>