Update index.php

This commit is contained in:
Alex 2025-04-03 13:04:17 -07:00 committed by GitHub
parent 99b87e536e
commit 2f41048cfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 11 deletions

View File

@ -147,9 +147,11 @@
} }
//save the data //save the data
$database->app_name = 'dashboard'; if (is_array($array)) {
$database->app_uuid = '55533bef-4f04-434a-92af-999c1e9927f7'; $database->app_name = 'dashboard';
$database->save($array); $database->app_uuid = '55533bef-4f04-434a-92af-999c1e9927f7';
$database->save($array);
}
//redirect the browser //redirect the browser
message::add($text['message-update']); message::add($text['message-update']);
@ -348,8 +350,8 @@ foreach ($dashboard as $row) {
} }
switch ($row['dashboard_row_span']) { switch ($row['dashboard_row_span']) {
case 1: case 1:
echo "#".$dashboard_name." .hud_box {\n"; echo "#".$dashboard_name." .hud_content {\n";
echo " height: 91.5px;\n"; echo " height: 89.5px;\n";
echo "}\n"; echo "}\n";
echo "#".$dashboard_name." .hud_stat {\n"; echo "#".$dashboard_name." .hud_stat {\n";
echo " line-height: 0;\n"; echo " line-height: 0;\n";
@ -366,18 +368,18 @@ foreach ($dashboard as $row) {
echo "}\n"; echo "}\n";
break; break;
case 2: case 2:
echo "#".$dashboard_name." .hud_box {\n"; echo "#".$dashboard_name." .hud_content {\n";
echo " height: 199px;\n"; echo " height: 195px;\n";
echo "}\n"; echo "}\n";
break; break;
case 3: case 3:
echo "#".$dashboard_name." .hud_box {\n"; echo "#".$dashboard_name." .hud_content {\n";
echo " height: 308.5px;\n"; echo " height: 300.5px;\n";
echo "}\n"; echo "}\n";
break; break;
default: //if empty default: //if empty
echo "#".$dashboard_name." .hud_box {\n"; echo "#".$dashboard_name." .hud_content {\n";
echo " height: 199px;\n"; echo " height: 195px;\n";
echo "}\n"; echo "}\n";
} }