Code: Select all
$XY_TB_buttons = "Add Tags [tagsadd]|Address Bar Go [go]|All Drives (Group) [{drives_all}]|Auto-Refresh [autorefresh]|Available Drives (Group) [{drives_avl}]|Back [back]|Backup To [backupto]|Branch View [flatview]|Browse Network [browsenetwork]|Calculate Folder Sizes [calcfosi]|CD-ROM Drives (Group) [{drives_cdr}]|Checkbox Selection [cbx]|Close Tab [closetab]|Command Prompt [dosbox]|Computer [myco]|Configuration [conf]|Copy [copy]|Copy Path or Name [copypath]|Copy to Other Pane [dpcopyto]|Copy To... [copyto]|Customize Keyboard [cks]|Cut [cut]|Delete [del]|Details View [viewdetails]|Disconnect Mapped Drive [netunmap]|Drives [drives]|Dual Pane [dp]";
echo $XY_TB_buttons;
$XY_TB_buttons_short = "";
foreach ($button, $XY_TB_buttons, "|") {
$button_name = trim(gettoken($button, 2, "["), "]", "R");
$XY_TB_buttons_short = $XY_TB_buttons_short . $button_name . "|";
}
$XY_TB_buttons_short = trim( $XY_TB_buttons_short, "|" "R");
echo "short<crlf>$XY_TB_buttons_short";
$XY_TB_buttons_desc = "";
foreach ($button, $XY_TB_buttons, "|") {
$button_name = gettoken($button, 1, "[", "t");
$XY_TB_buttons_desc = $XY_TB_buttons_desc . $button_name . "|";
}
$XY_TB_buttons_desc = trim( $XY_TB_buttons_desc, "|" "R");
echo "Desc<crlf>$XY_TB_buttons_desc"; step;
$TB_button_desc = replacelist ("copypath", $XY_TB_buttons_short, $XY_TB_buttons_desc, "|"); echo $TB_button_desc;
$TB_button_desc = replacelist ("autorefresh", $XY_TB_buttons_short, $XY_TB_buttons_desc, "|"); echo $TB_button_desc;
unstep;
XYplorer Beta Club