Skip to content

Commit

Permalink
Few changes.
Browse files Browse the repository at this point in the history
Some new stuff
  • Loading branch information
Vip3rLi0n committed Jul 9, 2023
1 parent 57d7459 commit c9d8c8b
Show file tree
Hide file tree
Showing 11 changed files with 346 additions and 183 deletions.
41 changes: 11 additions & 30 deletions cron/finishRound.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ function dotVersion($softVersion) {
$strEdit = str_split($softVersion, 7);
break;
default:
die("erreeeeeor");
break;
die("Error at finishRound.php!");
}

$strReturn = $strEdit['0'] . '.' . $strEdit['1'];
Expand All @@ -104,7 +103,7 @@ function dotVersion($softVersion) {
'ddos' => Array()
);

//INICIO RANK USUARIOS
//RANK USERS

$sql = "SELECT
uid, exp, timePlaying, hackCount, ddosCount, ipResets, moneyEarned, moneyTransfered, moneyHardware, moneyResearch,
Expand Down Expand Up @@ -164,10 +163,7 @@ function dotVersion($softVersion) {
}
}


//FIM RANK USUARIOS

//INICIO RANK CLAN
//RANK CLAN

$sql = "SELECT clan.clanID, clan.name, clan.nick, clan.power, clan_stats.won, clan_stats.lost, clan_stats.pageClicks,
(
Expand Down Expand Up @@ -207,9 +203,7 @@ function dotVersion($softVersion) {

}

//FIM RANK CLAN

//INICIO RANK SOFTWARE
//RANK SOFTWARE

$sql = "SELECT softName, softType, softVersion, userID, users.login
FROM software
Expand All @@ -234,9 +228,7 @@ function dotVersion($softVersion) {

}

//FIM RANK SOFTWARE

//INICIO RANK DDOS
//RANK DDOS

$sql = "SELECT ranking_ddos.rank, attID, vicID, power, servers, att.login AS attUser, vic.login AS vicUser
FROM round_ddos
Expand All @@ -263,10 +255,7 @@ function dotVersion($softVersion) {
}

}

//FIM RANK DDOS

//INICIO HISTORY CLAN WAR
//HISTORY CLAN WAR

$sql = "SELECT idWinner, idLoser, scoreWinner, scoreLoser, startDate, endDate, bounty
FROM clan_war_history
Expand All @@ -281,9 +270,7 @@ function dotVersion($softVersion) {

}

//FIM HISTORY CLAN WAR

//INICIO HISTORY MAILS
//HISTORY MAILS

//$sql = "SELECT subject, mails.text, mails.from, mails.to, dateSent
// FROM mails
Expand All @@ -300,9 +287,7 @@ function dotVersion($softVersion) {
//
//}

//FIM HISTORY MAILS

//INICIO HISTORY MISSIONS
//HISTORY MISSIONS

$sql = "SELECT type, missionEnd, prize, userID, completed, npc.id AS hirerID
FROM missions_history
Expand All @@ -319,9 +304,7 @@ function dotVersion($softVersion) {

}

//FIM HISTORY MISSIONS

//INICIO HISTORY DOOM
//HISTORY DOOM

$sql = "SELECT creatorID, clanID, status
FROM virus_doom";
Expand All @@ -340,8 +323,6 @@ function dotVersion($softVersion) {

}

//FIM HISTORY DOOM

//MYSQL_DUMP
// Generate the output file name with the current date and time
$dateTime = date('Y-m-d_H-i-s');
Expand Down Expand Up @@ -385,7 +366,7 @@ function dotVersion($softVersion) {
}


//DELETE's
//STARTS REMOVING TABLES.

$pdo->query('DELETE FROM bankAccounts');
$pdo->query('DELETE FROM bankaccounts_expire');
Expand Down Expand Up @@ -490,4 +471,4 @@ function dotVersion($softVersion) {

echo round(microtime(true)-$start,3)*1000 .' ms';

?>
?>
8 changes: 8 additions & 0 deletions fame/rank_soft_preview.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<tr>
<td><center>1</center></td>
<td>Basic Cracker.crc</td>
<td><center>1.1.1</center></td>
<td>Unknown</td>
<td><a href="?show=software&orderby=.crc">Cracker</a></td>
</tr>

28 changes: 22 additions & 6 deletions fame/rank_user_preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@

<tr>
<td><center>2</center></td>
<td><a href="profile?id=750749">testing200</a></td>
<td><a href="profile?id=750745">testing321</a></td>
<td><center>1</center></td>
<td><center>0</center></td>
<td></td>
</tr>

<tr>
<td><center>3</center></td>
<td><a href="profile?id=750745">testing321</a></td>
<td><a href="profile?id=750754">data</a></td>
<td><center>1</center></td>
<td><center>0</center></td>
<td></td>
</tr>

<tr>
<td><center>4</center></td>
<td><a href="profile?id=750747">testing99</a></td>
<td><center>0</center></td>
<td><a href="profile?id=750749">testing200</a></td>
<td><center>1</center></td>
<td><center>0</center></td>
<td></td>
</tr>

<tr>
<td><center>5</center></td>
<td><a href="profile?id=750744">hshshshshsh</a></td>
<td><a href="profile?id=750753">bobokev</a></td>
<td><center>0</center></td>
<td><center>0</center></td>
<td></td>
Expand All @@ -56,7 +56,23 @@

<tr>
<td><center>8</center></td>
<td><a href="profile?id=750750">test9999</a></td>
<td><a href="profile?id=750752">bobo</a></td>
<td><center>0</center></td>
<td><center>0</center></td>
<td></td>
</tr>

<tr>
<td><center>9</center></td>
<td><a href="profile?id=750744">hshshshshsh</a></td>
<td><center>0</center></td>
<td><center>0</center></td>
<td></td>
</tr>

<tr>
<td><center>10</center></td>
<td><a href="profile?id=750747">testing99</a></td>
<td><center>0</center></td>
<td><center>0</center></td>
<td></td>
Expand Down
Loading

0 comments on commit c9d8c8b

Please sign in to comment.