Format code using php-cs-fixer
This commit is contained in:
parent
43d7dc92cd
commit
d52c6184b9
352 changed files with 17473 additions and 17041 deletions
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
$tempConfigPath = "/etc/airtime/airtime.conf.tmp";
|
||||
$tempConfigPath = '/etc/airtime/airtime.conf.tmp';
|
||||
if (file_exists($tempConfigPath)) {
|
||||
$airtimeConfig = parse_ini_file($tempConfigPath, true);
|
||||
$db = $airtimeConfig["database"];
|
||||
$db = $airtimeConfig['database'];
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -16,25 +16,25 @@
|
|||
<div class="form-group">
|
||||
<label class="control-label" for="dbUser">Username</label>
|
||||
<input required class="form-control" type="text" name="dbUser" id="dbUser" placeholder="Username"
|
||||
value="<?php echo (isset($db) ? $db["dbuser"] : "airtime"); ?>" />
|
||||
value="<?php echo isset($db) ? $db['dbuser'] : 'airtime'; ?>" />
|
||||
<span class="glyphicon glyphicon-remove form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="dbPass">Password</label>
|
||||
<input required class="form-control" type="password" name="dbPass" id="dbPass" placeholder="Password"
|
||||
value="<?php echo (isset($db) ? $db["dbpass"] : "airtime"); ?>" />
|
||||
value="<?php echo isset($db) ? $db['dbpass'] : 'airtime'; ?>" />
|
||||
<span class="glyphicon glyphicon-remove form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="dbName">Name</label>
|
||||
<input required class="form-control" type="text" name="dbName" id="dbName" placeholder="Name"
|
||||
value="<?php echo (isset($db) ? $db["dbname"] : "airtime"); ?>" />
|
||||
value="<?php echo isset($db) ? $db['dbname'] : 'airtime'; ?>" />
|
||||
<span class="glyphicon glyphicon-remove form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="dbHost">Host</label>
|
||||
<input required class="form-control" type="text" name="dbHost" id="dbHost" placeholder="Host"
|
||||
value="<?php echo (isset($db) ? $db["host"] : "localhost"); ?>" />
|
||||
value="<?php echo isset($db) ? $db['host'] : 'localhost'; ?>" />
|
||||
<span class="glyphicon glyphicon-remove form-control-feedback"></span>
|
||||
</div>
|
||||
<input class="form-control" type="hidden" name="dbErr" id="dbErr" aria-describedby="helpBlock"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue