Your new config:
PHP Code:
<?php
require_once "sql_inject.php";
$bDestroy_session = TRUE;
$url_redirect = 'index.php';
$sqlinject = new sql_inject('./log_file_sql.log',$bDestroy_session,$url_redirect);
/* sql connection data */
$sql['HOST'] = 'sdacaz\SQLEXPRESS'; // SQL hostname
$sql['USER'] = 'sa'; // SQL username
$sql['PASS'] = 'qwers'; // SQL user password
/* ranking configurations */
$rank['TOPN'] = 50; // Max chars in top
$rank['ORD1'] = 'BrahmanPoint'; // Order by BrahmanPoint or CharacterLevel
$rank['ORD2'] = 'desc'; // Order by descending (desc) or ascending (asc)
/* for anaka kruma */
$rank1['LVL1'] = 30; // Minimum level of the chars to show
$rank1['LVL2'] = 68; // Maximum level of the characters to show
/* for vedi kruma */
$rank2['LVL1'] = 69; // Minimum level of the chars to show
$rank2['LVL2'] = 99; // Maximum level of the characters to show
/* for kruma */
$rank3['LVL1'] = 100; // Minimum level of the chars to show
$rank3['LVL2'] = 200; // Maximum level of the characters to show
$AccDir = "C:\SERVER\DBSRV\account";
$NameServer = "Tantra";
$TantraWebLink = "http://tantra.net/";
$TantraForumLink = "http://www.tantra.com/forums/";
$SupportLink = "http://www.tantra/support.php";
$SMTPHost = "mail.tantra.com";
$SMTPPort = "465";
$SMTPUser = "server@tantra.com";
$SMTPPass = "smtp";
$SMTPEmail = "server.com";
$SMTPName = "Tantra";
$GM1 = "";
$GM2 = "";
$GM3 = "";
$GM4 = "";
$LinkC1 = "#"; // Link Cliente Mediafire
$LinkC2 = "#"; // Link Cliente Mediafire
$LinkP1 = "#"; // Link Client GigaSize
$LinkP2 = "#"; // Link Parche GigaSize
$mantenimiento = "Off"; // Modo Mantenimiento On / Off
function Conectarse(){
global $link;
$link=mssql_pconnect($sql['HOST'], $sql['USER'], $sql['PASS']);
if (!$link) {
exit();
};
if (!mssql_select_db("UserLogin",$link)) {
exit();
};
return $link;
};
Conectarse();
?>
ranking for anaka:
PHP Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # ---------------------------------------------------------------- # ||
|| # Copyleft ©2011-2016 Amir Torrez # ||
|| # ---------------- Basic Rank ---------------- # ||
|| # amirtorrez@openmailbox.org # ||
|| #################################################################### ||
\*======================================================================*/
include('config.php');
?>
<table width="80%" align="center" border="0">
<thead>
<tr>
<td align="center"><b>Rank</b></td>
<td align="center"><b>Character</b></td>
<td align="center"><b>Level</b></td>
<td align="center"><b>Master Points</b></td>
<td align="center"><b>Guild</b></td>
<td align="center"><b>God</b></td>
<td align="center"><b>Tribe</b></td>
</tr>
</thead>
<tbody>
<?php
function FormatLevel($var){
if($var > 99 && $var < 140){ $ResulLevel = 'Amarah '.($var-99); }
elseif($var > 140 && $var < 180){ $ResulLevel = 'Eda '.($var-140); }
elseif($var > 179){ $ResulLevel = 'Astica '.($var-179);}
else { $ResulLevel = $var; }
return $ResulLevel;
};
function FormatGod($var){
if($var == 1){ $ResultGod = 'Brahma'; }
elseif($var == 2){ $ResultGod = 'Vishnu'; }
elseif($var == 4){ $ResultGod = 'Shiva'; }
else { $ResultGod = 'None'; }
return $ResultGod;
};
function FormatTribe($var){
if($var == 1){ $ResultTribe = 'Naga'; }
elseif($var == 2){ $ResultTribe = 'Kimnara'; }
elseif($var == 4){ $ResultTribe = 'Ashura'; }
elseif($var == 8){ $ResultTribe = 'Rakshasa'; }
elseif($var == 16){ $ResultTribe = 'Yaksa'; }
elseif($var == 32){ $ResultTribe = 'Gandharva'; }
elseif($var == 64){ $ResultTribe = 'Deva'; }
elseif($var == 128){ $ResultTribe = 'Garuda'; }
else{ $ResultTribe = 'GM'; }
return $ResultTribe;
};
$link = mssql_connect($sql['HOST'], $sql['USER'], $sql['PASS']);
mssql_select_db('Tantra', $link);
$query = mssql_query("SELECT TOP ".$rank['TOPN']." * FROM TantraBackup00 WHERE CharacterLevel BETWEEN ".$rank1['LVL1']." AND ".$rank1['LVL2']." ORDER BY ".$rank['ORD1']." ".$rank['ORD2']."");
$i = 0;
while($row = mssql_fetch_array($query)){
$rank = $i+1;
$i += 1;
?>
<tr>
<td align="center"><?php echo($rank);?></td>
<td align="center"><?php echo($row['CharacterName']);?></td>
<td align="center"><?php echo(FormatLevel($row['CharacterLevel']));?></td>
<td align="center"><?php echo($row['BrahmanPoint']);?></td>
<td align="center"><?php echo($row['GuildName']);?></td>
<td align="center"><?php echo(FormatGod($row['Trimurity']));?></td>
<td align="center"><?php echo(FormatTribe($row['Tribe'])); ?></td>
</tr>
<?php
};
mssql_close($link);
?>
</tbody>
</table>
ranking for vedi
PHP Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # ---------------------------------------------------------------- # ||
|| # Copyleft ©2011-2016 Amir Torrez # ||
|| # ---------------- Basic Rank ---------------- # ||
|| # amirtorrez@openmailbox.org # ||
|| #################################################################### ||
\*======================================================================*/
include('config.php');
?>
<table width="80%" align="center" border="0">
<thead>
<tr>
<td align="center"><b>Rank</b></td>
<td align="center"><b>Character</b></td>
<td align="center"><b>Level</b></td>
<td align="center"><b>Master Points</b></td>
<td align="center"><b>Guild</b></td>
<td align="center"><b>God</b></td>
<td align="center"><b>Tribe</b></td>
</tr>
</thead>
<tbody>
<?php
function FormatLevel($var){
if($var > 99 && $var < 140){ $ResulLevel = 'Amarah '.($var-99); }
elseif($var > 140 && $var < 180){ $ResulLevel = 'Eda '.($var-140); }
elseif($var > 179){ $ResulLevel = 'Astica '.($var-179);}
else { $ResulLevel = $var; }
return $ResulLevel;
};
function FormatGod($var){
if($var == 1){ $ResultGod = 'Brahma'; }
elseif($var == 2){ $ResultGod = 'Vishnu'; }
elseif($var == 4){ $ResultGod = 'Shiva'; }
else { $ResultGod = 'None'; }
return $ResultGod;
};
function FormatTribe($var){
if($var == 1){ $ResultTribe = 'Naga'; }
elseif($var == 2){ $ResultTribe = 'Kimnara'; }
elseif($var == 4){ $ResultTribe = 'Ashura'; }
elseif($var == 8){ $ResultTribe = 'Rakshasa'; }
elseif($var == 16){ $ResultTribe = 'Yaksa'; }
elseif($var == 32){ $ResultTribe = 'Gandharva'; }
elseif($var == 64){ $ResultTribe = 'Deva'; }
elseif($var == 128){ $ResultTribe = 'Garuda'; }
else{ $ResultTribe = 'GM'; }
return $ResultTribe;
};
$link = mssql_connect($sql['HOST'], $sql['USER'], $sql['PASS']);
mssql_select_db('Tantra', $link);
$query = mssql_query("SELECT TOP ".$rank['TOPN']." * FROM TantraBackup00 WHERE CharacterLevel BETWEEN ".$rank2['LVL1']." AND ".$rank2['LVL2']." ORDER BY ".$rank['ORD1']." ".$rank['ORD2']."");
$i = 0;
while($row = mssql_fetch_array($query)){
$rank = $i+1;
$i += 1;
?>
<tr>
<td align="center"><?php echo($rank);?></td>
<td align="center"><?php echo($row['CharacterName']);?></td>
<td align="center"><?php echo(FormatLevel($row['CharacterLevel']));?></td>
<td align="center"><?php echo($row['BrahmanPoint']);?></td>
<td align="center"><?php echo($row['GuildName']);?></td>
<td align="center"><?php echo(FormatGod($row['Trimurity']));?></td>
<td align="center"><?php echo(FormatTribe($row['Tribe'])); ?></td>
</tr>
<?php
};
mssql_close($link);
?>
</tbody>
</table>
for kruma
PHP Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # ---------------------------------------------------------------- # ||
|| # Copyleft ©2011-2016 Amir Torrez # ||
|| # ---------------- Basic Rank ---------------- # ||
|| # amirtorrez@openmailbox.org # ||
|| #################################################################### ||
\*======================================================================*/
include('config.php');
?>
<table width="80%" align="center" border="0">
<thead>
<tr>
<td align="center"><b>Rank</b></td>
<td align="center"><b>Character</b></td>
<td align="center"><b>Level</b></td>
<td align="center"><b>Master Points</b></td>
<td align="center"><b>Guild</b></td>
<td align="center"><b>God</b></td>
<td align="center"><b>Tribe</b></td>
</tr>
</thead>
<tbody>
<?php
function FormatLevel($var){
if($var > 99 && $var < 140){ $ResulLevel = 'Amarah '.($var-99); }
elseif($var > 140 && $var < 180){ $ResulLevel = 'Eda '.($var-140); }
elseif($var > 179){ $ResulLevel = 'Astica '.($var-179);}
else { $ResulLevel = $var; }
return $ResulLevel;
};
function FormatGod($var){
if($var == 1){ $ResultGod = 'Brahma'; }
elseif($var == 2){ $ResultGod = 'Vishnu'; }
elseif($var == 4){ $ResultGod = 'Shiva'; }
else { $ResultGod = 'None'; }
return $ResultGod;
};
function FormatTribe($var){
if($var == 1){ $ResultTribe = 'Naga'; }
elseif($var == 2){ $ResultTribe = 'Kimnara'; }
elseif($var == 4){ $ResultTribe = 'Ashura'; }
elseif($var == 8){ $ResultTribe = 'Rakshasa'; }
elseif($var == 16){ $ResultTribe = 'Yaksa'; }
elseif($var == 32){ $ResultTribe = 'Gandharva'; }
elseif($var == 64){ $ResultTribe = 'Deva'; }
elseif($var == 128){ $ResultTribe = 'Garuda'; }
else{ $ResultTribe = 'GM'; }
return $ResultTribe;
};
$link = mssql_connect($sql['HOST'], $sql['USER'], $sql['PASS']);
mssql_select_db('Tantra', $link);
$query = mssql_query("SELECT TOP ".$rank['TOPN']." * FROM TantraBackup00 WHERE CharacterLevel BETWEEN ".$rank3['LVL1']." AND ".$rank3['LVL2']." ORDER BY ".$rank['ORD1']." ".$rank['ORD2']."");
$i = 0;
while($row = mssql_fetch_array($query)){
$rank = $i+1;
$i += 1;
?>
<tr>
<td align="center"><?php echo($rank);?></td>
<td align="center"><?php echo($row['CharacterName']);?></td>
<td align="center"><?php echo(FormatLevel($row['CharacterLevel']));?></td>
<td align="center"><?php echo($row['BrahmanPoint']);?></td>
<td align="center"><?php echo($row['GuildName']);?></td>
<td align="center"><?php echo(FormatGod($row['Trimurity']));?></td>
<td align="center"><?php echo(FormatTribe($row['Tribe'])); ?></td>
</tr>
<?php
};
mssql_close($link);
?>
</tbody>
</table>
in the config file edit the lines:
PHP Code:
/* for anaka kruma */
$rank1['LVL1'] = 30; // Minimum level of the chars to show
$rank1['LVL2'] = 68; // Maximum level of the characters to show
/* for vedi kruma */
$rank2['LVL1'] = 69; // Minimum level of the chars to show
$rank2['LVL2'] = 99; // Maximum level of the characters to show
/* for kruma */
$rank3['LVL1'] = 100; // Minimum level of the chars to show
$rank3['LVL2'] = 200; // Maximum level of the characters to show
according the level of the ranking (or the map), if you look, the 3 files are the same, only changed 2 variables, of the levels.
already have the base, edit how you want