Changeset 10229
- Timestamp:
- 08/26/10 23:58:40 (1 year ago)
- Files:
-
- contributed_modules/modules/endpointman/functions.inc.php (modified) (4 diffs)
- contributed_modules/modules/endpointman/includes/functions.inc (modified) (2 diffs)
- contributed_modules/modules/endpointman/install.php (modified) (6 diffs)
- contributed_modules/modules/endpointman/module.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
contributed_modules/modules/endpointman/functions.inc.php
r10227 r10229 1 1 <?PHP 2 2 3 function endpointman_get_config($engine) { 3 4 global $db; … … 6 7 7 8 $sql = 'SELECT value FROM `admin` WHERE `variable` LIKE CONVERT(_utf8 \'version\' USING latin1) COLLATE latin1_swedish_ci'; 8 $ version = $db->getOne($sql);9 $amp_version = $db->getOne($sql); 9 10 10 11 switch($engine) { 11 12 case "asterisk": 12 if (isset($core_conf) && is_a($core_conf, "core_conf") && ($ version >= "2.8.0")) {13 if (isset($core_conf) && is_a($core_conf, "core_conf") && ($amp_version >= "2.8.0")) { 13 14 $core_conf->addSipNotify('polycom-check-cfg',array('Event' => 'check-sync','Content-Length' => '0')); 14 15 $core_conf->addSipNotify('polycom-reboot',array('Event' => 'check-sync','Content-Length' => '0')); … … 34 35 // Add the 'process' function - this gets called when the page is loaded, to hook into 35 36 // displaying stuff on the page. 36 $currentcomponent->addguifunc('endpointman_configpageload');37 //$currentcomponent->addguifunc('endpointman_configpageload'); 37 38 } 38 39 // This is called before the page is actually displayed, so we can use addguielem(). … … 41 42 42 43 // Init vars from $_REQUEST[] 43 $action = isset($_REQUEST['action'])?$_REQUEST['action']:null;44 $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null;44 //$action = isset($_REQUEST['action'])?$_REQUEST['action']:null; 45 //$extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null; 45 46 46 47 // Don't display this stuff it it's on a 'This xtn has been deleted' page. 47 48 if ($action != 'del') { 48 $section = _('End Point Manager');49 $msgInvalidLanguage = _('Please enter a valid Lajnguage Code');49 //$section = _('End Point Manager'); 50 //$msgInvalidLanguage = _('Please enter a valid Lajnguage Code'); 50 51 //$currentcomponent->addguielem($section, new gui_textbox('brand', $langcode, _('Language Code'), _('This will cause all messages and voice prompts to use the selected language if installed.'), "!isFilename()", $msgInvalidLanguage, true),9); 51 52 //$currentcomponent->addguielem($section, "",9); contributed_modules/modules/endpointman/includes/functions.inc
r10227 r10229 728 728 if(!isset($directory)) { 729 729 $destination_file = PHONE_MODULES_PATH.'master.xml'; 730 $directory = "master"; 730 731 } else { 731 732 if(!file_exists(PHONE_MODULES_PATH.'/'.$directory)) { … … 734 735 $destination_file = PHONE_MODULES_PATH.'/'.$directory.'/brand_data.xml'; 735 736 } 736 $temp_file = PHONE_MODULES_PATH.'temp/ temp.xml';737 $temp_file = PHONE_MODULES_PATH.'temp/'.$directory.'.xml'; 737 738 if($this->download_xml_file($location, $temp_file)) { 738 739 $handle = fopen($temp_file, "rb"); contributed_modules/modules/endpointman/install.php
r10227 r10229 1 1 <?PHP 2 ini_set('display_errors', 1);3 error_reporting(E_ALL);2 //ini_set('display_errors', 1); 3 //error_reporting(E_ALL); 4 4 /* 5 5 Endpoint Manager V2 … … 93 93 } 94 94 95 $version = "2.2. 4";95 $version = "2.2.5"; 96 96 97 97 if(ep_table_exists("endpointman_global_vars")) { … … 131 131 } elseif($global_cfg['version'] == '2.2.2') { 132 132 $ver = "2.2.2"; 133 } elseif($global_cfg['version'] == '2.2.3') { 134 $ver = "2.2.3"; 135 } elseif($global_cfg['version'] == '2.2.4') { 136 $ver = "2.2.4"; 133 137 } else { 134 138 $ver = "1000"; 135 139 $new_install = TRUE; 136 140 } 137 138 $ver = (float) $ver;139 141 140 142 if($new_install) { … … 675 677 } 676 678 677 678 679 680 679 $data = array(); 681 680 $data =& $db->getAll("SELECT * FROM endpointman_custom_configs",array(), DB_FETCHMODE_ASSOC); … … 764 763 } 765 764 766 765 if ($ver <= "2.2.4") { 766 } 767 768 if ($ver <= "2.2.5") { 769 out("Fix Debug Left on Error, this turns off debug."); 770 $sql = 'UPDATE `asterisk`.`endpointman_global_vars` SET `value` = \'1\' WHERE `endpointman_global_vars`.`idnum` = 9 LIMIT 1;'; 771 $db->query($sql); 772 773 } 767 774 768 775 if ($new_install) { … … 803 810 (6, 'update_server', 'http://www.provisioner.net/release/'), 804 811 (7, 'version', '".$version."'), 805 (8, 'enable_ari', ' 1'),806 (9, 'debug', ' 1'),812 (8, 'enable_ari', '0'), 813 (9, 'debug', '0'), 807 814 (10, 'arp_location', '".$arp."'), 808 815 (11, 'nmap_location', '".$nmap."'), 809 816 (12, 'asterisk_location', '".$asterisk."'), 810 817 (13, 'language', ''), 811 (14, 'check_updates', ' 1'),818 (14, 'check_updates', '0'), 812 819 (15, 'disable_htaccess', ''), 813 820 (16, 'endpoint_vers', '0')"; contributed_modules/modules/endpointman/module.xml
r10228 r10229 2 2 <rawname>endpointman</rawname> 3 3 <name>PBX End Point Manager</name> 4 <version>2.2. 4</version>4 <version>2.2.5</version> 5 5 <type>tool</type> 6 6 <category>End Point Manager</category> … … 15 15 <description>PBX End Point Manager supports automated deployment of multiple manufacturers IP telephones.</description> 16 16 <changelog> 17 *2.0.0* #264, #115, #107, #110, #111, #112, #119, #127, #128, #174, #261, #270, #280, #124, #126, #272, #281 (http://projects.colsolgrp.net/projects/endpointman/issues) 18 *1.0.3* Bug Fix Aastra.cfg #142, #143 (http://projects.colsolgrp.net/projects/endpointman/issues)(6/16/09) 19 *1.0.2* Bug Fix Polycom No sip_custom.cfg #125 (http://projects.colsolgrp.net/projects/endpointman/issues) 20 *1.0.1* Bug Fix Polycom Ticket: #125 (http://projects.colsolgrp.net/projects/endpointman/issues) 21 *1.0.0* Initial release (5.26.2009). 17 *2.2.5* Fixed Debug Always on Error & File download errors & Fix float error on install 22 18 </changelog> 23 19 <info>http://projects.colsolgrp.net/projects/show/endpointman</info> 24 <location>contributed_modules/release/endpointman-2. 2.4.tgz</location>20 <location>contributed_modules/release/endpointman-2.0.0.tgz</location> 25 21 26 <md5sum> 6c18b4259e79b593ed4da8c70bd2e2e7</md5sum>22 <md5sum>b1341a35ef60d0fad17348803a0a7833</md5sum> 27 23 </module>
