| 
				
			 | 
			
			
				@@ -108,6 +108,15 @@ function any_key { 
			 | 
		
	
		
			
			| 
				108
			 | 
			
				108
			 | 
			
			
				     read -n1 -r -p $"Press any key to continue..." key 
			 | 
		
	
		
			
			| 
				109
			 | 
			
				109
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				110
			 | 
			
				110
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				111
			 | 
			
			
				+function get_app_icann_address { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				112
			 | 
			
			
				+    app_name="$1" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				113
			 | 
			
			
				+    icann_address="" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				114
			 | 
			
			
				+    if grep -q "${app_name} domain" $COMPLETION_FILE; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				115
			 | 
			
			
				+        icann_address=$(cat ${COMPLETION_FILE} | grep "${app_name} domain" | head -n 1 | awk -F ':' '{print $2}') 
			 | 
		
	
		
			
			| 
				
			 | 
			
				116
			 | 
			
			
				+    fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				117
			 | 
			
			
				+    echo "$icann_address" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				118
			 | 
			
			
				+} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				119
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				111
			 | 
			
				120
			 | 
			
			
				 function passwords_select_user { 
			 | 
		
	
		
			
			| 
				112
			 | 
			
				121
			 | 
			
			
				     SELECTED_USERNAME= 
			 | 
		
	
		
			
			| 
				113
			 | 
			
				122
			 | 
			
			
				  
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -176,11 +185,19 @@ function view_or_change_passwords { 
			 | 
		
	
		
			
			| 
				176
			 | 
			
				185
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				177
			 | 
			
				186
			 | 
			
			
				     CURR_PASSWORD=$(${PROJECT_NAME}-pass -u ${SELECTED_USERNAME} -a ${SELECTED_APP}) 
			 | 
		
	
		
			
			| 
				178
			 | 
			
				187
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				188
			 | 
			
			
				+    icann_address=$(get_app_icann_address "$app_name") 
			 | 
		
	
		
			
			| 
				
			 | 
			
				189
			 | 
			
			
				+    onion_address=$(get_app_onion_address "${SELECTED_APP}") 
			 | 
		
	
		
			
			| 
				
			 | 
			
				190
			 | 
			
			
				+    if [ ${#onion_address} -gt 0 ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				191
			 | 
			
			
				+        viewstr=$"${SELECTED_APP} password for ${SELECTED_USERNAME} on $icann_address or $onion_address.\n\nCopy or change it if you wish." 
			 | 
		
	
		
			
			| 
				
			 | 
			
				192
			 | 
			
			
				+    else 
			 | 
		
	
		
			
			| 
				
			 | 
			
				193
			 | 
			
			
				+        viewstr=$"${SELECTED_APP} password for ${SELECTED_USERNAME} on $icann_address\n\nCopy or change it if you wish." 
			 | 
		
	
		
			
			| 
				
			 | 
			
				194
			 | 
			
			
				+    fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				195
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				179
			 | 
			
				196
			 | 
			
			
				     data=$(tempfile 2>/dev/null) 
			 | 
		
	
		
			
			| 
				180
			 | 
			
				197
			 | 
			
			
				     trap "rm -f $data" 0 1 2 5 15 
			 | 
		
	
		
			
			| 
				181
			 | 
			
				198
			 | 
			
			
				     dialog --title $"View or Change Password" \ 
			 | 
		
	
		
			
			| 
				182
			 | 
			
				199
			 | 
			
			
				            --backtitle $"Freedombone Control Panel" \ 
			 | 
		
	
		
			
			| 
				183
			 | 
			
				
			 | 
			
			
				-           --inputbox $"${SELECTED_APP} password for ${SELECTED_USERNAME}. Copy or change it if you wish." 8 60 "$CURR_PASSWORD" 2>$data 
			 | 
		
	
		
			
			| 
				
			 | 
			
				200
			 | 
			
			
				+           --inputbox "$viewstr" 12 60 "$CURR_PASSWORD" 2>$data 
			 | 
		
	
		
			
			| 
				184
			 | 
			
				201
			 | 
			
			
				     sel=$? 
			 | 
		
	
		
			
			| 
				185
			 | 
			
				202
			 | 
			
			
				     case $sel in 
			 | 
		
	
		
			
			| 
				186
			 | 
			
				203
			 | 
			
			
				         0) 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -347,23 +364,15 @@ function show_domains { 
			 | 
		
	
		
			
			| 
				347
			 | 
			
				364
			 | 
			
			
				         fi 
			 | 
		
	
		
			
			| 
				348
			 | 
			
				365
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				349
			 | 
			
				366
			 | 
			
			
				         if [ ${#app_name} -gt 0 ]; then 
			 | 
		
	
		
			
			| 
				350
			 | 
			
				
			 | 
			
			
				-            if grep -q "${app_name} domain" $COMPLETION_FILE; then 
			 | 
		
	
		
			
			| 
				351
			 | 
			
				
			 | 
			
			
				-                icann_address=$(cat ${COMPLETION_FILE} | grep "${app_name} domain" | head -n 1 | awk -F ':' '{print $2}') 
			 | 
		
	
		
			
			| 
				352
			 | 
			
				
			 | 
			
			
				-            fi 
			 | 
		
	
		
			
			| 
				353
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				354
			 | 
			
				
			 | 
			
			
				-            if grep -q "${app_name} onion domain" $COMPLETION_FILE; then 
			 | 
		
	
		
			
			| 
				355
			 | 
			
				
			 | 
			
			
				-                onion_address=$(cat ${COMPLETION_FILE} | grep "${app_name} onion domain" | head -n 1 | awk -F ':' '{print $2}') 
			 | 
		
	
		
			
			| 
				356
			 | 
			
				
			 | 
			
			
				-            fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				367
			 | 
			
			
				+            icann_address=$(get_app_icann_address "$app_name") 
			 | 
		
	
		
			
			| 
				
			 | 
			
				368
			 | 
			
			
				+            onion_address=$(get_app_onion_address "$app_name") 
			 | 
		
	
		
			
			| 
				357
			 | 
			
				369
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				358
			 | 
			
				370
			 | 
			
			
				             echo -n -e "$(pad_string "${app_name}")" 
			 | 
		
	
		
			
			| 
				359
			 | 
			
				371
			 | 
			
			
				             echo -n -e "$(pad_string "${icann_address}")" 
			 | 
		
	
		
			
			| 
				360
			 | 
			
				372
			 | 
			
			
				             echo "${onion_address}" 
			 | 
		
	
		
			
			| 
				361
			 | 
			
				373
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				362
			 | 
			
				374
			 | 
			
			
				             if grep -q "${app_name}_mobile onion domain" $COMPLETION_FILE; then 
			 | 
		
	
		
			
			| 
				363
			 | 
			
				
			 | 
			
			
				-                if grep -q "${app_name}_mobile onion domain" $COMPLETION_FILE; then 
			 | 
		
	
		
			
			| 
				364
			 | 
			
				
			 | 
			
			
				-                    onion_address=$(cat ${COMPLETION_FILE} | grep "${app_name}_mobile onion domain" | head -n 1 | awk -F ':' '{print $2}') 
			 | 
		
	
		
			
			| 
				365
			 | 
			
				
			 | 
			
			
				-                fi 
			 | 
		
	
		
			
			| 
				366
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				
			 | 
			
				375
			 | 
			
			
				+                onion_address=$(get_app_onion_address "${app_name}") 
			 | 
		
	
		
			
			| 
				367
			 | 
			
				376
			 | 
			
			
				                 echo -n -e "$(pad_string "${app_name} (mobile)")" 
			 | 
		
	
		
			
			| 
				368
			 | 
			
				377
			 | 
			
			
				                 echo -n -e "$(pad_string "${icann_address}")" 
			 | 
		
	
		
			
			| 
				369
			 | 
			
				378
			 | 
			
			
				                 echo "${onion_address}" 
			 |