Changeset 6458
- Timestamp:
- 08/24/08 22:23:04 (3 years ago)
- Files:
-
- freepbx/trunk (modified) (1 prop)
- freepbx/trunk/CHANGES (modified) (1 diff)
- freepbx/trunk/SQL/newinstall.sql (modified) (1 diff)
- freepbx/trunk/SQL/newinstall.sqlite3.sql (modified) (1 diff)
- freepbx/trunk/amp_conf/htdocs/admin/components.class.php (modified) (1 diff)
- freepbx/trunk/amp_conf/htdocs/recordings/includes/crypt.php (modified) (2 diffs)
- freepbx/trunk/amp_conf/htdocs/recordings/misc/audio.php (modified) (1 diff)
- freepbx/trunk/amp_conf/htdocs/recordings/modules/callmonitor.module (modified) (1 diff)
- freepbx/trunk/amp_conf/htdocs/recordings/modules/voicemail.module (modified) (2 diffs)
- freepbx/trunk/upgrades/2.5.0rc2 (copied) (copied from freepbx/branches/2.5/upgrades/2.5.0rc2)
- freepbx/trunk/upgrades/2.5.0rc2/tables.php (copied) (copied from freepbx/branches/2.5/upgrades/2.5.0rc2/tables.php)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk
- Property svnmerge-integrated changed from /freepbx/branches/2.4:1-5944 /freepbx/branches/2.5:1-6418 to /freepbx/branches/2.4:1-5944 /freepbx/branches/2.5:1-6457
freepbx/trunk/CHANGES
r6250 r6458 14 14 You can revert to the previous behavior by setting: AMPMPG123=false in the 15 15 amportal.conf file. 16 17 WARNING: If testing with sqlite3 prior to rc2, you will have to change the field 18 size for the globals table as there is no conversion script in the upgrades directory 19 since sqlite3 is a pain to do such schema changes and there is no existing installed 20 base to convert. 16 21 17 22 AMPORTAL CONF NEW SETTINGS: freepbx/trunk/SQL/newinstall.sql
r6344 r6458 184 184 DROP TABLE IF EXISTS `globals`; 185 185 CREATE TABLE `globals` ( 186 `variable` char(20) NOT NULL default '',187 `value` char(50) NOT NULL default '',186 `variable` varchar(255) NOT NULL default '', 187 `value` varchar(255) NOT NULL default '', 188 188 PRIMARY KEY (`variable`) 189 189 ); freepbx/trunk/SQL/newinstall.sqlite3.sql
r6344 r6458 187 187 DROP TABLE IF EXISTS `globals`; 188 188 CREATE TABLE `globals` ( 189 `variable` char(20) NOT NULL default '',190 `value` char(50) NOT NULL default '',189 `variable` varchar(255) NOT NULL default '', 190 `value` varchar(255) NOT NULL default '', 191 191 PRIMARY KEY (`variable`) 192 192 ) ; freepbx/trunk/amp_conf/htdocs/admin/components.class.php
r6055 r6458 634 634 } 635 635 636 class gui_checkbox extends guiinput { 637 function gui_checkbox($elemname, $checked=false, $prompttext='', $helptext='', $value='on', $post_text = '', $jsonclick = '', $disable=false) { 638 $parent_class = get_parent_class($this); 639 parent::$parent_class($elemname, '', $prompttext, $helptext); 640 641 $itemchecked = $checked ? 'checked' : ''; 642 $disable_state = $disable ? 'disabled="true"' : ''; 643 $js_onclick_include = ($jsonclick != '') ? 'onclick="' . $jsonclick. '"' : ''; 644 $tabindex = guielement::gettabindex(); 645 646 $this->html_input = "<input type=\"checkbox\" name=\"$this->_elemname\" id=\"$this->_elemname\" $disable_state tabindex=$tabindex value=\"$value\" $js_onclick_include $itemchecked/>$post_text\n"; 647 } 648 } 649 636 650 class gui_radio extends guiinput { 637 651 function gui_radio($elemname, $valarray, $currentvalue = '', $prompttext = '', $helptext = '', $disable=false) { freepbx/trunk/amp_conf/htdocs/recordings/includes/crypt.php
r6190 r6458 47 47 $i += 16; 48 48 } 49 return urlencode(base64_encode($enc_text));49 return base64_encode($enc_text); 50 50 } 51 51 … … 63 63 function decrypt($enc, $salt, $iv_len = 16) { 64 64 65 $enc = base64_decode( urldecode($enc));65 $enc = base64_decode($enc); 66 66 $n = strlen($enc); 67 67 $i = $iv_len; freepbx/trunk/amp_conf/htdocs/recordings/misc/audio.php
r6190 r6458 17 17 $crypt = new Crypt(); 18 18 19 $path = $crypt->decrypt( urlencode($_GET['recording']),$ARI_CRYPT_PASSWORD);19 $path = $crypt->decrypt($_GET['recording'],$ARI_CRYPT_PASSWORD); 20 20 21 21 // strip ".." from path for security freepbx/trunk/amp_conf/htdocs/recordings/modules/callmonitor.module
r6190 r6458 208 208 // recording file 209 209 $recording = $recordings[$value['uniqueid'] . $value['calldate']]; 210 $recordingCrypt = $crypt->encrypt($recording,$ARI_CRYPT_PASSWORD);210 $recordingCrypt = urlencode($crypt->encrypt($recording,$ARI_CRYPT_PASSWORD)); 211 211 212 212 // date and time freepbx/trunk/amp_conf/htdocs/recordings/modules/voicemail.module
r6322 r6458 398 398 $duration = $value[duration]; 399 399 if (is_file($recording)) { 400 $recordingCrypt = $crypt->encrypt($recording,$ARI_CRYPT_PASSWORD);400 $recordingCrypt = urlencode($crypt->encrypt($recording,$ARI_CRYPT_PASSWORD)); 401 401 $recordingLink = "<a href='#' onClick=\"javascript:popUp('misc/recording_popup.php?recording=" . $recordingCrypt . "&date=" . $date . "&time=" . $time . "'); return false;\"> 402 402 " . _("play") . " … … 408 408 } 409 409 410 $fileCrypt = $crypt->encrypt($file,$ARI_CRYPT_PASSWORD);410 $fileCrypt = urlencode($crypt->encrypt($file,$ARI_CRYPT_PASSWORD)); 411 411 412 412 $tableText .= "
