Jump to content

wrong redirect joovili


mitdrissia

Recommended Posts

Hi you guys

 

i have a problem with a community script named joovili..

 

Everything went well but 2 weeks later i can't login.It redirects me to mysite/index.direct.php

 

So i changed line 42 of include/joovili.settings.php and changed index.direct.php into login.php

 

But the load bar loads slowly and even freezes up.

 

What is the problem?

Here is the php code of joovili.settings.php

 

<?php

include_once("joovili.main.php");

$joovili_settings = sql_row("SELECT * FROM joovili_settings WHERE joovili_id = '1'");

## JOOVILI LANGUAGE

if (preg_match('/'.$joovili_settings['joovili_url_admin'].'i', $_SERVER['PHP_SELF'])) { $lext = '../';

} else if (preg_match('/'.$joovili_settings['joovili_url_staff'].'i', $_SERVER['PHP_SELF'])) { $lext = '../';

} else if (preg_match('/forums/'.'i', $_SERVER['PHP_SELF'])) { $lext = '../';

} else { $lext = '';

}

## SITE VARIABLES

define('SITENAME', $joovili_settings['joovili_name'], true);
define('SITEEMAIL', $joovili_settings['joovili_email'], true);
define('SITEURL', $joovili_settings['joovili_url'], true);
define('SITETHEME', $joovili_settings['joovili_theme'], true);
define('SITELANG', $joovili_settings['joovili_language'], true);
define('BRANDING', 'Powered By Joovili ' . $joovili_settings['joovili_version'], true);

include ($lext."language/".SITELANG."/joovili_language.php");
include ("joovili.pages.php");


## SITE ACTIVE

if ($joovili_settings['joovili_status'] == '0') {

if (preg_match('/admin/i', $_SERVER['PHP_SELF'])) {

} else if (preg_match('/index.direct.php/i', $_SERVER['PHP_SELF'])) {

} else if (preg_match('/forums/i', $_SERVER['PHP_SELF'])) { header ('Location: ../index.direct.php');

} else { header ('Location: index.direct.php');

} }

?> 

 

If you also need joovili.main.php  i can send you.

 

thank you

Link to comment
https://forums.phpfreaks.com/topic/96544-wrong-redirect-joovili/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.