ArcEmu: Migrate Arcemu Accounts To Phpbb3 - ArcEmu

Jump to content

Toggle shoutbox Lastest Announcements

dfighter  : (07 December 2014 - 12:06 PM) Arcemu is in hibernation mode, please read http://arcemu.org/fo...showtopic=26903
dfighter  : (01 January 2013 - 05:56 PM) Arcemu wishes you all a happy new year!
Hasbro  : (12 September 2012 - 10:01 AM) Please excuse our outage from the web! Our web host had a major malfunction!
dfighter  : (01 September 2012 - 04:05 PM) Since the spam bots just don't want to stop, I've enabled admin verification when registering.
dfighter  : (23 January 2012 - 09:56 PM) Please note that from now on you will need to confirm your email on the wiki in order to edit it!
Hasbro  : (31 December 2011 - 12:50 PM) Happy New Years all!
Navid  : (26 December 2011 - 04:09 AM) Merry Christmas !!!!!! Happy holidays all :)
WAmadeus  : (24 December 2011 - 03:54 PM) Merry Christmas to all!
dfighter  : (24 December 2011 - 11:05 AM) The Arcemu team wishes y'all a Merry Christmukkah!
Hasbro  : (05 October 2011 - 12:53 PM) Looking for web designers for upcoming web related project. If you're interested in designing user interfaces contact me
dfighter  : (02 September 2011 - 03:47 PM) So who here wants vehicles in Arcemu? :P http://arcemu.org/fo...showtopic=25440
Hasbro  : (14 August 2011 - 03:25 PM) Join us on irc, grab an irc client and connect to irc.freenode.net join channel #arcemu /server irc.freenode.net:6667 /join #arcemu
jackpoz  : (03 August 2011 - 05:33 AM) to all Lua Engine (old one) users: please check http://arcemu.org/fo...showtopic=25274
Hasbro  : (20 May 2011 - 05:27 PM) Looking for people experienced with CMake configuration and setup! Contact me asap
Hasbro  : (15 May 2011 - 05:03 PM) ArcEmu is recruiting C++ programmers, contact Hasbro if interested.
paroxysm  : (03 May 2011 - 06:26 PM) Updated luabridge gossip example to describe the whole gossip creation process rather than just how to create menu. Gossip tutorial
paroxysm  : (23 April 2011 - 11:35 AM) Lua writers can refer to the Luabridge Tutorials section in the Wiki to learn how to write gossip code correctly.
Hasbro  : (20 April 2011 - 05:22 PM) Thank you for your continuous contribution of bug reports, we are working on them.
Hasbro  : (17 April 2011 - 03:20 AM) Please consider donating to support our bills. Donations can be sent using PayPal to donations@arcemu.org - Thank you for your support.
paroxysm  : (10 April 2011 - 12:43 AM) Refer to the Luabridge Tutorials section in the Wiki to learn the new syntax of luabridge.
Resize Shouts Area

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Migrate Arcemu Accounts To Phpbb3 how to migrate accounts to phpbb3

#1 User is offline   Lestat 

  • Member
  • Pip
  • Group: Members
  • Posts: 49
  • Joined: 09-June 08

Posted 29 November 2010 - 09:30 AM

Hello:

This is a php code to migrate the account of Arcemu to Phpbb3, but don't work correctly.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t�tulo</title>
</head>

<body>
<?php
 // Iniciamos la constante IN_PHPBB
define('IN_PHPBB', true);
// Indicamos la carpeta donde se encuentra nuestro phpBB3
$phpbb_root_path = './';
// Extension de los ficheros a cargar
$phpEx = substr(strrchr(__FILE__, '.'), 1);
// Cargamos fichero common.php
require_once($phpbb_root_path . 'common.' . $phpEx);
// Cargamos fichero functions_user.php (�ste es el que contiene
// las funciones para a�adir usuarios)
require_once($phpbb_root_path . 'includes/functions_user.' . $phpEx);
// Definimos la diferencia horaria con el servidor (explicado m�s adelante)
define ("UTC",1);


// Conectar con el servidor de base de datos
      $conexion = mysql_connect ("localhost", "root", "password")
         or die ("No se puede conectar con el servidor");

   // Seleccionar base de datos
      mysql_select_db ("characterdb")
         or die ("No se puede seleccionar la base de datos");

   // Enviar consulta
      $instruccion = "select * from accounts order by acct  asc";
      $consulta = mysql_query ($instruccion, $conexion)
         or die ("Fallo en la consulta");


