© 2005-2012 eXtreme-Fusion (based on PHP-Fusion) 18 lutego odbędzie się konferencja Skype - ogłosimy datę premiery eXtreme-Fusion 5. Zapisy (zostało 11 miejsc) przez maila - support[at]extreme-fusion.pl

 Reklama
Joi.pl - Z hostingu możesz wycisnšć więcej!
eX-Chat
 Logowanie
Login

Hasło

Zapamiętaj mnie



Rejestracja
Zapomniane hasło?
 Przydatne linki

eXtreme-fusion UK Support

Download EF 4.17 (stable)

Download EF 4.5 (closed)

eXtreme-Fusion 5 (info)

 Ostatnio widziani

 racek1990000:07:49
 FoxNET00:32:57
 djdandi00:47:45
 Wolfram01:03:24
 krystian198802:31:35
 Tymcio02:54:21
 spionica04:04:10
 kapo10:12:24
 Litera10:16:34
 Darek12:04:41
 mmalinowski199112:15:16
 Andrzejster12:58:17

Zarejestrowanych: 39,500
Gości on-line: 8

 Polecamy


Mapa witryny

Joi.pl - Profesjonalny hosting WWW
 Zobacz Temat
Centrum eXtreme-Fusion CMS, support extreme fusion, wtyczki, infusions, themes | FAQ | EF 4.0
Strona 1 z 3 1 2 3 >
Logowanie w header`ze || Dodane dnia 07-11-2009 15:44
Avatar Użytkownika

Jose0
Użytkownik


Witam. Denerwują mnie pytania typu "Jak zrobić logowanie w logo?", więc postanowiłem napisać tutorial. Jeśli już coś takiego było, to proszę o skasowanie mojego tematu. ;)

Zaczynamy! Wszystko będę wykonywał na podstawie theme`a Webmaster. Na początek otworzymy jakiś edytor plików np. Notepad++. Wszystko, byleby nie Notatnik.

1. LOGOWANIE.PHP

Tworzymy w katalogu theme`a plik logowanie.php

Wpisujemy do niego kolejno


<?php
if (iMEMBER) {
  echo '<div style="margin: 0 auto;">'; //mozemy uzyc <center></center> zamiast marginesu


Na początku otwieramy plik PHP odpowiednim znacznikiem..
Kolejno tworzymy IF`a, do tego, co ma się wyświetlać użytkownikowi. Na koniec centrujemy zawartość.

Później

  if ($userdata['user_avatar'] != "") {
   echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'><br><br>";
  }
  else {
   echo "<img src='".FORUM."/images/brak.gif'><br><br>";
  }


wpisujemy IF`a o avatarze. Jeśli user ma avatar, to pobieramy jego adres, jeśli nie, to pobieramy adres standardowego avatara

Teraz:

  echo '<a href="'.BASEDIR.'messages.php">Wiadomości</a> | ';
  echo '<a href="'.BASEDIR.'edit_profile.php">Edytuj profil</a> | ';
  echo '<a href="'.BASEDIR.'members.php">Użytkownicy</a> | ';
  if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
   echo '<a href="'.ADMIN.'index.php'.$aidlink.'"><b>Administracja</b></a><br>';
  }
  echo '<br><b><u>Dodaj</u>:</b><br>';
  echo '[ <a href="'.BASEDIR.'submit.php?stype=l">Link</a> | ';
  echo '<a href="'.BASEDIR.'submit.php?stype=p">Foto</a> | ';
  echo '<a href="'.BASEDIR.'submit.php?stype=a">Art</a> | ';
  echo '<a href="'.BASEDIR.'submit.php?stype=n">News</a> ]<br><br>';
  echo '<a href="'.BASEDIR.'setuser.php?logout=yes"><u>Wyloguj</u></a>';
  echo '</center>';


Wyświetlamy linki w panelu użytkownika. IF, którego użyliśmy tutaj oznacza, to, że jeśli user ma odpowiednie prawa admina, to wyświetla mu się link do panelu administracyjnego. Na koniec zamykamy center

Później

} else {
  echo '<form name="loginform" method="post" action="'.BASEDIR.'login.php"><center>';
  echo '<input type="text" name="user_name" class="textbox" value="login..."><br><br>';
  echo '<input type="password" name="user_pass" class="textbox" value="hasĹr18;o..."><br>';
  echo '<input type="submit" name="login" value="Zaloguj" class="button"><br><br>';
  echo '[<a href="'.BASEDIR.'lostpassword.php">Zapomniene hasło</a>]<br>';
   echo '[<a href="'.BASEDIR.'register.php">Rejestracja</a>]';
  echo '</center></form>';
}
echo "</div></div>";
?>


Wpisujemy else, czyli to, co będzie się wyświetlało tym, co nie są userami, czyli gościom. Tworzymy prosty formularz i kilka linków. Najpierw deklarujemy, do jakiego pliku ma się odwołać login. Później wpisujemy odpowiednie input`y i linki do rejestracji i zapomnianego hasła ;). Na koniec zamykamy DIV`a, którego otworzyliśmy i dokument PHP
2. THEME.PHP
Na samym początku do global dodamy funkcji render_header(); dodamy dwie zmienne

$userdata, $aidlink;


Później szukamy miejsca, w którym jest nasz TOP (funkcja render_header();

W przypadku theme`a Webmaster będzie to

