[Typo3-dev] Global Vars in FE-Plugin only reachable for admin user?

Thomas Murphy murphy at thepanemgroup.com
Mon May 17 20:41:44 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks Jan,

now it works. I had this line already in the code, but it was commented
out...

Just for the archive:
- ------------------------------------
$GLOBALS["TSFE"]->set_no_cache();
- ------------------------------------

bye,
Murphy


Jan-Erik Revsbech wrote:

| I think this migt be related to caching. Please check if setting
no_cache=1
| in the URL doesn't solve the problem. If your extension is a USER object,
| then caching is enabled, and you will experience that you plugin only
shows
| one mode of operation, regardless of the GET variables parsed to it.
|
| I seem to remeber that caching is turned off when using feedit and being
| logged in. Change you plugin to a USER_INT object instead. This will
however
| turn off caching, and you extension will not be indexed by the search
| enginge (There are ways to circumvent this though).
|
| /Jan-Erik
|
| P.S. I accidently sent this mail to you personally, so here it comes
for the
| sake keeping the post in the archives.
|
| ----- Original Message -----
| From: "Thomas Murphy" <murphy at thepanemgroup.com>
| To: <typo3-dev at lists.netfielders.de>
| Sent: Monday, May 17, 2004 1:03 AM
| Subject: [Typo3-dev] Global Vars in FE-Plugin only reachable for admin
user?
|
|
|
| Hello everyone,
|
| while writing a fe-plugin i experienced a strange behaviour:
|
| The variable sent to my script via GET is only available in the script,
| when I am logged in (I have front-end-editing enabled).
| "Normal" users can't access the plugin, it's always showing the
| 'default' case of the switch statement in the main method.
| I tried to access it in many ways, like t3lib_div::GPvar('action'),
| $_GET["action"], $GLOBALS["HTTP_GET_VARS"]["action"].
| Register Globals is turned on.
|
| Any hints?
|
| bye,
| Murphy

_______________________________________________
Typo3-dev mailing list
Typo3-dev at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev





| _______________________________________________
| Typo3-dev mailing list
| Typo3-dev at lists.netfielders.de
| http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAqQdnwO0pDATctOARAr68AKDOtF4+F9SHVO/mkTIIXxdpRF5oSgCdHSjc
kYO7GTpJ4xkQKYdT+RXZ+5A=
=kKBb
-----END PGP SIGNATURE-----





More information about the TYPO3-dev mailing list