Menu

Passwords and Corp Script

GWash
2006-01-01
2013-04-19
  • GWash

    GWash - 2006-01-01

    Is there a way to write-in a password option so only certain people can post . or write in a option so that only certain members of a corp can post and that certain corp has to be in the killmail for the kill to be posted?

    Aslo if you have a old kb , what is the best way to get all the kills from that kb onto this one. Are there ways to modify this more, like for the template etc? 

     
    • GWash

      GWash - 2006-01-01

      also is there a way to remove the RMR logo and replace it with corp graphics?

       
    • Geoffrey Wilson

      Geoffrey Wilson - 2006-01-01

      In game posting can be secured to corp/alliance only by adding

      if ($_SERVER['HTTP_EVE_ALLIANCENAME'] == "Alliance")
      {
          // is trusted, show login page
          ?>
          <table width="250">

          ....

          }
      }
      else
      {
          echo ("<p>Not Allowed Access</p>");
      }

      change it for HTTP_EVE_CORPNAME to restrict to a certain corp, if you dont understnad this then unfortunatly you will have to wait for the new version, which will feature security as a new feature.

      The logo is called 'background.jpg' inside the images folder.  You can modify the layout pretty much anyway you want, the kill lists are created using a function so you can move it where you want, or add your own calls to the function,

      For example if you wish to force display of a certain corp on the homepage:

      <table style="width:100%;" cellpadding="2" cellspacing="0">
                              <?php
      if (!(isset($kn))
      {
      $kn = 0;
      }
                              CreateKillTable($kn, NULL, $YouCorpID, NULL, "kill", 6);

      ?>

      </table>

       
    • Daemonikal

      Daemonikal - 2006-08-22

      Just a quick question:

      When restricting access to a certain corp, the setting i'm trying to use is:

      if ($_SERVER['HTTP_EVE_CORPNAME'] == "My Corp Name")
      {
      // is trusted, show login page
      ?>
      <table width="250">

      ....

      }
      }
      else
      {
      echo ("<p>Not Allowed Access</p>");
      }

      Now, when I try to access this from the IGB, I will always get "Not Allowed Access". Should "My Corp Name" be the corp ticker, CorpID from my sites mysql db, the corp name in the db, or the Corp ID# sent from the EVE server? I've tried with the name in the db and the ticker to no avail, but I can't get seem to get the CorpID from the server... any hel pwith this would be great :)

      ps. I love your killboard, thanks tons for all your hard work on this project!

       
    • Adam Trzcinski

      Adam Trzcinski - 2006-08-22

      Well I am using
        
      if($_SERVER["HTTP_EVE_CORPNAME"] != "CorpName"){
      AccessNotAllowed();
      } else {
      AccessAllowed();
      }

      However I am assuming that you use the right function to check for IGB and for trusted status. Otherwise the above statement is not worth a penny :P

       
    • Laurel

      Laurel - 2006-09-09

      Hi,

      Has anyone got this to work?

      I have a corp name with an apostrophie, and im not sure if thats stopping it working.

      Does it matter where the code gets pasted?

      I assumed it would be underneath the is this page trusted code.

      and does it matter if it has the <?php at the start and ?> at the end - ive tried both ways but all i can get it to do is say "not authorised" at the start of the page, and it still displays the login page.

      Im a little bit green at this, so just need a push in the right direction.

      thanks

       
    • Adam Trzcinski

      Adam Trzcinski - 2006-09-11

      laureli, feel free to mail me your php file to mail [at] sentryraven [dot] de and I will take a look at it.

       
    • WILD9

      WILD9 - 2006-10-18

      if ($_SERVER['HTTP_EVE_CORPNAME'] == "My Corp Name") 

      // is trusted, show login page 
      ?> 
      <table width="250"> 

      .... 



      else 

      echo ("<p>Not Allowed Access</p>"); 
      }

      i can see where the start of this code goes in the igb.php but where does the bit after

      ......

      get inserted? ive tried following the nested if statements but i keep getting lost.

       

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.