Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Need Help

  1. #1
    due
    due is offline
    New Coder
    Join Date
    May 2006
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need Help

    PHP Code:
    <?
    include "vsys.php";
    ?>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!-- saved from url=(0036)http://www.kingsofchaos.com/base.php -->
    <HTML><HEAD><TITLE>Kings of Chaos :: 
    <?     $user=getUserDetails($_SESSION['isLogined'],'userName');echo $user->userName?>
    's Camp</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><!-- ZoneLabs Privacy Insertion -->
    <SCRIPT language=javascript src="js/js"></SCRIPT>
    <LINK href="css/common.css" type=text/css rel=stylesheet><LINK 
    href="css/Elves.css" type=text/css rel=stylesheet>
    <META 
    content="kingsofchaos, chaos, elves, humans, dwarves, orcs, rpg, mmorpg, role playing, game, online game, text based game, armory, mercenaries, spy, attack, army, battle, recruit, spies, spy skill, weapons, messaging, sabotage, recon, intelligence, pnp, mud, games, stockade, free, browser game" 
    name=keywords>
    <META 
    content="Kings of Chaos is a Massively Multiplayer Online Role Playing Game with over 500,000 players. Players can choose one of four races: Orcs, Humans,  Elves and Dwarves and build armies, recruit friends as officers, buy weapons, and spy and attack on each other." 
    name=description>
    <META content="Kings of Chaos" name=author>
    <SCRIPT language=javascript type=text/javascript>
            <!--
            function checkCR(evt) {
            var evt = (evt) ? evt : ((event) ? event : null);
            var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
            if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
            }
            document.onkeypress = checkCR;
            //-->
            </SCRIPT>

    <META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
    <BODY text=#ffffff bgColor=#000066 leftMargin=0 topMargin=0 marginheight="0" 
    marginwidth="0">
    <?
    include "top.php";
    ?>

    <TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
      <TBODY>
      <TR>
        <TD class=menu_cell style="PADDING-LEFT: 15px" vAlign=top width=140>
    <?
        
    include ("left.php");
    ?>
    </TD>
          <TD style="PADDING-RIGHT: 15px; PADDING-LEFT: 15px; PADDING-TOP: 12px" 
        vAlign=top align=left> <BR>
            <?
        
    //include "islogined.php";
        
    $user=getUserDetails($cgi['id']);
        
    $userR=getUserRanks($cgi['id']);
        
    ?>
            <TABLE cellSpacing=15 cellPadding=0 width="100%" border=0>
              <TBODY>
                <TR> 
                  <TD vAlign=top width="50%"> <TABLE class=table_lines cellSpacing=0 cellPadding=6 width="100%" 
                border=0>
                      <TBODY>
                        <TR> 
                          <TH colSpan=2>User Stats</TH>
                        </TR>
                        <TR> 
                          <TD><B>Name:</B></TD>
                          <TD>
                            <?=$user->userName?>
                          </TD>
                        </TR>
                        <TR> 
                          <TD><B>Commander:</B></TD>
                          <TD>
                            <?
                            
    if ($user->commander){
                                
    $userC=getUserDetails($user->commander,'userName');
                                echo 
    $userC->userName;
                            }else{
                                echo 
    "None";
                            }
                        
    ?>
                          </TD>
                        </TR>
                        <TR> 
                          <TD><B>Race:</B></TD>
                          <TD>
                            <?=$conf["race"][$user->race]["name"]?>
                          </TD>
                        </TR>
                        <TR> 
                          <TD><B>Rank:</B></TD>
                          <TD>
                            <? numecho ($userR->rank?>
                          </TD>
                        </TR>
                        <TR> 
                          <TD><B>Army Size:</B></TD>
                          <TD>
                            <? numecho (getTotalFightingForce($user))?>
                          </TD>
                        </TR>
                        <TR> 
                          <TD><B>Treasury:</B></TD>
                          <TD>
                            <? numecho($user->gold); ?>
                          </TD>
                        </TR>
                        <TR> 
                          <TD><B>Fortifications:</B></TD>
                          <TD>
                            <?=$conf["race"][$user->race]["fortification"][$user->fortificationLevel]["name"]?>
                          </TD>
                        </TR>
                      </TBODY>
                    </TABLE>
                    <BR> <TABLE cellSpacing=10 width="100%">
                      <TBODY>
                        <TR> 
                          <TD align=right width="33%"> <FORM action=writemail.php method=get>
                              <INPUT type=hidden value=<?=$cgi['id']?> name=to>
                              <INPUT name="submit" type=submit value="Send Message">
                            </FORM></TD>
                          <TD align=middle width="33%"> <FORM action=attack.php#spy method=get>
                              <INPUT type=hidden 
                      value=<?=$cgi['id']?> name=id>
                              <INPUT name="submit" type=submit value=Spy>
                            </FORM></TD>
                          <TD align=left width="33%"> <FORM action=attack.php method=get>
                              <INPUT type=hidden 
                      value=<?=$cgi['id']?> name=id>
                              <INPUT name="submit" type=submit value=Attack>
    </form>                        
    </TD></TR>
        
                        </TBODY>
                    </TABLE></TD>
                  <TD vAlign=top width="50%"> <TABLE class=table_lines cellSpacing=0 cellPadding=6 width="100%" 
                border=0>
                      <TBODY>
                        <TR> 
                          <TH align=middle colSpan=4>Officers</TH>
                        </TR>
                        <TR> 
                          <TH class=subh align=left>Name</TH>
                          <TH class=subh>&nbsp;</TH>
                          <TH class=subh align=left>Army</TH>
                          <TH class=subh align=right>Rank</TH>
                        </TR>
    <?
        $officersC
    =getOfficersCount($cgi['id']);
        if (
    $officersC){
            
    $pCount=$officersC/$conf["users_per_page"];
            
            
    $pCountF=floor($pCount);
            
    $pCountF+=(($pCount>$pCountF)?1:0);
            
            if (!
    $cgi['page']){
                        
    $cgi['page']=1;
            }
            
            
    $officers=getOfficers($cgi['id'],$cgi['page']);
            for (
    $i=0$i<count ($officers); $i++){    
        
    ?>                    
                        <tr>
            <td><a href="stats.php?id=<?=$officers[$i]->userID?>"><?=$officers[$i]->userName?></a></td>
            <td align="right"><? numecho($officers[$i]->trainedAttackSold +$officers[$i]->trainedAttackMerc +$officers[$i]->trainedDefSold +$officers[$i]->trainedDefMerc +$officers[$i]->untrainedSold+$officers[$i]->untrainedMerc+$officers[$i]->spies);?></td>
                          <td align="left"> 
                            <?=$conf["race"][$officers[$i]->race]["name"]?>
                          </td>
            <td align="right"><? numecho($officers[$i]->rank); ?></td>
        </tr>
    <?    
          
    }
      }
      else{
     
    ?>
                        <TR> 
                          <TD align=middle colSpan=4>No Officers</TD>
                        </TR>
    <? ?>
                        <TR> 
                          <TD>
                            <?
                    
                    
                    
    if ($cgi['page']>1){
                        echo 
    "<A href='stats.php?page=".($cgi['page']-1)."&id=".$cgi['id']."'>&lt;&lt; Prev</A>";
                    }else {echo 
    "&nbsp;";}    
                  
    ?>
                          </TD>
                          <TD align=middle colSpan=2> 
                            <?  numecho ($officersC)?>
                            officers total | page 
                            <?=$cgi['page']?>
                            of 
                            <?    numecho ($pCountF); ?>
                          </TD>
                          <TD>
                            <?
                  
    if ($cgi['page']<$pCountF){    
                    echo 
    '<A href="stats.php?page='.($cgi['page']+1).'&id='.$cgi["id"].'">Next &gt;&gt;</A>';
                    }else {echo 
    "&nbsp;";}
                
    ?>
                          </TD>
                        </TR>
                      </TBODY>
                    </TABLE></TD>
                </TR>
                <TR> 
                  <TD vAlign=top></TD>
                </TR>
              </TBODY>
            </TABLE> 
            <P>
          <?
      
    include ("bottom.php");
    ?>    
         </TD></TR></TBODY></TABLE>
    </BODY></HTML>
    How can i get a commander thing to work
    DUE

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Apparently there is a failure to communicate here. When I said you need to read our posting guidelines I meant it. It is obvious you have refused to read our rules and posting guidelines even after this being pointed out to you twice. And now you are creating multiple threads on the same topic.

    Until you PM me and acknowledge that you have read and understood our posting guidelines and rules I will close your threads.

    http://www.codingforums.com/rules.htm
    http://www.codingforums.com/postguide.htm
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •