createpage action module Called from the customise screen, creates a custom weblink (smart bookmark) or allows user to test the url they've entered action routine Input: CGI data from UIG (which contains url, check parameter, title) Output: Prints http location to return user to edit page PDL Call onerror routine if url ="" Prefix url with "http://" if url doesn't contain :// If check parameter = "Check" Print http location Exit 0 Call onerror routine if title="" Get user's default page from userdata table See if there is a child of the default page which is of new_list type - check item table If there is no new_list Call get_new_itemid to get itemid for new items list Call get_posno to get position of new items list on page Create new items item in item table Update readgroups, editgroups tables with new new_list Call get_new_itemid for weblink Call get_posno for weblink Create weblink item in item table Update readgroups, editgroups with weblink Print http location command with appropriate URL Exit 0