Welcome to Geeklog, Anonymous Monday, April 29 2024 @ 06:18 am EDT
Geeklog Forums
Variables
Anonymous
Anonymous
Could someone explain to me how do the following global variables work, where are they first initialized.
$_USER, $_TABLES, $_HTTP_POST_VARS...
I am having difficulties with the understanding of the following...
thx
3
3
Quote
Status: offline
rawdata
Forum User
Full Member
Registered: 02/17/03
Posts: 236
$_TABLES: This is a global array which contains the names of all the tables used in your Geeklog. The array is indexed by the tables' names.
Example: $_TABLES['access'] = $_DB_table_prefix . 'access';
The values are set inside /system/lib-database.php. If you're running any plugins which contain separate tables, the developers most likely initialized those tables inside the config.inc file of their plugins.
$_USER: This is a global array which contains info on users like their user id, username, etc. The values are set by the SESS_sessionCheck() function inside /system/lib-database.php
$HTTP_POST_VARS: This is a predefined PHP array which is automatically global. The values are set when you pass a variable to the script using the HTTP POST method.
3
3
Quote
All times are EDT. The time is now 06:18 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content