close× Call Us +49 (1805) 01 29 59

SGI Fusion
Thread Author: limus
Thread ID: 3149
Thread Info
Es gibt 37 Beiträge zu diesem Thema, und es wurde 6614 mal angesehen.  Es gibt auch Dateianhänge.
Wer ist hier? 1 Gäste

 Thema drucken
Datenbank
limus
So habe jetzt alles geändert


# Mysql Config Stuff #
$dbhost = "by-limus24.de.mysql"; // MySQL HOST
$dbuser = "by_limus24_de"; // your Mysql Username
$dbpass = "**********"; // Your mysql password
$dbname = "by_limus24_de"; // the name of the database BANEX is on


# Site config stuff #
$cfg_siteurl = "http://www.by-limus24.de"; // your URL
$cfg_folder = "/banex"; // folder to BANEX
$cfg_sitename = "by-limus24"; // the name of your site
$cfg_bxcname = "My Exchange"; // the name of your banner exhange

# Header (optional) #
# If you want, make a file that includes your META tags, #
# CSS, or anything like that and tell me where it is at #
# (relative to the Banex directory) #
$header = "../header.php";



was muss hinter $cfg_bxcname= ?


Ansonsten bleibt alles wie bisher die Daten oben hab ich aus der config.php

siehe hier:


<?php
// database settings
$db_host = "by-limus24.de.mysql";
$db_user = "by_limus24_de";
$db_pass = "************";
$db_name = "by_limus24_de";
$db_prefix = "fusion_";
define("DB_PREFIX", "fusion_");
?>

<div style="text-align:center"><b style="font-size:large">Besuchen Sie auch unsere <a href="http://www.one4all.by-limus24.de" target="_blank">Webseite</a>.</b></div><div style="text-align:center"><img style="font-size:10pt"></div>
<center><img src="http://www.by-limus24.de/livepreview.jpg" width="350" height="240" border="2" alt="Voten fürs ...">
</center>
 
SC-Ad-Bot
 
emblinux
steht doch alles als Kommentar dahinter.

$cfg_bxcname hier trägst du den Namen/Titel für deinen Bannertausch ein. Diese Variable wird als Seitentitel und im Mailversand als Betreff verwendet. Sollte also erst mal egal sein, was da drinne steht.

dann öffne bitte mal die install.php und füge hinter @include "$header"; folgendes noch ein.


if ( isset($_GET['step']) )
  {                       
    $step = $_GET['step'];
  }


Leider ist dieses Script schlecht programmiert und geht davon aus, das der Server mit Register Globals On arbeitet, welches als Sicherheitsrisiko betrachtet wird und somit von den meisten Hostern auf Off gestellt ist. Somit kann man nicht so einfach auf GET oder POST Variablen zugreifen.

Es kann also sein, das du im fortlaufenden Betrieb noch Probleme bekommen könntest.
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
limus
Das ist die original install.php


require "inc/lib.inc";
@include "$header";

$db = mysql_connect($dbhost, $dbuser, $dbpass)
      or die ("could not connect to MySQL");
      mysql_select_db($dbname, $db)
         or die ("could not connect to $dbname");

If (!isset($step)){
Echo "Welcome!<br>Make sure you have edited all of lib.inc before you run this script...<br>Also make sure you have a Database in MySQL named $dbname<br>";
Echo "<br><A href=\"install.php?step=1\">Start Installation</a>";
}

Elseif ($step==1){
Echo "<p>creating the users table in mysql... <br>";
mysql_query("DROP TABLE IF EXISTS users");
mysql_query("CREATE TABLE users (
  id tinyint(4) NOT NULL auto_increment,
  user_login varchar(25) NOT NULL default '',
  user_pass varchar(255) NOT NULL default '',
  name varchar(25) NOT NULL default '',
  email varchar(75) NOT NULL default '',
  site_url varchar(255) NOT NULL default '',
  site_name varchar(255) NOT NULL default '',
  impressions int(50) NOT NULL default '0',
  clicks int(50) NOT NULL default '0',
  imp_left text NOT NULL,
  lastip text NOT NULL,
  lastbannerid text NOT NULL,
  half text NOT NULL,
  act tinyint(1) NOT NULL default '0',
  numban tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (id),
  UNIQUE KEY id (id),
  UNIQUE KEY user_login (user_login)
)");
Echo "Done</p>";

Echo "<p>creating the banners table in mysql... <br>";
mysql_query("DROP TABLE IF EXISTS banners");
mysql_query("CREATE TABLE banners (
  id tinyint(5) NOT NULL auto_increment,
  user varchar(75) NOT NULL default '',
  url varchar(255) NOT NULL default '',
  text text NOT NULL,
  act tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (id),
  UNIQUE KEY id (id,url)
)");

Echo "Done</p>";
Echo "Good, Step one is complete, now move on to <a href=\"install.php?step=2\">Step 2</a>!";
}

