|
GPB API reference guide
Really outdated stuff in here!!!
This guide can be useful if you want to create a theme or port the base layer to another database platform.
Note that there are two different functions types. Functions which are database dependant and functions
which are not. The functions which are not database dependant are seperated in two groups:
functions which handle cookies and functions which do not handel cokies, nor have anything todo with the database.
The cookie handle routines are called by GPB on each pageview, so you don't have to care about it when you create themes.
1. Database functions
- 1.1 Common database functions
-
- 1.1.1 : gpb_connect
- 1.1.2 : gpb_close
- 1.1.3 : user_check
- 1.1.4 : user_prefs
- 1.1.5 : user_exists
- 1.1.6 : email_exists
- 1.1.7 : birthday_today
- 1.2 List functions
-
- 1.2.1: list_categories
- 1.2.2: list_subcategories
- 1.2.3: list_topics
- 1.2.4: list_posts
- 1.2.5: list_today_today
- 1.3 Count functions
-
- 1.3.1: get_topiccount
- 1.3.2: get_postcount
- 1.3.3: get_usercount
- 1.3.4: get_catcount
- 1.3.5: get_subcatcount
- 1.3.6: get_totaltopiccount
- 1.3.7: get_totalpostcount
- 1.3.8: get_lastuser
- 1.4 Explicit data-get functions
-
- 1.4.1: info_by_cid
- 1.4.2: info_by_sid
- 1.4.3: info_by_tid
- 1.4.4: info_by_pid
- 1.4.5: info_by_uid
- 1.5 Convert functions
-
- 1.5.1: username_to_uid
- 1.6 Data Add Functions
-
- 1.6.1: add_user
- 1.6.2: add_category
- 1.6.3: add_subcategory
- 1.6.4: add_topic
- 1.6.5: add_post
- 1.7 Data Edit Functions
-
- 1.7.1: edit_user
- 1.7.2: edit_category
- 1.7.3: edit_subcategory
- 1.7.4: edit_topic
- 1.7.5: edit_post
- 1.8 Data Remove Functions
-
- 1.8.1: delete_user
- 1.8.2: delete_category
- 1.8.3: delete_subcategory
- 1.8.4: delete_topic
- 1.8.5: delete_post
- 1.9 Search Functions
-
- 1.9.1: undouble
- 1.9.2: simple_topic_title_search
- 1.9.3: simple_post_text_search
- 1.9.4: simple_everywhere_search
2. Non-Database functions
- 2.1 List functions
-
- 2.1.1: list_themes
- 2.1.2: list_languages
- 2.2 Page count calculate functions
-
- 2.2.1: get_topicpagecount
- 2.2.2: get_postpagecount
- 2.3 Validate functions
-
- 2.3.1: valid_passwd
- 2.3.2: valid_email
- 2.4 Text make-up functions
-
- 2.4.1: dehtml
- 2.4.2: quote_limit
- 2.4.3: makeurl
- 2.4.4: htmlsupl
- 2.4.5: smile
3. Cookie functions
- 3.1 Common cookie functions
-
- 3.1.1: setcookies
- 3.1.2: setlastvisit
- 3.1.3: unsetcookies
- 3.1.4: unsetlastvisit
|