PHP web game learning-explanation of Xnova (ogame) source code (8)

Source: Internet
Author: User
This article mainly introduces the public functions of PHP web game Xnova (ogame) source code. if you need them, refer to section 11 and 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.