├── .htaccess
├── Changelog.md
├── LICENSE
├── README.md
├── config
├── _gameOwn
│ ├── fillTypes.xml
│ ├── locations.xml
│ └── vehicles.xml
├── _mods
│ ├── FS17_Saatgut_Duenger_Lager_placeable.xml
│ ├── FarmSiloSystem.xml
│ ├── HayLoftPlaceable.xml
│ ├── Paletten_Fabrik.xml.disabled
│ ├── README.md
│ ├── Saat_Prod.xml.disabled
│ ├── aaa_WEINPACKohneTipping_placeable.xml
│ ├── farmSiloSystem.php
│ ├── grassSilageMod.php
│ └── vehicles.xml
├── goldcrestValley
│ ├── animals.xml
│ ├── bgaAndBunker.xml
│ ├── farmsilos.xml
│ ├── locations.xml
│ ├── map.cfg
│ ├── pda_map_H.jpg
│ └── tipTrigger.xml
├── nfmarsch31
│ ├── FabrikScripts.xml
│ ├── FabrikScripts_translation.xml
│ ├── additional_fillTypes.xml
│ ├── animals.xml
│ ├── bgaAndBunker.xml
│ ├── farmsilos.xml
│ ├── fuelStations.xml
│ ├── map.cfg
│ ├── pda_map_H.jpg
│ └── tipTrigger.xml
├── nfmarsch4f14
│ ├── FabrikScripts.xml
│ ├── FabrikScripts_translation.xml
│ ├── additional_fillTypes.xml
│ ├── animals.xml
│ ├── bgaAndBunker.xml
│ ├── farmsilos.xml
│ ├── fuelStations.xml
│ ├── map.cfg
│ ├── pda_map_H.jpg
│ └── tipTrigger.xml
├── sosnovka
│ ├── animals.xml
│ ├── bgaAndBunker.xml
│ ├── farmsilos.xml
│ ├── locations.xml
│ ├── map.cfg
│ ├── pda_map_H.jpg
│ └── tipTrigger.xml
└── tanneberg20
│ ├── FabrikScripts.xml
│ ├── FarmSiloSystem.xml
│ ├── additional_fillTypes.xml
│ ├── animals.xml
│ ├── bgaAndBunker.xml
│ ├── farmSiloSystem.php
│ ├── farmsilo.xml
│ ├── locations.xml
│ ├── map.cfg
│ ├── pda_map_H.jpg
│ └── tipTrigger.xml
├── docs
├── _config.yml
├── index.html
├── nfmarsch29.zip
├── nfmarsch30.zip
└── nfmarsch4f13.zip
├── include
├── commodity.php
├── coockie.php
├── factories.php
├── finances.php
├── functions.php
├── husbandry.php
├── install.php
├── language.php
├── lizenz.php
├── loadConfig.php
├── options.php
├── overview.php
├── prices.php
├── production.php
├── savegame.php
├── smarty
│ ├── Autoloader.php
│ ├── Smarty.class.php
│ ├── SmartyBC.class.php
│ ├── debug.tpl
│ ├── plugins
│ │ ├── block.textformat.php
│ │ ├── function.counter.php
│ │ ├── function.cycle.php
│ │ ├── function.fetch.php
│ │ ├── function.html_checkboxes.php
│ │ ├── function.html_image.php
│ │ ├── function.html_options.php
│ │ ├── function.html_radios.php
│ │ ├── function.html_select_date.php
│ │ ├── function.html_select_time.php
│ │ ├── function.html_table.php
│ │ ├── function.mailto.php
│ │ ├── function.math.php
│ │ ├── modifier.capitalize.php
│ │ ├── modifier.date_format.php
│ │ ├── modifier.debug_print_var.php
│ │ ├── modifier.escape.php
│ │ ├── modifier.printf.php
│ │ ├── modifier.regex_replace.php
│ │ ├── modifier.replace.php
│ │ ├── modifier.spacify.php
│ │ ├── modifier.truncate.php
│ │ ├── modifiercompiler.cat.php
│ │ ├── modifiercompiler.count_characters.php
│ │ ├── modifiercompiler.count_paragraphs.php
│ │ ├── modifiercompiler.count_sentences.php
│ │ ├── modifiercompiler.count_words.php
│ │ ├── modifiercompiler.default.php
│ │ ├── modifiercompiler.escape.php
│ │ ├── modifiercompiler.from_charset.php
│ │ ├── modifiercompiler.indent.php
│ │ ├── modifiercompiler.lower.php
│ │ ├── modifiercompiler.noprint.php
│ │ ├── modifiercompiler.string_format.php
│ │ ├── modifiercompiler.strip.php
│ │ ├── modifiercompiler.strip_tags.php
│ │ ├── modifiercompiler.to_charset.php
│ │ ├── modifiercompiler.unescape.php
│ │ ├── modifiercompiler.upper.php
│ │ ├── modifiercompiler.wordwrap.php
│ │ ├── outputfilter.trimwhitespace.php
│ │ ├── shared.escape_special_chars.php
│ │ ├── shared.literal_compiler_param.php
│ │ ├── shared.make_timestamp.php
│ │ ├── shared.mb_str_replace.php
│ │ ├── shared.mb_unicode.php
│ │ ├── shared.mb_wordwrap.php
│ │ └── variablefilter.htmlspecialchars.php
│ └── sysplugins
│ │ ├── smarty_cacheresource.php
│ │ ├── smarty_cacheresource_custom.php
│ │ ├── smarty_cacheresource_keyvaluestore.php
│ │ ├── smarty_data.php
│ │ ├── smarty_internal_cacheresource_file.php
│ │ ├── smarty_internal_compile_append.php
│ │ ├── smarty_internal_compile_assign.php
│ │ ├── smarty_internal_compile_block.php
│ │ ├── smarty_internal_compile_break.php
│ │ ├── smarty_internal_compile_call.php
│ │ ├── smarty_internal_compile_capture.php
│ │ ├── smarty_internal_compile_config_load.php
│ │ ├── smarty_internal_compile_continue.php
│ │ ├── smarty_internal_compile_debug.php
│ │ ├── smarty_internal_compile_eval.php
│ │ ├── smarty_internal_compile_extends.php
│ │ ├── smarty_internal_compile_for.php
│ │ ├── smarty_internal_compile_foreach.php
│ │ ├── smarty_internal_compile_function.php
│ │ ├── smarty_internal_compile_if.php
│ │ ├── smarty_internal_compile_include.php
│ │ ├── smarty_internal_compile_include_php.php
│ │ ├── smarty_internal_compile_insert.php
│ │ ├── smarty_internal_compile_ldelim.php
│ │ ├── smarty_internal_compile_nocache.php
│ │ ├── smarty_internal_compile_private_block_plugin.php
│ │ ├── smarty_internal_compile_private_foreachsection.php
│ │ ├── smarty_internal_compile_private_function_plugin.php
│ │ ├── smarty_internal_compile_private_modifier.php
│ │ ├── smarty_internal_compile_private_object_block_function.php
│ │ ├── smarty_internal_compile_private_object_function.php
│ │ ├── smarty_internal_compile_private_php.php
│ │ ├── smarty_internal_compile_private_print_expression.php
│ │ ├── smarty_internal_compile_private_registered_block.php
│ │ ├── smarty_internal_compile_private_registered_function.php
│ │ ├── smarty_internal_compile_private_special_variable.php
│ │ ├── smarty_internal_compile_rdelim.php
│ │ ├── smarty_internal_compile_section.php
│ │ ├── smarty_internal_compile_setfilter.php
│ │ ├── smarty_internal_compile_shared_inheritance.php
│ │ ├── smarty_internal_compile_while.php
│ │ ├── smarty_internal_compilebase.php
│ │ ├── smarty_internal_config_file_compiler.php
│ │ ├── smarty_internal_configfilelexer.php
│ │ ├── smarty_internal_configfileparser.php
│ │ ├── smarty_internal_data.php
│ │ ├── smarty_internal_debug.php
│ │ ├── smarty_internal_extension_clear.php
│ │ ├── smarty_internal_extension_handler.php
│ │ ├── smarty_internal_method_addautoloadfilters.php
│ │ ├── smarty_internal_method_adddefaultmodifiers.php
│ │ ├── smarty_internal_method_append.php
│ │ ├── smarty_internal_method_appendbyref.php
│ │ ├── smarty_internal_method_assignbyref.php
│ │ ├── smarty_internal_method_assignglobal.php
│ │ ├── smarty_internal_method_clearallassign.php
│ │ ├── smarty_internal_method_clearallcache.php
│ │ ├── smarty_internal_method_clearassign.php
│ │ ├── smarty_internal_method_clearcache.php
│ │ ├── smarty_internal_method_clearcompiledtemplate.php
│ │ ├── smarty_internal_method_clearconfig.php
│ │ ├── smarty_internal_method_compileallconfig.php
│ │ ├── smarty_internal_method_compilealltemplates.php
│ │ ├── smarty_internal_method_configload.php
│ │ ├── smarty_internal_method_createdata.php
│ │ ├── smarty_internal_method_getautoloadfilters.php
│ │ ├── smarty_internal_method_getconfigvars.php
│ │ ├── smarty_internal_method_getdebugtemplate.php
│ │ ├── smarty_internal_method_getdefaultmodifiers.php
│ │ ├── smarty_internal_method_getregisteredobject.php
│ │ ├── smarty_internal_method_getstreamvariable.php
│ │ ├── smarty_internal_method_gettags.php
│ │ ├── smarty_internal_method_gettemplatevars.php
│ │ ├── smarty_internal_method_loadfilter.php
│ │ ├── smarty_internal_method_loadplugin.php
│ │ ├── smarty_internal_method_mustcompile.php
│ │ ├── smarty_internal_method_registercacheresource.php
│ │ ├── smarty_internal_method_registerclass.php
│ │ ├── smarty_internal_method_registerdefaultconfighandler.php
│ │ ├── smarty_internal_method_registerdefaultpluginhandler.php
│ │ ├── smarty_internal_method_registerdefaulttemplatehandler.php
│ │ ├── smarty_internal_method_registerfilter.php
│ │ ├── smarty_internal_method_registerobject.php
│ │ ├── smarty_internal_method_registerplugin.php
│ │ ├── smarty_internal_method_registerresource.php
│ │ ├── smarty_internal_method_setautoloadfilters.php
│ │ ├── smarty_internal_method_setdebugtemplate.php
│ │ ├── smarty_internal_method_setdefaultmodifiers.php
│ │ ├── smarty_internal_method_unloadfilter.php
│ │ ├── smarty_internal_method_unregistercacheresource.php
│ │ ├── smarty_internal_method_unregisterfilter.php
│ │ ├── smarty_internal_method_unregisterobject.php
│ │ ├── smarty_internal_method_unregisterplugin.php
│ │ ├── smarty_internal_method_unregisterresource.php
│ │ ├── smarty_internal_nocache_insert.php
│ │ ├── smarty_internal_parsetree.php
│ │ ├── smarty_internal_parsetree_code.php
│ │ ├── smarty_internal_parsetree_dq.php
│ │ ├── smarty_internal_parsetree_dqcontent.php
│ │ ├── smarty_internal_parsetree_tag.php
│ │ ├── smarty_internal_parsetree_template.php
│ │ ├── smarty_internal_parsetree_text.php
│ │ ├── smarty_internal_resource_eval.php
│ │ ├── smarty_internal_resource_extends.php
│ │ ├── smarty_internal_resource_file.php
│ │ ├── smarty_internal_resource_php.php
│ │ ├── smarty_internal_resource_registered.php
│ │ ├── smarty_internal_resource_stream.php
│ │ ├── smarty_internal_resource_string.php
│ │ ├── smarty_internal_runtime_cachemodify.php
│ │ ├── smarty_internal_runtime_codeframe.php
│ │ ├── smarty_internal_runtime_filterhandler.php
│ │ ├── smarty_internal_runtime_foreach.php
│ │ ├── smarty_internal_runtime_getincludepath.php
│ │ ├── smarty_internal_runtime_hhvm.php
│ │ ├── smarty_internal_runtime_inheritance.php
│ │ ├── smarty_internal_runtime_subtemplate.php
│ │ ├── smarty_internal_runtime_tplfunction.php
│ │ ├── smarty_internal_runtime_updatecache.php
│ │ ├── smarty_internal_runtime_updatescope.php
│ │ ├── smarty_internal_runtime_validatecompiled.php
│ │ ├── smarty_internal_runtime_var.php
│ │ ├── smarty_internal_runtime_writefile.php
│ │ ├── smarty_internal_smartytemplatecompiler.php
│ │ ├── smarty_internal_template.php
│ │ ├── smarty_internal_templatebase.php
│ │ ├── smarty_internal_templatecompilerbase.php
│ │ ├── smarty_internal_templatelexer.php
│ │ ├── smarty_internal_templateparser.php
│ │ ├── smarty_internal_testinstall.php
│ │ ├── smarty_internal_undefined.php
│ │ ├── smarty_resource.php
│ │ ├── smarty_resource_custom.php
│ │ ├── smarty_resource_recompiled.php
│ │ ├── smarty_resource_uncompiled.php
│ │ ├── smarty_security.php
│ │ ├── smarty_template_cached.php
│ │ ├── smarty_template_compiled.php
│ │ ├── smarty_template_config.php
│ │ ├── smarty_template_resource_base.php
│ │ ├── smarty_template_source.php
│ │ ├── smarty_undefined_variable.php
│ │ ├── smarty_variable.php
│ │ ├── smartycompilerexception.php
│ │ └── smartyexception.php
└── storage.php
├── index.php
├── language
├── cz
│ ├── dataTables.lang
│ ├── global.lng
│ └── language.txt
├── de
│ ├── dataTables.lang
│ ├── global.lng
│ └── language.txt
├── en
│ ├── dataTables.lang
│ ├── global.lng
│ └── language.txt
└── fr
│ ├── dataTables.lang
│ ├── global.lng
│ └── language.txt
├── screenshots
├── Einstellungen_Settings.jpg
├── Fabriken_Factories.png
├── Finanzen_Finances.png
├── Lager_Storage.png
├── Produktion_Production.png
├── Tiere_Livestock.png
├── Uebersicht_Overview.png
├── Verkaufspreise_Sellprices.png
└── Waren_Commodities.png
├── styles
├── bootstrap
│ ├── css
│ │ ├── bootstrap.min.css
│ │ ├── customstyle.css
│ │ └── datatables.min.css
│ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ ├── images
│ │ ├── cloudy.png
│ │ ├── fog.png
│ │ ├── hail.png
│ │ ├── harvester.png
│ │ ├── harvester_selected.png
│ │ ├── rain.png
│ │ ├── sun.png
│ │ ├── tiptrigger.png
│ │ ├── tiptrigger_selected.png
│ │ ├── tool.png
│ │ ├── tool_selected.png
│ │ ├── trailer.png
│ │ ├── trailer_selected.png
│ │ ├── vehicle.png
│ │ └── vehicle_selected.png
│ ├── javascript
│ │ ├── bootstrap.min.js
│ │ ├── datatables.min.js
│ │ └── jquery.min.js
│ ├── style.cfg
│ └── templates
│ │ ├── commodity.tpl
│ │ ├── factories.tpl
│ │ ├── finances.tpl
│ │ ├── husbandry.tpl
│ │ ├── index.tpl
│ │ ├── install.tpl
│ │ ├── lizenz.tpl
│ │ ├── navbar.tpl
│ │ ├── options.tpl
│ │ ├── overview.tpl
│ │ ├── prices.tpl
│ │ ├── production.tpl
│ │ └── storage.tpl
├── fs17
│ ├── css
│ │ ├── bootstrap.min.css
│ │ ├── customstyle.css
│ │ ├── datatables.min.css
│ │ └── theme.min.css
│ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ ├── images
│ │ ├── background.jpg
│ │ ├── cloudy.png
│ │ ├── fog.png
│ │ ├── hail.png
│ │ ├── harvester.png
│ │ ├── harvester_selected.png
│ │ ├── rain.png
│ │ ├── sun.png
│ │ ├── tiptrigger.png
│ │ ├── tiptrigger_selected.png
│ │ ├── tool.png
│ │ ├── tool_selected.png
│ │ ├── trailer.png
│ │ ├── trailer_selected.png
│ │ ├── vehicle.png
│ │ └── vehicle_selected.png
│ ├── javascript
│ │ ├── bootstrap.min.js
│ │ ├── datatables.min.js
│ │ └── jquery.min.js
│ ├── style.cfg
│ └── templates
│ │ ├── commodity.tpl
│ │ ├── factories.tpl
│ │ ├── finances.tpl
│ │ ├── husbandry.tpl
│ │ ├── index.tpl
│ │ ├── install.tpl
│ │ ├── lizenz.tpl
│ │ ├── navbar.tpl
│ │ ├── options.tpl
│ │ ├── overview.tpl
│ │ ├── prices.tpl
│ │ ├── production.tpl
│ │ └── storage.tpl
└── smallSlate
│ ├── css
│ ├── bootstrap.min.css
│ ├── customstyle.css
│ ├── datatables.min.css
│ └── theme.min.css
│ ├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
│ ├── images
│ ├── cloudy.png
│ ├── fog.png
│ ├── hail.png
│ ├── harvester.png
│ ├── harvester_selected.png
│ ├── rain.png
│ ├── sun.png
│ ├── tiptrigger.png
│ ├── tiptrigger_selected.png
│ ├── tool.png
│ ├── tool_selected.png
│ ├── trailer.png
│ ├── trailer_selected.png
│ ├── vehicle.png
│ └── vehicle_selected.png
│ ├── javascript
│ ├── bootstrap.min.js
│ ├── datatables.min.js
│ └── jquery.min.js
│ ├── style.cfg
│ └── templates
│ ├── commodity.tpl
│ ├── factories.tpl
│ ├── finances.tpl
│ ├── husbandry.tpl
│ ├── index.tpl
│ ├── install.tpl
│ ├── lizenz.tpl
│ ├── navbar.tpl
│ ├── options.tpl
│ ├── overview.tpl
│ ├── prices.tpl
│ ├── production.tpl
│ └── storage.tpl
└── tools
├── convertMapConfig.php
├── convertMapConfigToMultipleFiles.php
├── koordinaten_rechner.ods
├── pointInPolygon.class.php
├── price.php
├── readMapConfig.php
├── savegame.graphml
├── werte.txt
└── xml
├── mapconfg.xml
└── translations.xml
/.htaccess:
--------------------------------------------------------------------------------
1 | # Serverkonfiguration schützen
2 | # "Order, Deny"-Syntax von PHPBB3 übernommen
3 | # Funktioniert unter Apache 2.4 und früher
4 |
5 |
6 |
7 | Order Allow,Deny
8 | Deny from All
9 |
10 |
11 | = 2.4>
12 |
13 | Require all denied
14 |
15 |
16 |
17 |
18 |
19 |
20 | Order Allow,Deny
21 | Deny from All
22 |
23 |
24 |
25 |
26 | Require all denied
27 |
28 |
29 |
30 | # Verzeichnisauflistung verhindern
31 | Options -Indexes
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # FS17 WebStats v1.4.2
2 |
3 | ### Statuswebseite für die Farming Simulator 17
4 | Die Webseite generiert Übersichtsseiten von lokale Spielständen oder dedizierten Servern.
5 |
6 | #### Lagerübersicht
7 | Übersicht über alle Lagerbestände im Farmsilo, dem Palettenlager diverser Lager für Saatgut, Dünger usw.
8 | Lagerbestände in Fahrzeugen und bei den Produktionsstätten werden mit einbezogen. Verschiedene Sortier- und Anzeigeeinstellungen möglich.
9 |
10 | #### Produktionsübersicht
11 | Übersicht über alle Produktionsstätten. Fehlende Rohstoffe bzw. volle Lager werden farblich markiert. Alphabetische Sortierung oder nach Füllstand.
12 |
13 | #### Serverstatus
14 | Anzeige der Spieler sowie Fahrzeuge auf der Karte. (nur dedizierter Server)
15 |
16 | #### Viehzucht
17 | Übersicht über Schafweide, Schweine- und Kuhstall (wie Ingameübersicht).
18 |
19 | #### Fabrikdetails
20 | Anzeige zusätzlicher Details der Produktionsanlagen. Neben Lagermengen und Kapazitäten werden auch der Verbrauch und die Produktion pro Stunde und Tag angezeigt.
21 |
22 | #### Warendetails
23 | Anzeige der Lagerorte/-mengen, Verkaufspreise und dem Warenbedarf. Übersichtskarte mit eingezeichneteten Lager- und Produktionsstätten sowie der Paletten und Ballen.
24 |
25 | #### Verkaufspreise
26 | Verkaufspreisübersicht aller Waren und Verkaufsstellen (wie im Spiel).
27 |
28 | ## Download
29 | Die aktuellste stabile Version hier herunterladen:
30 | https://github.com/J0hnHawk/FS17_WebStats/releases/latest
31 |
32 | ## Instalation
33 |
34 | Herunterladen und entpacken der Zipdatei auf einem PHP 5 fähigen Webserver. Der Webserver muss die PHP-Funktion fsockopen() unterstützen. Eine Datenbank wird nicht benötigt. Die benötigten Daten werden beim ersten Aufruf der Seite abgefragt. Beim ersten Aufruf der Seite werden die benötigten Daten abgefragt:
35 | - Bei dedizierten Server die IP-Adresse des Servers, der Port und Code.
36 | - Bei lokalen Spielständen das Verzeichnis des Spielstands.
37 |
38 |
--------------------------------------------------------------------------------
/config/_gameOwn/locations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Terén
6 | Landscape
7 | Landschaft
8 | Campagne
9 |
10 |
11 | Mimo mapu
12 | Out of map
13 | Außerhalb der Karte
14 | En dehors de la carte
15 |
16 |
17 | Krávy
18 | Cows
19 | Kuhstall
20 | Vaches
21 |
22 |
23 | Ovce
24 | Sheep
25 | Schafstall
26 | Moutons
27 |
28 |
29 | Prasata
30 | Pig
31 | Schweinestall
32 | Cochons
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/config/_mods/FS17_Saatgut_Duenger_Lager_placeable.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 | -
9 |
10 |
11 |
12 |
13 |
14 |
15 | Fertilizer storage
16 | Düngerlager
17 |
18 |
19 | Seeds storage
20 | Saatgutlager
21 |
22 |
23 |
24 | fertilizer
25 | Dünger
26 |
27 |
28 | seeds
29 | Saatgut
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/config/_mods/FarmSiloSystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Farm silo system
15 | Farmsilosystem
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/config/_mods/HayLoftPlaceable.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Root Crop Storage
8 | Wurzelfruchtlager
9 | Stockage des cultures racines
10 |
11 |
12 |
--------------------------------------------------------------------------------
/config/_mods/Paletten_Fabrik.xml.disabled:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 |
9 |
10 |
11 | Pallet factory
12 | Palettenwerk
13 |
14 |
15 | Boardwood
16 | Bretterholz
17 |
18 |
19 | Boardwood
20 | Bretterholz
21 |
22 |
23 | Empty pallet
24 | Leere Paletten
25 |
26 |
27 | Empty pallet
28 | Leere Paletten
29 |
30 |
31 |
--------------------------------------------------------------------------------
/config/_mods/Saat_Prod.xml.disabled:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 |
9 |
10 |
11 | Seed production
12 | Saatgutproduktion
13 |
14 |
15 | Grain
16 | Getreide
17 |
18 |
19 |
--------------------------------------------------------------------------------
/config/_mods/farmSiloSystem.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * "FS17 Webstats" is free software: you can redistribute it and/or
8 | * modify it under the terms of the GNU General Public License as published
9 | * by the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * "FS17 Webstats" is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | *
20 | */
21 | if (! defined('IN_NFMWS')) {
22 | exit();
23 | }
24 |
25 | foreach ($object->FillLevel as $row) {
26 | $fillTypeId = strval($row['fillType']);
27 | $configData = $mapconfig[$location]['FillLevel'][$fillTypeId];
28 | $fillType = $configData['fillType'];
29 | $fillLevel = getPositiveInt($row['Lvl']);
30 | if ((isset($configData['showInStorage']) && $configData['showInStorage'] != false) || ! isset($configData['showInStorage'])) {
31 | addCommodity($fillType, $fillLevel, $location);
32 | }
33 | }
34 | // Variables:
35 | // $object = the in savegame.php actually loades XML object from savegame vehicles
36 | // $mapconfig = all defined objects on the map
37 |
38 |
--------------------------------------------------------------------------------
/config/_mods/grassSilageMod.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * "FS17 Webstats" is free software: you can redistribute it and/or
8 | * modify it under the terms of the GNU General Public License as published
9 | * by the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * "FS17 Webstats" is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | *
20 | */
21 | if (! defined('IN_NFMWS')) {
22 | exit();
23 | }
24 |
25 | /**
26 | * This File is for Maps with activated grassSilageMod which offers the possibility to choose if you want fermenting
27 | * chaff to silage or raw grass silage to grass silage.
28 | *
29 | * For using you have to change all bunker in configutation from
30 | *
31 | * to
32 | *
33 | */
34 |
35 | $state = intval($object['state']);
36 | $fillLevel = intval($object['fillLevel']);
37 | if (isset($object['inputfilltype'])) {
38 | $siloFillType=array('grassilageraw','grassilage');
39 | } else {
40 | $siloFillType=array('chaff','silage');
41 | }
42 | if ($state < 2) {
43 | $fillType = $siloFillType[0];
44 | } else {
45 | $fillType = $siloFillType[1];
46 | }
47 | addCommodity($fillType, $fillLevel, $location);
48 |
49 |
--------------------------------------------------------------------------------
/config/_mods/vehicles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Universal Sattelauflieger
7 | Universal Sattelauflieger
8 | Universal Sattelauflieger
9 |
10 |
11 | Universal Sattelauflieger
12 | Universal Sattelauflieger
13 | Universal Sattelauflieger
14 |
15 |
16 |
17 | Bandit SB 30/60
18 | Bandit SB 30/60
19 | Bandit SB 30/60
20 |
21 |
22 |
23 | SA T
24 | SA T
25 | SA T
26 |
27 |
28 |
29 | Lexion
30 | Lexion
31 | Lexion
32 |
33 |
34 |
35 | kroegerSRB35
36 | kroegerSRB35
37 | kroegerSRB35
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/config/goldcrestValley/bgaAndBunker.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/config/goldcrestValley/farmsilos.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Farm silo
10 | Hofsilo
11 | Silo agricole
12 |
13 |
14 | Goldcrest Pacific Grain
15 | Goldcrest Pacific Grain
16 | Goldcrest Pacific Grain
17 |
18 |
19 | Central Transport Hub
20 | Central Transport Hub
21 | Central Transport Hub
22 |
23 |
24 | Maplefield Pool
25 | Maplefield Pool
26 | Maplefield Pool
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/config/goldcrestValley/locations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | McLean Biogas Plant
6 | McLean Biogas Plant
7 | McLean Biogas Plant
8 |
9 |
10 | BGA silo 1
11 | BGA Fahrsilo 1
12 | BGA silo 1
13 |
14 |
15 | BGA silo 2
16 | BGA Fahrsilo 2
17 | BGA silo 2
18 |
19 |
20 | BGA silo 3
21 | BGA Fahrsilo 3
22 | BGA silo 3
23 |
24 |
25 | BGA silo 4
26 | BGA Fahrsilo 4
27 | BGA silo 4
28 |
29 |
30 | BGA silo 5
31 | BGA Fahrsilo 5
32 | BGA silo 5
33 |
34 |
35 | Cow silo
36 | Kuhstall Fahrsilo
37 | Etable silo
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/config/goldcrestValley/map.cfg:
--------------------------------------------------------------------------------
1 | // Full map name
2 | Name=Goldcrest Valley
3 |
4 | // Short map name (for e.g. the navbar)
5 | Short=Goldcrest Valley
6 |
7 | // Version of the map
8 | Version=
9 |
10 | // Download link of the map
11 | Link=https://giants-software.com/
12 |
13 | // Map creator / copyright
14 | Copyright=Copyright 2017 GIANTS Software GmbH
15 |
16 | // Map size (standard: 2048; 4x maps: 4096)
17 | Size=2048
18 |
19 | // Config creator / copyright
20 | configBy=John Hawk
21 |
22 | // Version of the map config
23 | configVersion=1.0
24 |
25 | // Config format (old = php; new = xml)
26 | configFormat=xml
27 |
--------------------------------------------------------------------------------
/config/goldcrestValley/pda_map_H.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/config/goldcrestValley/pda_map_H.jpg
--------------------------------------------------------------------------------
/config/nfmarsch31/farmsilos.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Storage_storage5
9 | Hofsilo am Eierhof
10 | Hofsilo am Eierhof
11 |
12 |
13 | Storage_storage3
14 | Hofsilo am Rinderhof
15 | Hofsilo am Rinderhof
16 |
17 |
18 | Farm silo
19 | Hofsilo
20 | Silo agricole
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/config/nfmarsch31/fuelStations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | fuelStation_Tankstelle_Huehnerhof
14 | Tankstelle Hühnerhof
15 | fuelStation_Tankstelle_Huehnerhof
16 |
17 |
18 | fuelStation_Tankstelle_SandKies
19 | Tankstelle Kieswerk
20 | fuelStation_Tankstelle_SandKies
21 |
22 |
23 | fuelStation_Tankstelle_Rinderhof
24 | Tankstelle Rinderhof
25 | fuelStation_Tankstelle_Rinderhof
26 |
27 |
28 | fuelStation_Tankstelle_Insel
29 | Tankstelle Insel
30 | fuelStation_Tankstelle_Insel
31 |
32 |
33 | fuelStation_Tankstelle_Raffinerie
34 | Tankstelle Raffinerie
35 | Station-service Raffinerie
36 |
37 |
38 | fuelStation_Tankstelle_BGA_Sued
39 | Tankstelle BGA Mitte
40 | Station-service BGA Sud
41 |
42 |
43 | fuelStation_Tankstelle_BGA_Nord
44 | Tankstelle BGA Nord
45 | Station-service BGA Nord
46 |
47 |
48 | fuelStation_Hoftankstelle
49 | Hoftankstelle
50 | Station-service agricole
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/config/nfmarsch31/map.cfg:
--------------------------------------------------------------------------------
1 | // Full map name
2 | Name=Nordfriesische Marsch
3 |
4 | // Short map name (for e.g. the navbar)
5 | Short=NF Marsch
6 |
7 | // Version of the map
8 | Version=3.1
9 |
10 | // Download link of the map
11 | Link=https://www.fedaction-letsplay.de
12 |
13 | // Map creator / copyright
14 | Copyright=Copyright dani1803 / FedActionLetsPlay
15 |
16 | // Map size (standard: 2048; 4x maps: 4096)
17 | Size=2048
18 |
19 | // Config creator / copyright
20 | configBy=John Hawk
21 |
22 | // Version of the map config
23 | configVersion=1.4.1
24 |
25 | // Config format (old = php; new = xml)
26 | configFormat=xml
27 |
--------------------------------------------------------------------------------
/config/nfmarsch31/pda_map_H.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/config/nfmarsch31/pda_map_H.jpg
--------------------------------------------------------------------------------
/config/nfmarsch4f14/farmsilos.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Storage_storage5
9 | Hofsilo am Eierhof
10 | Hofsilo am Eierhof
11 |
12 |
13 | Storage_storage3
14 | Hofsilo am Rinderhof
15 | Hofsilo am Rinderhof
16 |
17 |
18 | Farm silo
19 | Hofsilo
20 | Silo agricole
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/config/nfmarsch4f14/fuelStations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | fuelStation_Tankstelle_Huehnerhof
14 | Tankstelle Hühnerhof
15 | fuelStation_Tankstelle_Huehnerhof
16 |
17 |
18 | fuelStation_Tankstelle_SandKies
19 | Tankstelle Kieswerk
20 | fuelStation_Tankstelle_SandKies
21 |
22 |
23 | fuelStation_Tankstelle_Rinderhof
24 | Tankstelle Rinderhof
25 | fuelStation_Tankstelle_Rinderhof
26 |
27 |
28 | fuelStation_Tankstelle_Insel
29 | Tankstelle Insel
30 | fuelStation_Tankstelle_Insel
31 |
32 |
33 | fuelStation_Tankstelle_Raffinerie
34 | Tankstelle Raffinerie
35 | Station-service Raffinerie
36 |
37 |
38 | fuelStation_Tankstelle_BGA_Sued
39 | Tankstelle BGA Mitte
40 | Station-service BGA Sud
41 |
42 |
43 | fuelStation_Tankstelle_BGA_Nord
44 | Tankstelle BGA Nord
45 | Station-service BGA Nord
46 |
47 |
48 | fuelStation_Hoftankstelle
49 | Hoftankstelle
50 | Station-service agricole
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/config/nfmarsch4f14/map.cfg:
--------------------------------------------------------------------------------
1 | // Full map name
2 | Name=Nordfriesische Marsch
3 |
4 | // Short map name (for e.g. the navbar)
5 | Short=NF Marsch
6 |
7 | // Version of the map
8 | Version=4fach 1.4
9 |
10 | // Download link of the map
11 | Link=https://www.fedaction-letsplay.de
12 |
13 | // Map creator / copyright
14 | Copyright=Copyright dani1803 / FedActionLetsPlay
15 |
16 | // Map size (standard: 2048; 4x maps: 4096)
17 | Size=4096
18 |
19 | // Config creator / copyright
20 | configBy=alex83we, John Hawk
21 |
22 | // Version of the map config
23 | configVersion=1.0
24 |
25 | // Config format (old = php; new = xml)
26 | configFormat=xml
27 |
--------------------------------------------------------------------------------
/config/nfmarsch4f14/pda_map_H.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/config/nfmarsch4f14/pda_map_H.jpg
--------------------------------------------------------------------------------
/config/sosnovka/bgaAndBunker.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/config/sosnovka/farmsilos.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Farm silo
7 | Hofsilo
8 | Silo agricole
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/config/sosnovka/locations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BGA
6 | BGA
7 | BGA
8 |
9 |
10 | BGA silo 1
11 | BGA Fahrsilo 1
12 | BGA silo 1
13 |
14 |
15 | BGA silo 2
16 | BGA Fahrsilo 2
17 | BGA silo 2
18 |
19 |
20 | BGA silo 3
21 | BGA Fahrsilo 3
22 | BGA silo 3
23 |
24 |
25 | BGA silo 4
26 | BGA Fahrsilo 4
27 | BGA silo 4
28 |
29 |
30 | BGA silo 5
31 | BGA Fahrsilo 5
32 | BGA silo 5
33 |
34 |
35 | BGA silo 6
36 | BGA Fahrsilo 6
37 | BGA silo 6
38 |
39 |
40 | BGA silo 7
41 | BGA Fahrsilo 7
42 | BGA silo 7
43 |
44 |
45 | BGA silo 8
46 | BGA Fahrsilo 8
47 | BGA silo 8
48 |
49 |
50 | BGA silo 9
51 | BGA Fahrsilo 9
52 | BGA silo 9
53 |
54 |
55 | BGA silo 10
56 | BGA Fahrsilo 10
57 | BGA silo 10
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/config/sosnovka/map.cfg:
--------------------------------------------------------------------------------
1 | // Full map name
2 | Name=Sosnovka
3 |
4 | // Short map name (for e.g. the navbar)
5 | Short=Sosnovka
6 |
7 | // Version of the map
8 | Version=
9 |
10 | // Download link of the map
11 | Link=https://giants-software.com/
12 |
13 | // Map creator / copyright
14 | Copyright=Copyright 2017 GIANTS Software GmbH
15 |
16 | // Map size (standard: 2048; 4x maps: 4096)
17 | Size=2048
18 |
19 | // Config creator / copyright
20 | configBy=John Hawk
21 |
22 | // Version of the map config
23 | configVersion=1.0
24 |
25 | // Config format (old = php; new = xml)
26 | configFormat=xml
27 |
--------------------------------------------------------------------------------
/config/sosnovka/pda_map_H.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/config/sosnovka/pda_map_H.jpg
--------------------------------------------------------------------------------
/config/tanneberg20/FarmSiloSystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Farm silo system
15 | Farmsilosystem
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/config/tanneberg20/additional_fillTypes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Raps oder Sonnenblumen
6 |
7 |
8 | Diesel
9 |
10 |
11 | Diesel
12 |
13 |
14 | Diesel
15 |
16 |
17 | Eiweisfuttermittel
18 |
19 |
20 | Gärreste
21 |
22 |
23 | Flüssigdünger
24 |
25 |
26 | Wein
27 |
28 |
29 | Wein
30 |
31 |
32 | Getreide
33 |
34 |
35 | Traubensaft
36 |
37 |
38 | Traubensaft
39 |
40 |
41 | Traubensaft
42 |
43 |
44 | Wasser
45 |
46 |
47 | Weintrauben
48 |
49 |
50 | Weintrauben
51 |
52 |
53 | Abfall
54 |
55 |
56 | Diesel
57 |
58 |
59 | Kompost
60 |
61 |
62 | Mist
63 |
64 |
65 | Dünger
66 |
67 |
68 | Holzstämme
69 |
70 |
71 | Bretter
72 |
73 |
74 | Sojabohnen
75 |
76 |
77 | Diesel
78 |
79 |
80 | Schweinefutter
81 |
82 |
83 | Gülle
84 |
85 |
86 | Milch
87 |
88 |
89 | Bretter
90 |
91 |
92 | Kompost
93 |
94 |
95 | Futter
96 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/config/tanneberg20/bgaAndBunker.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/config/tanneberg20/farmSiloSystem.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * "FS17 Webstats" is free software: you can redistribute it and/or
8 | * modify it under the terms of the GNU General Public License as published
9 | * by the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * "FS17 Webstats" is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | *
20 | */
21 | if (! defined('IN_NFMWS')) {
22 | exit();
23 | }
24 |
25 | foreach ($object->FillLevel as $row) {
26 | $fillTypeId = strval($row['fillType']);
27 | $configData = $mapconfig[$location]['FillLevel'][$fillTypeId];
28 | $fillType = $configData['fillType'];
29 | $fillLevel = getPositiveInt($row['Lvl']);
30 | if ((isset($configData['showInStorage']) && $configData['showInStorage'] != false) || ! isset($configData['showInStorage'])) {
31 | addCommodity($fillType, $fillLevel, $location);
32 | }
33 | }
34 | // Variables:
35 | // $object = the in savegame.php actually loades XML object from savegame vehicles
36 | // $mapconfig = all defined objects on the map
37 |
38 |
--------------------------------------------------------------------------------
/config/tanneberg20/farmsilo.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/config/tanneberg20/locations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hofsilo
6 |
7 |
8 | Außenlager am Bahnhof
9 |
10 |
11 | BGA
12 |
13 |
14 | Schweinestall
15 |
16 |
17 | Kuhstall
18 |
19 |
20 | Schafweide
21 |
22 |
23 | Diesellager
24 |
25 |
26 | compostMaster2k17
27 |
28 |
29 | Düngerproduktion
30 |
31 |
32 | Flüssigdüngerproduktion
33 |
34 |
35 | Raffinierie
36 |
37 |
38 | Saatgutproduktion
39 |
40 |
41 | Weinberg
42 |
43 |
44 | Winzerei
45 |
46 |
47 | Sägewerk
48 |
49 |
50 | Sojamich Produktion
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/config/tanneberg20/map.cfg:
--------------------------------------------------------------------------------
1 | // Full map name
2 | Name=Tanneberg
3 |
4 | // Short map name (for e.g. the navbar)
5 | Short=Tanneberg
6 |
7 | // Version of the map
8 | Version=2.0
9 |
10 | // Download link of the map
11 | Link=https://www.modhoster.de/mods/tanneberg-fs17
12 |
13 | // Map creator / copyright
14 | Copyright=Copyright ruffrider
15 |
16 | // Map size (standard: 2048; 4x maps: 4096)
17 | Size=2048
18 |
19 | // Config creator / copyright
20 | configBy=John Hawk
21 |
22 | // Version of the map config
23 | configVersion=1.4
24 |
25 | // Config format (old = php; new = xml)
26 | configFormat=xml
27 |
--------------------------------------------------------------------------------
/config/tanneberg20/pda_map_H.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/config/tanneberg20/pda_map_H.jpg
--------------------------------------------------------------------------------
/docs/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-hacker
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Titel
7 |
8 |
9 | Test
10 |
11 |
12 |
--------------------------------------------------------------------------------
/docs/nfmarsch29.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/docs/nfmarsch29.zip
--------------------------------------------------------------------------------
/docs/nfmarsch30.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/docs/nfmarsch30.zip
--------------------------------------------------------------------------------
/docs/nfmarsch4f13.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/docs/nfmarsch4f13.zip
--------------------------------------------------------------------------------
/include/coockie.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * "FS17 Webstats" is free software: you can redistribute it and/or
8 | * modify it under the terms of the GNU General Public License as published
9 | * by the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * "FS17 Webstats" is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | *
20 | */
21 |
22 | if (! defined ( 'IN_NFMWS' )) {
23 | exit ();
24 | }
25 |
26 | // Coockie laden, wenn vorhanden
27 | $cookieVersion = 12;
28 | $options = array ();
29 | if (isset ( $_COOKIE ['nfmarsch'] )) {
30 | $options = json_decode ( $_COOKIE ['nfmarsch'], true );
31 | if (isset ( $options ['version'] ) && $options ['version'] != $cookieVersion) {
32 | $options = array ();
33 | }
34 | }
35 |
36 | if (! isset ( $options ['general'] )) {
37 | $options ['general'] ['reload'] = true;
38 | $options ['general'] ['language'] = $defaultLanguage;
39 | $options ['general'] ['style'] = $defaultStyle;
40 | $options ['general'] ['hideFooter'] = 0;
41 | }
42 |
43 | if (! isset ( $options ['storage'] )) {
44 | $options ['storage'] ['sortByName'] = true;
45 | $options ['storage'] ['hideZero'] = true;
46 | $options ['storage'] ['showVehicles'] = true;
47 | $options ['storage'] ['onlyPallets'] = false;
48 | $options ['storage'] ['3column'] = true;
49 | $options ['storage'] ['hideAnimalsInStorage'] = false;
50 | }
51 |
52 | if (! isset ( $options ['production'] )) {
53 | $options ['production'] ['sortByName'] = true;
54 | $options ['production'] ['sortFullProducts'] = true;
55 | $options ['production'] ['showTooltip'] = false;
56 | $options ['production'] ['hideNotUsed'] = false;
57 | $options ['production'] ['hidePlant'] = array();
58 | }
59 |
60 | if (! isset ( $options ['defaultView'] )) {
61 | $options ['defaultView'] ['factories'] = false;
62 | $options ['defaultView'] ['commodities'] = false;
63 | }
64 |
65 | $_SESSION ['language'] = $options ['general'] ['language'];
66 |
--------------------------------------------------------------------------------
/include/factories.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * "FS17 Webstats" is free software: you can redistribute it and/or
8 | * modify it under the terms of the GNU General Public License as published
9 | * by the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * "FS17 Webstats" is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | *
20 | */
21 | if (! defined ( 'IN_NFMWS' )) {
22 | exit ();
23 | }
24 |
25 | // ausgewählte Fabrik ermitteln
26 | $default = current ( $plants );
27 | if ($options ['defaultView'] ['factories']) {
28 | if (isset ( $plants [$options ['defaultView'] ['factories']] )) {
29 | $default = $plants [$options ['defaultView'] ['factories']];
30 | }
31 | }
32 | $object = GetParam ( 'object', 'G', $default ['i3dName'] );
33 | $l_object = translate ( $object );
34 | if (! isset ( $plants [$l_object] )) {
35 | $l_object = translate ( $default ['i3dName'] );
36 | }
37 | if ($options ['defaultView'] ['factories'] != $l_object) {
38 | $options ['defaultView'] ['factories'] = $l_object;
39 | $options ['version'] = $cookieVersion;
40 | setcookie ( 'nfmarsch', json_encode ( $options ), time () + 31536000 );
41 | }
42 |
43 | uksort ( $plants, "strnatcasecmp" );
44 | $smarty->assign ( 'selectedPlant', $object );
45 | $smarty->assign ( 'plantName', $l_object );
46 | $smarty->assign ( 'plants', $plants );
47 |
48 |
--------------------------------------------------------------------------------
/include/husbandry.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * "FS17 Webstats" is free software: you can redistribute it and/or
8 | * modify it under the terms of the GNU General Public License as published
9 | * by the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * "FS17 Webstats" is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | *
20 | */
21 | if (! defined('IN_NFMWS') && ! defined('IN_INSTALL')) {
22 | exit();
23 | }
24 |
25 | $animalPlants = array(
26 | "Animals_sheep",
27 | "Animals_pig",
28 | "Animals_cow"
29 | );
30 | foreach ($animalPlants as $key => $animalPlant) {
31 | $animalPlants[$key] = translate($animalPlant);
32 | }
33 | $smarty->assign('animalPlants', $animalPlants);
34 | $smarty->assign('animalPallets', $animalPallets);
35 | $smarty->assign('plants', $plants);
36 |
--------------------------------------------------------------------------------
/include/lizenz.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * "FS17 Webstats" is free software: you can redistribute it and/or
8 | * modify it under the terms of the GNU General Public License as published
9 | * by the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * "FS17 Webstats" is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | *
20 | */
21 |
22 | if (! defined ( 'IN_NFMWS' )) {
23 | exit ();
24 | }
25 |
26 | // Workaround - sonst wird die Seite nicht angezeigt, wenn der Server offline ist
27 | $serverOnine = true;
28 |
--------------------------------------------------------------------------------
/include/prices.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * "FS17 Webstats" is free software: you can redistribute it and/or
8 | * modify it under the terms of the GNU General Public License as published
9 | * by the Free Software Foundation, either version 3 of the License, or
10 | * (at your option) any later version.
11 | *
12 | * "FS17 Webstats" is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program. If not, see .
19 | *
20 | */
21 | ksort ( $prices );
22 | foreach ( $prices as $fillType => $fillTyleData ) {
23 | ksort ( $prices [$fillType] ['locations'] );
24 | }
25 | $smarty->assign('prices', $prices);
26 | $smarty->assign('commodities', $commodities);
27 | ksort($sellingPoints);
28 | $smarty->assign('sellingPoints', $sellingPoints);
--------------------------------------------------------------------------------
/include/smarty/plugins/function.counter.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: counter
13 | * Purpose: print out a counter value
14 | *
15 | * @author Monte Ohrt
16 | * @link http://www.smarty.net/manual/en/language.function.counter.php {counter}
17 | * (Smarty online manual)
18 | *
19 | * @param array $params
20 | * parameters
21 | * @param Smarty_Internal_Template $template
22 | * template object
23 | *
24 | * @return string|null
25 | */
26 | function smarty_function_counter($params, $template) {
27 | static $counters = array ();
28 |
29 | $name = (isset ( $params ['name'] )) ? $params ['name'] : 'default';
30 | if (! isset ( $counters [$name] )) {
31 | $counters [$name] = array (
32 | 'start' => 1,
33 | 'skip' => 1,
34 | 'direction' => 'up',
35 | 'count' => 1
36 | );
37 | }
38 | $counter = & $counters [$name];
39 |
40 | if (isset ( $params ['start'] )) {
41 | $counter ['start'] = $counter ['count'] = ( int ) $params ['start'];
42 | }
43 |
44 | if (! empty ( $params ['assign'] )) {
45 | $counter ['assign'] = $params ['assign'];
46 | }
47 |
48 | if (isset ( $counter ['assign'] )) {
49 | $template->assign ( $counter ['assign'], $counter ['count'] );
50 | }
51 |
52 | if (isset ( $params ['print'] )) {
53 | $print = ( bool ) $params ['print'];
54 | } else {
55 | $print = empty ( $counter ['assign'] );
56 | }
57 |
58 | if ($print) {
59 | $retval = $counter ['count'];
60 | } else {
61 | $retval = null;
62 | }
63 |
64 | if (isset ( $params ['skip'] )) {
65 | $counter ['skip'] = $params ['skip'];
66 | }
67 |
68 | if (isset ( $params ['direction'] )) {
69 | $counter ['direction'] = $params ['direction'];
70 | }
71 |
72 | if ($counter ['direction'] == "down") {
73 | $counter ['count'] -= $counter ['skip'];
74 | } else {
75 | $counter ['count'] += $counter ['skip'];
76 | }
77 |
78 | return $retval;
79 | }
80 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifier.printf.php:
--------------------------------------------------------------------------------
1 | , Rueegg Tuck Partner GmbH
10 | * Purpose: Applies sprintf to a string and retruns the result
11 | * Example: {$var|printf:"text1":"text2"}
12 | * -------------------------------------------------------------
13 | *
14 | * @param $string
15 | * @param null $charlist
16 | * @return string
17 | */
18 | //@codingStandardsIgnoreStart
19 | function smarty_modifier_printf($string)
20 | {
21 | //@codingStandardsIgnoreEnd
22 | return call_user_func_array('sprintf', func_get_args());
23 | }
--------------------------------------------------------------------------------
/include/smarty/plugins/modifier.regex_replace.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: regex_replace
13 | * Purpose: regular expression search/replace
14 | *
15 | * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php
16 | * regex_replace (Smarty online manual)
17 | * @author Monte Ohrt
18 | *
19 | * @param string $string
20 | * input string
21 | * @param string|array $search
22 | * regular expression(s) to search for
23 | * @param string|array $replace
24 | * string(s) that should be replaced
25 | * @param int $limit
26 | * the maximum number of replacements
27 | *
28 | * @return string
29 | */
30 | function smarty_modifier_regex_replace($string, $search, $replace, $limit = -1) {
31 | if (is_array ( $search )) {
32 | foreach ( $search as $idx => $s ) {
33 | $search [$idx] = _smarty_regex_replace_check ( $s );
34 | }
35 | } else {
36 | $search = _smarty_regex_replace_check ( $search );
37 | }
38 |
39 | return preg_replace ( $search, $replace, $string, $limit );
40 | }
41 |
42 | /**
43 | *
44 | * @param string $search
45 | * string(s) that should be replaced
46 | *
47 | * @return string
48 | * @ignore
49 | *
50 | */
51 | function _smarty_regex_replace_check($search) {
52 | // null-byte injection detection
53 | // anything behind the first null-byte is ignored
54 | if (($pos = strpos ( $search, "\0" )) !== false) {
55 | $search = substr ( $search, 0, $pos );
56 | }
57 | // remove eval-modifier from $search
58 | if (preg_match ( '!([a-zA-Z\s]+)$!s', $search, $match ) && (strpos ( $match [1], 'e' ) !== false)) {
59 | $search = substr ( $search, 0, - strlen ( $match [1] ) ) . preg_replace ( '![e\s]+!', '', $match [1] );
60 | }
61 |
62 | return $search;
63 | }
64 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifier.replace.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: replace
13 | * Purpose: simple search/replace
14 | *
15 | * @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual)
16 | * @author Monte Ohrt
17 | * @author Uwe Tews
18 | *
19 | * @param string $string
20 | * input string
21 | * @param string $search
22 | * text to search for
23 | * @param string $replace
24 | * replacement text
25 | *
26 | * @return string
27 | */
28 | function smarty_modifier_replace($string, $search, $replace) {
29 | if (Smarty::$_MBSTRING) {
30 | require_once (SMARTY_PLUGINS_DIR . 'shared.mb_str_replace.php');
31 |
32 | return smarty_mb_str_replace ( $search, $replace, $string );
33 | }
34 |
35 | return str_replace ( $search, $replace, $string );
36 | }
37 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifier.spacify.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: spacify
13 | * Purpose: add spaces between characters in a string
14 | *
15 | * @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty online manual)
16 | * @author Monte Ohrt
17 | *
18 | * @param string $string
19 | * input string
20 | * @param string $spacify_char
21 | * string to insert between characters.
22 | *
23 | * @return string
24 | */
25 | function smarty_modifier_spacify($string, $spacify_char = ' ') {
26 | // well… what about charsets besides latin and UTF-8?
27 | return implode ( $spacify_char, preg_split ( '//' . Smarty::$_UTF8_MODIFIER, $string, - 1, PREG_SPLIT_NO_EMPTY ) );
28 | }
29 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifier.truncate.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: truncate
13 | * Purpose: Truncate a string to a certain length if necessary,
14 | * optionally splitting in the middle of a word, and
15 | * appending the $etc string or inserting $etc into the middle.
16 | *
17 | * @link http://smarty.php.net/manual/en/language.modifier.truncate.php truncate (Smarty online manual)
18 | * @author Monte Ohrt
19 | *
20 | * @param string $string
21 | * input string
22 | * @param integer $length
23 | * length of truncated text
24 | * @param string $etc
25 | * end string
26 | * @param boolean $break_words
27 | * truncate at word boundary
28 | * @param boolean $middle
29 | * truncate in the middle of text
30 | *
31 | * @return string truncated string
32 | */
33 | function smarty_modifier_truncate($string, $length = 80, $etc = '...', $break_words = false, $middle = false) {
34 | if ($length == 0) {
35 | return '';
36 | }
37 |
38 | if (Smarty::$_MBSTRING) {
39 | if (mb_strlen ( $string, Smarty::$_CHARSET ) > $length) {
40 | $length -= min ( $length, mb_strlen ( $etc, Smarty::$_CHARSET ) );
41 | if (! $break_words && ! $middle) {
42 | $string = preg_replace ( '/\s+?(\S+)?$/' . Smarty::$_UTF8_MODIFIER, '', mb_substr ( $string, 0, $length + 1, Smarty::$_CHARSET ) );
43 | }
44 | if (! $middle) {
45 | return mb_substr ( $string, 0, $length, Smarty::$_CHARSET ) . $etc;
46 | }
47 |
48 | return mb_substr ( $string, 0, $length / 2, Smarty::$_CHARSET ) . $etc . mb_substr ( $string, - $length / 2, $length, Smarty::$_CHARSET );
49 | }
50 |
51 | return $string;
52 | }
53 |
54 | // no MBString fallback
55 | if (isset ( $string [$length] )) {
56 | $length -= min ( $length, strlen ( $etc ) );
57 | if (! $break_words && ! $middle) {
58 | $string = preg_replace ( '/\s+?(\S+)?$/', '', substr ( $string, 0, $length + 1 ) );
59 | }
60 | if (! $middle) {
61 | return substr ( $string, 0, $length ) . $etc;
62 | }
63 |
64 | return substr ( $string, 0, $length / 2 ) . $etc . substr ( $string, - $length / 2 );
65 | }
66 |
67 | return $string;
68 | }
69 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.cat.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: cat
13 | * Date: Feb 24, 2003
14 | * Purpose: catenate a value to a variable
15 | * Input: string to catenate
16 | * Example: {$var|cat:"foo"}
17 | *
18 | * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat
19 | * (Smarty online manual)
20 | * @author Uwe Tews
21 | *
22 | * @param array $params
23 | * parameters
24 | *
25 | * @return string with compiled code
26 | */
27 | function smarty_modifiercompiler_cat($params) {
28 | return '(' . implode ( ').(', $params ) . ')';
29 | }
30 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.count_characters.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: count_characteres
13 | * Purpose: count the number of characters in a text
14 | *
15 | * @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual)
16 | * @author Uwe Tews
17 | *
18 | * @param array $params
19 | * parameters
20 | *
21 | * @return string with compiled code
22 | */
23 | function smarty_modifiercompiler_count_characters($params) {
24 | if (! isset ( $params [1] ) || $params [1] != 'true') {
25 | return 'preg_match_all(\'/[^\s]/' . Smarty::$_UTF8_MODIFIER . '\',' . $params [0] . ', $tmp)';
26 | }
27 | if (Smarty::$_MBSTRING) {
28 | return 'mb_strlen(' . $params [0] . ', \'' . addslashes ( Smarty::$_CHARSET ) . '\')';
29 | }
30 | // no MBString fallback
31 | return 'strlen(' . $params [0] . ')';
32 | }
33 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.count_paragraphs.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: count_paragraphs
13 | * Purpose: count the number of paragraphs in a text
14 | *
15 | * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php
16 | * count_paragraphs (Smarty online manual)
17 | * @author Uwe Tews
18 | *
19 | * @param array $params
20 | * parameters
21 | *
22 | * @return string with compiled code
23 | */
24 | function smarty_modifiercompiler_count_paragraphs($params) {
25 | // count \r or \n characters
26 | return '(preg_match_all(\'#[\r\n]+#\', ' . $params [0] . ', $tmp)+1)';
27 | }
28 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.count_sentences.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: count_sentences
13 | * Purpose: count the number of sentences in a text
14 | *
15 | * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php
16 | * count_sentences (Smarty online manual)
17 | * @author Uwe Tews
18 | *
19 | * @param array $params
20 | * parameters
21 | *
22 | * @return string with compiled code
23 | */
24 | function smarty_modifiercompiler_count_sentences($params) {
25 | // find periods, question marks, exclamation marks with a word before but not after.
26 | return 'preg_match_all("#\w[\.\?\!](\W|$)#S' . Smarty::$_UTF8_MODIFIER . '", ' . $params [0] . ', $tmp)';
27 | }
28 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.count_words.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: count_words
13 | * Purpose: count the number of words in a text
14 | *
15 | * @link http://www.smarty.net/manual/en/language.modifier.count.words.php count_words (Smarty online manual)
16 | * @author Uwe Tews
17 | *
18 | * @param array $params
19 | * parameters
20 | *
21 | * @return string with compiled code
22 | */
23 | function smarty_modifiercompiler_count_words($params) {
24 | if (Smarty::$_MBSTRING) {
25 | // return 'preg_match_all(\'#[\w\pL]+#' . Smarty::$_UTF8_MODIFIER . '\', ' . $params[0] . ', $tmp)';
26 | // expression taken from http://de.php.net/manual/en/function.str-word-count.php#85592
27 | return 'preg_match_all(\'/\p{L}[\p{L}\p{Mn}\p{Pd}\\\'\x{2019}]*/' . Smarty::$_UTF8_MODIFIER . '\', ' . $params [0] . ', $tmp)';
28 | }
29 | // no MBString fallback
30 | return 'str_word_count(' . $params [0] . ')';
31 | }
32 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.default.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: default
13 | * Purpose: designate default value for empty variables
14 | *
15 | * @link http://www.smarty.net/manual/en/language.modifier.default.php default (Smarty online manual)
16 | * @author Uwe Tews
17 | *
18 | * @param array $params
19 | * parameters
20 | *
21 | * @return string with compiled code
22 | */
23 | function smarty_modifiercompiler_default($params) {
24 | $output = $params [0];
25 | if (! isset ( $params [1] )) {
26 | $params [1] = "''";
27 | }
28 |
29 | array_shift ( $params );
30 | foreach ( $params as $param ) {
31 | $output = '(($tmp = @' . $output . ')===null||$tmp===\'\' ? ' . $param . ' : $tmp)';
32 | }
33 |
34 | return $output;
35 | }
36 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.from_charset.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: from_charset
13 | * Purpose: convert character encoding from $charset to internal encoding
14 | *
15 | * @author Rodney Rehm
16 | *
17 | * @param array $params
18 | * parameters
19 | *
20 | * @return string with compiled code
21 | */
22 | function smarty_modifiercompiler_from_charset($params) {
23 | if (! Smarty::$_MBSTRING) {
24 | // FIXME: (rodneyrehm) shouldn't this throw an error?
25 | return $params [0];
26 | }
27 |
28 | if (! isset ( $params [1] )) {
29 | $params [1] = '"ISO-8859-1"';
30 | }
31 |
32 | return 'mb_convert_encoding(' . $params [0] . ', "' . addslashes ( Smarty::$_CHARSET ) . '", ' . $params [1] . ')';
33 | }
34 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.indent.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: indent
13 | * Purpose: indent lines of text
14 | *
15 | * @link http://www.smarty.net/manual/en/language.modifier.indent.php indent (Smarty online manual)
16 | * @author Uwe Tews
17 | *
18 | * @param array $params
19 | * parameters
20 | *
21 | * @return string with compiled code
22 | */
23 | function smarty_modifiercompiler_indent($params) {
24 | if (! isset ( $params [1] )) {
25 | $params [1] = 4;
26 | }
27 | if (! isset ( $params [2] )) {
28 | $params [2] = "' '";
29 | }
30 |
31 | return 'preg_replace(\'!^!m\',str_repeat(' . $params [2] . ',' . $params [1] . '),' . $params [0] . ')';
32 | }
33 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.lower.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: lower
13 | * Purpose: convert string to lowercase
14 | *
15 | * @link http://www.smarty.net/manual/en/language.modifier.lower.php lower (Smarty online manual)
16 | * @author Monte Ohrt
17 | * @author Uwe Tews
18 | *
19 | * @param array $params
20 | * parameters
21 | *
22 | * @return string with compiled code
23 | */
24 | function smarty_modifiercompiler_lower($params) {
25 | if (Smarty::$_MBSTRING) {
26 | return 'mb_strtolower(' . $params [0] . ', \'' . addslashes ( Smarty::$_CHARSET ) . '\')';
27 | }
28 | // no MBString fallback
29 | return 'strtolower(' . $params [0] . ')';
30 | }
31 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.noprint.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: noprint
13 | * Purpose: return an empty string
14 | *
15 | * @author Uwe Tews
16 | * @return string with compiled code
17 | */
18 | function smarty_modifiercompiler_noprint() {
19 | return "''";
20 | }
21 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.string_format.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: string_format
13 | * Purpose: format strings via sprintf
14 | *
15 | * @link http://www.smarty.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual)
16 | * @author Uwe Tews
17 | *
18 | * @param array $params
19 | * parameters
20 | *
21 | * @return string with compiled code
22 | */
23 | function smarty_modifiercompiler_string_format($params) {
24 | return 'sprintf(' . $params [1] . ',' . $params [0] . ')';
25 | }
26 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.strip.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: strip
13 | * Purpose: Replace all repeated spaces, newlines, tabs
14 | * with a single space or supplied replacement string.
15 | * Example: {$var|strip} {$var|strip:" "}
16 | * Date: September 25th, 2002
17 | *
18 | * @link http://www.smarty.net/manual/en/language.modifier.strip.php strip (Smarty online manual)
19 | * @author Uwe Tews
20 | *
21 | * @param array $params
22 | * parameters
23 | *
24 | * @return string with compiled code
25 | */
26 | function smarty_modifiercompiler_strip($params) {
27 | if (! isset ( $params [1] )) {
28 | $params [1] = "' '";
29 | }
30 |
31 | return "preg_replace('!\s+!" . Smarty::$_UTF8_MODIFIER . "', {$params[1]},{$params[0]})";
32 | }
33 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.strip_tags.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: strip_tags
13 | * Purpose: strip html tags from text
14 | *
15 | * @link http://www.smarty.net/docs/en/language.modifier.strip.tags.tpl strip_tags (Smarty online manual)
16 | * @author Uwe Tews
17 | *
18 | * @param array $params
19 | * parameters
20 | *
21 | * @return string with compiled code
22 | */
23 | function smarty_modifiercompiler_strip_tags($params) {
24 | if (! isset ( $params [1] ) || $params [1] === true || trim ( $params [1], '"' ) == 'true') {
25 | return "preg_replace('!<[^>]*?>!', ' ', {$params[0]})";
26 | } else {
27 | return 'strip_tags(' . $params [0] . ')';
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.to_charset.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: to_charset
13 | * Purpose: convert character encoding from internal encoding to $charset
14 | *
15 | * @author Rodney Rehm
16 | *
17 | * @param array $params
18 | * parameters
19 | *
20 | * @return string with compiled code
21 | */
22 | function smarty_modifiercompiler_to_charset($params) {
23 | if (! Smarty::$_MBSTRING) {
24 | // FIXME: (rodneyrehm) shouldn't this throw an error?
25 | return $params [0];
26 | }
27 |
28 | if (! isset ( $params [1] )) {
29 | $params [1] = '"ISO-8859-1"';
30 | }
31 |
32 | return 'mb_convert_encoding(' . $params [0] . ', ' . $params [1] . ', "' . addslashes ( Smarty::$_CHARSET ) . '")';
33 | }
34 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.unescape.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: unescape
13 | * Purpose: unescape html entities
14 | *
15 | * @author Rodney Rehm
16 | *
17 | * @param array $params
18 | * parameters
19 | *
20 | * @return string with compiled code
21 | */
22 | function smarty_modifiercompiler_unescape($params) {
23 | if (! isset ( $params [1] )) {
24 | $params [1] = 'html';
25 | }
26 | if (! isset ( $params [2] )) {
27 | $params [2] = '\'' . addslashes ( Smarty::$_CHARSET ) . '\'';
28 | } else {
29 | $params [2] = "'" . $params [2] . "'";
30 | }
31 |
32 | switch (trim ( $params [1], '"\'' )) {
33 | case 'entity' :
34 | case 'htmlall' :
35 | if (Smarty::$_MBSTRING) {
36 | return 'mb_convert_encoding(' . $params [0] . ', ' . $params [2] . ', \'HTML-ENTITIES\')';
37 | }
38 |
39 | return 'html_entity_decode(' . $params [0] . ', ENT_NOQUOTES, ' . $params [2] . ')';
40 |
41 | case 'html' :
42 | return 'htmlspecialchars_decode(' . $params [0] . ', ENT_QUOTES)';
43 |
44 | case 'url' :
45 | return 'rawurldecode(' . $params [0] . ')';
46 |
47 | default :
48 | return $params [0];
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.upper.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: lower
13 | * Purpose: convert string to uppercase
14 | *
15 | * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual)
16 | * @author Uwe Tews
17 | *
18 | * @param array $params
19 | * parameters
20 | *
21 | * @return string with compiled code
22 | */
23 | function smarty_modifiercompiler_upper($params) {
24 | if (Smarty::$_MBSTRING) {
25 | return 'mb_strtoupper(' . $params [0] . ', \'' . addslashes ( Smarty::$_CHARSET ) . '\')';
26 | }
27 | // no MBString fallback
28 | return 'strtoupper(' . $params [0] . ')';
29 | }
30 |
--------------------------------------------------------------------------------
/include/smarty/plugins/modifiercompiler.wordwrap.php:
--------------------------------------------------------------------------------
1 |
12 | * Name: wordwrap
13 | * Purpose: wrap a string of text at a given length
14 | *
15 | * @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php wordwrap (Smarty online manual)
16 | * @author Uwe Tews
17 | *
18 | * @param array $params
19 | * parameters
20 | * @param
21 | * $compiler
22 | *
23 | * @return string with compiled code
24 | */
25 | function smarty_modifiercompiler_wordwrap($params, $compiler) {
26 | if (! isset ( $params [1] )) {
27 | $params [1] = 80;
28 | }
29 | if (! isset ( $params [2] )) {
30 | $params [2] = '"\n"';
31 | }
32 | if (! isset ( $params [3] )) {
33 | $params [3] = 'false';
34 | }
35 | $function = 'wordwrap';
36 | if (Smarty::$_MBSTRING) {
37 | if ($compiler->template->caching && ($compiler->tag_nocache | $compiler->nocache)) {
38 | $compiler->parent_compiler->template->compiled->required_plugins ['nocache'] ['wordwrap'] ['modifier'] ['file'] = SMARTY_PLUGINS_DIR . 'shared.mb_wordwrap.php';
39 | $compiler->template->required_plugins ['nocache'] ['wordwrap'] ['modifier'] ['function'] = 'smarty_mb_wordwrap';
40 | } else {
41 | $compiler->parent_compiler->template->compiled->required_plugins ['compiled'] ['wordwrap'] ['modifier'] ['file'] = SMARTY_PLUGINS_DIR . 'shared.mb_wordwrap.php';
42 | $compiler->parent_compiler->template->compiled->required_plugins ['compiled'] ['wordwrap'] ['modifier'] ['function'] = 'smarty_mb_wordwrap';
43 | }
44 | $function = 'smarty_mb_wordwrap';
45 | }
46 |
47 | return $function . '(' . $params [0] . ',' . $params [1] . ',' . $params [2] . ',' . $params [3] . ')';
48 | }
49 |
--------------------------------------------------------------------------------
/include/smarty/plugins/shared.escape_special_chars.php:
--------------------------------------------------------------------------------
1 | =' )) {
9 | /**
10 | * escape_special_chars common function
11 | * Function: smarty_function_escape_special_chars
12 | * Purpose: used by other smarty functions to escape
13 | * special chars except for already escaped ones
14 | *
15 | * @author Monte Ohrt
16 | *
17 | * @param string $string
18 | * text that should by escaped
19 | *
20 | * @return string
21 | */
22 | function smarty_function_escape_special_chars($string) {
23 | if (! is_array ( $string )) {
24 | $string = htmlspecialchars ( $string, ENT_COMPAT, Smarty::$_CHARSET, false );
25 | }
26 |
27 | return $string;
28 | }
29 | } else {
30 | /**
31 | * escape_special_chars common function
32 | * Function: smarty_function_escape_special_chars
33 | * Purpose: used by other smarty functions to escape
34 | * special chars except for already escaped ones
35 | *
36 | * @author Monte Ohrt
37 | *
38 | * @param string $string
39 | * text that should by escaped
40 | *
41 | * @return string
42 | */
43 | function smarty_function_escape_special_chars($string) {
44 | if (! is_array ( $string )) {
45 | $string = preg_replace ( '!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string );
46 | $string = htmlspecialchars ( $string );
47 | $string = str_replace ( array (
48 | '%%%SMARTY_START%%%',
49 | '%%%SMARTY_END%%%'
50 | ), array (
51 | '&',
52 | ';'
53 | ), $string );
54 | }
55 |
56 | return $string;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/include/smarty/plugins/shared.literal_compiler_param.php:
--------------------------------------------------------------------------------
1 |
11 | * Purpose: used by other smarty functions to make a timestamp from a string.
12 | *
13 | * @author Monte Ohrt
14 | *
15 | * @param DateTime|int|string $string
16 | * date object, timestamp or string that can be converted using strtotime()
17 | *
18 | * @return int
19 | */
20 | function smarty_make_timestamp($string) {
21 | if (empty ( $string )) {
22 | // use "now":
23 | return time ();
24 | } elseif ($string instanceof DateTime || (interface_exists ( 'DateTimeInterface', false ) && $string instanceof DateTimeInterface)) {
25 | return ( int ) $string->format ( 'U' ); // PHP 5.2 BC
26 | } elseif (strlen ( $string ) == 14 && ctype_digit ( $string )) {
27 | // it is mysql timestamp format of YYYYMMDDHHMMSS?
28 | return mktime ( substr ( $string, 8, 2 ), substr ( $string, 10, 2 ), substr ( $string, 12, 2 ), substr ( $string, 4, 2 ), substr ( $string, 6, 2 ), substr ( $string, 0, 4 ) );
29 | } elseif (is_numeric ( $string )) {
30 | // it is a numeric string, we handle it as timestamp
31 | return ( int ) $string;
32 | } else {
33 | // strtotime should handle it
34 | $time = strtotime ( $string );
35 | if ($time == - 1 || $time === false) {
36 | // strtotime() was not able to parse $string, use "now":
37 | return time ();
38 | }
39 |
40 | return $time;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/include/smarty/plugins/shared.mb_str_replace.php:
--------------------------------------------------------------------------------
1 | dataObjectName = 'Data_object ' . (isset ( $name ) ? "'{$name}'" : self::$count);
56 | $this->smarty = $smarty;
57 | if (is_object ( $_parent )) {
58 | // when object set up back pointer
59 | $this->parent = $_parent;
60 | } elseif (is_array ( $_parent )) {
61 | // set up variable values
62 | foreach ( $_parent as $_key => $_val ) {
63 | $this->tpl_vars [$_key] = new Smarty_Variable ( $_val );
64 | }
65 | } elseif ($_parent != null) {
66 | throw new SmartyException ( "Wrong type for template variables" );
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_compile_append.php:
--------------------------------------------------------------------------------
1 | required_attributes = array (
33 | 'var',
34 | 'value'
35 | );
36 | $this->shorttag_order = array (
37 | 'var',
38 | 'value'
39 | );
40 | $this->optional_attributes = array (
41 | 'scope',
42 | 'index'
43 | );
44 | // check and get attributes
45 | $_attr = $this->getAttributes ( $compiler, $args );
46 | // map to compile assign attributes
47 | if (isset ( $_attr ['index'] )) {
48 | $_params ['smarty_internal_index'] = '[' . $_attr ['index'] . ']';
49 | unset ( $_attr ['index'] );
50 | } else {
51 | $_params ['smarty_internal_index'] = '[]';
52 | }
53 | $_new_attr = array ();
54 | foreach ( $_attr as $key => $value ) {
55 | $_new_attr [] = array (
56 | $key => $value
57 | );
58 | }
59 | // call compile assign
60 | return parent::compile ( $_new_attr, $compiler, $_params );
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_compile_debug.php:
--------------------------------------------------------------------------------
1 | getAttributes ( $compiler, $args );
32 |
33 | // compile always as nocache
34 | $compiler->tag_nocache = true;
35 |
36 | // display debug template
37 | $_output = "display_debug(\$_smarty_tpl);\n";
38 | $_output .= "unset(\$_smarty_debug);\n?>";
39 | return $_output;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_compile_eval.php:
--------------------------------------------------------------------------------
1 | required_attributes = array (
59 | 'var'
60 | );
61 | $this->optional_attributes = array (
62 | 'assign'
63 | );
64 | // check and get attributes
65 | $_attr = $this->getAttributes ( $compiler, $args );
66 | if (isset ( $_attr ['assign'] )) {
67 | // output will be stored in a smarty variable instead of being displayed
68 | $_assign = $_attr ['assign'];
69 | }
70 |
71 | // create template object
72 | $_output = "\$_template = new {$compiler->smarty->template_class}('eval:'." . $_attr ['var'] . ", \$_smarty_tpl->smarty, \$_smarty_tpl);";
73 | // was there an assign attribute?
74 | if (isset ( $_assign )) {
75 | $_output .= "\$_smarty_tpl->assign($_assign,\$_template->fetch());";
76 | } else {
77 | $_output .= "echo \$_template->fetch();";
78 | }
79 |
80 | return "";
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_compile_ldelim.php:
--------------------------------------------------------------------------------
1 | getAttributes ( $compiler, $args );
32 | if ($_attr ['nocache'] === true) {
33 | $compiler->trigger_template_error ( 'nocache option not allowed', null, true );
34 | }
35 | // this tag does not return compiled code
36 | $compiler->has_code = true;
37 |
38 | return $compiler->smarty->left_delimiter;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_compile_private_function_plugin.php:
--------------------------------------------------------------------------------
1 | has_output = true;
55 |
56 | // check and get attributes
57 | $_attr = $this->getAttributes ( $compiler, $args );
58 | if ($_attr ['nocache'] === true) {
59 | $compiler->tag_nocache = true;
60 | }
61 | unset ( $_attr ['nocache'] );
62 | // convert attributes into parameter array string
63 | $_paramsArray = array ();
64 | foreach ( $_attr as $_key => $_value ) {
65 | if (is_int ( $_key )) {
66 | $_paramsArray [] = "$_key=>$_value";
67 | } else {
68 | $_paramsArray [] = "'$_key'=>$_value";
69 | }
70 | }
71 | $_params = 'array(' . implode ( ",", $_paramsArray ) . ')';
72 | // compile code
73 | $output = "\n";
74 |
75 | return $output;
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_compile_rdelim.php:
--------------------------------------------------------------------------------
1 | getAttributes ( $compiler, $args );
31 | if ($_attr ['nocache'] === true) {
32 | $compiler->trigger_template_error ( 'nocache option not allowed', null, true );
33 | }
34 | // this tag does not return compiled code
35 | $compiler->has_code = true;
36 |
37 | return $compiler->smarty->right_delimiter;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_compile_setfilter.php:
--------------------------------------------------------------------------------
1 | variable_filter_stack [] = $compiler->variable_filters;
32 | $compiler->variable_filters = $parameter ['modifier_list'];
33 | // this tag does not return compiled code
34 | $compiler->has_code = false;
35 |
36 | return true;
37 | }
38 | }
39 |
40 | /**
41 | * Smarty Internal Plugin Compile Setfilterclose Class
42 | *
43 | * @package Smarty
44 | * @subpackage Compiler
45 | */
46 | class Smarty_Internal_Compile_Setfilterclose extends Smarty_Internal_CompileBase {
47 | /**
48 | * Compiles code for the {/setfilter} tag
49 | * This tag does not generate compiled output.
50 | * It resets variable filter.
51 | *
52 | * @param array $args
53 | * array with attributes from parser
54 | * @param object $compiler
55 | * compiler object
56 | *
57 | * @return string compiled code
58 | */
59 | public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) {
60 | $_attr = $this->getAttributes ( $compiler, $args );
61 | // reset variable filter to previous state
62 | if (count ( $compiler->variable_filter_stack )) {
63 | $compiler->variable_filters = array_pop ( $compiler->variable_filter_stack );
64 | } else {
65 | $compiler->variable_filters = array ();
66 | }
67 | // this tag does not return compiled code
68 | $compiler->has_code = false;
69 |
70 | return true;
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_compile_shared_inheritance.php:
--------------------------------------------------------------------------------
1 | _cache ['inheritanceInit'] )) {
27 | $compiler->registerPostCompileCallback ( array (
28 | 'Smarty_Internal_Compile_Shared_Inheritance',
29 | 'postCompile'
30 | ), array (
31 | $initChildSequence
32 | ), 'inheritanceInit', $initChildSequence );
33 |
34 | $compiler->_cache ['inheritanceInit'] = true;
35 | }
36 | }
37 |
38 | /**
39 | * Compile inheritance initialization code as prefix
40 | *
41 | * @param \Smarty_Internal_TemplateCompilerBase $compiler
42 | * @param bool|false $initChildSequence
43 | * if true force child template
44 | */
45 | static function postCompile(Smarty_Internal_TemplateCompilerBase $compiler, $initChildSequence = false) {
46 | $compiler->prefixCompiledCode .= "ext->_inheritance->init(\$_smarty_tpl, " . var_export ( $initChildSequence, true ) . ");\n?>\n";
47 | }
48 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_addautoloadfilters.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
32 | if ($type !== null) {
33 | $this->_checkFilterType ( $type );
34 | if (! empty ( $smarty->autoload_filters [$type] )) {
35 | $smarty->autoload_filters [$type] = array_merge ( $smarty->autoload_filters [$type], ( array ) $filters );
36 | } else {
37 | $smarty->autoload_filters [$type] = ( array ) $filters;
38 | }
39 | } else {
40 | foreach ( ( array ) $filters as $type => $value ) {
41 | $this->_checkFilterType ( $type );
42 | if (! empty ( $smarty->autoload_filters [$type] )) {
43 | $smarty->autoload_filters [$type] = array_merge ( $smarty->autoload_filters [$type], ( array ) $value );
44 | } else {
45 | $smarty->autoload_filters [$type] = ( array ) $value;
46 | }
47 | }
48 | }
49 | return $obj;
50 | }
51 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_adddefaultmodifiers.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
34 | if (is_array ( $modifiers )) {
35 | $this->default_modifiers = array_merge ( $smarty->default_modifiers, $modifiers );
36 | } else {
37 | $smarty->default_modifiers [] = $modifiers;
38 | }
39 | return $obj;
40 | }
41 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_appendbyref.php:
--------------------------------------------------------------------------------
1 | tpl_vars [$tpl_var] )) {
34 | $data->tpl_vars [$tpl_var] = new Smarty_Variable ();
35 | }
36 | if (! is_array ( $data->tpl_vars [$tpl_var]->value )) {
37 | settype ( $data->tpl_vars [$tpl_var]->value, 'array' );
38 | }
39 | if ($merge && is_array ( $value )) {
40 | foreach ( $value as $_key => $_val ) {
41 | $data->tpl_vars [$tpl_var]->value [$_key] = &$value [$_key];
42 | }
43 | } else {
44 | $data->tpl_vars [$tpl_var]->value [] = &$value;
45 | }
46 | if ($data->_objType == 2 && $data->scope) {
47 | $data->ext->_updateScope->updateScope ( $data, $tpl_var );
48 | }
49 | }
50 | return $data;
51 | }
52 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_assignbyref.php:
--------------------------------------------------------------------------------
1 | tpl_vars [$tpl_var] = new Smarty_Variable ( null, $nocache );
30 | $data->tpl_vars [$tpl_var]->value = &$value;
31 | if ($data->_objType == 2 && $data->scope) {
32 | $data->ext->_updateScope->updateScope ( $data, $tpl_var );
33 | }
34 | }
35 | return $data;
36 | }
37 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_assignglobal.php:
--------------------------------------------------------------------------------
1 | _objType == 2 ) {
38 | $ptr->tpl_vars [$varName] = clone Smarty::$global_tpl_vars [$varName];
39 | $ptr = $ptr->parent;
40 | }
41 | }
42 | return $data;
43 | }
44 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_clearallassign.php:
--------------------------------------------------------------------------------
1 | tpl_vars = array ();
33 |
34 | return $data;
35 | }
36 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_clearallcache.php:
--------------------------------------------------------------------------------
1 | invalidLoadedCache ( $smarty );
39 | return $_cache_resource->clearAll ( $smarty, $exp_time );
40 | }
41 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_clearassign.php:
--------------------------------------------------------------------------------
1 | tpl_vars [$curr_var] );
37 | }
38 | } else {
39 | unset ( $data->tpl_vars [$tpl_var] );
40 | }
41 |
42 | return $data;
43 | }
44 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_clearcache.php:
--------------------------------------------------------------------------------
1 | invalidLoadedCache ( $smarty );
45 | return $_cache_resource->clear ( $smarty, $template_name, $cache_id, $compile_id, $exp_time );
46 | }
47 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_clearconfig.php:
--------------------------------------------------------------------------------
1 | config_vars [$name] );
36 | } else {
37 | $data->config_vars = array ();
38 | }
39 | return $data;
40 | }
41 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_compileallconfig.php:
--------------------------------------------------------------------------------
1 | compileAll ( $smarty, $extension, $force_compile, $time_limit, $max_errors, true );
31 | }
32 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_createdata.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $this->smarty : $obj;
39 | $dataObj = new Smarty_Data ( $parent, $smarty, $name );
40 | if ($smarty->debugging) {
41 | Smarty_Internal_Debug::register_data ( $dataObj );
42 | }
43 | return $dataObj;
44 | }
45 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_getautoloadfilters.php:
--------------------------------------------------------------------------------
1 | array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type
26 | * was specified
27 | */
28 | public function getAutoloadFilters(Smarty_Internal_TemplateBase $obj, $type = null) {
29 | $smarty = isset ( $obj->smarty ) ? $obj->smarty : $obj;
30 | if ($type !== null) {
31 | $this->_checkFilterType ( $type );
32 | return isset ( $smarty->autoload_filters [$type] ) ? $smarty->autoload_filters [$type] : array ();
33 | }
34 | return $smarty->autoload_filters;
35 | }
36 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_getconfigvars.php:
--------------------------------------------------------------------------------
1 | config_vars [$varname] )) {
41 | return $_ptr->config_vars [$varname];
42 | }
43 | } else {
44 | $var_array = array_merge ( $_ptr->config_vars, $var_array );
45 | }
46 | // not found, try at parent
47 | if ($search_parents) {
48 | $_ptr = $_ptr->parent;
49 | } else {
50 | $_ptr = null;
51 | }
52 | }
53 | if (isset ( $varname )) {
54 | return '';
55 | } else {
56 | return $var_array;
57 | }
58 | }
59 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_getdebugtemplate.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
31 | return $smarty->debug_tpl;
32 | }
33 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_getdefaultmodifiers.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
31 | return $smarty->default_modifiers;
32 | }
33 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_getregisteredobject.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
36 | if (! isset ( $smarty->registered_objects [$object_name] )) {
37 | throw new SmartyException ( "'$object_name' is not a registered object" );
38 | }
39 | if (! is_object ( $smarty->registered_objects [$object_name] [0] )) {
40 | throw new SmartyException ( "registered '$object_name' is not an object" );
41 | }
42 | return $smarty->registered_objects [$object_name] [0];
43 | }
44 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_getstreamvariable.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $data->smarty : $data;
44 | if ($smarty->error_unassigned) {
45 | throw new SmartyException ( 'Undefined stream variable "' . $variable . '"' );
46 | } else {
47 | return null;
48 | }
49 | }
50 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_gettags.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $this->smarty : $obj;
36 | if ($obj->_objType == 2 && ! isset ( $template )) {
37 | $tpl = clone $obj;
38 | } elseif (isset ( $template ) && $template->_objType == 2) {
39 | $tpl = clone $template;
40 | } elseif (isset ( $template ) && is_string ( $template )) {
41 | /* @var Smarty_Internal_Template $tpl */
42 | $tpl = new $smarty->template_class ( $template, $smarty );
43 | // checks if template exists
44 | if (! $tpl->source->exists) {
45 | throw new SmartyException ( "Unable to load template {$tpl->source->type} '{$tpl->source->name}'" );
46 | }
47 | }
48 | if (isset ( $tpl )) {
49 | $tpl->smarty = clone $tpl->smarty;
50 | $tpl->smarty->_cache ['get_used_tags'] = true;
51 | $tpl->_cache ['used_tags'] = array ();
52 | $tpl->smarty->merge_compiled_includes = false;
53 | $tpl->smarty->disableSecurity ();
54 | $tpl->caching = false;
55 | $tpl->loadCompiler ();
56 | $tpl->compiler->compileTemplate ( $tpl );
57 | return $tpl->_cache ['used_tags'];
58 | }
59 | throw new SmartyException ( "Missing template specification" );
60 | }
61 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_loadfilter.php:
--------------------------------------------------------------------------------
1 | true,
27 | 'post' => true,
28 | 'output' => true,
29 | 'variable' => true
30 | );
31 |
32 | /**
33 | * load a filter of specified type and name
34 | *
35 | * @api Smarty::loadFilter()
36 | *
37 | * @link http://www.smarty.net/docs/en/api.load.filter.tpl
38 | *
39 | * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
40 | * @param string $type
41 | * filter type
42 | * @param string $name
43 | * filter name
44 | *
45 | * @return bool
46 | * @throws SmartyException if filter could not be loaded
47 | */
48 | public function loadFilter(Smarty_Internal_TemplateBase $obj, $type, $name) {
49 | $smarty = isset ( $obj->smarty ) ? $obj->smarty : $obj;
50 | $this->_checkFilterType ( $type );
51 | $_plugin = "smarty_{$type}filter_{$name}";
52 | $_filter_name = $_plugin;
53 | if (is_callable ( $_plugin )) {
54 | $smarty->registered_filters [$type] [$_filter_name] = $_plugin;
55 | return true;
56 | }
57 | if ($smarty->loadPlugin ( $_plugin )) {
58 | if (class_exists ( $_plugin, false )) {
59 | $_plugin = array (
60 | $_plugin,
61 | 'execute'
62 | );
63 | }
64 | if (is_callable ( $_plugin )) {
65 | $smarty->registered_filters [$type] [$_filter_name] = $_plugin;
66 | return true;
67 | }
68 | }
69 | throw new SmartyException ( "{$type}filter \"{$name}\" not found or callable" );
70 | }
71 |
72 | /**
73 | * Check if filter type is valid
74 | *
75 | * @param string $type
76 | *
77 | * @throws \SmartyException
78 | */
79 | public function _checkFilterType($type) {
80 | if (! isset ( $this->filterTypes [$type] )) {
81 | throw new SmartyException ( "Illegal filter type \"{$type}\"" );
82 | }
83 | }
84 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_mustcompile.php:
--------------------------------------------------------------------------------
1 | source->exists) {
32 | if (isset ( $_template->parent ) && $_template->parent->_objType == 2) {
33 | $parent_resource = " in '$_template->parent->template_resource}'";
34 | } else {
35 | $parent_resource = '';
36 | }
37 | throw new SmartyException ( "Unable to load template {$_template->source->type} '{$_template->source->name}'{$parent_resource}" );
38 | }
39 | if ($_template->mustCompile === null) {
40 | $_template->mustCompile = (! $_template->source->handler->uncompiled && ($_template->smarty->force_compile || $_template->source->handler->recompiled || ! $_template->compiled->exists || ($_template->smarty->compile_check && $_template->compiled->getTimeStamp () < $_template->source->getTimeStamp ())));
41 | }
42 |
43 | return $_template->mustCompile;
44 | }
45 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_registercacheresource.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
36 | $smarty->registered_cache_resources [$name] = $resource_handler;
37 | return $obj;
38 | }
39 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_registerclass.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
38 | // test if exists
39 | if (! class_exists ( $class_impl )) {
40 | throw new SmartyException ( "Undefined class '$class_impl' in register template class" );
41 | }
42 | // register the class
43 | $smarty->registered_classes [$class_name] = $class_impl;
44 | return $obj;
45 | }
46 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_registerdefaultconfighandler.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
34 | if (is_callable ( $callback )) {
35 | $smarty->default_config_handler_func = $callback;
36 | } else {
37 | throw new SmartyException ( "Default config handler not callable" );
38 | }
39 | return $obj;
40 | }
41 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
36 | if (is_callable ( $callback )) {
37 | $smarty->default_plugin_handler_func = $callback;
38 | } else {
39 | throw new SmartyException ( "Default plugin handler '$callback' not callable" );
40 | }
41 | return $obj;
42 | }
43 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_registerplugin.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
45 | if (isset ( $smarty->registered_plugins [$type] [$name] )) {
46 | throw new SmartyException ( "Plugin tag \"{$name}\" already registered" );
47 | } elseif (! is_callable ( $callback )) {
48 | throw new SmartyException ( "Plugin \"{$name}\" not callable" );
49 | } else {
50 | $smarty->registered_plugins [$type] [$name] = array (
51 | $callback,
52 | ( bool ) $cacheable,
53 | ( array ) $cache_attr
54 | );
55 | }
56 | return $obj;
57 | }
58 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_registerresource.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
41 | $smarty->registered_resources [$name] = $resource_handler instanceof Smarty_Resource ? $resource_handler : array (
42 | $resource_handler,
43 | false
44 | );
45 | return $obj;
46 | }
47 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_setautoloadfilters.php:
--------------------------------------------------------------------------------
1 | true,
27 | 'post' => true,
28 | 'output' => true,
29 | 'variable' => true
30 | );
31 |
32 | /**
33 | * Set autoload filters
34 | *
35 | * @api Smarty::setAutoloadFilters()
36 | *
37 | * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
38 | * @param array $filters
39 | * filters to load automatically
40 | * @param string $type
41 | * "pre", "output", … specify the
42 | * filter type to set. Defaults to
43 | * none treating $filters' keys as
44 | * the appropriate types
45 | *
46 | * @return \Smarty|\Smarty_Internal_Template
47 | */
48 | public function setAutoloadFilters(Smarty_Internal_TemplateBase $obj, $filters, $type = null) {
49 | $smarty = isset ( $obj->smarty ) ? $obj->smarty : $obj;
50 | if ($type !== null) {
51 | $this->_checkFilterType ( $type );
52 | $smarty->autoload_filters [$type] = ( array ) $filters;
53 | } else {
54 | foreach ( ( array ) $filters as $type => $value ) {
55 | $this->_checkFilterType ( $type );
56 | }
57 | $smarty->autoload_filters = ( array ) $filters;
58 | }
59 | return $obj;
60 | }
61 |
62 | /**
63 | * Check if filter type is valid
64 | *
65 | * @param string $type
66 | *
67 | * @throws \SmartyException
68 | */
69 | public function _checkFilterType($type) {
70 | if (! isset ( $this->filterTypes [$type] )) {
71 | throw new SmartyException ( "Illegal filter type \"{$type}\"" );
72 | }
73 | }
74 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_setdebugtemplate.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
33 | if (! is_readable ( $tpl_name )) {
34 | throw new SmartyException ( "Unknown file '{$tpl_name}'" );
35 | }
36 | $smarty->debug_tpl = $tpl_name;
37 | return $obj;
38 | }
39 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_setdefaultmodifiers.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
34 | $smarty->default_modifiers = ( array ) $modifiers;
35 | return $obj;
36 | }
37 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_unloadfilter.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
30 | $this->_checkFilterType ( $type );
31 | if (isset ( $smarty->registered_filters [$type] )) {
32 | $_filter_name = "smarty_{$type}filter_{$name}";
33 | if (isset ( $smarty->registered_filters [$type] [$_filter_name] )) {
34 | unset ( $smarty->registered_filters [$type] [$_filter_name] );
35 | if (empty ( $smarty->registered_filters [$type] )) {
36 | unset ( $smarty->registered_filters [$type] );
37 | }
38 | }
39 | }
40 | return $obj;
41 | }
42 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_unregistercacheresource.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
35 | if (isset ( $smarty->registered_cache_resources [$name] )) {
36 | unset ( $smarty->registered_cache_resources [$name] );
37 | }
38 | return $obj;
39 | }
40 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_unregisterfilter.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
29 | $this->_checkFilterType ( $type );
30 | if (isset ( $smarty->registered_filters [$type] )) {
31 | $name = is_string ( $callback ) ? $callback : $this->_getFilterName ( $callback );
32 | if (isset ( $smarty->registered_filters [$type] [$name] )) {
33 | unset ( $smarty->registered_filters [$type] [$name] );
34 | if (empty ( $smarty->registered_filters [$type] )) {
35 | unset ( $smarty->registered_filters [$type] );
36 | }
37 | }
38 | }
39 | return $obj;
40 | }
41 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_unregisterobject.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
35 | if (isset ( $smarty->registered_objects [$object_name] )) {
36 | unset ( $smarty->registered_objects [$object_name] );
37 | }
38 | return $obj;
39 | }
40 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_unregisterplugin.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
37 | if (isset ( $smarty->registered_plugins [$type] [$name] )) {
38 | unset ( $smarty->registered_plugins [$type] [$name] );
39 | }
40 | return $obj;
41 | }
42 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_method_unregisterresource.php:
--------------------------------------------------------------------------------
1 | smarty ) ? $obj->smarty : $obj;
35 | if (isset ( $smarty->registered_resources [$type] )) {
36 | unset ( $smarty->registered_resources [$type] );
37 | }
38 | return $obj;
39 | }
40 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_nocache_insert.php:
--------------------------------------------------------------------------------
1 | assign('{$_assign}' , {$_function} (" . var_export ( $_attr, true ) . ",\$_smarty_tpl), true);?>";
44 | } else {
45 | $_output .= "echo {$_function}(" . var_export ( $_attr, true ) . ",\$_smarty_tpl);?>";
46 | }
47 | $_tpl = $_template;
48 | while ( isset ( $_tpl->parent ) && $_tpl->parent->_objType == 2 ) {
49 | $_tpl = $_tpl->parent;
50 | }
51 |
52 | return "/*%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/";
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_parsetree.php:
--------------------------------------------------------------------------------
1 | data = null;
49 | $this->subtrees = null;
50 | }
51 | }
52 |
53 |
54 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_parsetree_code.php:
--------------------------------------------------------------------------------
1 | data = $data;
33 | }
34 |
35 | /**
36 | * Return buffer content in parentheses
37 | *
38 | * @param \Smarty_Internal_Templateparser $parser
39 | *
40 | * @return string content
41 | */
42 | public function to_smarty_php(Smarty_Internal_Templateparser $parser) {
43 | return sprintf ( "(%s)", $this->data );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_parsetree_dqcontent.php:
--------------------------------------------------------------------------------
1 | data = $data;
29 | }
30 |
31 | /**
32 | * Return content as double quoted string
33 | *
34 | * @param \Smarty_Internal_Templateparser $parser
35 | *
36 | * @return string doubled quoted string
37 | */
38 | public function to_smarty_php(Smarty_Internal_Templateparser $parser) {
39 | return '"' . $this->data . '"';
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_parsetree_tag.php:
--------------------------------------------------------------------------------
1 | data = $data;
39 | $this->saved_block_nesting = $parser->block_nesting_level;
40 | }
41 |
42 | /**
43 | * Return buffer content
44 | *
45 | * @param \Smarty_Internal_Templateparser $parser
46 | *
47 | * @return string content
48 | */
49 | public function to_smarty_php(Smarty_Internal_Templateparser $parser) {
50 | return $this->data;
51 | }
52 |
53 | /**
54 | * Return complied code that loads the evaluated output of buffer content into a temporary variable
55 | *
56 | * @param \Smarty_Internal_Templateparser $parser
57 | *
58 | * @return string template code
59 | */
60 | public function assign_to_var(Smarty_Internal_Templateparser $parser) {
61 | $var = sprintf ( '$_tmp%d', ++ Smarty_Internal_Templateparser::$prefix_number );
62 | $tmp = $parser->compiler->appendCode ( '', $this->data );
63 | $tmp = $parser->compiler->appendCode ( $tmp, "" );
64 | $parser->compiler->prefix_code [] = sprintf ( "%s", $tmp );
65 |
66 | return $var;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_parsetree_text.php:
--------------------------------------------------------------------------------
1 | data = $data;
26 | }
27 |
28 | /**
29 | * Return buffer content
30 | *
31 | * @param \Smarty_Internal_Templateparser $parser
32 | *
33 | * @return string text
34 | */
35 | public function to_smarty_php(Smarty_Internal_Templateparser $parser) {
36 | return $this->data;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_runtime_cachemodify.php:
--------------------------------------------------------------------------------
1 | isCached () && ! $_template->compiled->has_nocache_code;
20 | $_last_modified_date = @substr ( $_SERVER ['HTTP_IF_MODIFIED_SINCE'], 0, strpos ( $_SERVER ['HTTP_IF_MODIFIED_SINCE'], 'GMT' ) + 3 );
21 | if ($_isCached && $cached->timestamp <= strtotime ( $_last_modified_date )) {
22 | switch (PHP_SAPI) {
23 | case 'cgi' : // php-cgi < 5.3
24 | case 'cgi-fcgi' : // php-cgi >= 5.3
25 | case 'fpm-fcgi' : // php-fpm >= 5.3.3
26 | header ( 'Status: 304 Not Modified' );
27 | break;
28 |
29 | case 'cli' :
30 | if ( /* ^phpunit */
31 | ! empty ( $_SERVER ['SMARTY_PHPUNIT_DISABLE_HEADERS'] ) /* phpunit$ */
32 | ) {
33 | $_SERVER ['SMARTY_PHPUNIT_HEADERS'] [] = '304 Not Modified';
34 | }
35 | break;
36 |
37 | default :
38 | if ( /* ^phpunit */
39 | ! empty ( $_SERVER ['SMARTY_PHPUNIT_DISABLE_HEADERS'] ) /* phpunit$ */
40 | ) {
41 | $_SERVER ['SMARTY_PHPUNIT_HEADERS'] [] = '304 Not Modified';
42 | } else {
43 | header ( $_SERVER ['SERVER_PROTOCOL'] . ' 304 Not Modified' );
44 | }
45 | break;
46 | }
47 | } else {
48 | switch (PHP_SAPI) {
49 | case 'cli' :
50 | if ( /* ^phpunit */
51 | ! empty ( $_SERVER ['SMARTY_PHPUNIT_DISABLE_HEADERS'] ) /* phpunit$ */
52 | ) {
53 | $_SERVER ['SMARTY_PHPUNIT_HEADERS'] [] = 'Last-Modified: ' . gmdate ( 'D, d M Y H:i:s', $cached->timestamp ) . ' GMT';
54 | }
55 | break;
56 | default :
57 | header ( 'Last-Modified: ' . gmdate ( 'D, d M Y H:i:s', $cached->timestamp ) . ' GMT' );
58 | break;
59 | }
60 | echo $content;
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_runtime_foreach.php:
--------------------------------------------------------------------------------
1 | getIterator () );
27 | } elseif ($value instanceof Iterator) {
28 | if ($value instanceof Generator) {
29 | return 1;
30 | }
31 | return iterator_count ( $value );
32 | } elseif ($value instanceof PDOStatement) {
33 | return $value->rowCount ();
34 | } elseif ($value instanceof Traversable) {
35 | return iterator_count ( $value );
36 | } elseif ($value instanceof ArrayAccess) {
37 | if ($value->offsetExists ( 0 )) {
38 | return 1;
39 | }
40 | } elseif (is_object ( $value )) {
41 | return count ( $value );
42 | }
43 | return 0;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_runtime_hhvm.php:
--------------------------------------------------------------------------------
1 | scope) {
24 | return;
25 | }
26 | foreach ( array (
27 | $scope,
28 | $tpl->scope
29 | ) as $s ) {
30 | $s = ($bubble_up = $s >= Smarty::SCOPE_BUBBLE_UP) ? $s - Smarty::SCOPE_BUBBLE_UP : $s;
31 | if ($bubble_up && $s) {
32 | $ptr = $tpl->parent;
33 | if (isset ( $ptr )) {
34 | $ptr->tpl_vars [$varName] = $tpl->tpl_vars [$varName];
35 | $ptr = $ptr->parent;
36 | }
37 | if ($s == Smarty::SCOPE_PARENT) {
38 | continue;
39 | }
40 | while ( isset ( $ptr ) && $ptr->_objType == 2 ) {
41 | $ptr->tpl_vars [$varName] = $tpl->tpl_vars [$varName];
42 | $ptr = $ptr->parent;
43 | }
44 | if ($s == Smarty::SCOPE_TPL_ROOT) {
45 | continue;
46 | } elseif ($s == Smarty::SCOPE_SMARTY) {
47 | $tpl->smarty->tpl_vars [$varName] = $tpl->tpl_vars [$varName];
48 | } elseif ($s == Smarty::SCOPE_GLOBAL) {
49 | Smarty::$global_tpl_vars [$varName] = $tpl->tpl_vars [$varName];
50 | } elseif ($s == Smarty::SCOPE_ROOT) {
51 | while ( isset ( $ptr->parent ) ) {
52 | $ptr = $ptr->parent;
53 | }
54 | $ptr->tpl_vars [$varName] = $tpl->tpl_vars [$varName];
55 | }
56 | }
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_runtime_var.php:
--------------------------------------------------------------------------------
1 | tpl_vars [$varName] )) {
24 | $tpl->tpl_vars [$varName] = new Smarty_Variable ( array (), $nocache );
25 | } else {
26 | $tpl->tpl_vars [$varName] = clone $tpl->tpl_vars [$varName];
27 | if (! (is_array ( $tpl->tpl_vars [$varName]->value ) || $tpl->tpl_vars [$varName]->value instanceof ArrayAccess)) {
28 | settype ( $tpl->tpl_vars [$varName]->value, 'array' );
29 | }
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_internal_undefined.php:
--------------------------------------------------------------------------------
1 | cached->valid = false;
29 | } else {
30 | $tpl->mustCompile = true;
31 | }
32 | return false;
33 | }
34 |
35 | /**
36 | * Call error handler for undefined method
37 | *
38 | * @param string $name
39 | * unknown method-name
40 | * @param array $args
41 | * argument array
42 | *
43 | * @return mixed
44 | * @throws SmartyException
45 | */
46 | public function __call($name, $args) {
47 | throw new SmartyException ( get_class ( $args [0] ) . "->{$name}() undefined method" );
48 | }
49 | }
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_resource_recompiled.php:
--------------------------------------------------------------------------------
1 | filepath = false;
44 | $compiled->timestamp = false;
45 | $compiled->exists = false;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_resource_uncompiled.php:
--------------------------------------------------------------------------------
1 | filepath = false;
54 | $compiled->timestamp = false;
55 | $compiled->exists = false;
56 | }
57 |
58 | /**
59 | * render compiled template code
60 | *
61 | * @param Smarty_Internal_Template $_template
62 | *
63 | * @return string
64 | * @throws Exception
65 | */
66 | public function render($_template) {
67 | $level = ob_get_level ();
68 | ob_start ();
69 | try {
70 | $this->renderUncompiled ( $_template->source, $_template );
71 | return ob_get_clean ();
72 | } catch ( Exception $e ) {
73 | while ( ob_get_level () > $level ) {
74 | ob_end_clean ();
75 | }
76 | throw $e;
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smarty_undefined_variable.php:
--------------------------------------------------------------------------------
1 | value = $value;
34 | $this->nocache = $nocache;
35 | }
36 |
37 | /**
38 | * <> String conversion
39 | *
40 | * @return string
41 | */
42 | public function __toString() {
43 | return ( string ) $this->value;
44 | }
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smartycompilerexception.php:
--------------------------------------------------------------------------------
1 | Smarty Compiler: ' . $this->message . ' <-- ';
11 | }
12 |
13 | /**
14 | * The line number of the template error
15 | *
16 | * @type int|null
17 | */
18 | public $line = null;
19 | /**
20 | * The template source snippet relating to the error
21 | *
22 | * @type string|null
23 | */
24 | public $source = null;
25 | /**
26 | * The raw text of the error message
27 | *
28 | * @type string|null
29 | */
30 | public $desc = null;
31 | /**
32 | * The resource identifier or template name
33 | *
34 | * @type string|null
35 | */
36 | public $template = null;
37 | }
38 |
--------------------------------------------------------------------------------
/include/smarty/sysplugins/smartyexception.php:
--------------------------------------------------------------------------------
1 | Smarty: ' . (self::$escape ? htmlentities ( $this->message ) : $this->message) . ' <-- ';
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/language/cz/dataTables.lang:
--------------------------------------------------------------------------------
1 |
2 |
3 | {
4 | "sEmptyTable": "Tabulka neobsahuje žádná data",
5 | "sInfo": "Zobrazuji _START_ až _END_ z celkem _TOTAL_ záznamů",
6 | "sInfoEmpty": "Zobrazuji 0 až 0 z 0 záznamů",
7 | "sInfoFiltered": "(filtrováno z celkem _MAX_ záznamů)",
8 | "sInfoPostFix": "",
9 | "sInfoThousands": " ",
10 | "sLengthMenu": "Zobraz záznamů _MENU_",
11 | "sLoadingRecords": "Načítám...",
12 | "sProcessing": "Provádím...",
13 | "sSearch": "Hledat:",
14 | "sZeroRecords": "Žádné záznamy nebyly nalezeny",
15 | "oPaginate": {
16 | "sFirst": "První",
17 | "sLast": "Poslední",
18 | "sNext": "Další",
19 | "sPrevious": "Předchozí"
20 | },
21 | "oAria": {
22 | "sSortAscending": ": aktivujte pro řazení sloupce vzestupně",
23 | "sSortDescending": ": aktivujte pro řazení sloupce sestupně"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/language/cz/language.txt:
--------------------------------------------------------------------------------
1 | Czech
2 | čeština
--------------------------------------------------------------------------------
/language/de/dataTables.lang:
--------------------------------------------------------------------------------
1 |
2 |
3 | {
4 | "sEmptyTable": "Keine Daten in der Tabelle vorhanden",
5 | "sInfo": "_START_ bis _END_ von _TOTAL_ Einträgen",
6 | "sInfoEmpty": "Keine Daten vorhanden",
7 | "sInfoFiltered": "(gefiltert von _MAX_ Einträgen)",
8 | "sInfoPostFix": "",
9 | "sInfoThousands": ".",
10 | "sLengthMenu": "_MENU_ Einträge anzeigen",
11 | "sLoadingRecords": "Wird geladen ..",
12 | "sProcessing": "Bitte warten ..",
13 | "sSearch": "Suchen",
14 | "sZeroRecords": "Keine Einträge vorhanden",
15 | "oPaginate": {
16 | "sFirst": "Erste",
17 | "sPrevious": "Zurück",
18 | "sNext": "Nächste",
19 | "sLast": "Letzte"
20 | },
21 | "oAria": {
22 | "sSortAscending": ": aktivieren, um Spalte aufsteigend zu sortieren",
23 | "sSortDescending": ": aktivieren, um Spalte absteigend zu sortieren"
24 | },
25 | "select": {
26 | "rows": {
27 | "_": "%d Zeilen ausgewählt",
28 | "0": "",
29 | "1": "1 Zeile ausgewählt"
30 | }
31 | },
32 | "buttons": {
33 | "print": "Drucken",
34 | "colvis": "Spalten",
35 | "copy": "Kopieren",
36 | "copyTitle": "In Zwischenablage kopieren",
37 | "copyKeys": "Taste ctrl oder \u2318 + C um Tabelle in Zwischenspeicher zu kopieren. Um abzubrechen die Nachricht anklicken oder Escape drücken.",
38 | "copySuccess": {
39 | "_": "%d Spalten kopiert",
40 | "1": "1 Spalte kopiert"
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/language/de/language.txt:
--------------------------------------------------------------------------------
1 | German
2 | Deutsch
3 |
--------------------------------------------------------------------------------
/language/en/dataTables.lang:
--------------------------------------------------------------------------------
1 |
2 |
3 | {
4 | "sEmptyTable": "No data available in table",
5 | "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
6 | "sInfoEmpty": "Showing 0 to 0 of 0 entries",
7 | "sInfoFiltered": "(filtered from _MAX_ total entries)",
8 | "sInfoPostFix": "",
9 | "sInfoThousands": ",",
10 | "sLengthMenu": "Show _MENU_ entries",
11 | "sLoadingRecords": "Loading...",
12 | "sProcessing": "Processing...",
13 | "sSearch": "Search:",
14 | "sZeroRecords": "No matching records found",
15 | "oPaginate": {
16 | "sFirst": "First",
17 | "sLast": "Last",
18 | "sNext": "Next",
19 | "sPrevious": "Previous"
20 | },
21 | "oAria": {
22 | "sSortAscending": ": activate to sort column ascending",
23 | "sSortDescending": ": activate to sort column descending"
24 | }
25 | }
--------------------------------------------------------------------------------
/language/en/language.txt:
--------------------------------------------------------------------------------
1 | English
2 | English
3 |
--------------------------------------------------------------------------------
/language/fr/dataTables.lang:
--------------------------------------------------------------------------------
1 |
2 |
3 | {
4 | "sProcessing": "Traitement en cours...",
5 | "sSearch": "Rechercher :",
6 | "sLengthMenu": "Afficher _MENU_ éléments",
7 | "sInfo": "Affichage de l'élément _START_ à _END_ sur _TOTAL_ éléments",
8 | "sInfoEmpty": "Affichage de l'élément 0 à 0 sur 0 élément",
9 | "sInfoFiltered": "(filtré de _MAX_ éléments au total)",
10 | "sInfoPostFix": "",
11 | "sLoadingRecords": "Chargement en cours...",
12 | "sZeroRecords": "Aucun élément à afficher",
13 | "sEmptyTable": "Aucune donnée disponible dans le tableau",
14 | "oPaginate": {
15 | "sFirst": "Premier",
16 | "sPrevious": "Précédent",
17 | "sNext": "Suivant",
18 | "sLast": "Dernier"
19 | },
20 | "oAria": {
21 | "sSortAscending": ": activer pour trier la colonne par ordre croissant",
22 | "sSortDescending": ": activer pour trier la colonne par ordre décroissant"
23 | },
24 | "select": {
25 | "rows": {
26 | _: "%d lignes séléctionnées",
27 | 0: "Aucune ligne séléctionnée",
28 | 1: "1 ligne séléctionnée"
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/language/fr/language.txt:
--------------------------------------------------------------------------------
1 | French
2 | Français
3 |
--------------------------------------------------------------------------------
/screenshots/Einstellungen_Settings.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/screenshots/Einstellungen_Settings.jpg
--------------------------------------------------------------------------------
/screenshots/Fabriken_Factories.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/screenshots/Fabriken_Factories.png
--------------------------------------------------------------------------------
/screenshots/Finanzen_Finances.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/screenshots/Finanzen_Finances.png
--------------------------------------------------------------------------------
/screenshots/Lager_Storage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/screenshots/Lager_Storage.png
--------------------------------------------------------------------------------
/screenshots/Produktion_Production.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/screenshots/Produktion_Production.png
--------------------------------------------------------------------------------
/screenshots/Tiere_Livestock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/screenshots/Tiere_Livestock.png
--------------------------------------------------------------------------------
/screenshots/Uebersicht_Overview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/screenshots/Uebersicht_Overview.png
--------------------------------------------------------------------------------
/screenshots/Verkaufspreise_Sellprices.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/screenshots/Verkaufspreise_Sellprices.png
--------------------------------------------------------------------------------
/screenshots/Waren_Commodities.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/screenshots/Waren_Commodities.png
--------------------------------------------------------------------------------
/styles/bootstrap/css/customstyle.css:
--------------------------------------------------------------------------------
1 | @media (max-width: 950px) {
2 | .navbar-header {
3 | float: none;
4 | }
5 | .navbar-toggle {
6 | display: block;
7 | }
8 | .navbar-collapse {
9 | border-top: 1px solid transparent;
10 | box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
11 | }
12 | .navbar-collapse.collapse {
13 | display: none!important;
14 | }
15 | .navbar-nav {
16 | float: none!important;
17 | margin: 7.5px -15px;
18 | }
19 | .navbar-nav>li {
20 | float: none;
21 | }
22 | .navbar-nav>li>a {
23 | padding-top: 10px;
24 | padding-bottom: 10px;
25 | }
26 | .navbar-text {
27 | float: none;
28 | margin: 15px 0;
29 | }
30 | .navbar-collapse.collapse.in {
31 | display: block!important;
32 | }
33 | .collapsing {
34 | overflow: hidden!important;
35 | }
36 | }
37 | html {
38 | overflow-y: scroll;
39 | position: relative;
40 | min-height: 100%;
41 | }
42 |
43 | body {
44 | padding-top: 60px;
45 | margin-bottom: 60px;
46 | }
47 |
48 | .progress {
49 | border: 1px solid rgba(156, 156, 156, 1);
50 | margin-bottom: 0px;
51 | }
52 |
53 | /*.modal {overflow-y: auto;}.modal-open {overflow: auto;}*/
54 | .modal-open[style] {
55 | padding-right: 0px !important;
56 | }
57 |
58 | .footer {
59 | position: absolute;
60 | bottom: 0;
61 | width: 100%;
62 | height: 60px;
63 | background-color: #f5f5f5;
64 | }
65 |
66 | @media ( min-width : 992px) {
67 | .modal-lg {
68 | width: 1200px;
69 | }
70 | }
71 |
72 | /* https://www.andrerinas.de/tutorials/bootstrap3-mit-5-spalten-so-gehts.html */
73 | @media ( min-width : 768px) {
74 | .fivecolumns .col-md-2, .fivecolumns .col-sm-2, .fivecolumns .col-lg-2 {
75 | width: 20%;
76 | *width: 20%;
77 | }
78 | }
79 |
80 | @media ( min-width : 1200px) {
81 | .fivecolumns .col-md-2, .fivecolumns .col-sm-2, .fivecolumns .col-lg-2 {
82 | width: 20%;
83 | *width: 20%;
84 | }
85 | }
86 |
87 | @media ( min-width : 768px) and (max-width: 979px) {
88 | .fivecolumns .col-md-2, .fivecolumns .col-sm-2, .fivecolumns .col-lg-2 {
89 | width: 20%;
90 | *width: 20%;
91 | }
92 | }
93 |
94 |
--------------------------------------------------------------------------------
/styles/bootstrap/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/styles/bootstrap/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/styles/bootstrap/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/styles/bootstrap/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/styles/bootstrap/images/cloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/cloudy.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/fog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/fog.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/hail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/hail.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/harvester.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/harvester.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/harvester_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/harvester_selected.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/rain.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/rain.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/sun.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/tiptrigger.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/tiptrigger.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/tiptrigger_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/tiptrigger_selected.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/tool.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/tool.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/tool_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/tool_selected.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/trailer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/trailer.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/trailer_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/trailer_selected.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/vehicle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/vehicle.png
--------------------------------------------------------------------------------
/styles/bootstrap/images/vehicle_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/bootstrap/images/vehicle_selected.png
--------------------------------------------------------------------------------
/styles/bootstrap/style.cfg:
--------------------------------------------------------------------------------
1 | STYLENAME=Bootstrap
2 |
3 | # Pfade
4 | ROOTPATH = "./styles/bootstrap"
5 | CSS = "./styles/bootstrap/css"
6 | SCRIPTS = "./styles/bootstrap/javascript"
7 | IMAGES = "./styles/bootstrap/images"
8 | FONTS = "./styles/bootstrap/fonts"
--------------------------------------------------------------------------------
/styles/bootstrap/templates/lizenz.tpl:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
12 |
Copyright (c) 2008-2013 GIANTS Software GmbH
13 |
14 |
15 |
16 | Smarty v3.1.29: the PHP compiling template engine (http://www.smarty.net/ )
17 |
18 |
19 | Released under the GNU Lesser General Public License (https://www.gnu.org/licenses/lgpl.html )
20 |
21 |
Copyright 2015 New Digital Group, Inc.
22 |
23 |
24 |
27 |
28 | Released under the MIT license (https://opensource.org/licenses/mit-license.php )
29 |
30 |
Copyright 2015 New Digital Group, Inc.
31 |
32 |
33 |
36 |
37 | Released under the MIT license (https://opensource.org/licenses/mit-license.php )
38 |
39 |
DataTables designed and created by SpryMedia Ltd.
40 |
https://www.kisspng.com/png-weather-forecasting-icon-weather-forecast-icon-131125/
41 |
42 |
45 |
46 |
Copyright 2017-2018 ©kisspng.com All Rights Reserved.
47 |
https://www.kisspng.com/png-weather-forecasting-icon-weather-forecast-icon-131125/
48 |
49 |
Installierte Karte
50 |
51 | {$map.Name} ({$map.Link} )
52 |
53 |
{$map.Copyright}
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/styles/fs17/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/styles/fs17/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/styles/fs17/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/styles/fs17/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/styles/fs17/images/background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/background.jpg
--------------------------------------------------------------------------------
/styles/fs17/images/cloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/cloudy.png
--------------------------------------------------------------------------------
/styles/fs17/images/fog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/fog.png
--------------------------------------------------------------------------------
/styles/fs17/images/hail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/hail.png
--------------------------------------------------------------------------------
/styles/fs17/images/harvester.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/harvester.png
--------------------------------------------------------------------------------
/styles/fs17/images/harvester_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/harvester_selected.png
--------------------------------------------------------------------------------
/styles/fs17/images/rain.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/rain.png
--------------------------------------------------------------------------------
/styles/fs17/images/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/sun.png
--------------------------------------------------------------------------------
/styles/fs17/images/tiptrigger.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/tiptrigger.png
--------------------------------------------------------------------------------
/styles/fs17/images/tiptrigger_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/tiptrigger_selected.png
--------------------------------------------------------------------------------
/styles/fs17/images/tool.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/tool.png
--------------------------------------------------------------------------------
/styles/fs17/images/tool_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/tool_selected.png
--------------------------------------------------------------------------------
/styles/fs17/images/trailer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/trailer.png
--------------------------------------------------------------------------------
/styles/fs17/images/trailer_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/trailer_selected.png
--------------------------------------------------------------------------------
/styles/fs17/images/vehicle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/vehicle.png
--------------------------------------------------------------------------------
/styles/fs17/images/vehicle_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/fs17/images/vehicle_selected.png
--------------------------------------------------------------------------------
/styles/fs17/style.cfg:
--------------------------------------------------------------------------------
1 | STYLENAME=Farming Simulator 17
2 |
3 | # Pfade
4 | ROOTPATH = "./styles/fs17"
5 | CSS = "./styles/fs17/css"
6 | SCRIPTS = "./styles/fs17/javascript"
7 | IMAGES = "./styles/fs17/images"
8 | FONTS = "./styles/fs17/fonts"
--------------------------------------------------------------------------------
/styles/fs17/templates/lizenz.tpl:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
12 |
Copyright (c) 2008-2013 GIANTS Software GmbH
13 |
14 |
15 |
16 | Smarty v3.1.29: the PHP compiling template engine (http://www.smarty.net/ )
17 |
18 |
19 | Released under the GNU Lesser General Public License (https://www.gnu.org/licenses/lgpl.html )
20 |
21 |
Copyright 2015 New Digital Group, Inc.
22 |
23 |
24 |
27 |
28 | Released under the MIT license (https://opensource.org/licenses/mit-license.php )
29 |
30 |
Copyright 2015 New Digital Group, Inc.
31 |
32 |
33 |
36 |
37 | Released under the MIT license (https://opensource.org/licenses/mit-license.php )
38 |
39 |
DataTables designed and created by SpryMedia Ltd.
40 |
https://www.kisspng.com/png-weather-forecasting-icon-weather-forecast-icon-131125/
41 |
42 |
45 |
46 |
Copyright 2017-2018 ©kisspng.com All Rights Reserved.
47 |
https://www.kisspng.com/png-weather-forecasting-icon-weather-forecast-icon-131125/
48 |
49 |
Installierte Karte
50 |
51 | {$map.Name} ({$map.Link} )
52 |
53 |
{$map.Copyright}
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/styles/smallSlate/css/customstyle.css:
--------------------------------------------------------------------------------
1 | @media (max-width: 950px) {
2 | .navbar-header {
3 | float: none;
4 | }
5 | .navbar-toggle {
6 | display: block;
7 | }
8 | .navbar-collapse {
9 | border-top: 1px solid transparent;
10 | box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
11 | }
12 | .navbar-collapse.collapse {
13 | display: none!important;
14 | }
15 | .navbar-nav {
16 | float: none!important;
17 | margin: 7.5px -15px;
18 | }
19 | .navbar-nav>li {
20 | float: none;
21 | }
22 | .navbar-nav>li>a {
23 | padding-top: 10px;
24 | padding-bottom: 10px;
25 | }
26 | .navbar-text {
27 | float: none;
28 | margin: 15px 0;
29 | }
30 | .navbar-collapse.collapse.in {
31 | display: block!important;
32 | }
33 | .collapsing {
34 | overflow: hidden!important;
35 | }
36 | }
37 | html {
38 | overflow-y: scroll;
39 | position: relative;
40 | min-height: 100%;
41 | }
42 |
43 | body {
44 | padding-top: 60px;
45 | margin-bottom: 60px;
46 | }
47 |
48 | .progress {
49 | margin-bottom: 0px;
50 | }
51 |
52 | /*.modal {overflow-y: auto;}.modal-open {overflow: auto;}*/
53 | .modal-open[style] {
54 | padding-right: 0px !important;
55 | }
56 |
57 | .footer {
58 | position: absolute;
59 | bottom: 0;
60 | width: 100%;
61 | height: 60px;
62 | background-color: #f5f5f5;
63 | }
64 |
65 | @media ( min-width : 992px) {
66 | .modal-lg {
67 | width: 1200px;
68 | }
69 | }
70 |
71 | /* https://www.andrerinas.de/tutorials/bootstrap3-mit-5-spalten-so-gehts.html */
72 | @media ( min-width : 768px) {
73 | .fivecolumns .col-md-2, .fivecolumns .col-sm-2, .fivecolumns .col-lg-2 {
74 | width: 20%;
75 | *width: 20%;
76 | }
77 | }
78 |
79 | @media ( min-width : 1200px) {
80 | .fivecolumns .col-md-2, .fivecolumns .col-sm-2, .fivecolumns .col-lg-2 {
81 | width: 20%;
82 | *width: 20%;
83 | }
84 | }
85 |
86 | @media ( min-width : 768px) and (max-width: 979px) {
87 | .fivecolumns .col-md-2, .fivecolumns .col-sm-2, .fivecolumns .col-lg-2 {
88 | width: 20%;
89 | *width: 20%;
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/styles/smallSlate/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/styles/smallSlate/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/styles/smallSlate/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/styles/smallSlate/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/styles/smallSlate/images/cloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/cloudy.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/fog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/fog.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/hail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/hail.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/harvester.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/harvester.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/harvester_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/harvester_selected.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/rain.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/rain.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/sun.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/tiptrigger.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/tiptrigger.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/tiptrigger_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/tiptrigger_selected.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/tool.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/tool.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/tool_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/tool_selected.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/trailer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/trailer.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/trailer_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/trailer_selected.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/vehicle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/vehicle.png
--------------------------------------------------------------------------------
/styles/smallSlate/images/vehicle_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/styles/smallSlate/images/vehicle_selected.png
--------------------------------------------------------------------------------
/styles/smallSlate/style.cfg:
--------------------------------------------------------------------------------
1 | STYLENAME=Small Slate
2 |
3 | # Pfade
4 | ROOTPATH = "./styles/smallSlate"
5 | CSS = "./styles/smallSlate/css"
6 | SCRIPTS = "./styles/smallSlate/javascript"
7 | IMAGES = "./styles/smallSlate/images"
8 | FONTS = "./styles/smallSlate/fonts"
--------------------------------------------------------------------------------
/styles/smallSlate/templates/lizenz.tpl:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
12 |
Copyright (c) 2008-2013 GIANTS Software GmbH
13 |
14 |
15 |
16 | Smarty v3.1.29: the PHP compiling template engine (http://www.smarty.net/ )
17 |
18 |
19 | Released under the GNU Lesser General Public License (https://www.gnu.org/licenses/lgpl.html )
20 |
21 |
Copyright 2015 New Digital Group, Inc.
22 |
23 |
24 |
27 |
28 | Released under the MIT license (https://opensource.org/licenses/mit-license.php )
29 |
30 |
Copyright 2015 New Digital Group, Inc.
31 |
32 |
33 |
36 |
37 | Released under the MIT license (https://opensource.org/licenses/mit-license.php )
38 |
39 |
DataTables designed and created by SpryMedia Ltd.
40 |
https://www.kisspng.com/png-weather-forecasting-icon-weather-forecast-icon-131125/
41 |
42 |
45 |
46 |
Copyright 2017-2018 ©kisspng.com All Rights Reserved.
47 |
https://www.kisspng.com/png-weather-forecasting-icon-weather-forecast-icon-131125/
48 |
49 |
Installierte Karte
50 |
51 | {$map.Name} ({$map.Link} )
52 |
53 |
{$map.Copyright}
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/tools/koordinaten_rechner.ods:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/tools/koordinaten_rechner.ods
--------------------------------------------------------------------------------
/tools/xml/mapconfg.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/tools/xml/mapconfg.xml
--------------------------------------------------------------------------------
/tools/xml/translations.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/J0hnHawk/FS17_WebStats/b197f373e30c5bf23868f311f7a1a7b8f7ad3b56/tools/xml/translations.xml
--------------------------------------------------------------------------------