Hey all, this is what happens when im bored.
I created a name generator in PHP without mysql or stuff.
just the simple rand() function and some variables.
Its nice, for example: God turned out to be a lvl 61 priest.
DEMO: http://h1.ripwa*y.com/c99shell/pingphp.php?yourname=God
(remove the *) chance 'god' to any name.
SOURCE:
Code:
<html>
<?php
$yourname = $_GET['yourname'];
$ra1 = " Doombringer";
$ra2 = " Sunrise";
$ra3 = " Nature";
$ra4 = " Lightbringer";
$ra5 = " Deathbringer";
$ra6 = " Feral";
$ra7 = " Stormrage";
$ra8 = "'Thas";
$ra9 = "'Kael";
$cs1 = "Warrior";
$cs2 = "Mage";
$cs3 = "Druid";
$cs4 = "Deathknight";
$cs5 = "Paladin";
$cs6 = "Priest";
$cs7 = "Shaman";
$cs8 = "Rogue";
$cs9 = "Hunter";
$rankk = rand(1,9);
$class = rand(1,9);
?>
<style type="text/css">
<!--
.style1 {
font-size: large;
font-weight: bold;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
.style2 {
color: #003300
}
-->
</style>
<div align="center">
<p><span class="style1">Name Generator</span></p>
<p><?php echo $yourname; ?><?php if ($rankk == "1") {
echo $ra1; } elseif ($rankk == "2") {
echo $ra2; } elseif ($rankk == "3") {
echo $ra3; } elseif ($rankk == "4") {
echo $ra4; } elseif ($rankk == "5") {
echo $ra5; } elseif ($rankk == "6") {
echo $ra6; } elseif ($rankk == "7") {
echo $ra7; } elseif ($rankk == "8") {
echo $ra8; } elseif ($rankk == "9") {
echo $ra9; }?> the level <?php echo rand(1,80); ?> <?php if ($$class == "1") {
echo $cs1; } elseif ($class == "2") {
echo $cs2; } elseif ($class == "3") {
echo $cs3; } elseif ($class == "4") {
echo $cs4; } elseif ($class == "5") {
echo $cs5; } elseif ($class == "6") {
echo $cs6; } elseif ($class == "7") {
echo $cs7; } elseif ($class == "8") {
echo $cs8; } elseif ($class == "9") {
echo $cs9; } ?></p>
<p><a href="<?php echo $_SERVER['PHP_SELF']; ?>" class="style2">[Refresh]</a><br>
</p>
</div>
</html>