logo path fix
This commit is contained in:
parent
0d384f901b
commit
3933b8787d
|
@ -517,4 +517,7 @@ sw.js
|
|||
/server/cypress/videos
|
||||
!/server/cypress/videos/.gitkeep
|
||||
|
||||
deployment_remotes.php
|
||||
deployment_remotes.php
|
||||
|
||||
/server/resources/images/logo.png
|
||||
/server/resources/images/owner.png
|
|
@ -266,10 +266,7 @@ if(!is_cli()) {
|
|||
<a href="../index.php" class="login"><?php t("Login"); ?></a>
|
||||
</p>
|
||||
<?php
|
||||
unlink("runInstall.php");
|
||||
if(file_exists("../options.txt")){
|
||||
unlink("../options.txt");
|
||||
}
|
||||
finalInstallationHelperStep();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
|
@ -2,6 +2,20 @@
|
|||
use GetOpt\GetOpt as Getopt;
|
||||
use GetOpt\Option;
|
||||
|
||||
function finalInstallationHelperStep(){
|
||||
$logopngPath = "../resources/images/";
|
||||
unlink("runInstall.php");
|
||||
if(file_exists("../options.txt")){
|
||||
unlink("../options.txt");
|
||||
}
|
||||
if(file_exists($logopngPath."logo_sample.png") && !file_exists($logopngPath."logo.png")){
|
||||
copy($logopngPath."logo_sample.png", $logopngPath."logo.png");
|
||||
}
|
||||
if(file_exists($logopngPath."owner_sample.png") && !file_exists($logopngPath."owner.png")){
|
||||
copy($logopngPath."owner_sample.png", $logopngPath."owner.png");
|
||||
}
|
||||
}
|
||||
|
||||
function client_languages()
|
||||
{
|
||||
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||
|
@ -552,10 +566,7 @@ function cli_helper($action, $options)
|
|||
initDB();
|
||||
initOptions($name, $visible, $password, $report_email, $owner);
|
||||
t("DB Populated successful");
|
||||
unlink("runInstall.php");
|
||||
if(file_exists("../options.txt")){
|
||||
unlink("../options.txt");
|
||||
}
|
||||
finalInstallationHelperStep();
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 71 KiB |
Binary file not shown.
After Width: | Height: | Size: 90 KiB |
Loading…
Reference in New Issue