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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
also is there a way to remove the RMR logo and replace it with corp graphics?
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>
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!
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
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
laureli, feel free to mail me your php file to mail [at] sentryraven [dot] de and I will take a look at it.
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.