Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Old 01-29-2004, 08:25 AM   #1
Allan
Calendar User
 
Allan is offline
Join Date: Jan 2004
Posts: 2
Default

Say I got this switch: isset($_GET['incl']) ? include($_GET['incl']) : include("demo.php"); in an ordinary 2-columns page.

How can I display the chosen date/event as an included file rather than a popup?

Regards/Denmark
 

Old 01-29-2004, 10:12 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

This is not currently possible with ESCal "as-is"... the escalEV.php file would need to be modified to only have the table defenition instead of an entire html page...

But on the other hand, i HIGHLY recomend you not do that...

Picture this...... some smart a$$ sees that he can include any file by just replacing the file name......

like server.com/calender/index.php?incl=/../../privatefile.txt

then buddy would get your privatefile.txt included right in your webpage......

(granted, that's only if the server has access to the file, etc, etc...)

But you get my point? This would be easily breakable.....

My suggestion would be to use something more along the lines of

Code:
isset($_GET['incl']) ? include("http://server.com/calender/escalEV.php?ev=".$_GET['ev']) : include("demo.php");
That way, if anything breaks, it'll only be that the event won't be displayed properly... not that something totally different will be displayed. Now, I haven't tested this at all... but if you need more help than this, let me know
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I display the Year in Events Listing? cbworks General Support 4 01-21-2005 01:12 PM
Call the Listed Events on multiple pages vlus General 1 11-06-2004 10:25 PM
display events under date gsbe General Support 3 11-04-2004 03:08 PM
Display Events for the present day only! LazaroWolf General Support 4 09-16-2004 09:01 PM
Events won't display gmckenzi General Support 1 08-30-2004 03:45 PM



All times are GMT -4. The time now is 02:03 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |