Re: new registration disabled unsuccessfully
Logs are the easiest and most useful starting point every time. We've all had one, (or more), of those moments in the past of overlooking what seems obvious afterwards.
well i'm feeling better now that i've done some penance
With regards to the exit, it's more a bypass. If you look at that function, you'll notice that once the message function is called, it terminates itself directly. The calling script can't continue on.
Edit: Think of it as the page that calls the message function is actually calling a separate page, so therefore it no longer has anything to process itself.
ok but i thought after calling the function from the register.php:
if ($pun_config['o_regs_allow'] == '0')
message($lang_register['No new regs']);
the program should continue from where it left off, shouldn't it unless it encounters an exit at the end of the function which it doesn't:
function message($message, $no_back_link = false)
{
global $db, $lang_common, $pun_config, $pun_start, $tpl_main;
if (!defined('PUN_HEADER'))
{
global $pun_user;
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_common['Info'];
require PUN_ROOT.'header.php';
}
?>
<div id="msg" class="block">
<h2><span><?php echo $lang_common['Info'] ?></span></h2>
<div class="box">
<div class="inbox">
<p><?php echo $message ?></p>
<?php if (!$no_back_link): ?> <p><a href="javascript: history.go(-1)"><?php echo $lang_common['Go back'] ?></a></p>
<?php endif; ?> </div>
</div>
</div>
<?php
require PUN_ROOT.'footer.php';
}
unless it's one of the exits that exist in the footer.php?
i can see that the exit would work going through the form regularly (as i wrote above), but is it possible to send the info through the uri directly and thereby bypass the message function?
prad