records.php not see admin !???

Newbie Spellweaver
Joined
Feb 24, 2007
Messages
9
Reaction score
0
Hi everybody!

Sorry my english, but i have a problem in my records.php

Screen:



Lengeds: admin = n8maret

Admin in defense, buildings and fleet ... as hidden? I do not want to be visible admin!!!

My php code is :
Code:
<?php

/**
 * records.php
 *
 * @version 1.4
 * @copyright 2008 by Chlorel for XNova
 */

define('INSIDE'  , true);
define('INSTALL' , false);

$xnova_root_path = './';
include($xnova_root_path . 'extension.inc');
include($xnova_root_path . 'common.' . $phpEx);

    includeLang('records');

    $RecordTpl = gettemplate('records_body');
    $HeaderTpl = gettemplate('records_section_header');
    $TableRows = gettemplate('records_section_rows');

    $parse['rec_title'] = $lang['rec_title'];

    $bloc['section']    = $lang['rec_build'];
    $bloc['player']     = $lang['rec_playe'];
    $bloc['level']      = $lang['rec_level'];
    $parse['building']  = parsetemplate( $HeaderTpl, $bloc);

    $bloc['section']    = $lang['rec_specb'];
    $bloc['player']     = $lang['rec_playe'];
    $bloc['level']      = $lang['rec_level'];
    $parse['buildspe']  = parsetemplate( $HeaderTpl, $bloc);

    $bloc['section']    = $lang['rec_techn'];
    $bloc['player']     = $lang['rec_playe'];
    $bloc['level']      = $lang['rec_level'];
    $parse['research']  = parsetemplate( $HeaderTpl, $bloc);

    $bloc['section']    = $lang['rec_fleet'];
    $bloc['player']     = $lang['rec_playe'];
    $bloc['level']      = $lang['rec_nbre'];
    $parse['fleet']     = parsetemplate( $HeaderTpl, $bloc);

    $bloc['section']    = $lang['rec_defes'];
    $bloc['player']     = $lang['rec_playe'];
    $bloc['level']      = $lang['rec_nbre'];
    $parse['defenses']  = parsetemplate( $HeaderTpl, $bloc);

    if ( SHOW_ADMIN_IN_RECORDS == 0 ) {
        $RecConditionP       = " WHERE `id_level` = '0'";
        $RecConditionU       = " WHERE `authlevel` = '0'";
    } else {
        $RecConditionP       = "";
        $RecConditionU       = "";
    }

    foreach($lang['tech'] as $Element => $ElementName) {
        if ($ElementName != "") {
            if ($resource[$Element] != "") {
                // Je sais bien qu'il n'y a aucune raison de blinder ce test ...
                // Mais avec les zozos qui vont le pomper ... Mieux vaut prevoir que guerir !!
                if       ($Element >=   1 && $Element <=  39 || $Element == 44) {
                    // Batiment
                    $PlanetRow          = doquery ("SELECT `id_owner`, `". $resource[$Element] ."` AS `current` FROM {{table}} WHERE `". $resource[$Element]. "` = (SELECT MAX(`". $resource[$Element] ."`) FROM {{table}}". $RecConditionP .");", 'planets', true);
                    $UserRow            = doquery ("SELECT `username` FROM {{table}} WHERE `id` = '".$PlanetRow['id_owner']."';", 'users', true);
                    $Row['element']     = $ElementName;
                    $Row['winner']      = ($PlanetRow['current'] != 0) ? $UserRow['username'] : $lang['rec_rien'];
                    $Row['count']       = ($PlanetRow['current'] != 0) ? pretty_number( $PlanetRow['current'] ) : $lang['rec_rien'];
                    $parse['building'] .= parsetemplate( $TableRows, $Row);
                } elseif ($Element >=  41 && $Element <=  99 && $Element != 44) {
                    // Batiment sp
 
I have an idea....but maybe this will not work :

Register another account and give the full rights to him (Admin),
now go to you primary account and attack that admin;

after attaking admin you should be deleted form rekords..... :)
eg. I go there and register, i get on rekords, and if I attack you I will be deleted from rekords.....that always happen

Tell me if it works



p.s. sorry for my bad english
 
Hello you can try do this it will remove the admin
here

/includes/constants.php
PHP:
 <?php


/**
 * constants.php
 *
 * @version 1
 * @copyright 2008 By Chlorel for XNova
 */

// ----------------------------------------------------------------------------------------------------------------

if ( defined('INSIDE') ) {
	define('ADMINEMAIL'               , "");
	define('GAMEURL'                  , "http://".$_SERVER['HTTP_HOST']."/");

	// Definition of the known world !
	define('MAX_GALAXY_IN_WORLD'      ,  9);
	define('MAX_SYSTEM_IN_GALAXY'     , 499);
	define('MAX_PLANET_IN_SYSTEM'     , 15);
	// Number of columns for the reports of spying
	define('SPY_REPORT_ROW'           , 2);
	// Cases by level of Lunar Base
	define('FIELDS_BY_MOONBASIS_LEVEL', 15);
	// Maximum number of colonies per player
	define('MAX_PLAYER_PLANETS'       , 99);
	// Maximum number of element in the construction of buildings
	define('MAX_BUILDING_QUEUE_SIZE'  , 5);
	// Maximum items in a list of construction fleet and defenses
	define('MAX_FLEET_OR_DEFS_PER_ROW', 1000000);
	// Rate exceeded the space available in storage Hangard ...
	// 1.0 pour 100% - 1.1 pour 110% etc ...
	define('MAX_OVERFLOW'             , 1.1);
	// Displays the administrator in the records ...
	// 1 -> displays
	// 0 -> not display them
	define('SHOW_ADMIN_IN_RECORDS'    , 0);

	// Values of bases for the colonies or planets newly created
	define('BASE_STORAGE_SIZE'        , 5000000);
	define('BUILD_METAL'              , 1500);
	define('BUILD_CRISTAL'            , 1500);
	define('BUILD_DEUTERIUM'          , 1500);
	define('BUILD_TACHYON'            , 500);

	// Debug Level
	define('DEBUG', 0); // Debugging off
	// Words that are forbidden entry to the !
	$ListCensure = array ( "<", ">", "script", "doquery", "http", "javascript", "'" );
} else {
	die("Hacking attempt");
}



?>
my self i take out the records it take away the fun of probing
:cool:
 
Last edited:
if ( SHOW_ADMIN_IN_RECORDS == 0 ) {
$RecConditionP = " WHERE `id_level` = '0'";
$RecConditionU = " WHERE `authlevel` = '0'";
} else {
$RecConditionP = "";
$RecConditionU = "";
}
That part of the code suggest that your server files are modded to have an option (in Administration->Configuration or somewhere else) that can be changed to show, or not, admins in the record page. Though it doesn't seem to be completly done...
 
Back