Jetzt kostenlos Anmelden!

LGBKAI Männlich

lernt alles kennen

Beiträge: 92

Geschlecht: Männlich

Wohnort: Offenbach

PHPKIT Version: 1.6.1

1

Freitag, 11. April 2008, 17:37

WBB 3 installieren

Wie öffne ich die install.php von wbb3?ich kann nüx machen wenn ich auf die seite gehe kommt das:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /www/htdocs/XXXXXX/wbb3/files/acp/install.php on line 14
wieso geht das nicht?

Edit by Master-B: Ich habe mal den direkten PATH rausgenommen.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Master-B« (11. April 2008, 17:58)

  • Zum Seitenanfang
  • Zum Seitenende

Joe Männlich

|-| [_] |\| T 3 |) EN OH OH BEH

Beiträge: 222

Geschlecht: Männlich

PHPKIT Version: keine

2

Freitag, 11. April 2008, 17:56

Erstmal verschieb ich das in 'ne allgemeinere Ecke, hat mit PHPKit ja nix zu tun.

Zweitens: Was steht in der install.php in Zeile 14? Am besten postest du noch ein paar Zeilen drüber und drunter.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Joe« (11. April 2008, 18:14)

  • Zum Seitenanfang
  • Zum Seitenende

LGBKAI Männlich

lernt alles kennen

Beiträge: 92

Geschlecht: Männlich

Wohnort: Offenbach

PHPKIT Version: 1.6.1

3

Freitag, 11. April 2008, 19:06

des

PHP-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/**
 * @author    Marcel Werk
 * @copyright    2001-2007 WoltLab GmbH
 * @license    WoltLab Burning Board License <http://www.woltlab.com/products/burning_board/license.php>
 */
$packageID $this->installation->getPackageID();

// set installation date
$sql "UPDATE    wcf".WCF_N."_option
    SET    optionValue = ".TIME_NOW."
    WHERE    optionName = 'install_date'
        AND packageID = ".$packageID;
WCF::getDB()->sendQuery($sql);

// set page url and cookie path
if (!empty($_SERVER['SERVER_NAME'])) {
    // domain
    $pageURL 'http://' $_SERVER['SERVER_NAME'];
    
    // port
    if (!empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != 80) {
        $pageURL .= ':' $_SERVER['SERVER_PORT'];
    }
    
    // file
    $path FileUtil::removeTrailingSlash(FileUtil::getRealPath(FileUtil::addTrailingSlash(dirname(dirname(WCF::getSession()->requestURI))) . $this->installation->getPackage()->getDir()));
    $pageURL .= $path;
    
    $sql "UPDATE    wcf".WCF_N."_option
        SET    optionValue = '".escapeString($pageURL)."'
        WHERE    optionName = 'page_url'
            AND packageID = ".$packageID;
    WCF::getDB()->sendQuery($sql);
    
    $sql "UPDATE    wcf".WCF_N."_option
        SET    optionValue = '".escapeString($path)."'
        WHERE    optionName = 'cookie_path'
            AND packageID = ".$packageID;
    WCF::getDB()->sendQuery($sql);
}

// admin options
$sql "UPDATE     wcf".WCF_N."_group_option_value
    SET    optionValue = 1
    WHERE    groupID = 4
        AND optionID IN (
            SELECT    optionID
            FROM    wcf".WCF_N."_group_option
            WHERE    packageID IN (
                    SELECT    dependency
                    FROM    wcf".WCF_N."_package_dependency
                    WHERE    packageID = ".$packageID."
                )
        )
        AND optionValue = '0'";
WCF::getDB()->sendQuery($sql);

// mod options
$sql "UPDATE     wcf".WCF_N."_group_option_value
    SET    optionValue = 1
    WHERE    groupID IN (5,6)
        AND optionID IN (
            SELECT    optionID
            FROM    wcf".WCF_N."_group_option
            WHERE    optionName LIKE 'mod.board.%'
                AND optionName <> 'mod.board.isSuperMod'
                AND packageID IN (
                    SELECT    dependency
                    FROM    wcf".WCF_N."_package_dependency
                    WHERE    packageID = ".$packageID."
                )
        )
        AND optionValue = '0'";
WCF::getDB()->sendQuery($sql);

// super mod option
$sql "UPDATE     wcf".WCF_N."_group_option_value
    SET    optionValue = 1
    WHERE    groupID = 6
        AND optionID IN (
            SELECT    optionID
            FROM    wcf".WCF_N."_group_option
            WHERE    optionName = 'mod.board.isSuperMod'
                AND packageID IN (
                    SELECT    dependency
                    FROM    wcf".WCF_N."_package_dependency
                    WHERE    packageID = ".$packageID."
                )
        )
        AND optionValue = '0'";
WCF::getDB()->sendQuery($sql);

// list admin & mod groups on team page by default
$sql "UPDATE    wcf".WCF_N."_group
    SET    showOnTeamPage = 1
    WHERE    groupID IN (4,5,6)";
WCF::getDB()->sendQuery($sql);

// refresh (basic) style file
require_once(WCF_DIR.'lib/system/style/StyleEditor.class.php');
$sql "SELECT * FROM wcf".WCF_N."_style WHERE isDefault = 1";
$style = new StyleEditor(nullWCF::getDB()->getFirstRow($sql));
$style->writeStyleFile();
?>
  • Zum Seitenanfang
  • Zum Seitenende