2 заявки ?

Emperator

Registered
Значи ендата заявка ми регистрира потребители в сайта
Код:
$insert = mysql_query("INSERT INTO users(username, password, user_ip, email, 

show_email) VALUES('$username', '$password', '$user_ip', '$email', '$show_email')")or 

die(mysql_error());

Обаче искам да ги регва и във форума (phpbb 2.xx) бихте ли ми казали как ще стане ????
 
http://web-tourist.net/login/login/view.php?st=1103 махни твоита логин система и използвай само тази на форума! ако имаш проблеми пиши!
 
vik96 каза:
http://web-tourist.net/login/login/view.php?st=1103 махни твоита логин система и използвай само тази на форума! ако имаш проблеми пиши!

Нз как да я махна щото тя е свързана с мнго неща
 
някой ще ми кажели как като регвам потребиел в базата данни на моят айт да го регва и в базата данни на форума phpbb 2.xx серия е !!! pls help :)
 
мисля защото се досещам защото в дата.бг е така ;)
ЕДИТ: Не съм много сигорен да ли ще стане така:
Код:
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type">
<? 
define('IN_PHPBB', true); 
$phpbb_root_path ='forum/'; 
include($phpbb_root_path . 'config.php'); 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 
$userdata = session_pagestart($user_ip, PAGE_INDEX); 
?>

<form action="register.php" enctype="multipart/form-data" method="post">
<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
	<tr>
		<th class="thHead" colspan="2" height="25" valign="middle">Регистрационна информация</th>
	</tr>
	<tr>
		<td class="row2" colspan="2"><span class="gensmall">Полетата, маркирани с * са задължителни</span></td>
	</tr>
	<tr>
		<td class="row1" width="38%"><span class="gen">Потребител: *</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="username" size="25" maxlength="25" value="" /></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">Мейл адрес: *</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="email" size="25" maxlength="255" value="" /></td>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">Парола: *</span><br />
		<span class="gensmall"></span></td>
	  <td class="row2">
		<input type="password" class="post" style="width: 200px" name="new_password" size="25" maxlength="32" value="" />
	  </td>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">Потвърдете паролата: * </span><br />
		<span class="gensmall"></span></td>
	  <td class="row2">
		<input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="" />
	  </td>
	</tr>
	<tr>
		<td class="catBottom" colspan="2" align="center" height="28"><input type="hidden" name="mode" value="register" /><input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="0" /><input type="hidden" name="sid" value="e1f6f045ce14001fdf74b42a71d15a62" /><input type="hidden" name="confirm_id" value="5e32bc08315bba1c1377557e52eeb0b1" /><input type="submit" name="submit" value="Прати" class="mainoption" />  <input type="reset" value="Изчисти" name="reset" class="liteoption" /></td>
	</tr>
</table>

</form>
</td>
        </tr>
      </table></td>
  </tr>
</table>
<?php
if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
	$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
	$mode = htmlspecialchars($mode);

	if ( $mode == 'viewprofile' )
	{
		include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
		exit;
	}
	else if ( $mode == 'editprofile' || $mode == 'register' )
	{
		if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
		{
			redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true));
		}

		include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
		exit;
	}
	else if ( $mode == 'confirm' )
	{
		// Visual Confirmation
		if ( $userdata['session_logged_in'] )
		{
			exit;
		}

		include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx);
		exit;
	}
	else if ( $mode == 'sendpassword' )
	{
		include($phpbb_root_path . 'includes/usercp_sendpasswd.'.$phpEx);
		exit;
	}
	else if ( $mode == 'activate' )
	{
		include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx);
		exit;
	}
	else if ( $mode == 'email' )
	{
		include($phpbb_root_path . 'includes/usercp_email.'.$phpEx);
		exit;
	}
}

redirect(append_sid("index.$phpEx", true));

?>
</body>
</html>
 
Black каза:
мисля защото се досещам защото в дата.бг е така ;)
ЕДИТ: Не съм много сигорен да ли ще стане така:
Код:
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type">
<? 
define('IN_PHPBB', true); 
$phpbb_root_path ='forum/'; 
include($phpbb_root_path . 'config.php'); 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 
$userdata = session_pagestart($user_ip, PAGE_INDEX); 
?>

<form action="register.php" enctype="multipart/form-data" method="post">
<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
	<tr>
		<th class="thHead" colspan="2" height="25" valign="middle">Регистрационна информация</th>
	</tr>
	<tr>
		<td class="row2" colspan="2"><span class="gensmall">Полетата, маркирани с * са задължителни</span></td>
	</tr>
	<tr>
		<td class="row1" width="38%"><span class="gen">Потребител: *</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="username" size="25" maxlength="25" value="" /></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">Мейл адрес: *</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="email" size="25" maxlength="255" value="" /></td>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">Парола: *</span><br />
		<span class="gensmall"></span></td>
	  <td class="row2">
		<input type="password" class="post" style="width: 200px" name="new_password" size="25" maxlength="32" value="" />
	  </td>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">Потвърдете паролата: * </span><br />
		<span class="gensmall"></span></td>
	  <td class="row2">
		<input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="" />
	  </td>
	</tr>
	<tr>
		<td class="catBottom" colspan="2" align="center" height="28"><input type="hidden" name="mode" value="register" /><input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="0" /><input type="hidden" name="sid" value="e1f6f045ce14001fdf74b42a71d15a62" /><input type="hidden" name="confirm_id" value="5e32bc08315bba1c1377557e52eeb0b1" /><input type="submit" name="submit" value="Прати" class="mainoption" />  <input type="reset" value="Изчисти" name="reset" class="liteoption" /></td>
	</tr>
</table>

</form>
</td>
        </tr>
      </table></td>
  </tr>
</table>
<?php
if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
	$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
	$mode = htmlspecialchars($mode);

	if ( $mode == 'viewprofile' )
	{
		include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
		exit;
	}
	else if ( $mode == 'editprofile' || $mode == 'register' )
	{
		if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
		{
			redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true));
		}

		include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
		exit;
	}
	else if ( $mode == 'confirm' )
	{
		// Visual Confirmation
		if ( $userdata['session_logged_in'] )
		{
			exit;
		}

		include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx);
		exit;
	}
	else if ( $mode == 'sendpassword' )
	{
		include($phpbb_root_path . 'includes/usercp_sendpasswd.'.$phpEx);
		exit;
	}
	else if ( $mode == 'activate' )
	{
		include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx);
		exit;
	}
	else if ( $mode == 'email' )
	{
		include($phpbb_root_path . 'includes/usercp_email.'.$phpEx);
		exit;
	}
}

redirect(append_sid("index.$phpEx", true));

?>
</body>
</html>

Това ми е точно БЕЗПОЛЕЗНО исакм дамо заявката която праща за регистрация във форума !!!
 
бааа някой сеща ли се че ми трябва до 20 март а кодерите дето ги имам у скайпа ги мързи да пръднат едвали ще ми кажат как затоа питам тук
 

Back
Горе