|
4 | 4 | if (!is_file('.skip_welcome')) { |
5 | 5 | touch('.skip_welcome'); |
6 | 6 | } |
| 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 | + |
7 | 26 | ?> |
8 | 27 | <!DOCTYPE html> |
9 | 28 | <html> |
|
38 | 57 | <body> |
39 | 58 | <div id="wrapper" class="welcome"> |
40 | 59 | <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> |
44 | 63 | <p>Photobooth was initally developped by Andre Rinas especially to run on a Raspberry Pi.<br> |
45 | 64 | In 2019 Andreas Blaesius picked up the work and continued to work on the source.</p> |
46 | 65 | <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> |
49 | 68 | <p></p> |
50 | 69 | <h3>Here are some basic information for you:</h3> |
51 | 70 | <p><b>Location of your Photobooth installation:</b> <?=getcwd()?><br> |
52 | 71 | <i>All files and folders inside this path belong to the Webserver user "www-data".</i><p> |
53 | 72 | <p><b>Images can be found at:</b> <?=$config['foldersAbs']['images']?></p> |
54 | 73 | <p><b>Databases are placed at:</b> <?=$config['foldersAbs']['data']?></p> |
55 | 74 | <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> |
58 | 79 | </br> |
59 | 80 | <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>, |
60 | 81 | you can translate Photobooth at <a href="https://crowdin.com/project/photobooth" target="_blank" rel="noopener noreferrer">Crowdin</a>.</p> |
61 | 82 | </br> |
62 | 83 | <p>Thanks for the reading! Enjoy your Photobooth!<br> |
63 | 84 | <a href="./" class="btn btn--flex">Start Photobooth</a></p> |
64 | | - |
65 | 85 | </div> |
66 | 86 |
|
67 | 87 | <script src="node_modules/whatwg-fetch/dist/fetch.umd.js"></script> |
|
0 commit comments