Changeset 62
- Timestamp:
- 01/22/05 11:17:40 (7 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/AMP/amp_conf/htdocs/admin/extensions.php
r55 r62 106 106 107 107 $account = $_REQUEST['account']; 108 $callerid = '"'.$_REQUEST['name'].'" '.'<'.$account.'>'; 108 109 if ($_REQUEST['callerid'] == '') { 110 $callerid = '"'.$_REQUEST['name'].'" '.'<'.$account.'>'; 111 } else { 112 $callerid = stripslashes($_REQUEST['callerid']); 113 } 109 114 110 115 // the dtmfmode request variable can now be IAX2. If IAX2, handle it differently … … 261 266 <p> 262 267 <table> 268 <tr><td colspan=2><h5>Account Settings:<hr></h5></td></tr> 263 269 <? 264 270 foreach ($thisExten as $result) { 265 if ($result[1] != ' callerid' && $result[1] != 'account') {266 echo '<tr><td>'.$result[1].': </td><td><input size=" 10" type="text" name="'.$result[1].'" value="'.$result[2].'"/></td></tr>';271 if ($result[1] != 'account') { 272 echo '<tr><td>'.$result[1].': </td><td><input size="20" type="text" name="'.$result[1].'" value="'.htmlentities($result[2]).'"/></td></tr>'; 267 273 } 268 274 } 269 275 ?> 270 276 <input type="hidden" name="account" value="<? echo $account ?>"> 277 <tr><td colspan=2><h5><br>Voicemail & Directory Settings:<hr></h5></td></tr> 271 278 <tr> 272 279 <td> … … 274 281 </td> 275 282 <td> 276 <input size=" 10" type="password" name="vmpwd" value="<? echo $vmpwd; ?>" />283 <input size="20" type="password" name="vmpwd" value="<? echo $vmpwd; ?>" /> 277 284 </td> 278 285 </tr> 279 286 <tr> 280 287 <td>full name:</td> 281 <td><input type="text" name="name" value="<? echo $name; ?>"/></td>288 <td><input size="20" type="text" name="name" value="<? echo $name; ?>"/></td> 282 289 </tr> 283 290 <tr> 284 291 <td>email address:</td> 285 <td><input type="text" name="email" value="<? echo $email; ?>"/></td>292 <td><input size="20" type="text" name="email" value="<? echo $email; ?>"/></td> 286 293 </tr> 287 294 <tr> 288 295 <td>pager email address:</td> 289 <td><input type="text" name="pager" value="<? echo $pager; ?>"/></td>290 </tr> 291 <tr> 292 <td> options: </td>293 <td><input type="text" name="options" value="<? echo $options; ?>" /></td>296 <td><input size="20" type="text" name="pager" value="<? echo $pager; ?>"/></td> 297 </tr> 298 <tr> 299 <td>vm options: </td> 300 <td><input size="20" type="text" name="options" value="<? echo $options; ?>" /></td> 294 301 </tr> 295 302 … … 400 407 <? //Make sure the bottom border is low enuf 401 408 foreach ($results as $result) { 402 echo "<br> ";409 echo "<br><br>"; 403 410 } 404 411 ?> trunk/AMP/amp_conf/htdocs/admin/trunks.php
r44 r62 355 355 <? //Make sure the bottom border is low enuf 356 356 foreach ($tresults as $tresult) { 357 echo "<br><br> ";358 } 357 echo "<br><br><br>"; 358 } trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/extensions.php
r55 r62 106 106 107 107 $account = $_REQUEST['account']; 108 $callerid = '"'.$_REQUEST['name'].'" '.'<'.$account.'>'; 108 109 if ($_REQUEST['callerid'] == '') { 110 $callerid = '"'.$_REQUEST['name'].'" '.'<'.$account.'>'; 111 } else { 112 $callerid = stripslashes($_REQUEST['callerid']); 113 } 109 114 110 115 // the dtmfmode request variable can now be IAX2. If IAX2, handle it differently … … 261 266 <p> 262 267 <table> 268 <tr><td colspan=2><h5>Account Settings:<hr></h5></td></tr> 263 269 <? 264 270 foreach ($thisExten as $result) { 265 if ($result[1] != ' callerid' && $result[1] != 'account') {266 echo '<tr><td>'.$result[1].': </td><td><input size=" 10" type="text" name="'.$result[1].'" value="'.$result[2].'"/></td></tr>';271 if ($result[1] != 'account') { 272 echo '<tr><td>'.$result[1].': </td><td><input size="20" type="text" name="'.$result[1].'" value="'.htmlentities($result[2]).'"/></td></tr>'; 267 273 } 268 274 } 269 275 ?> 270 276 <input type="hidden" name="account" value="<? echo $account ?>"> 277 <tr><td colspan=2><h5><br>Voicemail & Directory Settings:<hr></h5></td></tr> 271 278 <tr> 272 279 <td> … … 274 281 </td> 275 282 <td> 276 <input size=" 10" type="password" name="vmpwd" value="<? echo $vmpwd; ?>" />283 <input size="20" type="password" name="vmpwd" value="<? echo $vmpwd; ?>" /> 277 284 </td> 278 285 </tr> 279 286 <tr> 280 287 <td>full name:</td> 281 <td><input type="text" name="name" value="<? echo $name; ?>"/></td>288 <td><input size="20" type="text" name="name" value="<? echo $name; ?>"/></td> 282 289 </tr> 283 290 <tr> 284 291 <td>email address:</td> 285 <td><input type="text" name="email" value="<? echo $email; ?>"/></td>292 <td><input size="20" type="text" name="email" value="<? echo $email; ?>"/></td> 286 293 </tr> 287 294 <tr> 288 295 <td>pager email address:</td> 289 <td><input type="text" name="pager" value="<? echo $pager; ?>"/></td>290 </tr> 291 <tr> 292 <td> options: </td>293 <td><input type="text" name="options" value="<? echo $options; ?>" /></td>296 <td><input size="20" type="text" name="pager" value="<? echo $pager; ?>"/></td> 297 </tr> 298 <tr> 299 <td>vm options: </td> 300 <td><input size="20" type="text" name="options" value="<? echo $options; ?>" /></td> 294 301 </tr> 295 302 … … 400 407 <? //Make sure the bottom border is low enuf 401 408 foreach ($results as $result) { 402 echo "<br> ";409 echo "<br><br>"; 403 410 } 404 411 ?> trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/trunks.php
r44 r62 355 355 <? //Make sure the bottom border is low enuf 356 356 foreach ($tresults as $tresult) { 357 echo "<br><br> ";358 } 357 echo "<br><br><br>"; 358 }
