- Timestamp:
- 11/01/11 05:33:15 (2 years ago)
- Files:
-
- modules/branches/2.10/endpointman/.gitignore (modified) (1 diff)
- modules/branches/2.10/endpointman/assets/css (added)
- modules/branches/2.10/endpointman/assets/css/coda-slider-2.0a.css (added)
- modules/branches/2.10/endpointman/assets/css/codemirror.css (added)
- modules/branches/2.10/endpointman/assets/css/default.css (added)
- modules/branches/2.10/endpointman/assets/css/main.css (added)
- modules/branches/2.10/endpointman/assets/css/reset.css (added)
- modules/branches/2.10/endpointman/assets/js/codemirror.js (added)
- modules/branches/2.10/endpointman/assets/js/xml.js (added)
- modules/branches/2.10/endpointman/assets/theme/codemirror.css (added)
- modules/branches/2.10/endpointman/assets/theme/default.css (added)
- modules/branches/2.10/endpointman/functions.inc.php (modified) (6 diffs)
- modules/branches/2.10/endpointman/includes/advanced.inc (modified) (4 diffs)
- modules/branches/2.10/endpointman/includes/functions.inc (modified) (1 diff)
- modules/branches/2.10/endpointman/includes/popup.php (modified) (15 diffs)
- modules/branches/2.10/endpointman/install.php (modified) (1 diff)
- modules/branches/2.10/endpointman/module.xml (modified) (1 diff)
- modules/branches/2.10/endpointman/templates/freepbx/advanced_settings_poce.html (modified) (1 diff)
- modules/branches/2.10/endpointman/templates/freepbx/alt_config_popup.html (modified) (4 diffs)
- modules/branches/2.10/endpointman/templates/freepbx29/advanced_settings_poce.html (modified) (1 diff)
- modules/branches/2.10/endpointman/templates/freepbx29/alt_config_popup.html (modified) (4 diffs)
- modules/branches/2.10/endpointman/templates/freepbx29/compiled/advanced_settings_settings_1319361402.php (deleted)
- modules/branches/2.10/endpointman/templates/freepbx29/compiled/advanced_subheader_1319361402.php (deleted)
- modules/branches/2.10/endpointman/templates/freepbx29/compiled/brand_model_manager_1319583629.php (deleted)
- modules/branches/2.10/endpointman/templates/freepbx29/compiled/devices_manager_1319361402.php (deleted)
- modules/branches/2.10/endpointman/templates/freepbx29/compiled/global_footer_1319361402.php (deleted)
- modules/branches/2.10/endpointman/templates/freepbx29/compiled/global_header_1319583629.php (deleted)
- modules/branches/2.10/endpointman/templates/freepbx29/compiled/message_box_1319361402.php (deleted)
- modules/branches/2.10/endpointman/templates/freepbx29/compiled/template_manager_1318982713.php (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.10/endpointman/.gitignore
r12759 r12900 1 1 templates/freepbx/compiled/ 2 templates/freepbx29/complied/ modules/branches/2.10/endpointman/functions.inc.php
r12832 r12900 65 65 if ($action == "del") { 66 66 $sql = "SELECT mac_id,luid FROM endpointman_line_list WHERE ext = ". $extdisplay; 67 $macid = $endpoint-> db->getRow($sql,array(),DB_FETCHMODE_ASSOC);67 $macid = $endpoint->eda->sql($sql,'getRow',DB_FETCHMODE_ASSOC); 68 68 if($macid) { 69 69 $endpoint->delete_line($macid['luid'], TRUE); … … 74 74 if(isset($delete)) { 75 75 $sql = "SELECT mac_id,luid FROM endpointman_line_list WHERE ext = ". $extdisplay; 76 $macid = $endpoint-> db->getRow($sql,array(),DB_FETCHMODE_ASSOC);76 $macid = $endpoint->eda->sql($sql,'getRow',DB_FETCHMODE_ASSOC); 77 77 if($macid) { 78 78 $endpoint->delete_line($macid['luid'], TRUE); … … 97 97 //SQL to get the Description of the extension from the extension table 98 98 $sql = "SELECT name FROM users WHERE extension = '".$_REQUEST['deviceuser']."'"; 99 $name = $ db->getOne($sql);99 $name = $endpoint->eda->sql($sql,'getOne'); 100 100 101 101 } … … 106 106 if($endpoint->mac_check_clean($mac)) { 107 107 $sql = "SELECT id FROM endpointman_mac_list WHERE mac = '".$endpoint->mac_check_clean($mac)."'"; 108 $macid = $endpoint-> db->getOne($sql);108 $macid = $endpoint->eda->sql($sql,'getOne'); 109 109 if($macid) { 110 110 //In Database already 111 111 112 $sql = 'SELECT * FROM endpointman_line_list WHERE ext = '.$extdisplay.' AND mac_id = '. $macid; 112 $lines_list =& $endpoint->db->getRow($sql,array(),DB_FETCHMODE_ASSOC); 113 $lines_list =& $endpoint->eda->sql($sql,'getRow',DB_FETCHMODE_ASSOC); 114 113 115 if(($lines_list) AND (isset($model)) AND (isset($line)) AND (!isset($delete)) AND (isset($temp))) { 114 116 //Modifying line already in the database … … 152 154 //Mac not set so delete 153 155 $sql = "SELECT mac_id,luid FROM endpointman_line_list WHERE ext = ". $extdisplay; 154 $macid = $endpoint-> db->getRow($sql,array(),DB_FETCHMODE_ASSOC);156 $macid = $endpoint->eda->sql($sql,'getRow',DB_FETCHMODE_ASSOC); 155 157 if($macid) { 156 158 //$endpoint->delete_line($macid['luid'], TRUE); … … 208 210 209 211 $sql = "SELECT mac_id,luid,line FROM endpointman_line_list WHERE ext = '".$extdisplay."' "; 210 $line_info = & $db->getRow($sql, array(), DB_FETCHMODE_ASSOC);212 $line_info = $endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC); 211 213 if($line_info) { 212 214 modules/branches/2.10/endpointman/includes/advanced.inc
r12899 r12900 7 7 * @package Provisioner 8 8 */ 9 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; 10 9 11 echo $endpoint->tpl->draw( 'global_header' ); 10 12 if(!isset($_REQUEST['subpage'])) { … … 22 24 $endpoint->tpl->assign("exporter_address", "config.php?type=tool&display=epm_config&quietmode=1&handler=file&file=export.html.php&module=endpointman&rand=".rand()); 23 25 //Dave B's Q&D file upload security code (http://us2.php.net/manual/en/features.file-upload.php) 24 if((isset($_REQUEST[' action'])) AND (isset($_REQUEST['button_import'])) AND ($_REQUEST['action']== "import")) {26 if((isset($_REQUEST['button_import'])) AND ($action == "import")) { 25 27 $allowedExtensions = array("csv","txt"); 26 28 foreach ($_FILES as $file) { … … 103 105 $endpoint->tpl->assign("brand_ava", $endpoint->brands_available()); 104 106 105 106 //$provisioner_ver = filemtime(PHONE_MODULES_PATH."master.xml");107 //$provisioner_ver = date("n-j-y",$provisioner_ver) . " at " . date("g:ia",$provisioner_ver);108 107 $provisioner_ver = ""; 109 108 $endpoint->tpl->assign("master_ver", $provisioner_ver); … … 478 477 $_POST['allow_hdfiles'] = 0; 479 478 } 480 479 481 480 $sql="UPDATE endpointman_global_vars SET value='" . $_POST['package_server'] . "' WHERE var_name='update_server'"; 482 481 $endpoint->eda->sql($sql); modules/branches/2.10/endpointman/includes/functions.inc
r12899 r12900 434 434 435 435 function update_device($macid,$model,$template,$luid=NULL,$name=NULL,$line=NULL,$update_lines=TRUE) { 436 $sql = "UPDATE endpointman_mac_list SET model = ".$model.", template_id = ".$temp ." WHERE id = ".$macid;436 $sql = "UPDATE endpointman_mac_list SET model = ".$model.", template_id = ".$template." WHERE id = ".$macid; 437 437 $this->eda->sql($sql); 438 438 modules/branches/2.10/endpointman/includes/popup.php
r12899 r12900 152 152 if($_REQUEST['pop_type'] == "alt_cfg_edit") { 153 153 $value = isset($_POST['value']) ? $_POST['value'] : $_REQUEST['value']; 154 $res = explode("_", $value,2); 154 preg_match('/^(\d*)\_(.*)/i', $value, $matches); 155 156 $cfg_id = isset($matches[1]) ? $matches[1] : null; 157 $cfg_filename = isset($matches[2]) ? $matches[2] : null; 158 155 159 if($_REQUEST['custom'] == 0) { 156 if($ res[0]!= 0) {160 if($cfg_id != 0) { 157 161 //SQL Config Files 158 162 if(isset($_REQUEST['button_save'])) { 159 $sql = "UPDATE endpointman_custom_configs SET data = '".addslashes($_REQUEST['config_text'])."' WHERE id = ".$ res[0];160 $endpoint->eda->sql($sql); 161 $ message= "Saved to Database!";162 } 163 $sql = 'SELECT * FROM endpointman_custom_configs WHERE id =' . $ res[0];163 $sql = "UPDATE endpointman_custom_configs SET data = '".addslashes($_REQUEST['config_text'])."' WHERE id = ".$cfg_id; 164 $endpoint->eda->sql($sql); 165 $endpoint->message['alt_config'] = "Saved to Database!"; 166 } 167 $sql = 'SELECT * FROM endpointman_custom_configs WHERE id =' . $cfg_id; 164 168 $row =& $endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC); 165 169 $endpoint->tpl->assign("save_as_name_value", $row['name']); … … 173 177 //HD Config Files 174 178 $sql = "SELECT endpointman_brand_list.directory, endpointman_product_list.cfg_dir FROM endpointman_brand_list, endpointman_product_list WHERE endpointman_brand_list.id = endpointman_product_list.brand AND endpointman_product_list.id = (SELECT product_id FROM endpointman_template_list WHERE id = ".$_REQUEST['tid'].")"; 175 $row = &$endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC);176 $file=PHONE_MODULES_PATH.'endpoint/'.$row['directory']."/".$row['cfg_dir']."/".$ res[1];179 $row = $endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC); 180 $file=PHONE_MODULES_PATH.'endpoint/'.$row['directory']."/".$row['cfg_dir']."/".$cfg_filename; 177 181 178 182 if((isset($_REQUEST['button_save'])) && ($endpoint->global_cfg['allow_hdfiles'])) { 179 $wfh=fopen($file,'w'); 180 fwrite($wfh,$_REQUEST['config_text']); 181 fclose($wfh); 182 $message = "Saved to Hard Drive!"; 183 $handle = fopen($file, "rb"); 184 $contents = fread($handle, filesize($file)); 185 fclose($handle); 183 file_put_contents($file, $_REQUEST['config_text']); 184 $endpoint->message['alt_config'] = "Saved to Hard Drive!"; 185 $contents = file_get_contents($file); 186 186 } elseif((isset($_REQUEST['button_save'])) && (!$endpoint->global_cfg['allow_hdfiles'])) { 187 187 $time = time(); … … 190 190 $config_fs = unserialize($row['config_files_override']); 191 191 192 $sql = 'INSERT INTO endpointman_custom_configs (name, original_name, product_id, data) VALUES ("'.$row['name'].'_'.$time.'","'.addslashes($ res[1]).'","'.$row['product_id'].'","'.addslashes($_REQUEST['config_text']).'")';193 $endpoint->eda->sql($sql); 194 $ message= "Saved to Database!";195 $new_id = &$endpoint->eda->sql('SELECT last_insert_id()','getOne');192 $sql = 'INSERT INTO endpointman_custom_configs (name, original_name, product_id, data) VALUES ("'.$row['name'].'_'.$time.'","'.addslashes($cfg_filename).'","'.$row['product_id'].'","'.addslashes($_REQUEST['config_text']).'")'; 193 $endpoint->eda->sql($sql); 194 $endpoint->message['alt_config'] = "Saved to Database!"; 195 $new_id = $endpoint->eda->sql('SELECT last_insert_id()','getOne'); 196 196 $sql = 'SELECT * FROM endpointman_custom_configs WHERE id =' . $new_id; 197 $row = &$endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC);197 $row = $endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC); 198 198 199 199 $contents = $row['data']; 200 200 201 201 $value = $new_id."_".$row['mac'].'_'.$time; 202 203 if(!is_array($config_fs)) { 204 $config_fs = array(); 205 } 202 203 $config_fs = is_array($config_fs) ? $config_fs : array(); 206 204 207 205 $file = $row['original_name']; … … 212 210 $endpoint->eda->sql($sql); 213 211 } else { 214 $handle = fopen($file, "rb"); 215 $contents = fread($handle, filesize($file)); 216 fclose($handle); 212 $contents = file_get_contents($file); 217 213 } 218 214 … … 226 222 } 227 223 } else { 228 if($ res[0]!= 0) {224 if($cfg_id != 0) { 229 225 if(isset($_REQUEST['button_save'])) { 230 $sql = "UPDATE endpointman_custom_configs SET data = '".addslashes($_REQUEST['config_text'])."' WHERE id = ".$ res[0];231 $endpoint->eda->sql($sql); 232 $ message= "Saved to Database!";233 } 234 $sql = 'SELECT * FROM endpointman_custom_configs WHERE id =' . $ res[0];226 $sql = "UPDATE endpointman_custom_configs SET data = '".addslashes($_REQUEST['config_text'])."' WHERE id = ".$cfg_id; 227 $endpoint->eda->sql($sql); 228 $endpoint->message['alt_config'] = "Saved to Database!"; 229 } 230 $sql = 'SELECT * FROM endpointman_custom_configs WHERE id =' . $cfg_id; 235 231 $row =& $endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC); 236 232 $file = "SQL/".$row['original_name']; … … 245 241 $sql = "SELECT endpointman_brand_list.directory, endpointman_product_list.cfg_dir FROM endpointman_brand_list, endpointman_product_list WHERE endpointman_brand_list.id = endpointman_product_list.brand AND endpointman_product_list.id = (SELECT endpointman_model_list.product_id FROM endpointman_model_list, endpointman_mac_list WHERE endpointman_mac_list.model = endpointman_model_list.id AND endpointman_mac_list.id = ".$_REQUEST['tid'].")"; 246 242 $row =& $endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC); 247 $file=PHONE_MODULES_PATH.'endpoint/'.$row['directory']."/".$row['cfg_dir']."/".$ res[1];243 $file=PHONE_MODULES_PATH.'endpoint/'.$row['directory']."/".$row['cfg_dir']."/".$cfg_filename; 248 244 249 245 if((isset($_REQUEST['button_save'])) && ($endpoint->global_cfg['allow_hdfiles'])) { 250 $wfh=fopen($file,'w'); 251 fwrite($wfh,$_REQUEST['config_text']); 252 fclose($wfh); 253 $message = "Saved to Hard Drive!"; 254 $handle = fopen($file, "rb"); 255 $contents = fread($handle, filesize($file)); 256 fclose($handle); 246 file_put_contents($file, $_REQUEST['config_text']); 247 $endpoint->message['alt_config'] = "Saved to Hard Drive!"; 248 $contents = file_get_contents($file); 257 249 } elseif((isset($_REQUEST['button_save'])) && (!$endpoint->global_cfg['allow_hdfiles'])) { 258 250 $time = time(); … … 261 253 $config_fs = unserialize($row['config_files_override']); 262 254 263 $sql = 'INSERT INTO endpointman_custom_configs (name, original_name, product_id, data) VALUES ("'.$row['mac'].'_'.$time.'","'.addslashes($ res[1]).'","'.$row['product_id'].'","'.addslashes($_REQUEST['config_text']).'")';264 $endpoint->eda->sql($sql); 265 $ message= "Saved to Database!";266 $new_id = & $endpoint->eda->sql('SELECT last_insert_id()');255 $sql = 'INSERT INTO endpointman_custom_configs (name, original_name, product_id, data) VALUES ("'.$row['mac'].'_'.$time.'","'.addslashes($cfg_filename).'","'.$row['product_id'].'","'.addslashes($_REQUEST['config_text']).'")'; 256 $endpoint->eda->sql($sql); 257 $endpoint->message['alt_config'] = "Saved to Database!"; 258 $new_id = $endpoint->eda->sql('SELECT last_insert_id()','getOne'); 267 259 $sql = 'SELECT * FROM endpointman_custom_configs WHERE id =' . $new_id; 268 260 $row =& $endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC); … … 271 263 272 264 $value = $new_id."_".$row['mac'].'_'.$time; 273 274 if(!is_array($config_fs)) { 275 $config_fs = array(); 276 } 265 266 $config_fs = is_array($config_fs) ? $config_fs : array(); 277 267 278 268 $file = $row['original_name']; … … 283 273 $endpoint->eda->sql($sql); 284 274 } else { 285 $handle = fopen($file, "rb"); 286 $contents = fread($handle, filesize($file)); 287 fclose($handle); 275 $contents = file_get_contents($file); 288 276 } 289 277 … … 307 295 if(isset($_REQUEST['config_text'])) { 308 296 if(isset($_REQUEST['button_save'])) { 309 $wfh=fopen($file,'w'); 310 fwrite($wfh,$_REQUEST['config_text']); 311 fclose($wfh); 312 $message = "Saved to Hard Drive!"; 297 file_put_contents($file, $_REQUEST['config_text']); 298 $endpoint->message['alt_config'] = "Saved to Hard Drive!"; 313 299 }elseif(isset($_REQUEST['button_save_as'])) { 314 300 $sql = 'INSERT INTO endpointman_custom_configs (name, original_name, product_id, data) VALUES ("'.addslashes($_REQUEST['save_as_name']).'","'.addslashes($config_files[$_REQUEST['cfg_file']]).'","'.$_REQUEST['product_select'].'","'.addslashes($_REQUEST['config_text']).'")'; 315 301 $endpoint->eda->sql($sql); 316 $message = "Saved to Database!"; 317 } 318 } 319 320 $handle = fopen($file, "rb"); 321 $contents = fread($handle, filesize($file)); 322 fclose($handle); 302 $endpoint->message['alt_config'] = "Saved to Database!"; 303 } 304 } 305 306 $contents = file_get_contents($file); 323 307 324 308 if(isset($_REQUEST['sendid'])) { 325 $endpoint->submit_config($row['directory'],$row['cfg_dir'],$config_files[$_REQUEST['cfg_file']],$contents); 326 $message = 'Sent! Thanks :-)'; 309 if($endpoint->submit_config($row['directory'],$row['cfg_dir'],$config_files[$_REQUEST['cfg_file']],$contents)) { 310 $endpoint->message['alt_config'] = 'Sent! Thanks :-)'; 311 } else { 312 $endpoint->message['alt_config'] = 'Could not send at this time'; 313 } 327 314 } 328 315 $endpoint->tpl->assign("save_as_name_value", $config_files[$_REQUEST['cfg_file']]); … … 339 326 $sql = "UPDATE endpointman_custom_configs SET data = '".addslashes($_REQUEST['config_text'])."' WHERE id = ".$_REQUEST['sql']; 340 327 $endpoint->eda->sql($sql); 341 $ message= "Saved to Database!";328 $endpoint->message['alt_config'] = "Saved to Database!"; 342 329 }elseif(isset($_REQUEST['button_save_as'])) { 343 330 $sql = 'SELECT original_name FROM endpointman_custom_configs WHERE id = '.$_REQUEST['sql']; … … 346 333 $sql = "INSERT INTO endpointman_custom_configs (name, original_name, product_id, data) VALUES ('".addslashes($_REQUEST['save_as_name'])."','".addslashes($file_name)."','".$_REQUEST['product_select']."','".addslashes($_REQUEST['config_text'])."')"; 347 334 $endpoint->eda->sql($sql); 348 $ message= "Saved to Database!";335 $endpoint->message['alt_config'] = "Saved to Database!"; 349 336 } 350 337 } … … 352 339 $sql = "SELECT cfg_dir,directory,config_files FROM endpointman_product_list,endpointman_brand_list WHERE endpointman_product_list.brand = endpointman_brand_list.id AND endpointman_product_list.id = '". $_REQUEST['product_select'] ."'"; 353 340 $row22 =& $endpoint->eda->sql($sql, 'getRow', DB_FETCHMODE_ASSOC); 354 $endpoint->submit_config($row22['directory'],$row22['cfg_dir'],$config_files[$_REQUEST['cfg_file']],$contents); 355 $message = 'Sent! Thanks! :-)'; 341 if($endpoint->submit_config($row22['directory'],$row22['cfg_dir'],$config_files[$_REQUEST['cfg_file']],$contents)) { 342 $endpoint->message['alt_config'] = 'Sent! Thanks! :-)'; 343 } else { 344 $endpoint->message['alt_config'] = 'Could not send at this time'; 345 } 346 356 347 } 357 348 $sql = 'SELECT * FROM endpointman_custom_configs WHERE id =' . $_REQUEST['sql']; … … 403 394 } 404 395 405 406 407 396 $template_file_list[0]['value'] = "template_data_custom.xml"; 408 397 $template_file_list[0]['text'] = "template_data_custom.xml"; … … 428 417 } 429 418 430 $error_message = NULL; 431 foreach($endpoint->error as $key => $error) { 432 $error_message .= $error; 433 if($endpoint->global_cfg['debug']) { 434 $error_message .= " Function: [".$key."]"; 435 } 436 $error_message .= "<br />"; 437 } 438 if(isset($message)) { 439 $endpoint->display_message_box($message,$endpoint->tpl,0); 440 } 441 if(isset($error_message)) { 442 $endpoint->display_message_box($error_message,$endpoint->tpl,1); 443 } 419 $endpoint->prepare_message_box(); 444 420 445 421 echo $endpoint->tpl->draw( 'alt_config_popup' ); modules/branches/2.10/endpointman/install.php
r12767 r12900 1052 1052 (18, 'show_all_registrations', '0'), 1053 1053 (19, 'ntp', ''), 1054 (20, 'server_type', 'file')"; 1054 (20, 'server_type', 'file'), 1055 (21, 'allow_hdfiles', '0')"; 1055 1056 $db->query($sql); 1056 1057 modules/branches/2.10/endpointman/module.xml
r12899 r12900 3 3 <repo>standard</repo> 4 4 <name>PBX End Point Manager</name> 5 <version>2.10.0. 5</version>5 <version>2.10.0.9</version> 6 6 <type>setup</type> 7 7 <category>Connectivity</category> modules/branches/2.10/endpointman/templates/freepbx/advanced_settings_poce.html
r12430 r12900 65 65 </table> 66 66 </center> 67 <script> 68 $(document).ready(function() { 69 var editor = CodeMirror.fromTextArea(document.getElementById("textarea"), {lineWrapping: true, lineNumbers: true, mode: {name: "xml", htmlMode: true}}); 70 }); 71 </script> modules/branches/2.10/endpointman/templates/freepbx/alt_config_popup.html
r12831 r12900 3 3 <title>PBX Endpoint Configuration Manager</title> 4 4 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" language="javascript"></script> 5 <link href="assets/endpointman/theme/codemirror.css" rel="stylesheet" type="text/css" /> 6 <script type="text/javascript" src="assets/endpointman/js/codemirror.js"></script> 7 <script type="text/javascript" src="assets/endpointman/js/xml.js"></script> 8 <link href="assets/endpointman/theme/default.css" rel="stylesheet" type="text/css" /> 5 9 <link href="assets/css/mainstyle.css" rel="stylesheet" type="text/css" /> 6 10 <script language="javascript"> … … 13 17 setTimeout("opener.Reload()",100); 14 18 } 19 20 $(document).ready(function() { 21 var editor = CodeMirror.fromTextArea(document.getElementById("textarea"), {lineWrapping: true, lineNumbers: true, mode: {name: "xml", htmlMode: true}}); 22 }); 15 23 </script> 16 24 </head> … … 21 29 <h1><face="Arial"><center><?php echo _('End Point Configuration Manager')?></center></h1> 22 30 <hr> 23 {if condition="isset($show_error_box)"}24 {include="message_box"}25 {/if}31 {if condition="isset($show_error_box)"} 32 {include="message_box"} 33 {/if} 26 34 <center><h4><?php echo _("File Configuration Editor For")?>: {$file}</h4> 27 35 <font color="red">Warning! You can really mess up your phone by messing with these settings. Potentially causing it to not boot!</font><br/> … … 37 45 <td> 38 46 <label> 39 <textarea name="config_text" id="textarea" cols="100" rows="30" wrap="off">{if condition="isset($config_data)"}{$config_data}{/if}</textarea>47 <textarea name="config_text" id="textarea" cols="100">{if condition="isset($config_data)"}{$config_data}{/if}</textarea> 40 48 </label> 41 49 <br><div style="font-size: 15px"> modules/branches/2.10/endpointman/templates/freepbx29/advanced_settings_poce.html
r12899 r12900 65 65 </table> 66 66 </center> 67 <script> 68 $(document).ready(function() { 69 var editor = CodeMirror.fromTextArea(document.getElementById("textarea"), {lineWrapping: true, lineNumbers: true, mode: {name: "xml", htmlMode: true}}); 70 }); 71 </script> modules/branches/2.10/endpointman/templates/freepbx29/alt_config_popup.html
r12899 r12900 2 2 <head> 3 3 <title>PBX Endpoint Configuration Manager</title> 4 <script type="text/javascript" src="common/libfreepbx.javascripts.js" language="javascript"></script> 5 <script type="text/javascript" src="assets/endpointman/js/jquery.tools.min.js"></script> 6 <script type="text/javascript" src="assets/endpointman/js/jquery.easing.1.3.js"></script> 7 <script type="text/javascript" src="assets/endpointman/js/jquery.coda-slider-2.0.js"></script> 8 <link href="common/mainstyle.css" rel="stylesheet" type="text/css" /> 4 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" language="javascript"></script> 5 <link href="assets/endpointman/theme/codemirror.css" rel="stylesheet" type="text/css" /> 6 <script type="text/javascript" src="assets/endpointman/js/codemirror.js"></script> 7 <script type="text/javascript" src="assets/endpointman/js/xml.js"></script> 8 <link href="assets/endpointman/theme/default.css" rel="stylesheet" type="text/css" /> 9 <link href="assets/css/mainstyle.css" rel="stylesheet" type="text/css" /> 9 10 <script language="javascript"> 10 11 function Close() { … … 16 17 setTimeout("opener.Reload()",100); 17 18 } 19 20 $(document).ready(function() { 21 var editor = CodeMirror.fromTextArea(document.getElementById("textarea"), {lineWrapping: true, lineNumbers: true, mode: {name: "xml", htmlMode: true}}); 22 }); 18 23 </script> 19 24 </head> … … 24 29 <h1><face="Arial"><center><?php echo _('End Point Configuration Manager')?></center></h1> 25 30 <hr> 26 {if condition="isset($show_error_box)"}27 {include="message_box"}28 {/if}31 {if condition="isset($show_error_box)"} 32 {include="message_box"} 33 {/if} 29 34 <center><h4><?php echo _("File Configuration Editor For")?>: {$file}</h4> 30 35 <font color="red">Warning! You can really mess up your phone by messing with these settings. Potentially causing it to not boot!</font><br/> … … 40 45 <td> 41 46 <label> 42 <textarea name="config_text" id="textarea" cols="100" rows="30" wrap="off">{if condition="isset($config_data)"}{$config_data}{/if}</textarea>47 <textarea name="config_text" id="textarea" cols="100">{if condition="isset($config_data)"}{$config_data}{/if}</textarea> 43 48 </label> 44 49 <br><div style="font-size: 15px">
