Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> pafiledb, problem i prosba
filgra
post
Post #1





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 16.07.2006

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


Mam problem i prosbe dotyczącą pafiledb. Zacznijmy on prosby:

Moglby mi ktos pomoc przy pewnej modyfikacji do pafiledb? Na stronie http://www.slask-wroclaw.com/pafiledb.php jest ono juz zmodyfikowane, ale nie podlicza ile jest w sumie plikow w kategorii "Filmiki z meczów". W php jestem zielony wiec raczej nic na to nie poradze, a wierze ze moglby ktos zrobic tą malą modyfikacje nawet za free.

A teraz problem:

Otóż chce przenieść ten system downloadu na inny serwer, wiec zgrywam pliki ze starego serwera na nowy (bez bazy.baza mi nie potrzebna), modyfikuje pliki config.php i mysql.php tak jak mają byc, a przy instalacji, w pierwszym kroku pojawia sie taki błąd:

Cytat
Fatal error: Call to undefined function: adonewconnection() in /home/slask/public_html/includes/config.php on line 56


O co chodzi? Moim zdaniem z plikami wszystko jest w porzadku.

Bardzo prosze o pomoc

pozdro[code]

Ten post edytował filgra 14.03.2007, 17:04:12
Go to the top of the page
+Quote Post
kossa
post
Post #2





Grupa: Zarejestrowani
Postów: 1 165
Pomógł: 9
Dołączył: 9.04.2002
Skąd: Toruń

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


Błąd ten informuje że w pliku config.php w lini 56 jest wywołanie funkcji której system nie może odnaleść. Sprawdź czy skopiowałeś wszystkie pliki, może jakiś plikz funkcjami który jest includowany do systemu został pominięty albo zrobiłeś literówkę w nazwie funkcji.

Łukasz


--------------------
Go to the top of the page
+Quote Post
filgra
post
Post #3





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 16.07.2006

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


plik config.php wygląda tak:

  1. <?php
  2.  
  3. /***************************************************************
  4. * paFileDB 3.6  *
  5. * *
  6. * Author: PHP Arena <http://www.phparena.net> *
  7. * File Version 3.6  *
  8. * Copyright Š2005-2007 PHP Arena. All Rights Reserved.  *
  9. * *
  10. * THIS FILE MAY NOT BE REDISTRIBUTED. *
  11. * For more information, please see the PHP Arena license at:  *
  12. * <a href="http://www.phparena.net/license.html" target="_blank">http://www.phparena.net/license.html</a>  *
  13. ***************************************************************/
  14.  
  15. /* Database Configuration */
  16.  
  17. /* Database driver to use. Any ADOdb driver can be used, however, only mysql and 
    mysqli have been tested and included with paFileDB. If you don't know what to put here, you should leave it as mysql */
  18. $dbDriver = "xxx";
  19.  
  20. /* Database server to connect to. */
  21. $dbServer = "xxx";
  22.  
  23. /* Username to use to connect to the database. */
  24. $dbUser = "xxx";
  25.  
  26. /* Password for the above username. */
  27. $dbPass = "xxx";
  28.  
  29. /* The name of the database to use. */
  30. $dbName = "xxx";
  31.  
  32. /* Table name prefix. Anything entered here will be added before the table name, 
    allowing multiple installations of paFileDB in the same database */
  33. $dbPrefix = "xxx";
  34.  
  35. /* Set to true to use persistent connections, otherwise set to false. This should
     be kept as true unless you experience problems with the database connection, the
    n it should be set to false.*/
  36. $dbPConnect = true;
  37.  
  38. /* Other settings */
  39.  
  40. /* Disallowed extensions for file uploads. If anyone gains unauthorized
  41. access to your admin center, or one of your admins decides to go 
  42. the-internet-equivalent-of-postal, they can upload a script file using 
  43. the Add File function and run it in their browser, which can allow them 
  44. to do very, very bad things to your paFileDB, website, and entire server.
  45. You can use the disallowed extensions to prevent the uploading of various 
  46. script types, such as PHP. It is recommended that you do not remove any
  47. of the extensions in this list, and if you want to upload a script for 
  48. others to download, it's best to zip it first.
  49.  
  50. Separate extensions by a space, and do not add the period before them.
  51. */
  52. $disallowedExtensions = "php php3 php4 php5 phtml shtml fcgi cgi pl asp aspx jsp py sh cfm";
  53.  
  54.  
  55. /* DO NOT CHANGE ANYTHING BELOW THIS LINE */
  56. $db = &ADONewConnection($dbDriver);
  57. if ($dbPConnect) {
  58. $db->PConnect($dbServer, $dbUser, $dbPass, $dbName);
  59. } else {
  60. $db->Connect($dbServer, $dbUser, $dbPass, $dbName);
  61. }
  62. ?>


Ten post edytował filgra 14.03.2007, 18:17:02
Go to the top of the page
+Quote Post
PiratNowegoPokol...
post
Post #4





Grupa: Zarejestrowani
Postów: 132
Pomógł: 0
Dołączył: 12.10.2006

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


$db = &ADONewConnection($dbDriver); :?:
ADONewConnection - Nie masz tego zdeklarowanego ... może dodajesz plik config.php na początku a plik zawierający tą funkcje czy co to jest dopiero potem ...
Go to the top of the page
+Quote Post
filgra
post
Post #5





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 16.07.2006

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


wgralem domyslny plik config.php na serwer i dalej to samo

i co, nikt nie jest w stanie mi pomoc? sad.gif
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: 21.08.2025 - 21:59