[geeklog-devel] function calls from public_html/plugin to plugins/plugin

Tom websitemaster at cogeco.net
Fri Jul 19 15:46:19 EDT 2013


Nope I haven't experienced that but I haven't dealt with ajax calls much
lately.

 

Tom

 

From: geeklog-devel-bounces at lists.geeklog.net
[mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf Of Benjamin Talic
Sent: July-19-13 4:43 AM
To: Geeklog Development
Subject: [geeklog-devel] function calls from public_html/plugin to
plugins/plugin

 

Hi all,

In my plugin in several places I use AJAX calls to PHP functions.
Originally I wanted to avoid unnecessary security risks and place the
functions file inside plugins/plugin.
However I noticed that every time one of the AJAX calls is made my session
was terminated.

So I moved the function file(s) to the public_html/plugin folder. The
problem does not occur anymore.

I guess one way of dealing with security issues would be to use something
like lib-common uses:

 

if (strpos(strtolower($_SERVER['PHP_SELF']), 'lib-common.php') !== false) {
    echo COM_refresh($_CONF['site_url'] . '/index.php');
    exit;
}

 

But I am interested if anyone experienced a similar problem?

Best,

Ben

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20130719/57d2c460/attachment.html>


More information about the geeklog-devel mailing list