AJAX and Dragonfly - Where and how?
| Author |
Message |
greenday2k


Joined: Aug 11, 2005 Posts: 484 Location: CO
|
|
| Back to top |
|
 |
Emsland-Party.de


Joined: May 24, 2005 Posts: 74 Location: Lummer Land (Germany)
|
Post subject: Re: AJAX and Dragonfly - Where and how? Posted: Tue Aug 25, 2009 9:18 am |
|
Hy!!
Yes, its useful!!
I have Ajax in Dragonfly/Coppermine.
Emsland-Party.de's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / PHP: 4.4.1 / SQL: 5.0.18-log (client: 5.0.18) / 9.1.0.8 CVS |
|
| Back to top |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3677 Location: Melbourne, AU
|
Post subject: Re: AJAX and Dragonfly - Where and how? Posted: Tue Aug 25, 2009 10:58 am |
|
1. Not really a big issue but I wouldn't like to give all usernames away so easily ... why am I saying "easily"?
AJAX requests can be seen, debugged and reproduced within the same session and reaching the file would be a joke.
Long story short ...
- your AJAX should call a php script
- your AJAX should send a header request
- .htaccess protect the php file but allow the request if the AJAX header is set
- change txt to inc, using php tags deny direct access to the file if not called by DF
- your php script will need to validate the header sent and is_user()
- your php script may finally load the inc file
At this point its not going to be easy anymore, just a little harder.
2. Its fine but again read above.
NOTE: all this if we don't want to touch core files, otherwise we could skip a couple of steps
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) MySQL 5.1 / PHP 5.3 / NextGen() |
|
| Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|

|
User Info ![Show/hide content [x]](themes/dragonfly/images/minus.png)
 Welcome Anonymous
Last CVS commits ![Show/hide content [x]](themes/dragonfly/images/minus.png)
Languages ![Show/hide content [x]](themes/dragonfly/images/minus.png)
Community ![Show/hide content [x]](themes/dragonfly/images/minus.png)
 Support for DragonflyCMS in a other languages:
• Deutsch
• Español
X-links ![Show/hide content [x]](themes/dragonfly/images/minus.png)
Preview theme ![Show/hide content [x]](themes/dragonfly/images/minus.png)
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.
|