Changeset 10747
- Timestamp:
- 12/29/10 14:00:55 (2 years ago)
- Files:
-
- modules/branches/2.9 (modified) (1 prop)
- modules/branches/2.9/announcement/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/callback/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/conferences/page.conferences.php (modified) (3 diffs)
- modules/branches/2.9/core/functions.inc.php (modified) (2 diffs)
- modules/branches/2.9/daynight/functions.inc.php (modified) (2 diffs)
- modules/branches/2.9/directory/functions.inc.php (modified) (2 diffs)
- modules/branches/2.9/fax/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/featurecodeadmin/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/ivr/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/languages/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/miscapps/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/queues/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/ringgroups/functions.inc.php (modified) (1 diff)
- modules/branches/2.9/timeconditions/functions.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9
- Property svnmerge-integrated changed from /modules/branches/bootstrap-2.9:1-10625 /modules/branches/2.8:1-10714 to /modules/branches/bootstrap-2.9:1-10625,10637 /modules/branches/2.8:1-10714
modules/branches/2.9/announcement/functions.inc.php
r8038 r10747 234 234 } 235 235 236 function announcement_change_destination($old_dest, $new_dest) { 237 $sql = 'UPDATE announcement SET post_dest = "' . $new_dest . '" WHERE post_dest= "' . $old_dest . '"'; 238 sql($sql, "query"); 239 } 236 240 ?> modules/branches/2.9/callback/functions.inc.php
r10565 r10747 82 82 return $destlist; 83 83 } 84 85 function callback_change_destination($old_dest, $new_dest) { 86 $sql = 'UPDATE callback SET destination = "' . $new_dest . '" WHERE destination = "' . $old_dest . '"'; 87 sql($sql, "query"); 88 } 89 84 90 85 91 /* Generates dialplan for callback modules/branches/2.9/conferences/page.conferences.php
r10152 r10747 20 20 21 21 $account = isset($_REQUEST['account']) ? $_REQUEST['account'] : ''; 22 $orig_account = isset($_REQUEST['orig_account']) ? $_REQUEST['orig_account'] : ''; 22 23 $music = isset($_REQUEST['music']) ? $_REQUEST['music'] : ''; 23 24 $users = isset($_REQUEST['users']) ? $_REQUEST['users'] : '0'; … … 47 48 break; 48 49 case "edit": //just delete and re-add 49 conferences_del($account); 50 //check to see if the room number has changed 51 if ($orig_account != '' && $orig_account != $account) { 52 conferences_del($orig_account); 53 $_REQUEST['extdisplay'] = $account;//redirect to the new ext 54 $old = conferences_getdest($orig_account); 55 $new = conferences_getdest($account); 56 framework_change_destination($old[0], $new[0]); 57 } else { 58 conferences_del($account); 59 } 60 50 61 conferences_add($account,$_REQUEST['name'],$_REQUEST['userpin'],$_REQUEST['adminpin'],$_REQUEST['options'],$_REQUEST['joinmsg_id'],$music,$users); 51 62 needreload(); … … 151 162 <form autocomplete="off" name="editMM" action="<?php $_SERVER['PHP_SELF'] ?>" method="post" onsubmit="return checkConf();"> 152 163 <input type="hidden" name="display" value="<?php echo $dispnum?>"> 153 <input type="hidden" name="action" value="<?php echo ($extdisplay ? 'edit' : 'add') ?>">164 <input type="hidden" name="action" value="<?php echo ($extdisplay != '' ? 'edit' : 'add') ?>"> 154 165 <input type="hidden" name="options" value="<?php echo $options; ?>"> 155 166 <?php if ($extdisplay != ""){ ?> 156 <input type="hidden" name=" account" value="<?php echo $extdisplay; ?>">167 <input type="hidden" name="orig_account" value="<?php echo $extdisplay; ?>"> 157 168 <?php }?> 158 169 <table> 159 170 <tr><td colspan="2"><h5><?php echo ($extdisplay != "" ? _("Edit Conference") : _("Add Conference")) ?><hr></h5></td></tr> 160 171 <tr> 161 <?php if ($extdisplay == ""){ ?>162 172 <td><a href="#" class="info"><?php echo _("Conference Number:")?><span><?php echo _("Use this number to dial into the conference.")?></span></a></td> 163 <td><input type="text" name="account" value="" tabindex="<?php echo ++$tabindex;?>"></td> 164 <?php } ?> 173 <td><input type="text" name="account" value="<?php echo $extdisplay ?>" tabindex="<?php echo ++$tabindex;?>"></td> 165 174 </tr> 166 175 <tr> modules/branches/2.9/core/functions.inc.php
r10730 r10747 4379 4379 } 4380 4380 4381 function core_change_destination($old_dest, $new_dest) { 4382 $sql = 'UPDATE users SET noanswer_dest = "' . $new_dest . '" WHERE noanswer_dest = "' . $old_dest . '"'; 4383 sql($sql, "query"); 4384 4385 $sql = 'UPDATE users SET busy_dest = "' . $new_dest . '" WHERE busy_dest = "' . $old_dest . '"'; 4386 sql($sql, "query"); 4387 4388 $sql = 'UPDATE users SET chanunavail_dest = "' . $new_dest . '" WHERE chanunavail_dest = "' . $old_dest . '"'; 4389 sql($sql, "query"); 4390 4391 $sql = 'UPDATE incoming SET destination = "' . $new_dest . '" WHERE destination = "' . $old_dest . '"'; 4392 sql($sql, "query"); 4393 } 4394 4395 4381 4396 function core_sipname_check($sipname, $extension) { 4382 4397 global $db; … … 6513 6528 return true; 6514 6529 } 6515 6516 6530 ?> modules/branches/2.9/daynight/functions.inc.php
r10609 r10747 438 438 } 439 439 return $destlist; 440 } 441 442 function daynight_change_destination($old_dest, $new_dest) { 443 $sql = 'UPDATE daynight SET dest = "' . $new_dest . '" WHERE dest = "' . $old_dest . '"'; 444 sql($sql, "query"); 440 445 } 441 446 … … 629 634 } 630 635 } 631 632 636 ?> modules/branches/2.9/directory/functions.inc.php
r9897 r10747 487 487 } 488 488 489 function directory_change_destination($old_dest, $new_dest) { 490 $sql = 'UPDATE directory_details SET invalid_destination = "' . $new_dest . '" WHERE invalid_destination = "' . $old_dest . '"'; 491 sql($sql, "query"); 492 } 493 489 494 function directory_getdest($id) { 490 495 return array("directory,$id,1"); … … 530 535 } 531 536 } 532 533 537 ?> modules/branches/2.9/fax/functions.inc.php
r10528 r10747 52 52 } 53 53 return $destlist; 54 } 55 56 function fax_change_destination($old_dest, $new_dest) { 57 $sql = 'UPDATE fax_incoming SET destination = "' . $new_dest . '" WHERE destination = "' . $old_dest . '"'; 58 sql($sql, "query"); 54 59 } 55 60 modules/branches/2.9/featurecodeadmin/functions.inc.php
r10608 r10747 106 106 $text_domain = Array(); 107 107 foreach ($featurecodes as $result) { 108 freepbx_debug($result);109 108 // Ignore disabled codes, and modules, and ones not providing destinations 110 109 // modules/branches/2.9/ivr/functions.inc.php
r9793 r10747 505 505 return $destlist; 506 506 } 507 508 function ivr_change_destination($old_dest, $new_dest) { 509 global $db; 510 $sql = "UPDATE ivr_dests SET dest = '$new_dest' WHERE dest = '$old_dest'"; 511 $db->query($sql); 512 513 } 507 514 ?> modules/branches/2.9/languages/functions.inc.php
r10732 r10747 332 332 return $destlist; 333 333 } 334 335 function languages_change_destination($old_dest, $new_dest) { 336 $sql = 'UPDATE languages SET dest = "' . $new_dest . '" WHERE dest = "' . $old_dest . '"'; 337 sql($sql, "query"); 338 } 334 339 ?> modules/branches/2.9/miscapps/functions.inc.php
r6940 r10747 149 149 } 150 150 151 function miscapps_change_destination($old_dest, $new_dest) { 152 $sql = 'UPDATE miscapps SET dest = "' . $new_dest . '" WHERE dest = "' . $old_dest . '"'; 153 sql($sql, "query"); 154 } 151 155 ?> modules/branches/2.9/queues/functions.inc.php
r10669 r10747 832 832 } 833 833 834 function queue_change_destination($old_dest, $new_dest) { 835 $sql = 'UPDATE queues_config SET dest = "' . $new_dest . '" WHERE dest = "' . $old_dest . '"'; 836 sql($sql, "query"); 837 } 838 834 839 function queues_check_compoundrecordings() { 835 840 global $db; modules/branches/2.9/ringgroups/functions.inc.php
r10669 r10747 353 353 } 354 354 355 function ringgroups_change_destination($old_dest, $new_dest) { 356 $sql = 'UPDATE ringgroups SET postdest = "' . $new_dest . '" WHERE postdest = "' . $old_dest . '"'; 357 sql($sql, "query"); 358 } 359 355 360 function ringgroups_get($grpnum) { 356 361 global $db; modules/branches/2.9/timeconditions/functions.inc.php
r10609 r10747 231 231 return $destlist; 232 232 } 233 234 function timeconditions_change_destination($old_dest, $new_dest) { 235 $sql = 'UPDATE timeconditions SET truegoto = "' . $new_dest . '" WHERE truegoto = "' . $old_dest . '"'; 236 sql($sql, "query"); 237 238 $sql = 'UPDATE timeconditions SET falsegoto = "' . $new_dest . '" WHERE falsegoto = "' . $old_dest . '"'; 239 sql($sql, "query"); 240 } 241 233 242 234 243 //get the existing meetme extensions … … 1405 1414 1406 1415 //---------------------------end stolen from timeconditions------------------------------------- 1407 1408 1416 ?>
