Skip to content

Commit

Permalink
#1 just code formatting, no change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmi08 committed Dec 1, 2023
1 parent 11a8827 commit 166596c
Showing 1 changed file with 59 additions and 48 deletions.
107 changes: 59 additions & 48 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,39 @@
* # by Jimako #
* # https://www.e107sk.com #
* #######################################
*/
*/

//------------------------------------------------------------------------------------------------------------+

if (!defined('e107_INIT'))
{
require_once("../../class2.php");
require_once("../../class2.php");
}


//<link rel='stylesheet' href='lgsl_files/styles/<?php echo $lgsl_config['style'];
$lgsl_prefs= e107::pref('lgsl');

if($lgsl_prefs['style']) {
e107::css('lgsl', 'lgsl_files/styles/'.$lgsl_prefs['style']);
}

//in lgsl_config you can use e107 stuff because usebar.php
$lgsl_prefs['zone_grid'] = e107::unserialize($lgsl_prefs['zone_grid']);
$lgsl_prefs['zone_players'] = e107::unserialize($lgsl_prefs['zone_players']);
$lgsl_prefs['zone_random'] = e107::unserialize($lgsl_prefs['zone_random']);
$lgsl_prefs['zone_hide_offline'] = e107::unserialize($lgsl_prefs['zone_hide_offline']);
$lgsl_prefs['zone_title'] = e107::unserialize($lgsl_prefs['zone_title']);

/* examples for theme customization

//<link rel='stylesheet' href='lgsl_files/styles/<?php echo $lgsl_config['style'];
$lgsl_prefs = e107::pref('lgsl');

if ($lgsl_prefs['style'])
{
e107::css('lgsl', 'lgsl_files/styles/' . $lgsl_prefs['style']);
}

//in lgsl_config you can use e107 stuff because usebar.php
$lgsl_prefs['zone_grid'] = e107::unserialize($lgsl_prefs['zone_grid']);
$lgsl_prefs['zone_players'] = e107::unserialize($lgsl_prefs['zone_players']);
$lgsl_prefs['zone_random'] = e107::unserialize($lgsl_prefs['zone_random']);
$lgsl_prefs['zone_hide_offline'] = e107::unserialize($lgsl_prefs['zone_hide_offline']);
$lgsl_prefs['zone_title'] = e107::unserialize($lgsl_prefs['zone_title']);

/* examples for theme customization
$detail_icon = "<i class=\'fa fa-search\'></fa>";
$('.details_icon').addClass('btn btn-primary');
$('.details_icon').html('".$detail_icon."');
*/
/* fix for darken + LZ2 images

/* fix for darken + LZ2 images
.game_icon {
position: absolute;
}
Expand All @@ -54,19 +55,21 @@
position: absolute;
right: 0;
}
*/
if($lgsl_prefs['bootstrap3_table']) {
$start = "$(document).ready(function() {";
$end = "}); ";

$inline_script .= "
*/
if ($lgsl_prefs['bootstrap3_table'])
{
$start = "$(document).ready(function() {";
$end = "}); ";

$inline_script .= "
$('#server_list_table').addClass('table table-striped');
$('#totals').addClass('row text-center');
$('#totals div').addClass('col-sm-4 col-xs-12');
";
}
if($lgsl_prefs['bootstrap3_imagefix']) {
$css .= "
}
if ($lgsl_prefs['bootstrap3_imagefix'])
{
$css .= "
.game_icon {
position: absolute;
}
Expand All @@ -76,31 +79,39 @@
position: absolute;
right: 0;
}
";
}
e107::css('inline', $css);
e107::js('inline', $start.$inline_script.$end);
require_once HEADERF;
global $output, $lgsl_server_id;
";
}
e107::css('inline', $css);
e107::js('inline', $start . $inline_script . $end);
require_once HEADERF;

global $output, $lgsl_server_id;
//------------------------------------------------------------------------------------------------------------+

$output = "";
$s = isset($_GET['s']) ? $_GET['s'] : "";

if (is_numeric($s)) { $lgsl_server_id = $s; require "lgsl_files/lgsl_details.php"; }
elseif ($s == "add") { require "lgsl_files/lgsl_add.php"; }
else { require "lgsl_files/lgsl_list.php"; }

$output = "";
$s = isset($_GET['s']) ? $_GET['s'] : "";

if (is_numeric($s))
{
$lgsl_server_id = $s;
require "lgsl_files/lgsl_details.php";
}
elseif ($s == "add")
{
require "lgsl_files/lgsl_add.php";
}
else
{
require "lgsl_files/lgsl_list.php";
}


$ns -> tablerender($lgsl_config['title'][0], $output);
$ns->tablerender($lgsl_config['title'][0], $output);

unset($output);
unset($output);

//------------------------------------------------------------------------------------------------------------+

require_once FOOTERF;
require_once FOOTERF;

//------------------------------------------------------------------------------------------------------------+

?>

0 comments on commit 166596c

Please sign in to comment.