1
C6_chus
Variables in a system block dummy
  • 2006/11/17 13:02

  • C6_chus

  • Just popping in

  • Posts: 10

  • Since: 2006/9/12


I’m trying to create an own block to show content of a page in a block.
What Im trying to do exactly is to show the content of the vwar-script nexactions.php in a block.
Well I managed this by creating an custom system block in blocks section selecting php – script and using an “include ‘http://www.blabla.org/nextactions.php.’;”
So this works perfectly.
But now my problem.
I want to make en if in this script accessing to the $_COOKIE variable. If your logged in to vwar show content if not show vwar login.
I´ve changed the nextactions.php script and if I open the script directly over the browser it works perfectly. http://www.blabla.org/nextactions.php.
But in the block, it seams that I´m out of the variable scope. And I can’t access to the $_COOKIE variable. If I include an print_r($_COOKIE); in the script in the block it shows an empty array( ) directly I get all info in the $_COOKIE.
I´ve been testing a while and it seems to be a problem with the include, cause if I don’t do an URL include it seems to work, and I can access the $_COOKIE, but the if do that the whole script stops to work.

So here is where I need some help.
Someone know how I can pass a variable to that include?
I tried to register another variable as global in the block but I can’t access it from the script.
Perhaps I can re-import the cookie in the nextactions.php script but Im not sure how to do it.

Would be nice if I would get an hand on this.

Thanks in advance.

Login

Who's Online

429 user(s) are online (321 user(s) are browsing Support Forums)


Members: 0


Guests: 429


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits