// Getter for INC_POOL
function getIncludePool ($pool) {
//* DEBUG: */ print __FUNCTION__.':pool='.$pool.'<br />';
- return $GLOBALS['inc_pool'][$pool];
+ if (isset($GLOBALS['inc_pool'][$pool])) {
+ // Return found pool (array)
+ return $GLOBALS['inc_pool'][$pool];
+ } else {
+ // Return empty array if not found
+ return array();
+ }
}
// Count INC_POOL
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-}
+} // END - if
// Create a selection box with installed and activated themes or all if admin
function generateThemeSelectionBox () {
$mod = getModule();
// Construction URL
- $formAction = "{%url=modules.php?module=" . $mod;
- if (!empty($what)) $formAction .= "&what=" . $what;
- $formAction = '%}';
+ $formAction = '{%url=modules.php?module='. $mod;
+ if (!empty($what)) $formAction .= '&what=' . $what;
+ $formAction .= '%}';
// Initialize array
$themesArray = array(
<td class="header_column bottom right" align="center">{--THEME_NAME--}</td>
<td class="header_column bottom right" align="center">{--THEME_ACTIVE--}</td>
<td class="header_column bottom right" align="center">{--THEME_AUTHOR--}</td>
- <td class="header_column bottom right" align="center">{--THEME_URL--}</td>
<td class="header_column bottom" align="center">{--THEME_VERSION--}</td>
</tr>
$content
<tr>
- <td colspan="7" class="admin_footer"><input
- type="reset" class="admin_reset" value="{--RESET_SELECT--}" />
- <input type="submit" name="status" class="admin_submit"
- value="{--ADMIN_CHANGE_STATUS_THEME--}" /> <input
- type="submit" name="del" class="admin_delete"
- value="{--ADMIN_DELETE_ENTRIES--}" /></td>
+ <td colspan="6" class="admin_footer">
+ <input type="reset" class="admin_reset" value="{--RESET_SELECT--}" />
+ <input type="submit" name="status" class="admin_submit" value="{--ADMIN_CHANGE_STATUS_THEME--}" />
+ <input type="submit" name="del" class="admin_delete" value="{--ADMIN_DELETE_ENTRIES--}" />
+ </td>
</tr>
</table>
</form>
<td class="switch_sw$content[sw] bottom right" align="center">
<a href="$content[url_link]" target="_blank">$content[url_title]</a>
</td>
- <td class="switch_sw$content[sw] bottom right" align="center">
+ <td class="switch_sw$content[sw] bottom" align="center">
v$content[ver]
</td>
</tr>
<tr>
- <td class="switch_sw$content[sw] bottom right" align="center">$content[unix]</td>
- <td class="switch_sw$content[sw] bottom right" align="center">$content[name]</td>
- <td class="switch_sw$content[sw] bottom right" align="center">
- <a href="mailto:$content[email]?Subject=[Theme:] $content[name] ($content[unix])"."">$content[author]</a>
- </td>
- <td class="switch_sw$content[sw] bottom right" align="center">
- <a href="$content[link]" target="_blank">$content[url]</a>
- </td>
- <td class="switch_sw$content[sw] bottom right" align="center">v$content[version]</td>
- <td class="switch_sw$content[sw] bottom" align="center">
- $content[form]
- </td>
+ <td class="switch_sw$content[sw] bottom right" align="center">$content[unix]</td>
+ <td class="switch_sw$content[sw] bottom right" align="center">$content[name]</td>
+ <td class="switch_sw$content[sw] bottom right" align="center">
+ <a href="mailto:$content[email]?Subject=[Theme:] $content[name] ($content[unix])">$content[author]</a>
+ </td>
+ <td class="switch_sw$content[sw] bottom right" align="center">
+ <a href="$content[link]" target="_blank">$content[url]</a>
+ </td>
+ <td class="switch_sw$content[sw] bottom right" align="center">v$content[version]</td>
+ <td class="switch_sw$content[sw] bottom" align="center">
+ $content[form]
+ </td>
</tr>