VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
akrall at intruder.com.mx Guest
|
Posted: Tue Feb 19, 2008 10:44 am Post subject: [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: akrall at intruder.com.mx
Como lo estoy haciendo? Contacte a mi Director: |
|
Back to top |
|
|
Guest
|
Posted: Tue Feb 19, 2008 2:35 pm Post subject: [asterisk-users] asterisk config file online editor |
|
|
Like 15 lines of php and html?
<?php
$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);
}
?>
<form>
<h1><?=$fn?></h1>
<textarea name=contents><?php include $fn ?></textarea>
<input type=hidden name=action value=write>
<input type=submit value="Save File"> <input type=reset value="Reset">
</form>
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:
Quote: | 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: akrall at intruder.com.mx
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
|
|
|
Back to top |
|
|
akrall at intruder.com.mx Guest
|
Posted: Tue Feb 19, 2008 8:50 pm Post subject: [asterisk-users] asterisk config file online editor |
|
|
This is a good start, thx Moj
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] 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?
<?php
$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);
}
?>
<form>
<h1><?=$fn?></h1>
<textarea name=contents><?php include $fn ?></textarea>
<input type=hidden name=action value=write>
<input type=submit value="Save File"> <input type=reset value="Reset">
</form>
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:
Quote: | 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),
Quote: | 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: akrall at intruder.com.mx
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 |
|
Back to top |
|
|
timebandit001 at gmail... Guest
|
Posted: Tue Feb 19, 2008 10:04 pm Post subject: [asterisk-users] asterisk config file online editor |
|
|
On Feb 19, 2008 10:44 AM, Anton Krall <akrall at intruder.com.mx> wrote:
Quote: | 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 |
|
Back to top |
|
|
Guest
|
Posted: Wed Feb 20, 2008 2:49 pm Post subject: [asterisk-users] asterisk config file online editor |
|
|
No problem, hope it gets you where you need to be
Moj
Anton Krall wrote:
Quote: | This is a good start, thx Moj
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] 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?
<?php
$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);
}
?>
<form>
<h1><?=$fn?></h1>
<textarea name=contents><?php include $fn ?></textarea>
<input type=hidden name=action value=write>
<input type=submit value="Save File"> <input type=reset value="Reset">
</form>
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:
Quote: | 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),
Quote: | 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: akrall at intruder.com.mx
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
|
|
|
Back to top |
|
|
akrall at intruder.com.mx Guest
|
Posted: Fri Feb 22, 2008 11:14 am Post subject: [asterisk-users] asterisk config file online editor |
|
|
With some mods it surely did the trick
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] 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:
Quote: | This is a good start, thx Moj
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] 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?
<?php
$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);
}
?>
<form>
<h1><?=$fn?></h1>
<textarea name=contents><?php include $fn ?></textarea>
<input type=hidden name=action value=write>
<input type=submit value="Save File"> <input type=reset value="Reset">
</form>
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:
Quote: | 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),
Quote: | 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: akrall at intruder.com.mx
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 |
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|