Adding snuffmoji
This commit is contained in:
parent
390b6b1de9
commit
c7df592a71
76 changed files with 8 additions and 4 deletions
10
index.php
10
index.php
|
|
@ -1,5 +1,11 @@
|
|||
<?php
|
||||
require_once "inc/database.php";
|
||||
function getRandomIcon() {
|
||||
$files = glob('./snuffmoji/*.png');
|
||||
$random_file_num = array_rand($files);
|
||||
return $files[$random_file_num];;
|
||||
}
|
||||
$randomicon = getRandomIcon();
|
||||
$database = new DataBase();
|
||||
if(!$database) {
|
||||
die($database->lastErrorMsg());
|
||||
|
|
@ -10,7 +16,7 @@ if(!$database) {
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<link rel="icon" type="image/x-icon" href="icon.png">
|
||||
<link rel="icon" type="image/x-icon" href="<?php echo $randomicon; ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Snuffler</title>
|
||||
</head>
|
||||
|
|
@ -33,7 +39,7 @@ if(!$database) {
|
|||
</div>
|
||||
|
||||
<div id="centerbox">
|
||||
<div id="titlebox"><img src="icon.png" alt="" />Snuffler</div>
|
||||
<div id="titlebox"><img src="<?php echo $randomicon; ?>" alt="" />Snuffler</div>
|
||||
|
||||
<?php
|
||||
if (!$database->getAuthedUserId()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue