Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Psywerx puma - nie otworzy sie w podstronie, blad w linii
piotrek_mag
post
Post #1





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 23.09.2006

Ostrzeżenie: (0%)
-----


Witam,

Gdy uzywam psywerx na stronie glownej jest wszystko ok. Gdy robie podstrone psywerx wyswietla taki blad.


Blad
Kod
Fatal error: Cannot redeclare rpath() (previously declared in /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/memberlist.php:23) in /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/logowanie.php on line 25


linie 23-27:
  1. <?php
  2. $build = "180204.1940.RC2.00.09.00";
  3.  
  4. function rpath(){
  5. $path = dirname(__FILE__);
  6. return str_replace("", "/", $path)."/";
  7. ?>
.

Oczekuje na pomoc dziekuje.


--------------------
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
dr_bonzo
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

Ostrzeżenie: (0%)
-----


Dwukrotnie includujesz plikztym fragmentem w memberlist.php i w logowanie.php.


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post
piotrek_mag
post
Post #3





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 23.09.2006

Ostrzeżenie: (0%)
-----


I co usunac to jest plik memberlist:
  1. <?php
  2.  
  3. /////////////////////////////////////////////////////////////////////////////////////
  4. // what is:  PSYWERX PUMA (Protection & User MAnagement)
  5. // who did:  PSYWERX php TEAM
  6. // version:  1.0.RC2
  7. // build:  180204.1940.RC2.00.09.00
  8. /////////////////////////////////////////////////////////////////////////////////////
  9. /*
  10.  
  11. if(!function_exists('session_cache_limiter'))
  12.   @session_cache_limiter("public, must-revalidate");
  13.  
  14. set_magic_quotes_runtime(0);
  15. */
  16.  
  17. // PUMA version
  18. $curver = "1.0.RC2";
  19. $build = "180204.1940.RC2.00.09.00";
  20.  
  21. function rpath(){
  22. $path = dirname(__FILE__);
  23. return str_replace("", "/", $path)."/";
  24. }
  25.  
  26. $fpath = rpath();
  27.  
  28. // Config file
  29. require("config.php");
  30. // Functions file
  31. require_once("functions.php");
  32.  
  33. error_reporting(E_ALL ^ E_NOTICE);
  34. global $_GET;
  35.  
  36. if(!isset($_GET["id"])){ $id = "";}else{$id = $_GET["id"];}
  37. if(!isset($_GET["user"])){ $user = "";}else{$user = $_GET["user"];}
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. if(ban()){
  46.  
  47. if($id == view){
  48.  
  49. $user = md5($user);
  50. $filename = $fpath."./userdata/$user/$user.php";
  51. $data = file($filename);
  52.  
  53. foreach($data as $value){
  54. list($unempowered,$usrn,$pass,$email,$status,$rank,$random,$aurl,$emlalw,$fld1,$fld2,$fld3,$fld4,$fld5,$fld6,$fld7,$fld8,$fld9,$fld10,$fld11,$fld12,$fld13,$fld14,$fld15,$fld16,$fld17,$fld18,$fld19,$fld20) = explode("{|}",$value);
  55. }
  56. $fields = array($fld1,$fld2,$fld3,$fld4,$fld5,$fld6,$fld7,$fld8,$fld9,$fld10,$fld11,$fld12,$fld13,$fld14,$fld15,$fld16,$fld17,$fld18,$fld19,$fld20);
  57.  
  58. $content = <<<html
  59. <b>$lang_proc104<br><br>
  60. <table width="400" border="0" cellpadding="0" cellspacing="1" >
  61.  
  62. <tr> 
  63. <td width="40%" valign="top" >
  64. html;
  65.  
  66. $avatar = @getimagesize($aurl);
  67. $type = $avatar[2];
  68.  
  69. if($type != 0){
  70.  
  71. if($avatar[0] > $awt or $avatar[1] > $aht){
  72.  
  73. $content .= "<img width="$awt" height="$aht" src="$aurl"><br><br>";
  74.  
  75. }else{
  76. $content .= "<img src="$aurl"><br><br>";
  77. }
  78. }else{
  79. $content .= $lang_proc92;
  80. }
  81.  
  82. $content .= <<<html
  83. ?>



a to logowanie.php (czyli index.php):

  1. <?php
  2.  
  3. /////////////////////////////////////////////////////////////////////////////////////
  4. // what is:  PSYWERX PUMA (Protection & User MAnagement)
  5. // who did:  PSYWERX php TEAM
  6. // version:  1.0.RC2
  7. // build:  180204.1940.RC2.00.09.00
  8. /////////////////////////////////////////////////////////////////////////////////////
  9. // TODO:
  10. // 1. - Fix ' PM issue
  11. /////////////////////////////////////////////////////////////////////////////////////
  12. /*
  13. if(!function_exists('session_cache_limiter'))
  14.   @session_cache_limiter("public, must-revalidate");
  15.  
  16. set_magic_quotes_runtime(0);
  17. */
  18.  
  19. // PUMA version
  20. $curver = "1.0.RC2";
  21. $build = "180204.1940.RC2.00.09.00";
  22.  
  23. function rpath(){
  24. $path = dirname(__FILE__);
  25. return str_replace("", "/", $path)."/";
  26. }
  27.  
  28. $fpath = rpath();
  29.  
  30. // Config file
  31. require("config.php");
  32. // Functions file
  33. require_once("functions.php");
  34.  
  35. error_reporting(E_ALL ^ E_NOTICE);
  36. global $_GET;
  37.  
  38. if(!isset($_GET["id"])){ $id = "";}else{$id = $_GET["id"];}
  39. if(!isset($_GET["page"])){ $page = "";}else{$page = $_GET["page"];}
  40. if(!isset($_GET["pm"])){ $pm = "";}else{$pm = $_GET["pm"];}
  41.  
  42. // Logout
  43. if($id == logout){
  44.  
  45. // Records Logout time
  46. if($cookies == 2){
  47. $MyUsrn = $_SESSION["publicusrn"];
  48. }else{
  49. $MyUsrn = $_COOKIE["publicusrn"];
  50. }
  51.  
  52. $MyUsrn = md5($MyUsrn);
  53. $filename = $fpath."userdata/$MyUsrn/pm.php";
  54. $data = file($filename);
  55. foreach($data as $value){
  56. list($unempowered,$logt,$sndt) = explode("{|}",$value);
  57. }
  58. $fd = fopen ($filename, "w");
  59.  
  60. $logt = time();
  61. $pmn = ("<?php die("ACCESS DENIED");?>{|}$logt{|}$sndt");  
  62.  
  63. fputs($fd, $pmn);
  64. fclose($fd);
  65.  
  66. if($cookies == 2){
  67. session_destroy();
  68. header("Location: ./logowanie.php");
  69. }else{
  70. setcookie("publicuser", "", time() - 3600, "/");
  71. setcookie("publicusrn", "", time() - 3600, "/");
  72. setcookie("publicpass", "", time() - 3600, "/");
  73. setcookie("publicsuper", "", time() - 3600, "/");
  74. setcookie("publicnormal", "", time() - 3600, "/");
  75. setcookie("publicrank", "", time() - 3600, "/"); 
  76. header("Location: ./logowanie.php");
  77. }
  78. }
  79.  
  80. if(ban()){
  81.  
  82. if(!isset($_SESSION["publicuser"]) and !isset($_COOKIE["publicuser"])){
  83.  
  84. // LOCATION: Login
  85. $content = <<<html
  86.  
  87.  
  88. <form action="logowanie.php?id=login" method="POST">
  89. <table width="145" height="25" border="0" cellpadding="0" cellspacing="0" >
  90. <tr> 
  91. <td width="50%" height="25" valign="top" >
  92. <b><FONT COLOR="#2E76C1">U</FONT></b>zytkownik:


--------------------
Go to the top of the page
+Quote Post
Bartezz
post
Post #4





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 5.01.2007

Ostrzeżenie: (0%)
-----


A co pisze w pliku
logger.php
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 09:21