1
PnViking
Re: sitename variable change
  • 2006/11/5 20:31

  • PnViking

  • Just popping in

  • Posts: 9

  • Since: 2004/1/31


In mainfile.php:

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'https://xoops.org');
define('XOOPS_URL', 'http://' . $_SERVER["SERVER_NAME"]);

This will make any hostname the hostname...

/Niklas



2
PnViking
Re: Registration Keys 2!!
  • 2005/2/20 17:44

  • PnViking

  • Just popping in

  • Posts: 9

  • Since: 2004/1/31


Hi,

I can't get it to work. If i go to the admin - Registration Keys and click on [edit] (any of the two) - all i get is database updated...

But if i add this to the main.php it's working.

if (isset($HTTP_GET_VARS['type'])) {
        
$type trim($HTTP_GET_VARS['type']);
    }  

    if (isset(
$HTTP_GET_VARS['key_id'])) {
        
$key_id trim($HTTP_GET_VARS['key_id']);
    }  

    if (isset(
$HTTP_GET_VARS['grpid'])) {
        
$grpid trim($HTTP_GET_VARS['grpid']);
    }


I don't like the foreach ( $HTTP_POST_VARS as $k => $v ) {${$k} = $v; Please don't use for sequrity reasons.

Nick



3
PnViking
Re: Where is "Registration Keys" module
  • 2005/2/19 18:01

  • PnViking

  • Just popping in

  • Posts: 9

  • Since: 2004/1/31


Hi,

try the 2.0 release candiate at:

http://dev.juex.net/regkeys-2.0RC1.zip

regards,

Nick



4
PnViking
Re: How To: Page generated in 0.4534 seconds?
  • 2004/3/21 18:48

  • PnViking

  • Just popping in

  • Posts: 9

  • Since: 2004/1/31


Sorry about that...

I added it before line 61 in footer.php:
if (!headers_sent()) {

And as they said in an eirlier thread, the caching has to be turned off in general settings, for it to work.

Nick



5
PnViking
Re: How To: Page generated in 0.4534 seconds?
  • 2004/3/21 17:44

  • PnViking

  • Just popping in

  • Posts: 9

  • Since: 2004/1/31


Hi,

thanks for the code, i ended up adding this line to footer.php:

$xoopsTpl->assign("show_total_time"substr($xoopsLogger->dumpTime(), 06));

and this to theme.html:

Done in <{$show_total_time}> seconds

Thanks,

Nick



6
PnViking
How To: Page generated in 0.4534 seconds?
  • 2004/3/21 9:49

  • PnViking

  • Just popping in

  • Posts: 9

  • Since: 2004/1/31


Hi,

I like this cool function that displays the time it takes to generate the page. But how do i do that?

Regards,

Nick



7
PnViking
Re: HELP HELP~FATAL error
  • 2004/2/17 6:31

  • PnViking

  • Just popping in

  • Posts: 9

  • Since: 2004/1/31


I had the same problem and when i tried to access MySQL with a small test script i got:

Host 'localhost' is blocked because of many connection errors. Unblock with 'mysqladmin flush-hosts'

My host then unblocked and the site has been running fine since then (about 5 days), I changed to use persistent connectors though.

my two cents,

Nick




TopTop



Login

Who's Online

190 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 190


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits