- + Re-wrote the core of WiFiDB. All pages start off by calling lib/init.inc.php, this sets up the environment, checks to see if the database is in the correct state, and then starts doing what the user asked.
- Here is a very quick overview of the layout of the core object and its sub-objects.
- $dbcore The main Object that everything gets attached too.
- Core object variables include filesystem paths to library's, URL paths, and the current theme for the user.
- $dbcore->URL_PATH
- $dbcore->theme
- $dbcore->ver_array
- $dbcore->ver_str
- SQL Object ($dbcore->sql)
- MySQL Connection object. ($dbcore->sql->conn)
- MySQL Host name/IP string. ($dbcore->sql->host)
- WiFiDB Meta DB Name. ($dbcore->sql->db)
- WiFiDB Storage DB Name.($dbcore->sql->db_st)
- Database Object ($dbcore->database)
- Contains all the functions for interacting with the database and collecting data for output.
- $dbcore->database->fetch_ap($ap_id)
- $dbcore->database->import_vs1($source , $file_id, $user , $notes , $title, $verbose, $times)
- Export Object ($dbcore->export)
- Contains all the functions for sending data from the database to a file.
- $dbcore->export->exp_kml()
- $dbcore->export->exp_vs1()
- $dbcore->export->exp_gpx()
- $dbcore->export->exp_newest_kml()
- $dbcore->export->exp_csv()
- Mail ($dbcore->mail)
- A wrapper for the XPertMailer class.
- XML ($dbcore->xml)
- Holds the functions that use XML.
- Security Object ($dbcore->sec)
- All the functions that involve security and users permissions within WiFiDB.
- Meta Object ($dbcore->meta)
- Contains all the otherinformation for WiFiDB, Advertisement code, statistics tracking code, and anything else that does not quite fit in.
- Core object variables include filesystem paths to library's, URL paths, and the current theme for the user.
- = Fixed lots of WTF moments in the code, which includes increasing the speed of the imports by, well... alot. By no longer checking for duplicate GPS points on import.
- + Added a globe icon for APs that have GPS, APs that do not have GPS have a greyed out globe.
- = Fixed errors with handling UTF8 characters.
- = Fixed errors with exporting data for APs with some special characters.
- + *BROKEN* Added the ability for the search page to show the first 15 results on the same page as you type.
- + Added Temp File and output cleanup for unneeded Daemon KML files.
- + Added Smarty Templating across all web pages.
- + Moved Exporting functions out of the database.inc.php file and into their own export.inc.php and class.
- - Depreciated login_bar(), my_caches(), and user_panel_bar()
- + Moved the header() and footer() functions back from the themes folder and into the mainline code. Themes will just have a header and footer `.tpl` file now.
- + Changed over from the MySQL php functions to PDO with prepared statements, default working with the MySQL or MariaDB SQL Servers, maybe others will be tested against at a later time.
- - Removed all HTML elements from the import/export functions.
- Include 'lib/init.inc/php', this will initialize the $dbcore and setup the environment
- Gather any data that is needed to be displayed.
- Assign the data to smarty variables
- Have smarty display the template.
OK, that is it for now, will be back later with some more updates maybe.
-Phil