Formatting code

pull/15/head
necro-nemesis 7 years ago
parent 91cb4198e4
commit a39639248b

@ -612,14 +612,14 @@ function SaveTORAndVPNConfig(){
</div> </div>
<?php <?php
} elseif( isset($_POST['GenerateLokinet']) ) { } elseif( isset($_POST['GenerateLokinet']) ) {
exec( 'sudo /home/pi/loki-network/lokilaunch.sh "gen" > /dev/null &', $return);
?> ?>
<div class="alert alert-warning"> <div class="alert alert-warning">
Generating Lokinet Configuration Generating Lokinet Configuration
</div> </div>
<?php <?php
$output = shell_exec('sudo /home/pi/loki-network/lokilaunch.sh gen');
echo "<pre><strong>$output</strong></pre>";
} elseif( isset($_POST['ReGenerateLokinet']) ) { } elseif( isset($_POST['ReGenerateLokinet']) ) {
// exec( 'sudo /home/pi/loki-network/lokilaunch.sh "gen" > /dev/null &', $return);
?> ?>
<div class="alert alert-warning"> <div class="alert alert-warning">
Regenerating Lokinet Configuration Regenerating Lokinet Configuration
@ -635,10 +635,8 @@ function SaveTORAndVPNConfig(){
</div> </div>
<?php <?php
$bootstrap=str_replace("'", "", $bootstrap); $bootstrap=str_replace("'", "", $bootstrap);
$bootstrap=htmlspecialchars($bootstrap);
$output = shell_exec('sudo /home/pi/./loki-network/lokilaunch.sh bootstrap '.$bootstrap.''); $output = shell_exec('sudo /home/pi/./loki-network/lokilaunch.sh bootstrap '.$bootstrap.'');
echo "<pre><strong>$output</strong></pre>"; echo "<pre><strong>$output</strong></pre>";
} }
} }
?> ?>

Loading…
Cancel
Save