Changeset 10212 for modules/branches/2.9/core
- Timestamp:
- 08/08/10 13:15:14 (3 years ago)
- Files:
-
- modules/branches/2.9/core/core.css (modified) (1 diff)
- modules/branches/2.9/core/core.js (added)
- modules/branches/2.9/core/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/core/images/default-option.png (added)
- modules/branches/2.9/core/images/edit.png (added)
- modules/branches/2.9/core/images/spinner.gif (added)
- modules/branches/2.9/core/module.xml (modified) (1 diff)
- modules/branches/2.9/core/page.advancedsettings.php (added)
- modules/branches/2.9/core/page.general.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/core/core.css
r10159 r10212 18 18 display: none; 19 19 } 20 #set_table tr:nth-child(even){background-color: #FCE7CE;} 21 .save, .adv_set_default{border-style: none;} 22 .savetd{display:none;} modules/branches/2.9/core/functions.inc.php
r10179 r10212 3192 3192 } 3193 3193 3194 function core_advancedsettings_get_keys($level){ 3195 global $db; 3196 $sql = 'SELECT * FROM freepbx_settings WHERE level >= ?'; 3197 $conf = $db->getAll($sql, array($level), DB_FETCHMODE_ASSOC); 3198 return $conf; 3199 } 3200 3201 function core_advancedsettings_set_keys($key, $value){ 3202 global $db; 3203 $sql = 'UPDATE freepbx_settings set value = ? where `key` = ?'; 3204 $res = $db->query($sql, array($value, $key)); 3205 if(DB::IsError($res)){ 3206 return false; 3207 } else { 3208 return true; 3209 } 3210 } 3211 3194 3212 /* begin page.ampusers.php functions */ 3195 3213 modules/branches/2.9/core/module.xml
r10183 r10212 82 82 <trunks>Trunks</trunks> 83 83 <general>General Settings</general> 84 <advancedsettings hidden="TRUE">Advanced Settings</advancedsettings> 84 85 <ampusers sort="5">Administrators</ampusers> 85 86 <wiki type="tool" category="Support" sort="5" href="http://freepbx.org" target="_blank" access="all">FreePBX Support</wiki> modules/branches/2.9/core/page.general.php
r9791 r10212 103 103 104 104 ?> 105 105 <br /> 106 <a href="<?php echo $_SERVER['PHP_SELF'] ?>?display=advancedsettings">Click here for Advanced Settings</a> 106 107 <form name="general" action="config.php" method="post" onsubmit="return general_onsubmit();"> 107 108 <input type="hidden" name="display" value="general"/>
