Language updates. New upload form. new classes.
This commit is contained in:
parent
4c2857b445
commit
8f3061ab99
62 changed files with 3107 additions and 1883 deletions
|
@ -4,24 +4,21 @@
|
|||
require_once 'vendor/autoload.php';
|
||||
|
||||
use Yosymfony\Toml\Toml;
|
||||
use DJMixHosting\SessionManager;
|
||||
|
||||
$config = Toml::ParseFile('includes/config.toml');
|
||||
require_once 'functions/i18n.php';
|
||||
require_once 'includes/sessions.php';
|
||||
// Instead of including sessions.php, start the session via SessionManager:
|
||||
SessionManager::start();
|
||||
|
||||
require_once 'includes/lang_loader.php';
|
||||
|
||||
|
||||
$mixshowsPages = ["/mixshows", "/mixshows/", "/mixshows.php"];
|
||||
|
||||
$djsPages = ["/djs", "/djs/", "/djs.php"];
|
||||
|
||||
$genrePages = ["/genres", "/genres/", "/genres.php"];
|
||||
|
||||
$mixPages = ["/mix", "/mix/", "/mix.php"];
|
||||
|
||||
$specialStyle = array_merge($mixshowsPages, $djsPages, $genrePages);
|
||||
|
||||
|
||||
/**
|
||||
* @param int $count
|
||||
* @param mixed $dj
|
||||
|
@ -51,7 +48,6 @@ function social_line($social, $value): string
|
|||
$icon = "";
|
||||
$url = "";
|
||||
$color = "#000000";
|
||||
|
||||
switch ($social) {
|
||||
case "facebook":
|
||||
$icon = "fa-brands fa-facebook";
|
||||
|
@ -107,26 +103,22 @@ function social_line($social, $value): string
|
|||
$name = "Website";
|
||||
break;
|
||||
}
|
||||
|
||||
return "
|
||||
<li class='list-group-item d-flex justify-content-between bg-body-secondary align-items-center p-3' title='$name'>
|
||||
<i class='fa $icon fa-lg' style='color: $color;' title='$name'></i>
|
||||
<p class='mb-0'><a href='$url' title='$name' >$value</a>
|
||||
</p>
|
||||
</li>";
|
||||
<li class='list-group-item d-flex justify-content-between bg-body-secondary align-items-center p-3' title='$name'>
|
||||
<i class='fa $icon fa-lg' style='color: $color;' title='$name'></i>
|
||||
<p class='mb-0'><a href='$url' title='$name'>$value</a></p>
|
||||
</li>";
|
||||
}
|
||||
|
||||
function box_line($title, $value): string
|
||||
{
|
||||
|
||||
return "<hr>
|
||||
<div class='row'>
|
||||
<div class='col-sm-3'>
|
||||
<p class='mb-0'>$title</p>
|
||||
</div>
|
||||
<div class='col-sm-9'>
|
||||
<p class='text-muted mb-0'>$value</p>
|
||||
</div>
|
||||
</div>";
|
||||
|
||||
}
|
||||
<div class='row'>
|
||||
<div class='col-sm-3'>
|
||||
<p class='mb-0'>$title</p>
|
||||
</div>
|
||||
<div class='col-sm-9'>
|
||||
<p class='text-muted mb-0'>$value</p>
|
||||
</div>
|
||||
</div>";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue