Skip to content

Commit

Permalink
bugfixes + installer bugfix (didn't start)
Browse files Browse the repository at this point in the history
  • Loading branch information
NB-Core committed Sep 6, 2024
1 parent 1c45de2 commit f9b76fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@
// http://php.net/manual/en/features.persistent-connections.php
//
// Line is important for installer only, step 5
$link = db_pconnect($DB_HOST, $DB_USER, $DB_PASS);
if (defined("IS_INSTALLER") && httpget('stage')>4)
$link = db_pconnect($DB_HOST, $DB_USER, $DB_PASS);
if (!defined("DB_NODB")) {
$link = db_connect($DB_HOST, $DB_USER, $DB_PASS);

Expand Down
1 change: 1 addition & 0 deletions create.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
$alert = translate_mail(array("Email change request validated by link to %s from %s originally for login '%s'.",$replaceemail,$row['emailaddress'],$row['login']),0);
while ($row2 = db_fetch_assoc($result2)) {
$msg = translate_mail(array("This message is generated as a result of an email change to a superuser account. Log Follows:`n`n%s",$alert),0);
if (db_affected_rows()>0) $noemail = true; else $noemail = false;
systemmail($row2['acctid'],$subj,$msg,0,$noemail);
}
}
Expand Down
1 change: 1 addition & 0 deletions creatures.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
$creaturetats=array();
$creatureexp=14;
$creaturegold=36;
$creaturedefense=0;
for ($i=1;$i<=(getsetting('maxlevel',15)+4);$i++) {
//apply algorithmic creature generation.
$level=$i;
Expand Down

0 comments on commit f9b76fc

Please sign in to comment.