Skip to content

Commit

Permalink
config and sendmail changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NB-Core committed Dec 24, 2015
1 parent 3261899 commit ebd9e48
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Expand Up @@ -5,6 +5,7 @@ Changes to 1.2.5 +nb
*lib/commentary.php --> added a new hook "gmcommentarea" with section and "allow_gm"=>false to handle module requests to allow /game comments
added a fix (GM titles didn't work due to wrong variable used)
*lib/forest.php --> new hook "forest" to add stuff before the description (i.e. for mobile buttons that need to be top)
*list.php --> new setting (in lib/data/configuration.php) added to show only online folks in list.php on the frontpage (default true). reason: online spiders grabbing playerlists in total makes no sense
*superuser.php --> new hook to make the section "switchable"
[FIXES]
*lib/commentary.php --> forgot a closing > at a </div> - section close
Expand Down
3 changes: 2 additions & 1 deletion lib/data/configuration.php
Expand Up @@ -34,6 +34,7 @@
"homenewdaytime"=>"Should the time till newday be shown?,bool",
"homenewestplayer"=>"Should the newest player be shown?,bool",
"defaultskin"=>"What skin should be the default?,theme",
"listonlyonline"=>"Show Warriors List with only online folks (prevent paging)?,bool",
"impressum"=>"Tell the world something about the person running this server. (e.g. name and address),textarea",

"Beta Setup,title",
Expand Down Expand Up @@ -219,7 +220,7 @@
"PvP,title",
"pvp"=>"Enable Slay Other Players,bool",
"pvptimeout"=>"Timeout in seconds to wait after a player was PvP'd,int",
"pvpday"=>"Player Fights per day,range,1,10,1",
"pvpday"=>"Player Fights per day,range,1,30,1",
"pvpdragonoptout"=>"Can players be engaged in pvp after a DK until they visit the village again?,bool",
"pvprange"=>"How many levels can attacker & defender be different? (-1=any - lower limit is always +1),range,-1,15,1",
"Example: A setting of 1 means a level 12 player can attack level 12-13.. with setting 2 he can do level 11-14.. with setting 0 only his own level,note",
Expand Down
2 changes: 1 addition & 1 deletion lib/sendmail.php
@@ -1,4 +1,4 @@
<?
<?php
/* Function send_mail
* $to is an array of type "emailaddress"=>"Name of the Emailholder"
* $from is an array of type "emailaddress"=>"Name of the Emailholder"
Expand Down
5 changes: 3 additions & 2 deletions list.php
Expand Up @@ -43,7 +43,7 @@

if ($op=="search"){
$search="%";
$n = mysql_real_escape_string(httppost('name'));
$n = mysqli_real_escape_string($mysqli_resource,httppost('name'));
for ($x=0;$x<strlen($n);$x++){
$search .= substr($n,$x,1)."%";
}
Expand All @@ -57,6 +57,7 @@

$limit=" LIMIT $pageoffset,$playersperpage ";
}
if (getsetting('listonlyonline',1)==0 || (getsetting('listonlyonline',1)==1 && $session['user']['loggedin'])) {
addnav("Pages");
for ($i=0;$i<$totalplayers;$i+=$playersperpage){
$pnum = $i/$playersperpage+1;
Expand All @@ -66,7 +67,7 @@
addnav(array(" ?Page %s (%s-%s)", $pnum, $i+1, min($i+$playersperpage,$totalplayers)), "list.php?page=$pnum");
}
}

}
// Order the list by level, dragonkills, name so that the ordering is total!
// Without this, some users would show up on multiple pages and some users
// wouldn't show up
Expand Down

0 comments on commit ebd9e48

Please sign in to comment.