$nfilas = mysql_num_rows ($consulta);
 for ($i=0; $i<$nfilas; $i++)
         {
			 $resultado = mysql_fetch_array ($consulta);


// Generamos un c�digo de activaci�n para la cuenta
$actkey = substr(md5(time()), 0, 13);
// A�adimos los datos de usuario en una tabla

$user_row = array(
    'username'              => $resultado['login'],
    'user_password'         => phpbb_hash($resultado['password']),
    'user_email'            => $resultado['email'],
    'group_id'              => 2, // by default, the REGISTERED user group is id 2
    'user_timezone'         => 1,
    'user_lang'             => "es",
    'user_type'             => USER_NORMAL,
    'user_ip'               => $resultado['lastip'],
    'user_regdate'          => time(),
);

if (!$user_id = user_add($user_row))
  die("Error inesperado al registrarte");
echo "Usuario registrado correctamente! Tu ID de usuario es " . $resultado['login'] . " y tu clave de activaci�n " . $actkey;
		 }
 ?>
</body>
</html>


I try this metode and don't work for a error in user_add function.

Can anyone help me in this project?

Thank

sorry for my english.
0

#2 User is offline   Bob Herman 

  • Interested
  • PipPipPipPip
  • Group: Members
  • Posts: 452
  • Joined: 11-October 08
  • Gender:Male

Posted 29 November 2010 - 11:26 PM

Well, what's the error? And also, the user_add function isn't on the in the code you've posted above...
0

#3 User is offline   iEzri 

  • < Ace of spades >
  • Group: Contributor
  • Posts: 1,692
  • Joined: 22-December 08
  • Gender:Female
  • Interests:I'm likely to cause mischief
  • Server OS:Linux

Posted 30 November 2010 - 04:40 AM

http://www.phpbb.com...stall&version=3

If you are unable to get phpBB3 installed even after reading this guide, please look at the support section to find out where you can ask for further assistance.

is it our job to aid people with phpbb3? Does wayne brady have to choke a bitch?
Posted Image I do not join. I lead.
0

#4 User is offline   Lestat 

  • Member
  • Pip
  • Group: Members
  • Posts: 49
  • Joined: 09-June 08

Posted 30 November 2010 - 05:39 AM

View PostiEzri, on 30 November 2010 - 04:40 AM, said:

http://www.phpbb.com...stall&version=3

If you are unable to get phpBB3 installed even after reading this guide, please look at the support section to find out where you can ask for further assistance.

is it our job to aid people with phpbb3? Does wayne brady have to choke a *****?


Ok you dont understand me. And moderate your language, close the post if you want
0

#5 User is offline   iEzri 

  • < Ace of spades >
  • Group: Contributor
  • Posts: 1,692
  • Joined: 22-December 08
  • Gender:Female
  • Interests:I'm likely to cause mischief
  • Server OS:Linux

Posted 30 November 2010 - 06:43 AM

View PostLestat, on 30 November 2010 - 05:39 AM, said:

Ok you dont understand me. And moderate your language, close the post if you want


No i really don't understand you. Asking for help about phpbb in arcemu forums :D .

"xp was bugged lately. maybe i should sue apple"
Posted Image I do not join. I lead.
0

#6 User is offline   dfighter 

  • Titles are overrated
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Administrator
  • Posts: 5,189
  • Joined: 14-June 08
  • IRC:dfighter
  • Gender:Male
  • Server OS:Linux

Posted 30 November 2010 - 07:59 AM

View PostiEzri, on 30 November 2010 - 06:43 AM, said:

"xp was bugged lately. maybe i should sue apple"

You really should, and settle for being the mascot of their company :D
"The demand for free goods is infinite."
1

#7 User is offline   Lestat 

  • Member
  • Pip
  • Group: Members
  • Posts: 49
  • Joined: 09-June 08

Posted 30 November 2010 - 08:22 AM

View PostiEzri, on 30 November 2010 - 06:43 AM, said:

No i really don't understand you. Asking for help about phpbb in arcemu forums :D .

"xp was bugged lately. maybe i should sue apple"


I wonder about phpbb, I want to do is a script or something to pass the accounts of phpbb and so arcemu to integrate phpbb with arcemu, for those servers that already have user accounts and want to use phpbb as a forum. So I'm working on this code. but it gives an error and I think that's the type of data.

This is the web section on here so I put this work to see if we can all do this, just as I have a mod for phpbb that when you register at the forum will automatically create the account arcemu all part of a phpbb integration and arcemu website.

No wonder about but on how to integrate phpBB phpbb and arcemu

this tradduccion is taken from google translator to see if so we better understand

thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users