a bunch of installer tweaks
This commit is contained in:
parent
fc6fb3c6b8
commit
cefe1c0325
5 changed files with 68 additions and 72 deletions
|
@ -38,7 +38,7 @@ install:
|
|||
fi
|
||||
- if [[ "$DB" == "sqlite" ]]; then echo '<?php define("DATABASE_DSN", "sqlite:shimmie.sqlite");' > data/config/auto_install.conf.php ; fi
|
||||
- composer install
|
||||
- php install.php
|
||||
- php index.php
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=data/coverage.clover
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -513,7 +513,7 @@ function _get_user(): User {
|
|||
* @return string|null
|
||||
*/
|
||||
function _get_query() {
|
||||
return @$_POST["q"]?:@$_GET["q"];
|
||||
return (@$_POST["q"]?:@$_GET["q"])?:"/";
|
||||
}
|
||||
|
||||
|
||||
|
|
22
index.php
22
index.php
File diff suppressed because one or more lines are too long
|
@ -1,11 +1,12 @@
|
|||
|
||||
ARTICLE SELECT {width: 150px;}
|
||||
INPUT, TEXTAREA {box-sizing: border-box;}
|
||||
TD>INPUT[type="button"] {width: 100%;}
|
||||
TD>INPUT[type="submit"] {width: 100%;}
|
||||
TD>INPUT[type="text"] {width: 100%;}
|
||||
TD>INPUT[type="password"] {width: 100%;}
|
||||
TD>SELECT {width: 100%;}
|
||||
TD>INPUT[type="button"],
|
||||
TD>INPUT[type="submit"],
|
||||
TD>INPUT[type="text"],
|
||||
TD>INPUT[type="password"],
|
||||
TD>INPUT[type="email"],
|
||||
TD>SELECT,
|
||||
TD>TEXTAREA {width: 100%;}
|
||||
|
||||
TABLE.form {width: 300px;}
|
||||
|
@ -30,3 +31,44 @@ IMG.lazy {display: none;}
|
|||
margin: 8px;
|
||||
border: 1px solid #882;
|
||||
}
|
||||
|
||||
#installer {
|
||||
background: #EEE;
|
||||
font-family: "Arial", sans-serif;
|
||||
font-size: 14px;
|
||||
width: 512px;
|
||||
margin: auto;
|
||||
margin-top: 16px;
|
||||
border: 1px solid black;
|
||||
border-radius: 16px;
|
||||
}
|
||||
#installer P {
|
||||
padding: 5px;
|
||||
}
|
||||
#installer A {
|
||||
text-decoration: none;
|
||||
}
|
||||
#installer A:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#installer H1, #installer H3 {
|
||||
background: #DDD;
|
||||
text-align: center;
|
||||
margin: 0px;
|
||||
padding: 2px;
|
||||
}
|
||||
#installer H1 {
|
||||
border-bottom: 1px solid black;
|
||||
border-radius: 16px 16px 0px 0px;
|
||||
}
|
||||
#installer H3 {
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
#installer TH {
|
||||
text-align: right;
|
||||
}
|
||||
#installer INPUT,
|
||||
#installer SELECT {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
Reference in a new issue