Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Enbedding CGI files in Am 2

 

 


Mike4172
User

Nov 28, 2006, 6:45 AM

Post #1 of 7 (727 views)
Shortcut
Enbedding CGI files in Am 2 Can't Post

I'm trying to find a good spot in Am 2 to enbed external files in similar to the way which was done with AM 1.

I've been looking at /templates/admin/menus/publish.html thinking this is the best spot. I've tried enbedding via <img src="blah.cgi"> at the bottom when it says Publishing Complete but it seems to run the cgi file before its fully complete. Any ideas where to enbed AFTER ALL things have been fully published?

Regards,
Michael
[red]NEW![/red][url "http://amscripts.net/webdesign/#logo"]Logo and Website Design[/url]
[url "http://amscripts.net/amaddons/#apde"]Auto Post Date and Expiration[/url]
[url "http://amscripts.net/amaddons/#goforum"]GoForum 2.02[/url]
[url]http://www.amscripts.net[/url]
[url "http://www.skype.com"]SKYPE[/url] - michael.amscripts

(This post was edited by Mike4172 on Nov 28, 2006, 6:45 AM)


Mike4172
User

Nov 29, 2006, 12:44 PM

Post #2 of 7 (703 views)
Shortcut
Re: [Mike4172] Enbedding CGI files in Am 2 [In reply to] Can't Post

Any ideas?

Regards,
Michael
[red]NEW![/red][url "http://amscripts.net/webdesign/#logo"]Logo and Website Design[/url]
[url "http://amscripts.net/amaddons/#apde"]Auto Post Date and Expiration[/url]
[url "http://amscripts.net/amaddons/#goforum"]GoForum 2.02[/url]
[url]http://www.amscripts.net[/url]
[url "http://www.skype.com"]SKYPE[/url] - michael.amscripts


Dave
Staff / Moderator


Nov 30, 2006, 10:21 AM

Post #3 of 7 (694 views)
Shortcut
Re: [Mike4172] Enbedding CGI files in Am 2 [In reply to] Can't Post

Hi Michael,

I can't think of a simple way to do that without making modifications to the code. And I'm imagining that the end user is going to want to be able to upgrade without having to update everything all over again.

I think I could probably make it so users could add a publish rule that would "run an external program" and have it make a web request for a specific url. It wouldn't pass any arguments though.

Dave Edis - Senior Developer
interactivetools.com
 


Mike4172
User

Nov 30, 2006, 12:24 PM

Post #4 of 7 (692 views)
Shortcut
Re: [Dave] Enbedding CGI files in Am 2 [In reply to] Can't Post

It doesn't need to pass any arguments in this case. Just execute it post publish everything at the conclusion of a publish all or save ect. As is, the users would have to run it on a cron (not ideal since it would need to be reloaded after every publish/save) or it would need to be run manually which also isn't ideal since alot of sites have writers/editors ect.

Also playing around in the modules area, but the .htaccess file seems to limit any exacuteables by saying forbidden unless authorized?

Regards,
Michael
[red]NEW![/red][url "http://amscripts.net/webdesign/#logo"]Logo and Website Design[/url]
[url "http://amscripts.net/amaddons/#apde"]Auto Post Date and Expiration[/url]
[url "http://amscripts.net/amaddons/#goforum"]GoForum 2.02[/url]
[url]http://www.amscripts.net[/url]
[url "http://www.skype.com"]SKYPE[/url] - michael.amscripts

(This post was edited by Mike4172 on Nov 30, 2006, 12:26 PM)


Dave
Staff / Moderator


Nov 30, 2006, 12:47 PM

Post #5 of 7 (691 views)
Shortcut
Re: [Mike4172] Enbedding CGI files in Am 2 [In reply to] Can't Post

That's just to prevent users from accessing the modules directory or downloading sourcecode through their browser. We put a htaccess in the /data/ dir for the same reason. You can put scripts in the same dir as admin.cgi or another subdirectory off of that and you should be fine.

Dave Edis - Senior Developer
interactivetools.com
 


Mike4172
User

Dec 2, 2006, 12:35 PM

Post #6 of 7 (681 views)
Shortcut
Re: [Dave] Enbedding CGI files in Am 2 [In reply to] Can't Post


Quote
I think I could probably make it so users could add a publish rule that would "run an external program" and have it make a web request for a specific url. It wouldn't pass any arguments though.


Is this something already possible or is this something on down the road?

Regards,
Michael
[red]NEW![/red][url "http://amscripts.net/webdesign/#logo"]Logo and Website Design[/url]
[url "http://amscripts.net/amaddons/#apde"]Auto Post Date and Expiration[/url]
[url "http://amscripts.net/amaddons/#goforum"]GoForum 2.02[/url]
[url]http://www.amscripts.net[/url]
[url "http://www.skype.com"]SKYPE[/url] - michael.amscripts


Dave
Staff / Moderator


Dec 3, 2006, 12:18 PM

Post #7 of 7 (676 views)
Shortcut
Re: [Mike4172] Enbedding CGI files in Am 2 [In reply to] Can't Post

Something down the road. I'm currently working on rewriting the publishing right now so I'll put it on the list and try to add it in.

Dave Edis - Senior Developer
interactivetools.com