Skip to content

Commit

Permalink
revise simple-search 1.1a
Browse files Browse the repository at this point in the history
  • Loading branch information
funderburkjim committed Dec 21, 2021
1 parent 2ba5798 commit 6e213ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions simple-search/v1.1a/parse_uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function parse_uri($htaccess) {
$url = preg_replace('|/$|','',$url);
$url_parts = explode("/",$url);
$url_parts_num = count($url_parts);
$key_parts =['dict','key','input_simple','output','accent'];
$key_parts =['dict','key','input','input_simple','output','accent'];
$key_parts_num = count($key_parts); //5
$parms = array();
// set defaults for $parms
Expand All @@ -41,9 +41,10 @@ function parse_uri($htaccess) {
'shs','bhs','ap','pd','mwe','bor','ae','bur','stc','pwg',
'gra','pw','ccs','sch','bop','skd','vcp','inm','vei','pui',
'acc','krm','ieg','snp','pe','pgn','mci','armh');
$parmvalues['input_simple'] = array('slp1','deva','iast','hk','itrans'); // 'roman'?
$parmvalues['input_simple'] = array('slp1','deva','iast','hk','itrans','default'); // 'roman'?
$parmvalues['output'] = array('slp1','deva','iast','hk','itrans');
$parmvalues['accent'] = array('yes','no');
$parmvalues['input'] = array('slp1','deva','iast','hk','itrans','default');
for($i=0;$i<$key_parts_num;$i++) {
$key = $key_parts[$i];
if ($i < $url_parts_num) {
Expand All @@ -69,7 +70,7 @@ function parse_uri($htaccess) {
$input_simple = $_REQUEST['input_simple'];
$output = $_REQUEST['output'];
*/
$keys = array('key','dict','input_simple','output','accent');
$keys = array('key','dict','input','input_simple','output','accent');
$phpvals = array();
for($i=0;$i<count($keys);$i++) {
$key=$keys[$i];
Expand Down

2 comments on commit 6e213ec

@gasyoun
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will it give?

@funderburkjim
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see comment on 1,.1a at #21

Please sign in to comment.