ElseIf ($step==2){
echo "<center>";
include "templates/install.inc";
echo "</center>";
}

ElseIf ($step==3){
            $user_pw = md5($PHP_AUTH_PW);
Echo "inserting your default login stuff into mysql \n";
$result = mysql_query ("INSERT INTO users (id, user_login, user_pass, site_url, site_name, name, email, imp_left, act) VALUES (1, '$cfg_defaultusername', '$user_pw', '$cfg_siteurl', '$cfg_sitename', '$cfg_defaultname', '$cfg_defaultemail', 9999999999, '1')");
Echo "Done ($result)</p>";

Echo "BANEX installation is complete!<br><b>DELETE INSTALL.PHP</b><Br>You can now make a link to <a href=\"index.html\">index.html</a> (after you edit it) and let your users sign up and all.<br><a href=\"members.php\">[Login]</a> and add the default banners (you also have to accept them in Admin Mode)";
}

?>


wenn ich jetzt den code dahinter eingebe bekomme ich das


// YOU MUST LEAVE ALL COPYRIGHT THINGS AND LINKS INPLACE // /* BANEX by TREY BRIGGS This program is free software; you can redistribute it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Banex version 1, Copyright (C) 2002 trey briggs */ require "inc/lib.inc"; @include "$header"; if ( isset($_GET['step']) ) { $step = $_GET['step']; } $db = mysql_connect($dbhost, $dbuser, $dbpass) or die ("could not connect to MySQL"); mysql_select_db($dbname, $db) or die ("could not connect to $dbname"); Echo "Welcome!
Make sure you have edited all of lib.inc before you run this script...
Also make sure you have a Database in MySQL named $dbname
"; Echo "
Start Installation"; } Elseif ($step==1){ Echo "

creating the users table in mysql...
"; mysql_query("DROP TABLE IF EXISTS users"); mysql_query("CREATE TABLE users ( id tinyint(4) NOT NULL auto_increment, user_login varchar(25) NOT NULL default '', user_pass varchar(255) NOT NULL default '', name varchar(25) NOT NULL default '', email varchar(75) NOT NULL default '', site_url varchar(255) NOT NULL default '', site_name varchar(255) NOT NULL default '', impressions int(50) NOT NULL default '0', clicks int(50) NOT NULL default '0', imp_left text NOT NULL, lastip text NOT NULL, lastbannerid text NOT NULL, half text NOT NULL, act tinyint(1) NOT NULL default '0', numban tinyint(1) NOT NULL default '0', PRIMARY KEY (id), UNIQUE KEY id (id), UNIQUE KEY user_login (user_login) )"); Echo "Done
"; Echo "

creating the banners table in mysql...
"; mysql_query("DROP TABLE IF EXISTS banners"); mysql_query("CREATE TABLE banners ( id tinyint(5) NOT NULL auto_increment, user varchar(75) NOT NULL default '', url varchar(255) NOT NULL default '', text text NOT NULL, act tinyint(1) NOT NULL default '0', PRIMARY KEY (id), UNIQUE KEY id (id,url) )"); Echo "Done
"; Echo "Good, Step one is complete, now move on to Step 2!"; } ElseIf ($step==2){ echo "
"; include "templates/install.inc"; echo "
"; } ElseIf ($step==3){ $user_pw = md5($PHP_AUTH_PW); Echo "inserting your default login stuff into mysql \n"; $result = mysql_query ("INSERT INTO users (id, user_login, user_pass, site_url, site_name, name, email, imp_left, act) VALUES (1, '$cfg_defaultusername', '$user_pw', '$cfg_siteurl', '$cfg_sitename', '$cfg_defaultname', '$cfg_defaultemail', 9999999999, '1')"); Echo "Done ($result)

"; Echo "BANEX installation is complete!
DELETE INSTALL.PHP
You can now make a link to index.html (after you edit it) and let your users sign up and all.
[Login] and add the default banners (you also have to accept them in Admin Mode)"; } ?>

