Перейти к контенту
  • 0

Новый ib > phpnuke хак (помощь)


Maddogmc

Вопрос

Нашел новый модя для интегрирования IB в PHPnuke.

Но совершенно незнаю английский язык =( помогите пожалуйста перевести такие фразы как And below it insert а то непонятно что это.

 

For best viewing, I suggest that you copy and past all of the text below this line into a post on your invision board forum (makes for easier reading).

 

Install Instructions:

1. Follow hack instructions (below).

2. Edit NUKE_IBF_HACK.php's database and forum variables.

 

Modified Files:

modules/Your_Account/index.php (included with zip)

forums/sources/Register.php

 

Software Versions (at time of hack, but hack will probably work with later versions):

PHP-Nuke v6.7

IBF v1.2

 

Onto the hack :D ...

================================================

================================================

 

Find in modules/Your_Account/index.php :

<?php

And below it insert:

require_once("NUKE_IBF_HACK.php");

 

 

Find:

userinfo($username, $bypass, $hid, $url);

And replace it with:

	$userid = Get_IBF_Userid($username);
if ($userid & !$bypass)
{
 header("Location: ".$NUKE_IBF['forums_url']."index.php?act=Profile&CODE=03&MID=".$userid);
}
else
{
 userinfo($username, $bypass, $hid, $url);
}

 

 

Find:

edituser();

And replace it with:

header("Location: ".$NUKE_IBF['forums_url']."index.php?act=UserCP&CODE=01");

 

 

Find:

	mail_password($username, $code);

And replace it with:

	if (Get_IBF_Userid($username))
{
 header("Location: ".$NUKE_IBF['forums_url']."index.php?act=Reg&CODE=10");
}
else
{
 mail_password($username, $code);
}

 

 

Find:

new_user();

And replace it with:

header("Location: ".$NUKE_IBF['forums_url']."index.php?act=Reg&CODE=00");

 

=====================================================

=====================================================

 

Find in /forums/sources/Register.php :

<?php

And on the line below it add:

/* PHP-IBF Hack */
require_once("../NUKE_IBF_HACK.php");

PLEASE NOTE: the above code assumes your website is setup where your nuke data is one folder before your forums folder (ex: mysite.com/ contains nuke data and mysite.com/forums/ contains forums). If this is not the case, please adjust accordingly. If you have your forums on a seperate subdomain, you may have to upload NUKE_IBF_HACK.php to that subdomain, edit both files (the file installed on the main account and the file installed on the subdomain), and then have the subdomain access the file that is on its own account.

 

 

Find:

$DB->query("INSERT INTO ibf_member_extra (id) VALUES ($member_id)");

and insert below it:

Create_Nuke_User($member['name'], $member['password'], $member['email'], time());

 

 

Find:

$DB->query("UPDATE ibf_members SET password='$new_pass' WHERE id=".intval($member['id']));

and insert below it:

    $nuke_user = Get_IBF_User($member['id']);
   if ($nuke_user)
   {
  	 NUKE_IBF_Lost_Pass($nuke_user, $member['email'], $member['new_pass']);
   }

Ссылка на комментарий
Поделиться на других сайтах

Рекомендуемые сообщения

Пока что нет ответов на этот вопрос

Присоединиться к обсуждению

Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.

Гость
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Ответить на вопрос...

×   Вы вставили отформатированный текст.   Удалить форматирование

  Допустимо не более 75 смайлов.

×   Ваша ссылка была автоматически заменена на медиа-контент.   Отображать как ссылку

×   Ваши публикации восстановлены.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

Зарузка...
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.