|
|
|
|
|
© 2024 JOKRIS.INFO - Rozszerzenia, dodatki do Joomla! i Mambo |
Google Twoja Wyszukiwarka |
|
|
Najnowsze Pliki Dodane Do ReMOSitory |
|
|
|
Najczê¶ciej czytane na Forum Jokris.info |
|
|
|
|
Forum Joomla / Mambo :: JOKRIS.INFO - Strefa Polskich Sk³adników Joomla! i Mambo
Modu³ do logowania razem z forum (1 wej¶æ)
|
|
TEMAT: Modu³ do logowania razem z forum
|
szymo93 (U¿ytkownik)
Nowicjusz
Posty: 9
|
Modu³ do logowania razem z forum 2008/03/21 12:36 |
Oklaski: 0   |
Witam! Mam trochê dziwny problem otó¿ mam pomost do forum Joomla!-przemo. I za³ata³em domy¶lny modu³ logowania i wszystko dzia³a jak nale¿y, ale chcê korzystaæ z innego modu³u logowania i tu zaczyna siê problem. Mam modu³ do logowania Core Design Login Form 1.0.1.pl i chcia³bym ¿eby loguj±c siê tym modu³em logowa³o siê tak¿e na forum(tak jak jest w domy¶lnym module logowania). Próbowa³em zmieniæ kod PHP tego modu³u ale nie bardzo mi to wychodzi Móg³by mi kto¶ pomóc? By³bym bardzo wdziêczny. Plik PHP z modu³em Core Design Login Form 1.0.1.pl (/modules/mod_cdlogin.php) Kod: | <?php
/**
* Core Design Login Module based on Highslide JS, version 1.1.0, author Daniel Rataj
*
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $mosConfig_frontend_login, $mosConfig_live_site;
if ( $mosConfig_frontend_login != NULL && ($mosConfig_frontend_login === 0 || $mosConfig_frontend_login === '0')) {
return;
}
/***********************************************
funkcja mosHash - mieszanie
***********************************************/
if (!function_exists('mosHash')) {
function mosHash( $seed ) {
return md5( $GLOBALS['mosConfig_secret'] . md5( $seed ) );
}
}
/***********************************************
funkcja josSpoofValue - antyoszukiwacz
***********************************************/
if (!function_exists('josSpoofValue')) {
function josSpoofValue($alt=NULL) {
global $mainframe;
if ($alt) {
if ( $alt == 1 ) {
$random = date( 'Ymd' );
} else {
$random = $alt . date( 'Ymd' );
}
} else {
$random = date( 'dmY' );
}
// the prefix ensures that the hash is non-numeric
// otherwise it will be intercepted by globals.php
$validate = 'j' . mosHash( $mainframe->getCfg( 'db' ) . $random );
return $validate;
}
}
// url of current page that user will be returned to after login
if ($query_string = mosGetParam( $_SERVER, 'QUERY_STRING', '' )) {
$return = 'index.php?' . $query_string;
} else {
$return = 'index.php';
}
function cd_ifmambotload() {
global $database;
// load Highslide options from database
$query = "SELECT id, published"
. "\n FROM #__mambots"
. "\n WHERE element = 'coredesign'"
. "\n AND folder = 'system'"
;
$database->setQuery( $query );
$id = $database->loadResult();
$mambot = new mosMambot( $database );
$mambot->load( $id );
$params = new mosParameters( $mambot->params );
$param['write_html'] = $params->get( 'use_html', '0' );
if( !$mambot->published )
echo '<div style="color: red">Core Design mambot nie został opublikowany. </div>';
elseif ( !$param['write_html'] )
echo '<div style="color: red">Core Design mambot nie został aktywowany. Sprawdź ustawienia
bota!!! </div>';
return;
}
$registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
$message_login = $params->def( 'login_message', 0 );
$message_logout = $params->def( 'logout_message', 0 );
$login = $params->def( 'login', $return );
$logout = $params->def( 'logout', $return );
$name = $params->def( 'name', 1 );
$greeting = $params->def( 'greeting', 1 );
$pretext = $params->get( 'pretext' );
$posttext = $params->get( 'posttext' );
$posttext_style = $params->get( 'posttext_style', 0 );
//Highslide option
$moduletitle = $params->get( 'moduletitle' );
$closelabel = $params->get( 'closelabel' );
$mod_cdlogin_createaccount = $params->get( 'mod_cdlogin_createaccount' );
$mod_cdlogin_lostpassword = $params->get( 'mod_cdlogin_lostpassword' );
$mod_cdlogin_confirmlogout = $params->get( 'mod_cdlogin_confirmlogout' );
$mod_cdlogin_displayauthor = $params->get( 'mod_cdlogin_displayauthor', 1 );
$posttext_style = 1;
?>
<?php if ( $my->id ) {
// Logout output
// ie HTML when already logged in and trying to logout
if ( $name ) {
$name = $my->name;
} else {
$name = $my->username;
} ?>
<?php cd_ifmambotload(); ?>
<style type="text/css">@import "<?php echo $mosConfig_live_site; ?>/modules/mod_cdlogin/
mod_cdlogin.css";</style>
<div class="mod_cdlogin-logout-border-top"></div>
<div style="clear: both"></div>
<div class="mod_cdlogin-logout-greeting">
<?php
if ( $greeting ) {
echo _HI;
echo "<strong>";
echo $name;
echo "</strong>";
}
?>
</div>
<div>
<a href="#" onclick="return hs.htmlExpand(this, { contentId: 'highslide-html-logoutform' } )"
class="mod_cdlogin-logouttitle" title="<?php echo _BUTTON_LOGOUT; ?>">
<span> </span></a>
<div class="highslide-html-content" id="highslide-html-logoutform">
<div class="highslide-html-content-header">
<div class="highslide-move" title="">
<a href="#" onclick="return hs.close(this)" class="control" title="<?php echo $closelabel ?>"><?php
echo $closelabel ?></a>
</div>
</div>
<div class="highslide-body">
<p class="mod_cdlogin-bold"><?php echo $mod_cdlogin_confirmlogout ?> </p>
<div class="mod_cdlogin-logoutform"><form action="<?php echo sefRelToAbs( 'index.php?option=logout'
); ?>" method="post" name="logout">
<input type="submit" name="Submit" class="mod_cdlogin-logoutbutton" title="<?php echo
_BUTTON_LOGOUT; ?>" value="<?php echo _BUTTON_LOGOUT; ?>" />
<input type="hidden" name="option" value="logout" />
<input type="hidden" name="op2" value="logout" />
<input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return" value="<?php echo htmlspecialchars( sefRelToAbs( $logout ) ); ?>"
/>
<input type="hidden" name="message" value="<?php echo htmlspecialchars( $message_logout ); ?>" />
</form>
</div>
</div>
</div>
</div>
<div style="clear: both"></div>
<div class="mod_cdlogin-logout-border-bottom"></div>
<?php
} else {
// Login output
// ie HTML when not logged in and trying to login
// used for spoof hardening
$validate = josSpoofValue(1);
?>
<?php cd_ifmambotload(); ?>
<style type="text/css">@import "<?php echo $mosConfig_live_site; ?>/modules/mod_cdlogin/
mod_cdlogin.css";</style>
<div class="mod_cdlogin-logout-border-top"></div>
<div style="clear: both"></div>
<div class="mod_cdlogin-login-box">
<div class="mod_cdlogin-login-mini"></div>
<a href="#" onclick="return hs.htmlExpand(this, { contentId: 'highslide-html-loginform' } )" title="
<?php echo $moduletitle ?>"><?php echo $moduletitle ?> </a>
</div>
<div style="clear: both"></div>
<div class="mod_cdlogin-logout-border-bottom"></div>
<div class="highslide-html-content" id="highslide-html-loginform">
<div class="highslide-html-content-header">
<div class="highslide-move" title="">
<a href="#" onclick="return hs.close(this)" class="control" title="<?php echo $closelabel ?>"><?php
echo $closelabel ?></a>
</div>
</div>
<div class="highslide-body">
<form action="<?php echo sefRelToAbs( 'index.php' ); ?>" method="post" name="loginForm" >
<?php
echo $pretext;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<label for="mod_login_username">
<?php echo _USERNAME; ?>
</label>
<br />
<input name="username" id="mod_cdlogin_username" type="text" class="inputbox" alt="username" size="
10" />
<br />
<label for="mod_login_password">
<?php echo _PASSWORD; ?>
</label>
<br />
<input type="password" id="mod_cdlogin_password" name="passwd" class="inputbox" size="10" alt="
password" />
<br />
<div class="mod_cdlogin-form-submit">
<div class="mod_cdlogin-form-input">
<input type="checkbox" name="remember" id="mod_cdlogin_remember" class="inputbox" value="yes" alt="<
?php echo _REMEMBER_ME; ?>" title="<?php echo _REMEMBER_ME; ?>" />
<label for="mod_login_remember">
<?php echo _REMEMBER_ME; ?>
</label>
</div>
<input type="submit" name="Submit" class="mod_cdlogin-loginbutton" title="<?php echo _BUTTON_LOGIN;
?>" value="" />
</div>
</td>
</tr>
<tr>
<td>
<div style="text-align: center; padding-top: 10px">
<div style="margin: 0 auto">
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=lostPassword' ); ?>"
title="<?php echo $mod_cdlogin_lostpassword; ?>" class="mod_cdlogin-lostpassword"><?php echo
$mod_cdlogin_lostpassword; ?> </a><span style="padding-left: 15px">
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>"
title="<?php echo $mod_cdlogin_createaccount; ?>" class="mod_cdlogin-createaccount"><?php echo
$mod_cdlogin_createaccount; ?> </a>
</div>
</div>
</td>
</tr>
<?php
if ( $registration_enabled ) {
?>
<tr>
<td>
</td>
</tr>
<?php
}
?>
</table>
<div class="mod_imglogin"></div>
<?php
if ($posttext != '') {
if ($posttext_style == 1) {
?>
<div style="border: 1px solid rgb(128, 128, 128); padding: 2px;">
<?php echo $posttext; ?>
</div>
<?php
} else {
echo $posttext;
}
}
?>
<input type="hidden" name="option" value="login" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return" value="<?php echo htmlspecialchars( sefRelToAbs( $login ) ); ?>"
/>
<input type="hidden" name="message" value="<?php echo htmlspecialchars( $message_login ); ?>" />
<input type="hidden" name="force_session" value="1" />
<input type="hidden" name="<?php echo $validate; ?>" value="1" />
</form>
</div>
<?php if ($mod_cdlogin_displayauthor) { ?>
<div class="mod_cdtitle-designed">Designed by <a href="http://www.communicationpro.org" title="http:
//www.communicationpro.org" target="_blank">www.communicationpro.org</a> </div>
<?php } return; ?>
</div>
<?php
}
?>
|
I plik z domy¶lnym modu³em logowania po za³ataniu:
Kod: | <?php
/**
* @version $Id: mod_login.php 7211 2007-04-29 02:26:51Z robs $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $mosConfig_frontend_login;
if ( $mosConfig_frontend_login != NULL && ($mosConfig_frontend_login === 0 || $mosConfig_frontend_login === '0')) {
return;
}
// url of current page that user will be returned to after login
if ($query_string = mosGetParam( $_SERVER, 'QUERY_STRING', '' )) {
$return = 'index.php?' . $query_string;
} else {
$return = 'index.php';
}
$registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
$message_login = $params->def( 'login_message', 0 );
$message_logout = $params->def( 'logout_message', 0 );
$login = $params->def( 'login', $return );
$logout = $params->def( 'logout', $return );
$name = $params->def( 'name', 1 );
$greeting = $params->def( 'greeting', 1 );
$pretext = $params->get( 'pretext' );
$posttext = $params->get( 'posttext' );
if ( $my->id ) {
// Logout output
// ie HTML when already logged in and trying to logout
if ( $name ) {
$name = $my->name;
} else {
$name = $my->username;
}
?>
<?php
//joomla<->przemo start
$query = "SELECT par_value FROM #__jp_config WHERE par_name='forum_live'";
$database->setQuery( $query );
$forum_path_inlcude = $database->loadResult(); ?>
<form action="<?php echo $forum_path_inlcude; ?>/login.php" name="login" method="post" >
<?php //joomla<->przemo end ?>
<?php
if ( $greeting ) {
echo _HI;
echo $name;
}
?>
<br />
<div align="center">
<input type="submit" name="Submit" class="button" value="<?php echo _BUTTON_LOGOUT; ?>" />
</div>
<input type="hidden" name="logout_phpbb" value="yes" />
<input type="hidden" name="option" value="logout" />
<input type="hidden" name="op2" value="logout" />
<input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return" value="<?php echo htmlspecialchars( sefRelToAbs( $logout ) ); ?>"
/>
<input type="hidden" name="message" value="<?php echo htmlspecialchars( $message_logout ); ?>" />
</form>
<?php
} else {
// Login output
// ie HTML when not logged in and trying to login
// used for spoof hardening
$validate = josSpoofValue(1);
?>
<?php //joomla<->przemo start
$query = "SELECT par_value FROM #__jp_config WHERE par_name='forum_live'";
$database->setQuery( $query );
$forum_path_inlcude = $database->loadResult(); ?>
<form action="<?php echo $forum_path_inlcude; ?>/login.php" method="post" name="login" >
<?php //joomla<->przemo end ?>
<?php
echo $pretext;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<label for="mod_login_username">
<?php echo _USERNAME; ?>
</label>
<br />
<input name="username" id="mod_login_username" type="text" class="inputbox" alt="<?php echo
_USERNAME; ?>" size="10" />
<br />
<label for="mod_login_password">
<?php echo _PASSWORD; ?>
</label>
<br />
<input type="password" name="password" class="inputbox" size="10" alt="password" />
<input type="hidden" id="mod_login_password" name="passwd" class="inputbox" size="10" alt="<?php
echo _PASSWORD; ?>" />
<br />
<input type="checkbox" name="remember" id="mod_login_remember" class="inputbox" value="yes" alt="<?
php echo _REMEMBER_ME; ?>" />
<label for="mod_login_remember">
<?php echo _REMEMBER_ME; ?>
</label>
<br />
<input type="submit" class="mainoption" name="login" value="Login" />
</td>
</tr>
<tr>
<td>
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=lostPassword' ); ?>">
<?php echo _LOST_PASSWORD; ?></a>
</td>
</tr>
<?php
if ( $registration_enabled ) {
?>
<tr>
<td>
<?php echo _NO_ACCOUNT; ?>
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>">
<?php echo _CREATE_ACCOUNT; ?></a>
</td>
</tr>
<?php
}
?>
</table>
<?php
echo $posttext;
?>
<input type="hidden" name="option" value="login" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return" value="<?php echo htmlspecialchars( sefRelToAbs( $login ) ); ?>"
/>
<input type="hidden" name="message" value="<?php echo htmlspecialchars( $message_login ); ?>" />
<input type="hidden" name="force_session" value="1" />
<input type="hidden" name="<?php echo $validate; ?>" value="1" />
</form>
<?php
}
?>
|
Z góry wielkie dziêki!
Pozdrawiam
szymo
"Kobiety mog± uczyniæ milionerem tylko takiego mê¿czyznê który jest miliarderem" Zapraszam na moj± testow± stronê w Joomla! http://szymo.freens.pl
|
|
|
Temat zosta³ zablokowany. |
Krzysztof Stachyra (Administrator Forum)
Administrator Forum
Posty: 697
|
Odp:Modu³ do logowania razem z forum 2008/03/21 18:43 |
Oklaski: 88   |
W ten Wielki Pi±tek móg³by¶ uzupe³niæ stopkê, bo ja w³a¶nie 2 godziny, z przerwami na kawê próbowa³em adoptowaæ modu³ do wspó³pracy z Forum phpBB. A móg³bym w tym czasie malowaæ pisanki. Daj z siebie chocia¿ tyle. Jak pisa³em wy¿ej, zmodyfikowa³em nieco modu³ Core Design Login Form 1.0.1.pl. Poni¿ej dam Ci kod, aby¶ prze¶ledzi³ sobie co zmieni³em. Przyznam siê szczerze, ¿e nie testowa³em go przy zainstalowanym Forum phpBB, bo nie mam go, ale pracuje ju¿ ta zmodyfikowana wersja modu³u na mojej stronie. Ca³a rzecz polega na tym, ¿e modu³ sprawdza, czy jest zainstalowany pomost, komponent com_j-p, i dopiero prze³±cza siê w tryb wspó³pracy z mostkiem. Tak ¿e, pozostaje jedynie Ci przetestowaæ modu³. Zrób kopiê orygina³u, i nadpisz plikiem z za³±cznika. Nie kopiuj kodu z pola poni¿ej. Nie nale¿y tego robiæ przy takiej ilo¶ci kodu, bo Forum FireBoard prze³amuje linie, i mia³by¶ na stronie b³êdy. Poni¿ej kod, a pod nim plik do pobrania. Odpisz czy dzia³a, to wówczas podmieniê go w plikowni. Wprowadzi³em kilka zmian w pliku XML modu³u, ale na razie nie ma to znaczenia dla pracy Twojego modu³u. Pozdrawiam. Jokris. Kod: |
<?php
/**
* Core Design Login Module based on Highslide JS, version 1.1.0, author Daniel Rataj
*
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $mosConfig_frontend_login, $mosConfig_live_site;
if ( $mosConfig_frontend_login != NULL && ($mosConfig_frontend_login === 0 || $mosConfig_frontend_login === '0')) {
return;
}
/***********************************************
funkcja mosHash - mieszanie
***********************************************/
if (!function_exists('mosHash')) {
function mosHash( $seed ) {
return md5( $GLOBALS['mosConfig_secret'] . md5( $seed ) );
}
}
/***********************************************
funkcja josSpoofValue - antyoszukiwacz
***********************************************/
if (!function_exists('josSpoofValue')) {
function josSpoofValue($alt=NULL) {
global $mainframe;
if ($alt) {
if ( $alt == 1 ) {
$random = date( 'Ymd' );
} else {
$random = $alt . date( 'Ymd' );
}
} else {
$random = date( 'dmY' );
}
// the prefix ensures that the hash is non-numeric
// otherwise it will be intercepted by globals.php
$validate = 'j' . mosHash( $mainframe->getCfg( 'db' ) . $random );
return $validate;
}
}
// url of current page that user will be returned to after login
if ($query_string = mosGetParam( $_SERVER, 'QUERY_STRING', '' )) {
$return = 'index.php?' . $query_string;
} else {
$return = 'index.php';
}
function cd_ifmambotload() {
global $database;
// load Highslide options from database
$query = "SELECT id, published"
. "\n FROM #__mambots"
. "\n WHERE element = 'coredesign'"
. "\n AND folder = 'system'"
;
$database->setQuery( $query );
$id = $database->loadResult();
$mambot = new mosMambot( $database );
$mambot->load( $id );
$params = new mosParameters( $mambot->params );
$param['write_html'] = $params->get( 'use_html', '0' );
if( !$mambot->published )
echo '<div style="color: red">Core Design mambot nie został opublikowany. </div>';
elseif ( !$param['write_html'] )
echo '<div style="color: red">Core Design mambot nie został aktywowany. Sprawdź ustawienia
bota!!! </div>';
return;
}
$registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
$message_login = $params->def( 'login_message', 0 );
$message_logout = $params->def( 'logout_message', 0 );
$login = $params->def( 'login', $return );
$logout = $params->def( 'logout', $return );
$name = $params->def( 'name', 1 );
$greeting = $params->def( 'greeting', 1 );
$pretext = $params->get( 'pretext' );
$posttext = $params->get( 'posttext' );
$posttext_style = $params->get( 'posttext_style', 1 );
$colorborder = $params->get( 'colorborder', '#808080' );
//Highslide option
$moduletitle = $params->get( 'moduletitle' );
$closelabel = $params->get( 'closelabel' );
$mod_cdlogin_createaccount = $params->get( 'mod_cdlogin_createaccount' );
$mod_cdlogin_lostpassword = $params->get( 'mod_cdlogin_lostpassword' );
$mod_cdlogin_confirmlogout = $params->get( 'mod_cdlogin_confirmlogout' );
$mod_cdlogin_displayauthor = $params->get( 'mod_cdlogin_displayauthor', 1 );
$phpbb_mostpath = $GLOBALS['mosConfig_absolute_path'].'/administrator/components/com_j-p/admin.j-p.php';
?>
<?php if ( $my->id ) {
// Logout output
// ie HTML when already logged in and trying to logout
if ( $name ) {
$name = $my->name;
} else {
$name = $my->username;
} ?>
<?php cd_ifmambotload(); ?>
<style type="text/css">@import "<?php echo $mosConfig_live_site; ?>/modules/mod_cdlogin/
mod_cdlogin.css";</style>
<div class="mod_cdlogin-logout-border-top"></div>
<div style="clear: both"></div>
<div class="mod_cdlogin-logout-greeting">
<?php
if ( $greeting ) {
echo _HI;
echo "<strong>";
echo $name;
echo "</strong>";
}
?>
</div>
<div>
<a href="#" onclick="return hs.htmlExpand(this, { contentId: 'highslide-html-logoutform' } )"
class="mod_cdlogin-logouttitle" title="<?php echo _BUTTON_LOGOUT; ?>">
<span> </span></a>
<div class="highslide-html-content" id="highslide-html-logoutform">
<div class="highslide-html-content-header">
<div class="highslide-move" title="">
<a href="#" onclick="return hs.close(this)" class="control" title="<?php echo $closelabel ?>
"><?php echo $closelabel ?></a>
</div>
</div>
<div class="highslide-body">
<p class="mod_cdlogin-bold"><?php echo $mod_cdlogin_confirmlogout ?> </p>
<div class="mod_cdlogin-logoutform">
<?php
/***********************************************
sprawdzamy istnienie komponentu com_j-p
***********************************************/
if (file_exists($phpbb_mostpath)) {
/***********************************************
joomla<->przemo start
***********************************************/
$query = "SELECT par_value FROM #__jp_config WHERE par_name='forum_live'";
$database->setQuery( $query );
$forum_path_inlcude = $database->loadResult(); ?>
<form action="<?php echo $forum_path_inlcude; ?>/login.php" name="login" method="post" >
<?php
$pole_phpbb = '<input type="hidden" name="logout_phpbb" value="yes" />';
/***********************************************
joomla<->przemo end
***********************************************/
} else {
$pole_phpbb = '';
?>
<form action="<?php echo sefRelToAbs( 'index.php?option=logout' ); ?>" method="post"
name="logout">
<?php } ?>
<input type="submit" name="Submit" class="mod_cdlogin-logoutbutton" title="<?php echo
_BUTTON_LOGOUT; ?>" value="<?php echo _BUTTON_LOGOUT; ?>" />
<?php echo $pole_phpbb; ?>
<input type="hidden" name="option" value="logout" />
<input type="hidden" name="op2" value="logout" />
<input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return" value="<?php echo htmlspecialchars( sefRelToAbs( $logout ) );
?>" />
<input type="hidden" name="message" value="<?php echo htmlspecialchars( $message_logout ); ?>" /
>
</form>
</div>
</div>
</div>
</div>
<div style="clear: both"></div>
<div class="mod_cdlogin-logout-border-bottom"></div>
<?php
} else {
// Login output
// ie HTML when not logged in and trying to login
// used for spoof hardening
$validate = josSpoofValue(1);
?>
<?php cd_ifmambotload(); ?>
<style type="text/css">@import "<?php echo $mosConfig_live_site; ?>/modules/mod_cdlogin/
mod_cdlogin.css";</style>
<div class="mod_cdlogin-logout-border-top"></div>
<div style="clear: both"></div>
<div class="mod_cdlogin-login-box">
<div class="mod_cdlogin-login-mini"></div>
<a href="#" onclick="return hs.htmlExpand(this, { contentId: 'highslide-html-loginform' } )"
title="<?php echo $moduletitle ?>"><?php echo $moduletitle ?> </a>
</div>
<div style="clear: both"></div>
<div class="mod_cdlogin-logout-border-bottom"></div>
<div class="highslide-html-content" id="highslide-html-loginform">
<div class="highslide-html-content-header">
<div class="highslide-move" title="">
<a href="#" onclick="return hs.close(this)" class="control" title="<?php echo $closelabel ?>
"><?php echo $closelabel ?></a>
</div>
</div>
<div class="highslide-body">
<?php
/***********************************************
sprawdzamy istnienie komponentu com_j-p
***********************************************/
if (file_exists($phpbb_mostpath)) {
/***********************************************
joomla<->przemo start
***********************************************/
$query = "SELECT par_value FROM #__jp_config WHERE par_name='forum_live'";
$database->setQuery( $query );
$forum_path_inlcude = $database->loadResult(); ?>
<form action="<?php echo $forum_path_inlcude; ?>/login.php" method="post" name="login" >
<?php
/***********************************************
joomla<->przemo end
***********************************************/
} else { ?>
<form action="<?php echo sefRelToAbs( 'index.php' ); ?>" method="post" name="loginForm" >
<?php } ?>
<?php
echo $pretext;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<label for="mod_login_username">
<?php echo _USERNAME; ?>
</label>
<br />
<input name="username" id="mod_cdlogin_username" type="text" class="inputbox" alt="
username" size="10" />
<br />
<label for="mod_login_password">
<?php echo _PASSWORD; ?>
</label>
<br />
<input type="password" id="mod_cdlogin_password" name="passwd" class="inputbox" size="
10" alt="password" />
<br />
<div class="mod_cdlogin-form-submit">
<div class="mod_cdlogin-form-input">
<input type="checkbox" name="remember" id="mod_cdlogin_remember" class="inputbox" value="
yes" alt="<?php echo _REMEMBER_ME; ?>" title="<?php echo _REMEMBER_ME; ?>" />
<label for="mod_login_remember">
<?php echo _REMEMBER_ME; ?>
</label>
</div>
<input type="submit" name="Submit" class="mod_cdlogin-loginbutton" title="<?php echo
_BUTTON_LOGIN; ?>" value="" />
</div>
</td>
</tr>
<tr>
<td>
<div style="text-align: center; padding-top: 10px">
<div style="margin: 0 auto">
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=lostPassword' ); ?>
" title="<?php echo $mod_cdlogin_lostpassword; ?>" class="mod_cdlogin-lostpassword"><?php echo
$mod_cdlogin_lostpassword; ?> </a><span style="padding-left: 15px">
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>"
title="<?php echo $mod_cdlogin_createaccount; ?>" class="mod_cdlogin-createaccount"><?php echo
$mod_cdlogin_createaccount; ?> </a>
</div>
</div>
</td>
</tr>
<?php
if ( $registration_enabled ) {
?>
<tr>
<td>
</td>
</tr>
<?php
}
?>
</table>
<div class="mod_imglogin"></div>
<?php
if ($posttext != '') {
if ($posttext_style == 1) {
?>
<div style="border: 1px solid <?php echo $colorborder; ?>; padding: 2px;">
<?php echo $posttext; ?>
</div>
<?php
} else {
echo $posttext;
}
}
?>
<input type="hidden" name="option" value="login" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return" value="<?php echo htmlspecialchars( sefRelToAbs( $login ) );
?>" />
<input type="hidden" name="message" value="<?php echo htmlspecialchars( $message_login ); ?>" />
<input type="hidden" name="force_session" value="1" />
<input type="hidden" name="<?php echo $validate; ?>" value="1" />
</form>
</div>
<?php if ($mod_cdlogin_displayauthor) { ?>
<div class="mod_cdtitle-designed">Designed by <a href="http://www.communicationpro.org" title="http:
//www.communicationpro.org" target="_blank">www.communicationpro.org</a> </div>
<?php } return; ?>
</div>
<?php
}
?>
|
|
|
|
Temat zosta³ zablokowany. |
szymo93 (U¿ytkownik)
Nowicjusz
Posty: 9
|
Odp:Modu³ do logowania razem z forum 2008/03/22 09:51 |
Oklaski: 0   |
Witam! Wielkie dziêki Jokris ¿e Ci siê chcia³o A wiêc tak: Loguj±c siê na pierwszy rzut oka wszystko dzia³a tzn. modu³ przekierowuje mnie do strony z forum ale nie loguje mnie na niej ani na stronie z Jooml± tylko wyskakuje mi alert: "Uzupe³nij pola: Nazwa u¿ytkownika(login) i Has³a.". Zreszt± sam zobacz: http://szymo.freens.plU¿ytkownik: test Has³o: test Pozdrawiam szymo P.S. Sorry ¿e nie uzupe³ni³em stopki Ale jako¶ nie mia³em do tego g³owy Ju¿ uzupe³niam
"Kobiety mog± uczyniæ milionerem tylko takiego mê¿czyznê który jest miliarderem" Zapraszam na moj± testow± stronê w Joomla! http://szymo.freens.pl
|
|
|
Temat zosta³ zablokowany. |
|
|
|
|
|
|
Strony zaprzyja¼nione z serwisem JOKRIS.INFO - Rozszerzenia, dodatki do Joomla! i Mambo oraz partnerskie
|
|
|
|
|
|
|
|