Re: [asterisk-users] asterisk config file online editor
With some mods it surely did the trick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mojo with Horan & Company, LLC Sent: miƩrcoles, 20 de febrero de 2008 01:49 p.m. To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] asterisk config file online editor No problem, hope it gets you where you need to be :) Moj Anton Krall wrote: > This is a good start, thx Moj > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mojo with > Horan & Company, LLC > Sent: martes, 19 de febrero de 2008 01:35 p.m. > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] asterisk config file online editor > > Like 15 lines of php and html? > > $fn = "/etc/asterisk/extensions.conf"; > > if ($_REQUEST['action'] == "write" && $_REQUEST['contents'] != "") > { > rename($fn, $fn.".".date("U")); > $fp = fopen($fn, "wt"); > fwrite($fp, $_REQUEST['contents']); > fclose($fp); > } > > ?> > > > > > > > > Security holes galore! clean it up a bit :) And check on permissions > issues, that your httpd can write to the file. > > Moj > > Anton Krall wrote: > >> Guys, Im looking for a good text file editor for asterisk config files >> that can be embedded on a web page for online editing (on an >> > interface), > >> any recommendations? >> >> >> >> Anton Krall >> Direccion General >> >> Intruder Consulting >> A Division of IntruderEnterprises S.A. de C.V. >> www.Intruder.com.mx >> www.IntruderStore.com.mx >> >> Tel. 3872-2200 ext. 201 >> Tel. 01-800-INTRUDER (01-800-468-7833) >> Email: [EMAIL PROTECTED] >> >> Como lo estoy haciendo? Contacte a mi Director: >> >> >> >> ___ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >>http://lists.digium.com/mailman/listinfo/asterisk-users >> >> > > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk config file online editor
No problem, hope it gets you where you need to be :) Moj Anton Krall wrote: > This is a good start, thx Moj > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mojo with > Horan & Company, LLC > Sent: martes, 19 de febrero de 2008 01:35 p.m. > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] asterisk config file online editor > > Like 15 lines of php and html? > > $fn = "/etc/asterisk/extensions.conf"; > > if ($_REQUEST['action'] == "write" && $_REQUEST['contents'] != "") > { > rename($fn, $fn.".".date("U")); > $fp = fopen($fn, "wt"); > fwrite($fp, $_REQUEST['contents']); > fclose($fp); > } > > ?> > > > > > > > > Security holes galore! clean it up a bit :) And check on permissions > issues, that your httpd can write to the file. > > Moj > > Anton Krall wrote: > >> Guys, Im looking for a good text file editor for asterisk config files >> that can be embedded on a web page for online editing (on an >> > interface), > >> any recommendations? >> >> >> >> Anton Krall >> Direccion General >> >> Intruder Consulting >> A Division of IntruderEnterprises S.A. de C.V. >> www.Intruder.com.mx >> www.IntruderStore.com.mx >> >> Tel. 3872-2200 ext. 201 >> Tel. 01-800-INTRUDER (01-800-468-7833) >> Email: [EMAIL PROTECTED] >> >> Como lo estoy haciendo? Contacte a mi Director: >> >> >> >> ___ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >>http://lists.digium.com/mailman/listinfo/asterisk-users >> >> > > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk config file online editor
On Feb 19, 2008 10:44 AM, Anton Krall <[EMAIL PROTECTED]> wrote: > Guys, Im looking for a good text file editor for asterisk config files > that can be embedded on a web page for online editing (on an interface), > any recommendations? You mean, something like this : http://www.voip-info.org/wiki/index.php?page=Asterisk+gui+phpconfig hth ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk config file online editor
This is a good start, thx Moj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mojo with Horan & Company, LLC Sent: martes, 19 de febrero de 2008 01:35 p.m. To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] asterisk config file online editor Like 15 lines of php and html? Security holes galore! clean it up a bit :) And check on permissions issues, that your httpd can write to the file. Moj Anton Krall wrote: > Guys, Im looking for a good text file editor for asterisk config files > that can be embedded on a web page for online editing (on an interface), > any recommendations? > > > > Anton Krall > Direccion General > > Intruder Consulting > A Division of IntruderEnterprises S.A. de C.V. > www.Intruder.com.mx > www.IntruderStore.com.mx > > Tel. 3872-2200 ext. 201 > Tel. 01-800-INTRUDER (01-800-468-7833) > Email: [EMAIL PROTECTED] > > Como lo estoy haciendo? Contacte a mi Director: > > > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk config file online editor
Like 15 lines of php and html? Security holes galore! clean it up a bit :) And check on permissions issues, that your httpd can write to the file. Moj Anton Krall wrote: > Guys, Im looking for a good text file editor for asterisk config files > that can be embedded on a web page for online editing (on an interface), > any recommendations? > > > > Anton Krall > Direccion General > > Intruder Consulting > A Division of IntruderEnterprises S.A. de C.V. > www.Intruder.com.mx > www.IntruderStore.com.mx > > Tel. 3872-2200 ext. 201 > Tel. 01-800-INTRUDER (01-800-468-7833) > Email: [EMAIL PROTECTED] > > Como lo estoy haciendo? Contacte a mi Director: > > > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] asterisk config file online editor
Guys, Im looking for a good text file editor for asterisk config files that can be embedded on a web page for online editing (on an interface), any recommendations? Anton Krall Direccion General Intruder Consulting A Division of IntruderEnterprises S.A. de C.V. www.Intruder.com.mx www.IntruderStore.com.mx Tel. 3872-2200 ext. 201 Tel. 01-800-INTRUDER (01-800-468-7833) Email: [EMAIL PROTECTED] Como lo estoy haciendo? Contacte a mi Director: ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users