Revision 1543
Added by Dietmar almost 13 years ago
tool.php | ||
---|---|---|
25 | 25 |
} |
26 | 26 |
/* -------------------------------------------------------- */ |
27 | 27 |
|
28 |
$msg = array(); |
|
28 | 29 |
// Load Language file |
29 | 30 |
if(LANGUAGE_LOADED) { |
30 | 31 |
if(!file_exists(WB_PATH.'/modules/droplets/languages/'.LANGUAGE.'.php')) { |
... | ... | |
50 | 51 |
$admintool_url = ADMIN_URL .'/admintools/index.php'; |
51 | 52 |
|
52 | 53 |
//removes empty entries from the table so they will not be displayed |
53 |
$sql = 'DELETE FROM '.TABLE_PREFIX.'mod_droplets ';
|
|
54 |
$sql = 'DELETE FROM `'.TABLE_PREFIX.'mod_droplets` ';
|
|
54 | 55 |
$sql .= 'WHERE name = \'\' '; |
55 |
$database->query($sql); |
|
56 |
|
|
57 |
?> |
|
58 |
|
|
59 |
<br /> |
|
56 |
if( !$database->query($sql) ) { |
|
57 |
$msg[] = $database->get_error(); |
|
58 |
} |
|
59 |
// if import failed after installation, should be only 1 time |
|
60 |
$sql = 'SELECT COUNT(`id`) FROM `'.TABLE_PREFIX.'mod_droplets` '; |
|
61 |
if( !$database->get_one($sql) ) { |
|
62 |
include('install.php'); |
|
63 |
} |
|
64 |
?><br /> |
|
60 | 65 |
<table summary="" cellpadding="0" cellspacing="0" border="0" width="100%"> |
61 | 66 |
<tr> |
62 | 67 |
<td valign="bottom" width="50%"> |
63 |
<button class="add" type="button" name="add_droplet" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/droplets/add_droplet.php';"><?php echo $TEXT['ADD'].' '.$DR_TEXT['DROPLETS']; ?></button>
|
|
68 |
<button class="add" type="button" name="add_droplet" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/droplets/add_droplet.php';"><?php echo $TEXT['ADD'].' '.$DR_TEXT['DROPLETS']; ?></button> |
|
64 | 69 |
</td> |
65 | 70 |
<!-- commentet out the droplets logo for a more similar backend design with other admin tools |
66 | 71 |
<td align="center"><img src="<?php /*echo WB_URL;*/ ?>/modules/droplets/img/droplets_logo.png" border="1" alt=""/></td> |
Also available in: Unified diff
fix droplet sectionPicker
fix install config.php not writeable
check table droplet if empty import examples