PHP Web Game Learning Xnova (Ogame) source Interpretation (eight) _php tutorial

Source: Internet
Author: User
Xi. Public Function (functions.php)

Originally intended to write the analysis of the building page, but the building page things more, a day is not finished, and we have a lot of functions to be used frequently, the first simple introduction of these functions are necessary;

------------------------------////Check whether the user is a holiday mode, this function has not been called//function Check_urlaubmodus ($user)//output currently logged on User holiday mode remaining time, This function has not been called over function check_urlaubmodus_time ()//------------------------------////to determine if an email address is legitimate//function is_ Email ($email)//------------------------------////Output An administrator information, which is called the display function//$mes--/$title title//$dest- > return page//$time return time function Adminmessage ($mes, $title = ' Error ', $dest = "", $time = "3")//-------------------- ----------////Output Normal user information, call the Display function//$mes, content//$title title//$dest Back Page//$time, return time function message (   $mes, $title = ' Error ', $dest = "", $time = "3")//------------------------------////Output Information////$page page//$title Page Title//$topnav contains the header resource display file//$metatags meta Tag value//$AdminPage is the Manage page function display ($page, $tit Le = ", $topnav = true, $metatags =", $AdminPage = False)//------------------------------////defines the user's meta value//$title, title $metatags->meta value function stduserheader ($title = ", $metatags =")//------------------------------////defines the administrator's meta value//$title title//$metatags->meta value function Adminuserheader ($title = ", $metatags =")//------------------------------////Definition Footer page//function stdfooter ()//------ ------------------------////calculates the maximum spatial value of the current planet, also into the topographic transformation value//$planet Planet, note that the address function calculatemaxplanetfields (&$  Planet

http://www.bkjia.com/PHPjc/824839.html www.bkjia.com true http://www.bkjia.com/PHPjc/824839.html techarticle 11, the Public Function (functions.php) originally intended to write the analysis of the building page, but the building page things more, one day can not finish, and we have a lot of functions to often ...

  • 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.