Ticket #4401: phpagiconf-functions.inc.php.patch

File phpagiconf-functions.inc.php.patch, 1.4 kB (added by ianf, 2 years ago)
  • functions.inc.php

    old new  
    4545} 
    4646 
    4747function phpagiconf_update($p_id, $p_debug, $p_error_handler, $p_err_email, $p_hostname, $p_tempdir, $p_festival_text2wave, $p_asman_server, $p_asman_port, $p_asmanager, $p_cepstral_swift, $p_cepstral_voice, $p_setuid, $p_basedir) { 
    48   $asmanager = split('/', $p_asmanager); 
     48  $asmanager = preg_split('/\//', $p_asmanager); 
    4949  $results = sql("UPDATE phpagiconf SET `debug`=$p_debug, error_handler=$p_error_handler, err_email='$p_err_email', hostname='$p_hostname', tempdir='$p_tempdir', festival_text2wave='$p_festival_text2wave', asman_server='$p_asman_server', asman_port=$p_asman_port, asman_user='".$asmanager[0]."', asman_secret='".$asmanager[1]."', cepstral_swift='$p_cepstral_swift', cepstral_voice='$p_cepstral_voice', setuid=$p_setuid, basedir='$p_basedir' where phpagiid=$p_id"); 
    5050} 
    5151 
    5252function phpagiconf_add($p_debug, $p_error_handler, $p_err_email, $p_hostname, $p_tempdir, $p_festival_text2wave, $p_asman_server, $p_asman_port, $p_asmanager, $p_cepstral_swift, $p_cepstral_voice, $p_setuid, $p_basedir) { 
    5353  global $amp_conf; 
    5454  if (!empty($p_asmanager)) { 
    55     $asmanager = split('/', $p_asmanager);  
     55    $asmanager = preg_split('/\//', $p_asmanager);  
    5656  } else { 
    5757    $asmanager = array ($amp_conf['AMPDBUSER'], $amp_conf['AMPDBPASS']); 
    5858  }