diff options
Diffstat (limited to 'config/freeswitch/freeswitch_profile_edit.tmp')
-rw-r--r-- | config/freeswitch/freeswitch_profile_edit.tmp | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/config/freeswitch/freeswitch_profile_edit.tmp b/config/freeswitch/freeswitch_profile_edit.tmp index b1461dd3..a1faa4de 100644 --- a/config/freeswitch/freeswitch_profile_edit.tmp +++ b/config/freeswitch/freeswitch_profile_edit.tmp @@ -1,12 +1,12 @@ <?php /* $Id$ */ /* - freeswitch_extensions.php - Copyright (C) 2008 Mark J Crane - All rights reserved. + freeswitch_profile_edit.php + Copyright (C) 2008 Mark J Crane + All rights reserved. - FreeSWITCH (TM) - http://www.freeswitch.org/ + FreeSWITCH (TM) + http://www.freeswitch.org/ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -71,18 +71,8 @@ function sf() { document.forms[0].savetopath.focus(); } <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td class="tabnavtbl"> <?php - - $tab_array = array(); - $tab_array[] = array(gettext("Settings"), false, "/pkg_edit.php?xml=freeswitch.xml&id=0"); - $tab_array[] = array(gettext("Dialplan"), false, "/packages/freeswitch/freeswitch_dialplan_includes.php"); - $tab_array[] = array(gettext("Extensions"), false, "/packages/freeswitch/freeswitch_extensions.php"); - $tab_array[] = array(gettext("Features"), false, "/packages/freeswitch/freeswitch_features.php"); - $tab_array[] = array(gettext("Gateways"), false, "/packages/freeswitch/freeswitch_gateways.php"); - $tab_array[] = array(gettext("Profiles"), false, "/packages/freeswitch/freeswitch_profiles.php"); - $tab_array[] = array(gettext("Public"), false, "/packages/freeswitch/freeswitch_public_includes.php"); - $tab_array[] = array(gettext("Status"), false, "/packages/freeswitch/freeswitch_status.php"); - $tab_array[] = array(gettext("Vars"), false, "/pkg_edit.php?xml=freeswitch_vars.xml&id=0"); - display_top_tabs($tab_array); + +display_top_tabs(build_menu()); ?> </td></tr> @@ -119,7 +109,9 @@ function sf() { document.forms[0].savetopath.focus(); } <td>/usr/local/freeswitch/conf/sip_profiles/<?php echo $_GET['f']; ?></td> <td align='right'> <input type="hidden" name="a" value="save" /> - <input type="submit" value="save" /> + <?php + echo "<input type='button' value='Set as Default' onclick=\"document.location.href='/packages/freeswitch/freeswitch_profiles.php?a=default&f=".$_GET['f']."';\" />"; + ?> </td> </tr> </table> |