Jump to content

Display not right


cry of war

Recommended Posts

ok this should provide a link after you add this text to the php file below:

recon Mission Report
Under the cover of night, your 297,190 Undercover Agents sneak into the realm of ~Mixer~ . 
Your Undercover Agents move stealthily through the lands of ~Mixer~ undetected. They are able to gather many documents recording the status of weapons, army size and preparedness, and fortifications. Unfortunately, in order to avoid detection, they are not able to provide complete information. Your Chief of Intelligence provides you with the information gathered:


Army Size: 
Unit Type 
Attackers Defenders Untrained 

bot 20040 90186  0  
Units 0  0  16010  
Human Form Units 38352  81995  225166  


Military Stats 
Strike Action: 92,160  
Defensive Action 8,320,705,536  
Covert Action: 748,802,354  
AntiCovert Action 0  
Covert Skill: 20  
Covert Operatives: 16407  

Anti-Covert Skill: 19  
Anti-Covert Operatives: 0  
Attack Turns: 3630  
Unit Production: 10815  

 

This is the link it gives me: (plus or minus all the extra stuff that isnt needed and this way just looks better)

<a href=http://www.stargatewars.com/stats.php?id=INPUT ID HERE target=_blank> ACTIVE ~Mixer~     0</a><br />
ACTIVE ~Mixer~ 0
Piece 0 = recon 
Piece 1 = Mission 
Piece 2 = Report Under 
Piece 3 = the 
Piece 4 = cover 
Piece 5 = of 
Piece 6 = night 
Piece 7 = your 
Piece 8 = 297190 
Piece 9 = Undercover 
Piece 10 = Agents 
Piece 11 = sneak 
Piece 12 = into 
Piece 13 = the 
Piece 14 = realm 
Piece 15 = of 
Piece 16 = ~Mixer~ 
Piece 17 = . 
Piece 18 = Your 
Piece 19 = Undercover 
Piece 20 = Agents 
Piece 21 = move 
Piece 22 = stealthily 
Piece 23 = through 
Piece 24 = the 
Piece 25 = lands 
Piece 26 = of 
Piece 27 = ~Mixer~ 
Piece 28 = undetected. 
Piece 29 = They 
Piece 30 = are 
Piece 31 = able 
Piece 32 = to 
Piece 33 = gather 
Piece 34 = many 
Piece 35 = documents 
Piece 36 = recording 
Piece 37 = the 
Piece 38 = status 
Piece 39 = of 
Piece 40 = weapons 
Piece 41 = army 
Piece 42 = size 
Piece 43 = and 
Piece 44 = preparedness 
Piece 45 = and 
Piece 46 = fortifications. 
Piece 47 = Unfortunately 
Piece 48 = in 
Piece 49 = order 
Piece 50 = to 
Piece 51 = avoid 
Piece 52 = detection 
Piece 53 = they 
Piece 54 = are 
Piece 55 = not 
Piece 56 = able 
Piece 57 = to 
Piece 58 = provide 
Piece 59 = complete 
Piece 60 = information. 
Piece 61 = Your 
Piece 62 = Chief 
Piece 63 = of 
Piece 64 = Intelligence 
Piece 65 = provides 
Piece 66 = you 
Piece 67 = with 
Piece 68 = the 
Piece 69 = information 
Piece 70 = gathered: troop11 
Piece 71 = Size: 
Piece 72 = Unit 
Piece 73 = Type 
Piece 74 = 
Piece 75 = Attackers 
Piece 76 = Defenders 
Piece 77 = Untrained 
Piece 78 = troop6 
Piece 79 = 20040 
Piece 80 = 90186 
Piece 81 = 0 
Piece 82 = troop7 
Piece 83 = 0 
Piece 84 = 0 
Piece 85 = 16010 
Piece 86 = troop8 
Piece 87 = 38352 
Piece 88 = 81995 
Piece 89 = 225166 
Piece 90 = Military 
Piece 91 = Stats 
Piece 92 = Strike 
Piece 93 = Action: 
Piece 94 = 92160 
Piece 95 = Defensive 
Piece 96 = Action 
Piece 97 = 8320705536 
Piece 98 = Covert 
Piece 99 = Action: 
Piece 100 = 748802354 
Piece 101 = AntiCovert 
Piece 102 = Action 
Piece 103 = 0 
Piece 104 = Covert 
Piece 105 = Skill: 
Piece 106 = 20 
Piece 107 = Covert 
Piece 108 = Operatives: 
Piece 109 = 16407 
Piece 110 = Anti-Covert 
Piece 111 = Skill: 
Piece 112 = 19 
Piece 113 = Anti-Covert 
Piece 114 = Operatives: 
Piece 115 = 0 
Piece 116 = Attack 
Piece 117 = Turns: 
Piece 118 = 3630 
Piece 119 = Unit 
Piece 120 = Production: 
Piece 121 = 10815 
Piece 122 = 
Piece 123 = 
Piece 124 = 
Piece 125 = 

And this is what the link should look like after the above information is set in:

<a href=http://www.stargatewars.com/stats.php?id=INPUT ID HERE target=_blank>~Mixer~(~)(</a><br /> ***plus all the array code from above***

 

 

And this is the php code I am working with:

<?php
// if page is not submitted to itself echo the form
if (!isset($_POST['submit']))
{
?>
<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
PLEASE CLICK INSIDE OF THE SGW SPY LOG AREA AND PRESS CTRL+A THEN CTRL+C THEN CLICK IN THE
TEXT AREA BELOW WHERE IT SAYS "INSERT HERE".
<textarea rows="20" cols="20" name="info" wrap="physical">INSERT HERE</textarea><br />
ENTER ID: <INPUT TYPE="TEXT" name="id" value="INPUT ID HERE" /><br />
<input type="submit" value="submit" name="submit" /><input type="submit" value="add" name="add"/>
</form>
<?php
}
else
{
    $info = $_POST['info'];
    $id   = $_POST['id'];
$find = array('Mercenaries', 'Jaffa Army', 'Super Soldiers', 'Drones', 'Clones', 'bot', 'Units', 'Human Form troop7', 'Soldier', 'NID Agent', 'Army', '  ', ',');
$replace = array('troop1','troop2','troop3','troop4','troop5','troop6','troop7','troop8','troop9','troop10','troop11', ' ', ''); 
$info = str_replace($find, $replace, $info);
    $info2 = explode(" ", $info);
$armynouu = array(is_int('$info[79]'), is_int('$info[80]'), is_int('$info[81]'), is_int('$info[83]'), is_int('$info[84]'), is_int('$info[87]'), is_int('$info[88]'), is_int('$info[89]'), is_int('$info[109]'), is_int('$info[115]'));
$armynouu2 = array_sum($armynouu);
if ($info[118] < 2500) {
$active = 'ACTIVE';
} else {
$active = '';
}
if ($active = 'ACTIVE') {
echo "<a href=http://www.stargatewars.com/stats.php?id=$id target=_blank>$race $active $info2[16] $race    $armynouu2</a><br />";
    for($i = 0; $i <= 125; $i++)
    {
    echo "Piece $i = $info2[$i] <br />";
    }
} else {
echo "<a href=http://www.stargatewars.com/stats.php?id=$id target=_blank>$race $info2[16] $race ($armynouu2 ~ $info2[121])</a><br />";
    for($i = 0; $i <= 125; $i++)
    {
    echo "Piece $i = $info2[$i] <br />";
    }
}
}
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.