---
# System prepended metadata

title: '<i class="fa fa-magic" style="color:#0029FA;"></i> <i class="fa fa-cube" style="color:#0029FA;"></i> MagicToolbox'

---

# <i class="fa fa-magic" style="color:#0029FA;"></i> <i class="fa fa-cube" style="color:#0029FA;"></i> MagicToolbox
Contrary to its name, the MagicToolbox is anything but magic. Unless we're talking about black magic, in which case the name may be an accurate descriptor.

The MagicToolbox houses most of the legacy code that provides the logic for many Fishbowl services. It is a complex web of interconnected files that affect one another, so updating anything in the MagicToolbox should be done carefully and you will need to ensure that all service affected by the MagicToolbox are still operational after any updates are made.

## MagicToolbox Diagram
This diagram outlines (roughly) how the MagicToolbox is constructed. The [application_top.php](/ixl3wZN0ROGoZLkI9o3kjg) file is included at the top of all pages requiring a connection to the MagicToolbox. It requires the [application_config.php](/VcxVj_VCQWCgyuNXT3485w)  file which contains passwords and settings required for various services. 


```graphviz
digraph structs {
  nodesep=2.0
  
  node [color=Black,fontname=Courier,shape=Rectangle]
  edge [color=Black,style=dashed]
  
  {application_top[label="application_top.php",fontsize=11] application_config[label="application_config.php",fontsize=11]}
  application_top->application_config
  {application_top application_config}->{MagicToolbox[label="{MagicToolbox|{classes|objects}|database_mysql.class.php|general.funcs.php|template.funcs.php|html_output.php|var.funcs.php|downloads.funcs.php|licenses.funcs.php|fdn.funcs.php|rates.funcs.php|databaseManager.php|timeZoneManager.php|fishbowlManager.php|releaseManager.php|sugarManager.php|validateEmail.php}",shape=Mrecord,margin=0.05,fontsize=11]}
}
```
Many of the files in the MagicToolbox are no longer in use or contain legacy code that is no longer in use. The files that still control critical services are:

[database_mysql.class.php](/v0RyinGVTUCxHx6kleWoHw)
[releaseManager.php](/zDXc6uRASNaIhnbSl3e_PA)

```
database_mysql.class.php
general.funcs.php
template.funcs.php
html_output.php
var.funcs.php
downloads.funcs.php
licenses.funcs.php
fdn.funcs.php
rates.funcs.php
databaseManager.php
timeZoneManager.php
fishbowlManager.php
releaseManager.php
sugarManager.php
supportManager.php
validateEmail.php
```