<div style="text-align:center"><b style="font-size:large">Besuchen Sie auch unsere <a href="http://www.one4all.by-limus24.de" target="_blank">Webseite</a>.</b></div><div style="text-align:center"><img style="font-size:10pt"></div>
<center><img src="http://www.by-limus24.de/livepreview.jpg" width="350" height="240" border="2" alt="Voten fürs ...">
</center>
 
emblinux
Dann hast du etwas entfernt.

Du solltest lediglich den Code, den ich gepostet habe hinzufügen. Die entsprechende Stelle sollte dann so aussehen.


<?php

........

require "inc/lib.inc";
@include "$header";

if ( isset($_GET['step']) )
  {                       
    $step = $_GET['step'];
  }

$db = mysql_connect($dbhost, $dbuser, $dbpass)
      or die ("could not connect to MySQL");
      mysql_select_db($dbname, $db)
         or die ("could not connect to $dbname");

....

?>

Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
limus
Sorry habe ich

require "inc/lib.inc";
@include "$header";

if ( isset($_GET['step']) )
  {                       
    $step = $_GET['step'];
   }

$db = mysql_connect($dbhost, $dbuser, $dbpass)
      or die ("could not connect to MySQL");
      mysql_select_db($dbname, $db)
         or die ("could not connect to $dbname");


If (!isset($step)){
Echo "Welcome!<br>Make sure you have edited all of lib.inc before you run this script...<br>Also make sure you have a Database in MySQL named $dbname<br>";
Echo "<br><A href="install.php?step=1">Start Installation</a>";
}


Und wie beschrieben bekomme ich dann das wenn ich install.php ausführen will



Zitat

// YOU MUST LEAVE ALL COPYRIGHT THINGS AND LINKS INPLACE // /* BANEX by TREY BRIGGS This program is free software; you can redistribute it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Banex version 1, Copyright (C) 2002 trey briggs */ require "inc/lib.inc"; @include "$header"; if ( isset($_GET['step']) ) { $step = $_GET['step']; $db = mysql_connect($dbhost, $dbuser, $dbpass) or die ("could not connect to MySQL"); mysql_select_db($dbname, $db) or die ("could not connect to $dbname"); If (!isset($step)){ Echo "Welcome!
Make sure you have edited all of lib.inc before you run this script...
Also make sure you have a Database in MySQL named $dbname
"; Echo "
Start Installation"; } Elseif ($step==1){ Echo "

creating the users table in mysql...
"; mysql_query("DROP TABLE IF EXISTS users"); mysql_query("CREATE TABLE users ( id tinyint(4) NOT NULL auto_increment, user_login varchar(25) NOT NULL default '', user_pass varchar(255) NOT NULL default '', name varchar(25) NOT NULL default '', email varchar(75) NOT NULL default '', site_url varchar(255) NOT NULL default '', site_name varchar(255) NOT NULL default '', impressions int(50) NOT NULL default '0', clicks int(50) NOT NULL default '0', imp_left text NOT NULL, lastip text NOT NULL, lastbannerid text NOT NULL, half text NOT NULL, act tinyint(1) NOT NULL default '0', numban tinyint(1) NOT NULL default '0', PRIMARY KEY (id), UNIQUE KEY id (id), UNIQUE KEY user_login (user_login) )"); Echo "Done
"; Echo "

creating the banners table in mysql...
"; mysql_query("DROP TABLE IF EXISTS banners"); mysql_query("CREATE TABLE banners ( id tinyint(5) NOT NULL auto_increment, user varchar(75) NOT NULL default '', url varchar(255) NOT NULL default '', text text NOT NULL, act tinyint(1) NOT NULL default '0', PRIMARY KEY (id), UNIQUE KEY id (id,url) )"); Echo "Done
"; Echo "Good, Step one is complete, now move on to Step 2!"; } ElseIf ($step==2){ echo "
"; include "templates/install.inc"; echo "
"; } ElseIf ($step==3){ $user_pw = md5($PHP_AUTH_PW); Echo "inserting your default login stuff into mysql \n"; $result = mysql_query ("INSERT INTO users (id, user_login, user_pass, site_url, site_name, name, email, imp_left, act) VALUES (1, '$cfg_defaultusername', '$user_pw', '$cfg_siteurl', '$cfg_sitename', '$cfg_defaultname', '$cfg_defaultemail', 9999999999, '1')"); Echo "Done ($result)

