Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit e33b17f

Browse files
committed
welcome: inform about gallery and slideshow, small adjustments
Change-Id: I970a3d15093ce6da9fffd0d62a5575fc9ba77059
1 parent 41041e0 commit e33b17f

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

welcome.php

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44
if (!is_file('.skip_welcome')) {
55
touch('.skip_welcome');
66
}
7+
8+
if ($os == 'linux') {
9+
$get_ip = shell_exec('hostname -I | cut -d " " -f 1');
10+
11+
if (!$get_ip) {
12+
$IP = $_SERVER['HTTP_HOST'];
13+
} else {
14+
$IP = $get_ip;
15+
}
16+
17+
if (getcwd() == '/var/www/html/test') {
18+
$URL = $IP . '/photobooth';
19+
} else {
20+
$URL = $IP;
21+
}
22+
} else {
23+
$URL = $_SERVER['HTTP_HOST'];
24+
}
25+
726
?>
827
<!DOCTYPE html>
928
<html>
@@ -38,30 +57,31 @@
3857
<body>
3958
<div id="wrapper" class="welcome">
4059
<h1>Welcome to your own Photobooth</h1>
41-
42-
<p>Photobooth is an OpenSource Photobooth web interface for Linux and Windows.</p>
43-
</br>
60+
<p></p>
61+
<p>OpenSource Photobooth web interface for Linux and Windows.</p>
62+
<p></p>
4463
<p>Photobooth was initally developped by Andre Rinas especially to run on a Raspberry Pi.<br>
4564
In 2019 Andreas Blaesius picked up the work and continued to work on the source.</p>
4665
<p>With the help of the community Photobooth growed to a powerfull Photobooth software with a lot of features and possibilities.<br>
47-
By a lot of features, we mean a lot (!!!) and you might have some questions, now or later. You can find a lot of useful information inside
48-
our <a href="https://github.com/andi34/photobooth/wiki" target="_blank" rel="noopener noreferrer">Photobooth-Wiki</a> or at our <a href="https://t.me/PhotoboothGroup" target="_blank" rel="noopener noreferrer">Telegram group</a>.</p>
66+
By a lot of features, we mean a lot (!!!) and you might have some questions - now or later. You can find a lot of useful information inside
67+
the <a href="https://github.com/andi34/photobooth/wiki" target="_blank" rel="noopener noreferrer">Photobooth-Wiki</a> or at the <a href="https://t.me/PhotoboothGroup" target="_blank" rel="noopener noreferrer">Telegram group</a>.</p>
4968
<p></p>
5069
<h3>Here are some basic information for you:</h3>
5170
<p><b>Location of your Photobooth installation:</b> <?=getcwd()?><br>
5271
<i>All files and folders inside this path belong to the Webserver user "www-data".</i><p>
5372
<p><b>Images can be found at:</b> <?=$config['foldersAbs']['images']?></p>
5473
<p><b>Databases are placed at:</b> <?=$config['foldersAbs']['data']?></p>
5574
<p><b>Add your own files (e.g. background images, frames, override.css) inside:</b> <?=getcwd() . "/private"?><br>
56-
<i>All files and folders inside this path will be ignored on git and won't cause trouble while updating Photobooth.</i><p>
57-
<p>You can change the settings and look of Photobooth via <a href="admin" target="_blank" rel="noopener noreferrer">Admin panel</a>.
75+
<i>All files and folders inside this path will be ignored on git and won't cause trouble while updating Photobooth.</i></p>
76+
<p>You can change the settings and look of Photobooth using the Admin panel at <a href="admin" target="_blank" rel="noopener noreferrer">http://<?=$URL;?>/admin</a>.<br>
77+
A standalone gallery can be found at <a href="gallery.php" target="_blank" rel="noopener noreferrer">http://<?=$URL;?>/gallery.php</a>.<br>
78+
A standalone slideshow can be found at <a href="slideshow" target="_blank" rel="noopener noreferrer">http://<?=$URL;?>/slideshow</a>.</p>
5879
</br>
5980
<p>You are missing some translation or your language isn't supported yet? Don't worry! You can request new language support at <a href="https://github.com/andi34/photobooth/issues" target="_blank" rel="noopener noreferrer">GitHub</a>,
6081
you can translate Photobooth at <a href="https://crowdin.com/project/photobooth" target="_blank" rel="noopener noreferrer">Crowdin</a>.</p>
6182
</br>
6283
<p>Thanks for the reading! Enjoy your Photobooth!<br>
6384
<a href="./" class="btn btn--flex">Start Photobooth</a></p>
64-
6585
</div>
6686

6787
<script src="node_modules/whatwg-fetch/dist/fetch.umd.js"></script>

0 commit comments

Comments
 (0)