add php function and add login page and root page and leftpage