HEX
Server: Apache
System: Linux vpshost0650.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: bandeirantesbomb3 (10068)
PHP: 8.0.7
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //proc/thread-self/root/usr/share/doc/dialog-1.2/samples/treeview2
#!/bin/sh
# $Id: treeview2,v 1.3 2012/12/23 22:28:00 tom Exp $

. ./setup-vars

. ./setup-edit

case "x$DIALOGOPTS" in
*--no-items*|*--noitem*)
	CUT="cut -d: -f1,3,4"
	;;
*)
	CUT="cat"
	;;
esac

$CUT >$input <<-EOF
	tag1:one:off:0
	tag2:two:off:1
	tag3:three:on:2
	tag4:four:off:1
	tag5:five:off:2
	tag6:six:off:3
	tag7:seven:off:3
	tag8:eight:off:4
	tag11:1one:off:0
	tag12:1two:off:1
	tag13:1three:on:2
	tag14:1four:off:1
	tag15:1five:off:2
	tag16:1six:off:3
	tag17:1seven:off:3
	tag18:1eight:off:4
	tag21:2one:off:0
	tag22:2two:off:1
	tag23:2three:on:2
	tag24:2four:off:1
	tag25:2five:off:2
	tag26:2six:off:3
	tag27:2seven:off:3
	tag28:2eight:off:4
	tag9:nine:off:1
EOF

$DIALOG --title "TREE VIEW DIALOG" \
	--scrollbar \
	--treeview "TreeView demo" 0 0 10 `cat $input | sed -e 's/:/ /g'` 2> $output

retval=$?

tempfile=$output
. ./report-tempfile