"; Echo "BANEX installation is complete!
DELETE INSTALL.PHP
You can now make a link to index.html (after you edit it) and let your users sign up and all.
[Login] and add the default banners (you also have to accept them in Admin Mode)"; } ?>

Bearbeitet von limus am 27.10.2010 00000010 10:32
<div style="text-align:center"><b style="font-size:large">Besuchen Sie auch unsere <a href="http://www.one4all.by-limus24.de" target="_blank">Webseite</a>.</b></div><div style="text-align:center"><img style="font-size:10pt"></div>
<center><img src="http://www.by-limus24.de/livepreview.jpg" width="350" height="240" border="2" alt="Voten fürs ...">
</center>
 
emblinux
kann es sein, das du am Anfang der install.php das <?php entfernt hast ?
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
limus
upps ja war weg jetzt ist es wieder drin, wenn ich jetzt die install aufrufe bekomme ich nur ne leere Seite
<div style="text-align:center"><b style="font-size:large">Besuchen Sie auch unsere <a href="http://www.one4all.by-limus24.de" target="_blank">Webseite</a>.</b></div><div style="text-align:center"><img style="font-size:10pt"></div>
<center><img src="http://www.by-limus24.de/livepreview.jpg" width="350" height="240" border="2" alt="Voten fürs ...">
</center>
 
emblinux
dann weiß ich jetzt auch nicht weiter. Ich habe es bei mir lokal getestet mit der entsprechenden Anpassung in der install.php und es funktioniert, zu mindestens die Installation.


Eine leere Seite ist immer schlecht zur Fehleranalyse. Das kann mehrere gründe haben.
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
limus
Ich habe jetzt alles nochmal neu gemacht Installation hat auch geklappt Und schon kommt das nächst Problem hab nen Admin Namen und Passwort wenn ich mich jetzt einloggen will geht es nicht weiter sprich Anmeldeseite bleibt.
<div style="text-align:center"><b style="font-size:large">Besuchen Sie auch unsere <a href="http://www.one4all.by-limus24.de" target="_blank">Webseite</a>.</b></div><div style="text-align:center"><img style="font-size:10pt"></div>
<center><img src="http://www.by-limus24.de/livepreview.jpg" width="350" height="240" border="2" alt="Voten fürs ...">
</center>
 
emblinux
Und das ist genau das, was ich vorhin gemeint habe.

Das Script ist schon ziemlich alt und setzt voraus, das dein Server so konfiguriert ist, das Register Globals ON sind. Dein Hoster wird aber aus Sicherheitsgründen diese Einstellung auf OFF gestellt haben. Demzufolge müsste man nun das ganze Script umschreiben.

Aber du kannst vorher noch folgendes probieren.

Füge in die Datei lib.inc am Anfang hinter <?php folgendes ein.


// If register_globals is turned off, extract super globals (php 4.2.0+)
if (ini_get('register_globals') != 1) {                                 
        if ((isset($_POST) == true) && (is_array($_POST) == true)) extract($_POST, EXTR_OVERWRITE);
        if ((isset($_GET) == true) && (is_array($_GET) == true)) extract($_GET, EXTR_OVERWRITE);   
}


Ich kann dir aber nicht garantieren, das es funktioniert aber einen Versuch ist es wert. Sonst bleibt dir nur alles umzuschreiben oder dir ein anderes Script zu suchen.
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
limus
Super Danke hat funktioniert. klasse

Sorry zu früh gefreut er öffnet jetzt zwar das Adminmenü aber sobald man in der Navigation was auswählt spring er zurück zur login Seite
Bearbeitet von limus am 27.10.2010 00000010 13:14
<div style="text-align:center"><b style="font-size:large">Besuchen Sie auch unsere <a href="http://www.one4all.by-limus24.de" target="_blank">Webseite</a>.</b></div><div style="text-align:center"><img style="font-size:10pt"></div>
<center><img src="http://www.by-limus24.de/livepreview.jpg" width="350" height="240" border="2" alt="Voten fürs ...">
</center>
 
emblinux
Tja, dann wird dir leider nichts weiter übrig bleiben, als das Script umzuschreiben oder dir ein anderes zu suchen.

