11. Public functions (functions. php)
I was planning to write the analysis of the building page, but there were a lot of things on the building page, which could not be completed in a day. In addition, we still have a lot of functions to use. It is necessary to briefly introduce these functions; the following is an illustration.
// ---------------------------- // Check whether the user is in holiday mode. This function has not been called // function check_urlaubmodus ($ user) // output the remaining time of the Current logon user's holiday mode, this function has not been called function check_urlaubmodus_time () // ------------------------------ // determine whether an Email address is valid // function is_email ($ email) // ------------------------------ // output an administrator information, the display function // $ mes-> content // $ title-> title // $ dest-> return page // $ time-> return time function AdminMessage ($ mes, $ title = 'error', $ dest = "", $ time = "3") // ---------------------------- // output common user information, call the display function // $ mes-> content // $ title-> title/$ dest-> return page // $ time-> return time function message ($ mes, $ title = 'error', $ dest = "", $ time = "3 ") // ------------------------------ // output information // $ page-> page // $ title-> page title/$ topnav-> whether to include a header resource display file // $ administrative ags-> meta tag value // $ AdminPage-> whether it is a function display ($ page, $ title = '', $ topnav = true, $ administrative AGS ='', $ AdminPage = false) // ------------------------------ // define the user's Meta value // $ title-> title // $ metadata ags-> Meta value function StdUserHeader ($ title = '', $ administrative AGS = '') // ------------------------------ // define the Administrator's meta value // $ title-> title // $ administrative ags-> Meta value function AdminUserHeader ($ title = '', $ dimension AGS = '') // ------------------------------ // define the footer page // function StdFooter () // ---------------------------- // calculate the maximum space of the current planet, it is also included in the terrain transformation value // $ planet-> planet. Note that it is stored in function CalculateMaxPlanetFields (& $ planet)