* Waplocus * Graham Using the below code, how can i exit if the pathname is index and print the main path name
<!--parser:xtscript-->
var $spc=call chr $val=32
var $path=<xt:url type="path">
var $pos = call strrpos $haystack=$path; $needle=/
var $name = call substr $val=$path; $start=($pos+1)
var $name = call str_replace $subject=$name; $search=_ ; $replace=$spc 
print $name
<!--/parser:xtscript-->

Copy code
2017-11-02 05:43 (edited 2017-11-02 05:44 by Waplocus ) · (0)

Online: Guests: 2