![]() |
If the script is local, then you should also include it clocally:
Do not: PHP Code:
PHP Code:
|
Thanks for your post.
So your saying that this: (below) is unnecessary? Would I create a simple variable in the page that calls the CGI script, or would I do it in the vbulletin plugin? Also, what would the CGI variable look like? Would it look like $ENV{username}; ? Code:
# putenv("PHP_ENC_USERNAME=$username"); # where $username is your PHP user variable. - Pianoman993 |
You would call it from a plugin, you can not execute PHP code in a template (HTML).
There is no "CGI variable". They are just simple PHP variables as used anywhere in a PHP-script. Consider the following 2 scripts: Main script "test.php" PHP Code:
PHP Code:
You will see that the variable $mainvar that was set in "test.php" is also available in "sub.php" without any variable passing or such. The same goes for $subvar, set in sub.php and still available when returning in test.php. |
Alright so here is my new plugin code:
PHP Code:
Code:
# PREFs Section 03: Security. |
Quote:
|
Gotcha, that'll work. Thanks!
|
All times are GMT. The time now is 03:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|