Error occured in script.
Script processing aborted.
-----------------------------------------------------
Source: /var/www/barant/index.cgi
Character position: 102
Tag process index: 68
Error Code: 0007
Error occurred while parsing expression in SET tag.
Internal error while retrieving result.
-----------------------------------------------------

  <set name="uri" expr="substring(substring_index(substring_index('$[REQUEST_URI]','?',1),'/',2),2)">
  <set name="ARGS" expr="substring('$[REQUEST_URI]',locate('/','$[REQUEST_URI]',2))">
  <if value1="$[uri]" value2="" type="eq">
   <setpage name="main">
  <else>
   <setpage name="$[uri]">
  </if>
 -----------------------------------------------------