Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/redesign #40

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Premier Jet du redisign Xtense
  • Loading branch information
darknoon29 committed Jan 21, 2025
commit 3525a598f19bdb7286bbce054cfb023ff8d1728e
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ Xtense est l'interface permettant de récupérer les données depuis le Jeu.

## Module OGSpy 2.9.0 ##

* Nouveau format de données pour échaganges avec OGSpy
* Nouveau format de données pour échanges avec OGSpy
* Revue Import des RE
* Beaucoup de contrôles de données ajoutés

49 changes: 0 additions & 49 deletions includes/check_callbacks.php

This file was deleted.

3 changes: 2 additions & 1 deletion includes/config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
global $root;
/**
* @package Xtense 2
* @author Unibozu
@@ -21,7 +22,7 @@
list($mod_name, $mod_version, $mod_install, $ogspy_min_version, $toolbar_min_version) = file("../mod/{$root}/version.txt");
else
list($mod_name, $mod_version, $mod_install, $ogspy_min_version, $toolbar_min_version) = file("mod/{$root}/version.txt");

define('PLUGIN_VERSION', trim($mod_version));
define('TOOLBAR_MIN_VERSION', trim($toolbar_min_version));

10 changes: 1 addition & 9 deletions includes/functions.php
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ function home_check($type, $coords) {
$planets = $moons = array();
$offset = ($type == TYPE_PLANET ? 100 : 200);

$query = $db->sql_query("SELECT `planet_id`, `coordinates` FROM ".TABLE_USER_BUILDING." WHERE `user_id` = ".$user_data['user_id']." ORDER BY `planet_id` ASC");
$query = $db->sql_query("SELECT `planet_id`, `coordinates` FROM ".TABLE_USER_BUILDING." WHERE `user_id` = ".$user_data['user_id']." ORDER BY `planet_id`");
while ($data = $db->sql_fetch_assoc($query)) {
if ($data['planet_id'] < 200) {
$planets[$data['planet_id']] = $data['coordinates'];
@@ -158,14 +158,6 @@ function check_coords($coords, $exp = 0) {
//return true;
}

/**
* @param $name
*/
function icon($name) {
global $root;
echo "<img src='mod/xtense/img/icons/{$name}.png' class='icon' align='absmiddle' />";
}

/**
* @return float
*/
Loading