Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1707 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1707 Revision 1708
Zeile 4... Zeile 4...
4
    use PHPHtmlParser\Exceptions\ChildNotFoundException;
4
    use PHPHtmlParser\Exceptions\ChildNotFoundException;
5
    use PHPHtmlParser\Exceptions\CircularException;
5
    use PHPHtmlParser\Exceptions\CircularException;
6
    use PHPHtmlParser\Exceptions\CurlException;
6
    use PHPHtmlParser\Exceptions\CurlException;
7
    use PHPHtmlParser\Exceptions\NotLoadedException;
7
    use PHPHtmlParser\Exceptions\NotLoadedException;
8
    use PHPHtmlParser\Exceptions\StrictException;
8
    use PHPHtmlParser\Exceptions\StrictException;
9
    use Illuminate\Support\Facades\DB;
-
 
10
    use Illuminate\Support\Facades\Schema;
-
 
Zeile 11... Zeile 9...
11
 
9
 
12
    $GLOBALS["zahlsysteme"] = [
10
    $GLOBALS["zahlsysteme"] = [
13
        "kreditkarte",
11
        "kreditkarte",
14
        "paypal",
12
        "paypal",
Zeile 136... Zeile 134...
136
    {
134
    {
137
        $landID = $GLOBALS["INI"]["steuern"]["default_countryID"];
135
        $landID = $GLOBALS["INI"]["steuern"]["default_countryID"];
138
    }
136
    }
Zeile 139... Zeile 137...
139
 
137
 
140
    $countryIDs = ( isset( $GLOBALS['INI']['steuern']['use_countries_tax'] ) ) ? $GLOBALS['INI']['steuern']['use_countries_tax'] : $landID;
-
 
141
 
-
 
142
    $sql = "SELECT 
-
 
143
            *
-
 
144
        FROM
-
 
145
            content_management.countries_tax
-
 
146
        WHERE
-
 
147
            country_id IN (" . $countryIDs . ")
-
 
148
    ";
-
 
149
    $rows = DB::connection( "cms" )->select( $sql );
-
 
150
    foreach ( $rows as $r )
-
 
151
    {
-
 
152
        $GLOBALS["steuern"][$r->country_id][$r->taxes_id] = $r->tax_percent;
-
 
153
        $GLOBALS["steuern"][$r->country_id][null] = $GLOBALS["steuern"][$r->country_id][0];
-
 
154
    }
-
 
155
 
-
 
156
    $sql = "
-
 
157
        SELECT
-
 
158
            *
-
 
159
        FROM
-
 
160
            i18n_de
-
 
161
    ";
-
 
162
    if ( Schema::hasTable( 'i18n_de' ) )
-
 
163
    {
-
 
164
        $langstrings = DB::select( $sql );
-
 
165
    }
-
 
166
    else
-
 
167
    {
-
 
168
        $langstrings = DB::connection( "old" )->select( $sql );
-
 
169
    }
-
 
170
    foreach ( $langstrings as $langstring )
-
 
171
    {
-
 
172
        $GLOBALS["langstrings"][$langstring->page_id][$langstring->id] = $langstring->string;
-