<td style='WIDTH: 45%'><a href='".BASEDIR."index.php'><img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' border='0' width='400' height='74'></a>

</td>


Zamieniamy to na

<td background='".THEME."images/logo.jpg' border='0' width='400' height='74' style='WIDTH: 45%'>
KOD PHP
</td>


Obrazek zamieniliśmy na tło komórki. Na koniec zamieniamy to na


<td background='".THEME."images/logo.jpg' border='0' width='400' height='74' style='WIDTH: 45%'>";
include THEME."logowanie.php";
echo "</td>";


W tym kodzie zamykamy echo TOP`a, includujemy plik z logowaniem i zamykamy komórkę td

Cieszymy się efektem!

Pozdrawiam ;)
Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 07-11-2009 16:07
Avatar Użytkownika

magnetic121
Użytkownik


Proponuję poprawić sposób centrowania, bo znacznik "<center>" jest już przestarzały ;p
Do reszty nie mam zastrzeżeń. Ładny tutorial i proponuję dać do FAQ.

Pozdrawiam!
www.my-source.pl Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 08-11-2009 08:05
Avatar Użytkownika

Jose0
Użytkownik


Cały Fusion jest napisany troszkę przestarzale, z resztą margin: 0 auto; często źle działa, ale jak chcesz. ;)
Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 08-11-2009 08:10
Avatar Użytkownika

eTekamote
Użytkownik


Hmm... A mam takie pytanie: Czy w logowanie.php mogę umieścić te dane w tabelkach? Np. Jak bym chciał żeby avatar był z lewej a reszta z prawej, to czy bym sobie mógł tak rozmieścić tabelki.?
Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 08-11-2009 08:15
Avatar Użytkownika

Jose0
Użytkownik


eTekamote napisał/a:
Hmm... A mam takie pytanie: Czy w logowanie.php mogę umieścić te dane w tabelkach? Np. Jak bym chciał żeby avatar był z lewej a reszta z prawej, to czy bym sobie mógł tak rozmieścić tabelki.?


Pewnie, przecież to jest dowolne umieszczenie.. Możesz sobie tam dać co tylko chcesz.

Do awatara wystarczy dać align="left", lub style="float: left;", żeby było tak, jak chcesz. ;-)
Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 12-02-2010 19:13
Avatar Użytkownika

botox
Użytkownik

Ostrzeżeń:
możesz wszystko złączyć w kupę, żebym nie musiał tego tworzyć bo troche nie ogarniam? tak zebym tylko wkleił pliki to logowanie.php itd , a potem edytował ten theme.php tak zeby bylo git? Prosze ;d
Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 12-02-2010 19:40
Avatar Użytkownika

Inscure
Administrator


Jak nie umiesz to zrób tak:

<div id='login'>"; include BASEDIR."login.php"; echo"</div>

Jakby kiepsko wyglądało to usuń z pliku login.php opentable.
http://clear-php.com/ Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 23-02-2010 14:41
Avatar Użytkownika

Kacperozos
Użytkownik


Mi nie działa.
Pojawia się taki błąd:

Warning: include(".THEME."logowanie.php) [function.include]: failed to open stream: Invalid argument in C:\Program Files\WebServ\httpd\php-files\themes\kewals\theme.php on line 30

Warning: include() [function.include]: Failed opening '".THEME."logowanie.php' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\WebServ\httpd\php-files\themes\kewals\theme.php on line 30


render_header:
function render_header($header_content) {

global $theme_width,$settings;

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">

<tr>

  <td>
 
  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
  <td><img src=\"".THEME."images/logo.gif\" width=\"611\" height=\"201\" border=\"0\" alt=\"[Rozmiar: 97547 bajtów]\"></td>
  <td>
 
  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
  <td><img src=\"".THEME."images/naglog.gif\" width=\"288\" height=\"26\" border=\"0\" alt=\"[Rozmiar: 8222 bajtów]\"></td>
</tr>
<tr>
  <td style=\"background-image: url('".THEME."images/log.gif'); color: #3C3C3C; height: 174px; padding-top: 15px; width: 288px\" valign=\"top\">";
  include '".THEME."logowanie.php';
  echo "</td>
</tr>
</table>
 
  </td>
</tr>
</table>
 
  </td>
 
 

<tr>
  <td><a href=\"http://gothicity.exxl.pl/news.php\"><img src=\"".THEME."images/główna.gif\" width=\"178\" height=\"59\" border=\"0\" alt=\"[Rozmiar: 3418 bajtów]\"></a><a href=\"http://gothicity.exxl.pl/forum/index.php\"><img src=\"".THEME."images/forum.gif\" width=\"112\" height=\"59\" border=\"0\" alt=\"[Rozmiar: 2497 bajtów]\"></a><a href=\"http://gothicity.exxl.pl/articles.php\"><img src=\"".THEME."images/artykuly.gif\" width=\"111\" height=\"59\" border=\"0\" alt=\"[Rozmiar: 2560 bajtów]\"></a><a href=\"http://gothicity.exxl.pl/downloads.php\"><img src=\"".THEME."images/download.gif\" width=\"113\" height=\"59\" border=\"0\" alt=\"[Rozmiar: 2681 bajtów]\"></a><a href=\"http://gothicity.exxl.pl/wymiana.php\"><img src=\"".THEME."images/wymiana.gif\" width=\"102\" height=\"59\" border=\"0\" alt=\"[Rozmiar: 2457 bajtów]\"></a><a href=\"http://gothicity.exxl.pl/contact.php\"><img src=\"".THEME."images/kontakt.gif\" width=\"109\" height=\"59\" border=\"0\" alt=\"[Rozmiar: 2526 bajtów]\"</a><a href=\"http://gothicity.exxl.pl/team2.php\"><img src=\"".THEME."images/redakcja.gif\" width=\"175\" height=\"59\" border=\"0\" alt=\"[Rozmiar: 3533 bajtów]\"></a></td>
</tr>

<tr>
  <td>
 
  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
  <td><img src=\"".THEME."images/got_17.gif\" width=\"218\" height=\"36\" border=\"0\" alt=\"[Rozmiar: 4690 bajtów]\"><img src=\"".THEME."images/nagon.gif\" width=\"200\" height=\"36\" border=\"0\" alt=\"[Rozmiar: 2112 bajtów]\"><img src=\"".THEME."images/nagnp.gif\" width=\"242\" height=\"36\" border=\"0\" alt=\"[Rozmiar: 2754 bajtów]\"><img src=\"".THEME."images/nagna.gif\" width=\"240\" height=\"36\" border=\"0\" alt=\"[Rozmiar: 2870 bajtów]\"></td>
</tr>
<tr>
  <td>
 
  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
  <td><img src=\"".THEME."images/got_21.gif\" width=\"218\" height=\"207\" border=\"0\" alt=\"[Rozmiar: 27684 bajtów]\"></td>
  <td style=\"background-image: url('".THEME."images/on.gif'); height: 207px; width: 200px\"></td>
  <td style=\"background-image: url('".THEME."images/np.gif'); height: 207px; width: 242px\"></td>
  <td style=\"background-image: url('".THEME."images/na.gif'); height: 207px; width: 240px\"></td>
</tr>
</table>
 
 
  </td>
</tr>
</table>
 
  </td>
</tr>
\n";

echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";

}

Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 23-02-2010 15:30
Avatar Użytkownika

Inscure
Administrator


Zamień na 
include THEME."logowanie.php"; 

http://clear-php.com/ Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 23-02-2010 16:26
Avatar Użytkownika

botox
Użytkownik

Ostrzeżeń:
Inscure napisał/a:
Jak nie umiesz to zrób tak:

<div id='login'>"; include BASEDIR."login.php"; echo"</div>

Jakby kiepsko wyglądało to usuń z pliku login.php opentable.


Gdzie ja mam to wkleić?
Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 24-02-2010 21:26
Avatar Użytkownika

Rafik89
Administrator


Niedługo skończy się dawanie gotowców...
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System  |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk      |
| email: nick@php-fusion.co.uk        |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
|  COD-support Theme for PHP-Fusion v6.x   |
|    BASED ON "SIMILITUDE" THEME     |
|---------------------------------------------|
| author: Guto                 |
| web: -                   |
| email: alexk12@wp.eu            |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/

if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#c1c1c1";
$body_bg = "#4e4e4e";
$theme_width = "980";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {

global $theme_width, $userdata, $aidlink,$locale;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style='background-image:url(images/2i8agkx.jpg ); width:1000px; height:300px;'>"; include BASEDIR."login.php"; echo " </td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='white-header'>".showsublinks("·")."</td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "<center></tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'>
<tr><td width='30%'>Clan Theme II by<b> Guto</b></td>
<td width='40%'><center>".stripslashes($settings['footer'])."</center></td>
<td width='30%' style='text-align: right'>\n";
if (!$license) { echo showcopyright("white")."<br>\n"; } echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table cellpadding='1' cellspacing='1' width='100%' class='news-border'>
<tr><td>
<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr><td class='closenews'> </td></tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
<tr><td class='closenews'> </td></tr>
</table></td></tr></table>\n";

}

function render_article($subject, $article, $info) {
 
echo "<table cellpadding='1' cellspacing='1' width='100%' class='news-border'>
<tr><td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr><td class='closenews'> </td></tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
<tr><td class='closenews'> </td></tr>
</table></td></tr></table>\n";

}

function opentable($title) {

echo "
<table cellpadding='1' cellspacing='1' width='100%' class='news-border'>
<tr><td>
<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr><tr><td class='closenews'> </td></tr>
</table></td></tr></table>\n";

}

function openside($title) {
 
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
<tr><td class='closetable'> </td></tr>
</table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title  ".panelbutton($state,$boxname)." </td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>


http://rafik.eu Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 24-02-2010 22:09
Avatar Użytkownika

botox
Użytkownik

Ostrzeżeń:

Table 'fcliverpool.panels' doesn't exist
Table 'fcliverpool.panels' doesn't exist

Table 'fcliverpool.flood_control' doesn't existTable 'fcliverpool.thread_notify' doesn't existTable 'fcliverpool.vcode' doesn't existTable 'fcliverpool.new_users' doesn't exist
Access denied for user 'bartox555'@'10.219.118.5' (using password: NIE)
  Luty 24 2010 23:08:06
Access denied for user 'bartox555'@'10.219.118.5' (using password: NIE)


Takie cos sie wyswietla..

Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 24-02-2010 22:18
Avatar Użytkownika

Rafik89
Administrator


A jaką zawartość pliku login.php a Pan szanowny?
http://rafik.eu Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 25-02-2010 07:30
Avatar Użytkownika

botox
Użytkownik

Ostrzeżeń:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
    include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
    include INFUSIONS."user_info_panel/locale/English.php";
}
if (iMEMBER) {
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<div style='text-align:center'><b><a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a></b></div>\n";
} else{
  header("Location:index.php");
}
} else {
  opentable($locale['060']);
  echo "<div align='center'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y'>".$locale['063']."<br><br>
<input type='submit' name='login' value='Login' class='button'><br>
</form>
<br>
</div>\n";
  closetable();
}

require_once "side_right.php";
require_once "footer.php";
?>

Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 25-02-2010 07:57
Avatar Użytkownika

Rafik89
Administrator


Usunąć to:
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

To:
opentable($locale['060']);

To:
closetable();

To:
require_once "side_right.php";
require_once "footer.php";

Na początku dodać:
if (!defined("IN_FUSION")) { header("Location:index.php"); exit; }

Aby zabezpieczyć skrypt.
http://rafik.eu Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 25-02-2010 08:18
Avatar Użytkownika

botox
Użytkownik

Ostrzeżeń:
No niby jest dobrze, tylko teraz nie ma loga..
Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 25-02-2010 08:27
Avatar Użytkownika

Rafik89
Administrator


Usuń jeszcze :
<div style='text-align:center'>

Wszystkie:
</div>

I
<div align='center'>

http://rafik.eu Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 25-02-2010 15:03
Avatar Użytkownika

botox
Użytkownik

Ostrzeżeń:
Teraz zmieniło się to, że z środka logowanie na lewo przeszło, ale dalej nie ma loga...
Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 27-02-2010 07:01
Avatar Użytkownika

Rafik89
Administrator


Proszę załączyć całego thema na forum.
http://rafik.eu Wyślij Prywatną Wiadomość   
RE: Logowanie w header`ze || Dodane dnia 27-08-2010 01:08
Avatar Użytkownika

