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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.