Vielleicht schau ich mir das morgen nochmal an, eventuell gibts noch eine andere Lösung.
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
limus
Danke wäre echt nett. klasse
<div style="text-align:center"><b style="font-size:large">Besuchen Sie auch unsere <a href="http://www.one4all.by-limus24.de" target="_blank">Webseite</a>.</b></div><div style="text-align:center"><img style="font-size:10pt"></div>
<center><img src="http://www.by-limus24.de/livepreview.jpg" width="350" height="240" border="2" alt="Voten fürs ...">
</center>
 
emblinux
Leider erfordert dieses Script mehr Anpassungsarbeit, damit es korrekt funktioniert. Dazu fhelt mir allerdings die Zeit. Daher habe ich dir mal ein Paar andere Scripte herausgesucht.

Finden tust du diese Scripte auf http://www.dreamcodes.com/

Für einige muss man sich dort registrieren.
Hier nun die Direktlinks.

http://www.dreamcodes.biz/download/?s=info&id=890
http://www.dreamcodes.biz/download/?s=info&id=1719
http://www.dreamcodes.biz/download/?s=info&id=1586
http://www.dreamcodes.biz/download/?s=info&id=1673
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
limus
Danke.

Habe mich für den ersten Link entschieden. Hat soweit alles geklappt nur kann ich die db.sql über meinen phpmyadmin nicht ausführen.
<div style="text-align:center"><b style="font-size:large">Besuchen Sie auch unsere <a href="http://www.one4all.by-limus24.de" target="_blank">Webseite</a>.</b></div><div style="text-align:center"><img style="font-size:10pt"></div>
<center><img src="http://www.by-limus24.de/livepreview.jpg" width="350" height="240" border="2" alt="Voten fürs ...">
</center>
 
emblinux
kopiere mal den Inhalt der db.sql in das SQL Fenster bei MySql und führe es so aus. Also nicht per Import.
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
limus
Hab ich gemacht Wenn ich jetzt auf die Adminseite gehe erscheint auch alles nur wenn ich das vorgegebene Passwort einsetze passiert nix


Zitat

Banner-EXCHANGE
ADMIN
Mitglieder
- Mitglieder auflisten
- Mitglieder suchen
- Mitgl., die manipulieren
- unaufgeschaltene User
- inaktive User auflisten
- E-Mails versenden
- Extra-Credits
- Referrer-Bestätigen

Konfiguration
- Templates ändern
- Seiten ändern
- Referrer-Programm
- Tauschrate
- Bannergrössen
- HTML-Code
- Kategorien
- Allgemeines

Statistik
- pro Tag
- pro Monat
- Allgemein

Bitte Passwort eingeben


Passwort:





bekomme bei mysql folgende Fehlermeldung

Error

SQL query:

# --------------------------------------------------------
#
# Table structure for table 'b_auf'
#
CREATE TABLE b_monstat(
id mediumint( 8 ) unsigned DEFAULT '0' NOT NULL ,
monat tinyint( 3 ) unsigned DEFAULT '0' NOT NULL ,
jahr smallint( 5 ) unsigned DEFAULT '0' NOT NULL ,
pauf mediumint( 8 ) unsigned DEFAULT '0' NOT NULL ,
pklick mediumint( 8 ) unsigned DEFAULT '0' NOT NULL ,
KEY id_2( id, monat, jahr )
);

MySQL said: Documentation
#1050 - Table 'b_monstat' already exists
Bearbeitet von limus am 29.10.2010 00000010 10:45
<div style="text-align:center"><b style="font-size:large">Besuchen Sie auch unsere <a href="http://www.one4all.by-limus24.de" target="_blank">Webseite</a>.</b></div><div style="text-align:center"><img style="font-size:10pt"></div>
<center><img src="http://www.by-limus24.de/livepreview.jpg" width="350" height="240" border="2" alt="Voten fürs ...">
</center>
 

Springe ins Forum:

 Ähnliche Themen 

TEST
Thema Forum Antworten Letzter Beitrag
Datenbank fehler Infusionen 7 24.03.2017 00000003 07:20
1 Datenbank - 2x PHP-Fusion PHP & MySql 6 08.08.2013 00000008 04:13
User Datenbank zurück spielen Allgemeine Support Fragen 3 23.05.2013 00000005 07:54
Datenbank Problem(chen) PHP & MySql 3 05.02.2013 00000002 10:48
Datenbank übernehmen PHP & MySql 2 22.02.2012 00000002 15:41
Gr@n@dE