kaczka_k
Użytkownik


Ja mam tak jak na gorze wszystko a w mozilli mi sie wyswietla

Nieprawidłowe przekierowanie

Firefox wykrył, że serwer przekierowuje żądanie tego zasobu w sposób uniemożliwiający jego ukończenie.

  *  Problem ten może się pojawić w wyniku zablokowania lub odrzucenia ciasteczek.


Oto kody jakie mam (btw strona mi sie wcale nie wyswietla)

login.php
<?php 
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:index.php"); exit; } 
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) { 
    include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php"; 
} else { 
    include INFUSIONS."user_info_panel/locale/English.php"; 

if (iMEMBER) { 
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) { 
echo "<div style='text-align:center'><b><a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a></b></div>\n"; 
} else{ 
  header("Location:index.php"); 

} else { 
  echo "<div align='center'> 
<form name='loginform' method='post' action='".FUSION_SELF."'> 
".$locale['061']."<br> 
<input type='text' name='user_name' class='textbox' style='width:100px'><br> 
".$locale['062']."<br> 
<input type='password' name='user_pass' class='textbox' style='width:100px'><br> 
<input type='checkbox' name='remember_me' value='y'>".$locale['063']."<br><br> 
<input type='submit' name='login' value='Login' class='button'><br> 
</form> 
<br> 
</div>\n"; 

 
?> 


theme.php
<? 
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System  |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk      |
| email: nick@php-fusion.co.uk        |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/ 
/*--------------------------------------------+
|  COD-support Theme for PHP-Fusion v6.x   |
|    BASED ON "SIMILITUDE" THEME     |
|---------------------------------------------|
| author: Guto                 |
| web: -                   |
| email: alexk12@wp.eu            |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/ 
 
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; } 
require_once INCLUDES."theme_functions_include.php"; 
 
// theme settings 
$body_text = "#c1c1c1"; 
$body_bg = "#4e4e4e"; 
$theme_width = "980"; 
$theme_width_l = "180"; 
$theme_width_r = "180"; 
 
function render_header($header_content) { 
 
global $theme_width, $userdata, $aidlink,$locale; 
 
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'> 
<tr> 
<td> 
<table cellpadding='0' cellspacing='0' width='100%'> 
<tr> 
<td class='full-header'> 
<table cellpadding='0' cellspacing='0' width='100%'> 
<tr> 
<td style='background-image:url(images/2i8agkx.jpg ); width:1000px; height:300px;'>"; include BASEDIR."login.php"; echo " </td> 
</tr> 
</table> 
</td> 
</tr> 
</table>\n"; 
 
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr> 
<td class='white-header'>".showsublinks("·")."</td> 
<td align='right' class='white-header'>".showsubdate()."</td> 
</tr> 
</table>\n"; 
 
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; 
 

 
function render_footer($license=false) { 
 
global $theme_width,$settings; 
 
echo "<center></tr>\n</table>\n"; 
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'> 
<tr><td width='30%'>Clan Theme II by<b> Guto</b></td> 
<td width='40%'><center>".stripslashes($settings['footer'])."</center></td> 
<td width='30%' style='text-align: right'>\n"; 
if (!$license) { echo showcopyright("white")."<br>\n"; } echo showcounter()." 
</td> 
</tr> 
</table> 
</td> 
</tr> 
</table>\n"; 
 

 
function render_news($subject, $news, $info) { 
 
echo "<table cellpadding='1' cellspacing='1' width='100%' class='news-border'> 
<tr><td> 
<table cellpadding='0' cellspacing='0' width='100%' class='border'> 
<tr> 
<td class='capmain'>$subject</td> 
</tr> 
<tr> 
<td class='main-body'>$news</td> 
</tr> 
<tr><td class='closenews'> </td></tr> 
<tr> 
<td align='center' class='news-footer'>\n"; 
echo openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"·").closeform("N",$info['news_id']); 
echo "</td> 
</tr> 
<tr><td class='closenews'> </td></tr> 
</table></td></tr></table>\n"; 
 

 
function render_article($subject, $article, $info) { 
  
echo "<table cellpadding='1' cellspacing='1' width='100%' class='news-border'> 
<tr><td> 
<table width='100%' cellpadding='0' cellspacing='0'> 
<tr> 
<td class='capmain'>$subject</td> 
</tr> 
<tr> 
<td class='main-body'> 
".($info['article_breaks'] == "y" ? nl2br($article) : $article)." 
</td> 
</tr> 
<tr><td class='closenews'> </td></tr> 
<tr> 
<td align='center' class='news-footer'>\n"; 
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']); 
echo "</td> 
</tr> 
<tr><td class='closenews'> </td></tr> 
</table></td></tr></table>\n"; 


 
function opentable($title) { 
 
echo " 
<table cellpadding='1' cellspacing='1' width='100%' class='news-border'> 
<tr><td> 
<table cellpadding='0' cellspacing='0' width='100%' class='border'> 
<tr> 
<td class='capmain'>$title</td> 
</tr> 
<tr> 
<td class='main-body'>\n"; 
 

 
function closetable() { 
 
echo "</td> 
</tr><tr><td class='closenews'> </td></tr> 
</table></td></tr></table>\n"; 
 

 
function openside($title) { 
   
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'> 
<tr> 
<td class='scapmain'>$title</td> 
</tr> 
<tr> 
<td class='side-body'>\n"; 
 

 
function closeside() { 

echo "</td> 
</tr> 
<tr><td class='closetable'> </td></tr> 
</table>\n"; 
tablebreak(); 
 

 
function opensidex($title,$state="on") { 

$boxname = str_replace(" ", "", $title); 
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'> 
<tr> 
<td class='scapmain'>$title  ".panelbutton($state,$boxname)." </td> 
</tr> 
<tr> 
<td colspan='2' class='side-body'> 
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n"; 
 

 
function closesidex() { 
 
echo "</div> 
</td> 
</tr> 
</table>\n"; 
tablebreak(); 
 

 
function tablebreak() { 
 
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n"; 
 

?> 


Pomoże ktoś? ;) Byłbym wdzięczny.
Wyślij Prywatną Wiadomość   
Strona 1 z 3 1 2 3 >
 Szybka Odpowiedź

Temat został zablokowany bądź nie zaakceptowałeś jeszcze regulaminu dostępnego TUTAJ