Seite 1 von 1

install.php und MySQL

Verfasst: 30.09.2011 09:55
von DaSasha
Halloooo und zwar hab ich eine frage in sachen install.php von Mods

Wenn ich zu beispiel nicht domain.de/install.php eingeben möchte, sondern das ganze manuell.... ist sowas möglich, alle daten rauszulesen die ich brauche???

Hier mal ein beispiel:
(Das ist von phpbb3hacks.com das button menu)
Hier ist die install datei...
https://www.phpbb.de/support/pastebin.p ... view&s=830

Kann mir jemand ansätze geben, wie und wo ich was rauslesen kann?
weil das ding hat auch module :P

danke euch schonmal

Re: install.php und MySQL

Verfasst: 30.09.2011 19:44
von hackepeter13
Könnte man. Man brauch blos die entsprechenden Daten sql gerecht gestallten, aber warum so einen elend großen Aufwand betreiben, wenn das Aufrufen der install.php keine Minute dauert. :-?

Re: install.php und MySQL

Verfasst: 30.09.2011 20:11
von DaSasha
Lernen... :grin:

ohne fleiss kein preis ^^

Re: install.php und MySQL

Verfasst: 30.09.2011 20:14
von DaSasha
ich habe jetzt mal den teil rausgesucht

Code: Alles auswählen

                'table_add' => array(
                        array(MENU_BUTTONS_TABLE, array(
                                'COLUMNS'                       => array(
                                        'button_id'              => array('UINT', NULL, 'auto_increment'),
                                        'button_url'             => array('TEXT', ''),
                                        'button_name'            => array('VCHAR', ''),
                                        'button_external'        => array('BOOL', 0),
                                        'button_display'         => array('BOOL', 1),
                                        'button_only_registered' => array('BOOL', 0),
                                ),
                                'PRIMARY_KEY' => array('button_id'),
                        )),
                        array(MENU_COLORS_TABLE, array(
                                'COLUMNS'                       => array(
                                        'color_id'               => array('UINT', NULL, 'auto_increment'),
                                        'color_name'             => array('VCHAR', ''),
                                        'color_text'             => array('VCHAR', 'FFFFFF'),
                                        'color_text_hover'       => array('VCHAR', 'FFFFFF'),
                                        'color_text_hover_decor' => array('VCHAR', 'none'),
                                        'color_text_weight'      => array('VCHAR', 'bold'),
                                        'color_display_search'   => array('BOOL', 1),
                                        'color_text_transform'   => array('VCHAR', 'none'),
                                        'color_align'            => array('VCHAR', 'left'),
                                ),
                                'PRIMARY_KEY' => array('color_id'),
dieser is ja für tabellen

und dieser für insert

Code: Alles auswählen

                        array(MENU_BUTTONS_TABLE, array(
        'button_id'  => '1', 'button_url'  => 'http://www.google.com', 'button_name'  => 'Example', 'button_external'  => '1', 'button_display'  => '1', 'button_only_registered'  => '0',
      )),
      array(MENU_COLORS_TABLE, array(
        'color_id'  => '1', 'color_name'  => 'blue', 'color_text'  => 'FFFFFF', 'color_text_hover'  => 'FFFFFF', 'color_text_hover_decor'  => 'none', 'color_text_weight'  => 'bold', 'color_display_search'  => '1', 'color_text_transform'  => 'none', 'color_align'  => 'left',
      )),
      array(MENU_COLORS_TABLE, array(
        'color_id'  => '2', 'color_name'  => 'black', 'color_text'  => 'FFFFFF', 'color_text_hover'  => 'FFFFFF', 'color_text_hover_decor'  => 'none', 'color_text_weight'  => 'bold', 'color_display_search'  => '1', 'color_text_transform'  => 'none', 'color_align'  => 'left',
      )),
      array(MENU_COLORS_TABLE, array(
        'color_id'  => '3', 'color_name'  => 'brown', 'color_text'  => 'FFFFFF', 'color_text_hover'  => 'FFFFFF', 'color_text_hover_decor'  => 'none', 'color_text_weight'  => 'bold', 'color_display_search'  => '1', 'color_text_transform'  => 'none', 'color_align'  => 'left',
      )),
      array(MENU_COLORS_TABLE, array(
        'color_id'  => '4', 'color_name'  => 'gray', 'color_text'  => 'FFFFFF', 'color_text_hover'  => 'FFFFFF', 'color_text_hover_decor'  => 'none', 'color_text_weight'  => 'bold', 'color_display_search'  => '1', 'color_text_transform'  => 'none', 'color_align'  => 'left',
      )),
      array(MENU_COLORS_TABLE, array(
        'color_id'  => '5', 'color_name'  => 'orange', 'color_text'  => 'FFFFFF', 'color_text_hover'  => 'FFFFFF', 'color_text_hover_decor'  => 'none', 'color_text_weight'  => 'bold', 'color_display_search'  => '1', 'color_text_transform'  => 'none', 'color_align'  => 'left',
is dies korrekt?

Re: install.php und MySQL

Verfasst: 30.09.2011 20:31
von hackepeter13

Code: Alles auswählen

'table_add' => array(
                        array(MENU_BUTTONS_TABLE, array(
                                'COLUMNS'                       => array(
                                        'button_id'              => array('UINT', NULL, 'auto_increment'),
                                        'button_url'             => array('TEXT', ''),
                                        'button_name'            => array('VCHAR', ''),
                                        'button_external'        => array('BOOL', 0),
                                        'button_display'         => array('BOOL', 1),
                                        'button_only_registered' => array('BOOL', 0),
                                ),
                                'PRIMARY_KEY' => array('button_id'),
                        )),
table_add = Befehl für neue Tabelle hinzufügen
MENU_BUTTONS_TABLE = die neue Tabelle
button_* = die Spalten in der Tabelle
alles was in den array steht = die Werte für die Spalte

Und die Insert für die entsprechenden Spalten haste ja erkannt.

Re: install.php und MySQL

Verfasst: 01.10.2011 03:47
von Pyramide
DaSasha hat geschrieben:Lernen... :grin:

ohne fleiss kein preis ^^
Dann solltest du hier anfangen: http://www.phpbb.com/mods/umil/

Re: install.php und MySQL

Verfasst: 01.10.2011 09:47
von DaSasha
Ich danke euch beiden... :D