-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
208 changed files
with
32,138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
photos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
php_value short_open_tag 1 | ||
|
||
RewriteEngine On | ||
|
||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteCond %{REQUEST_URI} !=/favicon.ico | ||
|
||
RewriteRule ^([^\?\.]+)$ index.php?url_id=$1 [L,QSA] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2021 Zbyněk Munzar | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<? | ||
|
||
class AboutConstants { | ||
|
||
const APPLICATION_NAME = 'Trk'; | ||
|
||
const VERSION = '0.9.0'; | ||
|
||
const MAINTENANCE_PHASE = 1; | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
<? | ||
|
||
class ActivitiesConstants { | ||
|
||
// activities types {{{ | ||
const AT_ANY = -1; | ||
const AT_RIDE = 1; | ||
const AT_RUN = 2; | ||
const AT_VIRTUAL_RIDE = 3; | ||
const AT_NORDIC_SKI = 4; | ||
const AT_WALK = 5; | ||
const AT_SWIM = 6; | ||
const AT_ALPINE_SKI = 7; | ||
const AT_BACKCOUNTRY_SKI = 8; | ||
const AT_CANOEING = 9; | ||
const AT_CROSSFIT = 10; | ||
const AT_E_BIKE_RIDE = 11; | ||
const AT_ELLIPTICAL = 12; | ||
const AT_HIKE = 13; | ||
const AT_ICE_SKATE = 14; | ||
const AT_INLINE_SKATE = 15; | ||
const AT_KAYAKING = 16; | ||
const AT_KITESURF = 17; | ||
const AT_ROCK_CLIMBING = 18; | ||
const AT_ROLLER_SKI = 19; | ||
const AT_ROWING = 20; | ||
const AT_SNOWBOARD = 21; | ||
const AT_SNOWSHOE = 22; | ||
const AT_STAIR_STEPPER = 23; | ||
const AT_STAND_UP_PADDLING = 24; | ||
const AT_SURFING = 25; | ||
const AT_VIRTUAL_RUN = 26; | ||
const AT_WEIGHT_TRAINING = 27; | ||
const AT_WINDSURF = 28; | ||
const AT_WORKOUT = 29; | ||
const AT_YOGA = 30; | ||
const AT_DANCE = 31; | ||
const AT_SKIALP = 32; | ||
const AT_OTHER = 100; | ||
|
||
const DEFAULT_ACTIVITY_TYPE = ActivitiesConstants::AT_RIDE; | ||
|
||
public static $ACTIVITIES_INTERNAL_NAMES = array( | ||
ActivitiesConstants::AT_ANY => 'ANY', | ||
ActivitiesConstants::AT_RIDE => 'RIDE', | ||
ActivitiesConstants::AT_RUN => 'RUN', | ||
ActivitiesConstants::AT_VIRTUAL_RIDE => 'VIRTUAL_RIDE', | ||
ActivitiesConstants::AT_NORDIC_SKI => 'NORDIC_SKI', | ||
ActivitiesConstants::AT_WALK => 'WALK', | ||
ActivitiesConstants::AT_SWIM => 'SWIM', | ||
ActivitiesConstants::AT_ALPINE_SKI => 'ALPINE_SKI', | ||
ActivitiesConstants::AT_BACKCOUNTRY_SKI => 'BACKCOUNTRY_SKI', | ||
ActivitiesConstants::AT_CANOEING => 'CANOEING', | ||
ActivitiesConstants::AT_CROSSFIT => 'CROSSFIT', | ||
ActivitiesConstants::AT_E_BIKE_RIDE => 'E_BIKE_RIDE', | ||
ActivitiesConstants::AT_ELLIPTICAL => 'ELLIPTICAL', | ||
ActivitiesConstants::AT_HIKE => 'HIKE', | ||
ActivitiesConstants::AT_ICE_SKATE => 'ICE_SKATE', | ||
ActivitiesConstants::AT_INLINE_SKATE => 'INLINE_SKATE', | ||
ActivitiesConstants::AT_KAYAKING => 'KAYAKING', | ||
ActivitiesConstants::AT_KITESURF => 'KITESURF', | ||
ActivitiesConstants::AT_ROCK_CLIMBING => 'ROCK_CLIMBING', | ||
ActivitiesConstants::AT_ROLLER_SKI => 'ROLLER_SKI', | ||
ActivitiesConstants::AT_ROWING => 'ROWING', | ||
ActivitiesConstants::AT_SNOWBOARD => 'SNOWBOARD', | ||
ActivitiesConstants::AT_SNOWSHOE => 'SNOWSHOE', | ||
ActivitiesConstants::AT_STAIR_STEPPER => 'STAIR_STEPPER', | ||
ActivitiesConstants::AT_STAND_UP_PADDLING => 'STAND_UP_PADDLING', | ||
ActivitiesConstants::AT_SURFING => 'SURFING', | ||
ActivitiesConstants::AT_VIRTUAL_RUN => 'VIRTUAL_RUN', | ||
ActivitiesConstants::AT_WEIGHT_TRAINING => 'WEIGHT_TRAINING', | ||
ActivitiesConstants::AT_WINDSURF => 'WINDSURF', | ||
ActivitiesConstants::AT_WORKOUT => 'WORKOUT', | ||
ActivitiesConstants::AT_YOGA => 'YOGA', | ||
ActivitiesConstants::AT_DANCE => 'DANCE', | ||
ActivitiesConstants::AT_SKIALP => 'SKIALP', | ||
ActivitiesConstants::AT_OTHER => 'OTHER', | ||
); | ||
|
||
public static $ACTIVITIES_ORDER = array( | ||
ActivitiesConstants::AT_RIDE, | ||
ActivitiesConstants::AT_RUN, | ||
ActivitiesConstants::AT_NORDIC_SKI, | ||
ActivitiesConstants::AT_WALK, | ||
ActivitiesConstants::AT_SWIM, | ||
ActivitiesConstants::AT_ALPINE_SKI, | ||
ActivitiesConstants::AT_BACKCOUNTRY_SKI, | ||
ActivitiesConstants::AT_VIRTUAL_RIDE, | ||
ActivitiesConstants::AT_CANOEING, | ||
ActivitiesConstants::AT_CROSSFIT, | ||
ActivitiesConstants::AT_E_BIKE_RIDE, | ||
ActivitiesConstants::AT_ELLIPTICAL, | ||
ActivitiesConstants::AT_HIKE, | ||
ActivitiesConstants::AT_ICE_SKATE, | ||
ActivitiesConstants::AT_INLINE_SKATE, | ||
ActivitiesConstants::AT_KAYAKING, | ||
ActivitiesConstants::AT_KITESURF, | ||
ActivitiesConstants::AT_ROCK_CLIMBING, | ||
ActivitiesConstants::AT_ROLLER_SKI, | ||
ActivitiesConstants::AT_ROWING, | ||
ActivitiesConstants::AT_SNOWBOARD, | ||
ActivitiesConstants::AT_SNOWSHOE, | ||
ActivitiesConstants::AT_STAIR_STEPPER, | ||
ActivitiesConstants::AT_STAND_UP_PADDLING, | ||
ActivitiesConstants::AT_SURFING, | ||
ActivitiesConstants::AT_VIRTUAL_RUN, | ||
ActivitiesConstants::AT_WEIGHT_TRAINING, | ||
ActivitiesConstants::AT_WINDSURF, | ||
ActivitiesConstants::AT_WORKOUT, | ||
ActivitiesConstants::AT_YOGA, | ||
ActivitiesConstants::AT_DANCE, | ||
ActivitiesConstants::AT_SKIALP, | ||
ActivitiesConstants::AT_OTHER, | ||
); | ||
|
||
public static $ACTIVITY_TYPE_BY_FILE_STRING = array( | ||
'Ride' => ActivitiesConstants::AT_RIDE, | ||
'Run' => ActivitiesConstants::AT_RUN, | ||
'VirtualRide' => ActivitiesConstants::AT_VIRTUAL_RIDE, | ||
'NordicSki' => ActivitiesConstants::AT_NORDIC_SKI, | ||
'Walk' => ActivitiesConstants::AT_WALK, | ||
'Swim' => ActivitiesConstants::AT_SWIM, | ||
'AlpineSki' => ActivitiesConstants::AT_ALPINE_SKI, | ||
'BackcountrySki' => ActivitiesConstants::AT_BACKCOUNTRY_SKI, | ||
'Canoeing' => ActivitiesConstants::AT_CANOEING, | ||
'Crossfit' => ActivitiesConstants::AT_CROSSFIT, | ||
'EBikeRide' => ActivitiesConstants::AT_E_BIKE_RIDE, | ||
'Elliptical' => ActivitiesConstants::AT_ELLIPTICAL, | ||
'Hike' => ActivitiesConstants::AT_HIKE, | ||
'IceSkate' => ActivitiesConstants::AT_ICE_SKATE, | ||
'InlineSkate' => ActivitiesConstants::AT_INLINE_SKATE, | ||
'Kayaking' => ActivitiesConstants::AT_KAYAKING, | ||
'Kitesurf' => ActivitiesConstants::AT_KITESURF, | ||
'RockClimbing' => ActivitiesConstants::AT_ROCK_CLIMBING, | ||
'RollerSki' => ActivitiesConstants::AT_ROLLER_SKI, | ||
'Rowing' => ActivitiesConstants::AT_ROWING, | ||
'Snowboard' => ActivitiesConstants::AT_SNOWBOARD, | ||
'Snowshoe' => ActivitiesConstants::AT_SNOWSHOE, | ||
'StairStepper' => ActivitiesConstants::AT_STAIR_STEPPER, | ||
'StandUpPaddling' => ActivitiesConstants::AT_STAND_UP_PADDLING, | ||
'Surfing' => ActivitiesConstants::AT_SURFING, | ||
'VirtualRun' => ActivitiesConstants::AT_VIRTUAL_RUN, | ||
'WeightTraining' => ActivitiesConstants::AT_WEIGHT_TRAINING, | ||
'Windsurf' => ActivitiesConstants::AT_WINDSURF, | ||
'Workout' => ActivitiesConstants::AT_WORKOUT, | ||
'Yoga' => ActivitiesConstants::AT_YOGA, | ||
'Dance' => ActivitiesConstants::AT_DANCE, | ||
'Skialp' => ActivitiesConstants::AT_SKIALP, | ||
'Other' => ActivitiesConstants::AT_OTHER, | ||
); | ||
|
||
public static $ACTIVITIES_WITH_AVERAGE_SPEED = array( | ||
ActivitiesConstants::AT_RIDE, | ||
ActivitiesConstants::AT_VIRTUAL_RIDE, | ||
ActivitiesConstants::AT_NORDIC_SKI, | ||
ActivitiesConstants::AT_ALPINE_SKI, | ||
ActivitiesConstants::AT_BACKCOUNTRY_SKI, | ||
ActivitiesConstants::AT_E_BIKE_RIDE, | ||
ActivitiesConstants::AT_INLINE_SKATE, | ||
ActivitiesConstants::AT_ROLLER_SKI, | ||
ActivitiesConstants::AT_SNOWBOARD, | ||
); | ||
|
||
public static $ACTIVITIES_WITH_AVERAGE_PACE = array( | ||
ActivitiesConstants::AT_RUN, | ||
ActivitiesConstants::AT_NORDIC_SKI, | ||
ActivitiesConstants::AT_WALK, | ||
ActivitiesConstants::AT_SWIM, | ||
ActivitiesConstants::AT_BACKCOUNTRY_SKI, | ||
ActivitiesConstants::AT_VIRTUAL_RUN, | ||
); | ||
// }}} | ||
|
||
// GPX file processors {{{ | ||
const GFP_PHP = 1; | ||
const GFP_STRAVA = 2; | ||
|
||
public static $SUPPORTED_GPX_FILE_PROCESSORS = array( | ||
ActivitiesConstants::GFP_STRAVA, | ||
); | ||
|
||
public static $GPX_FILE_PROCESSORS_NAMES = array( | ||
ActivitiesConstants::GFP_PHP => 'PHP', | ||
ActivitiesConstants::GFP_STRAVA => 'Strava', | ||
); | ||
// }}} | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<? | ||
|
||
class ClientBuildConstants { | ||
|
||
const CLIENT_BUILD = '201805241638'; | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<? | ||
|
||
class ExternalSourcesConstants { | ||
|
||
// external sources types {{{ | ||
const EST_NONE = 0; | ||
const EST_STRAVA = 1; | ||
// }}} | ||
|
||
public static $EXTERNAL_SOURCE_NAMES = array( | ||
ExternalSourcesConstants::EST_NONE => '-', | ||
ExternalSourcesConstants::EST_STRAVA => 'Strava', | ||
); | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<? | ||
|
||
class GUIConstants { | ||
|
||
public static $COLORS = array( | ||
'#000000', | ||
'#FF0000', | ||
'#00FF00', | ||
'#0000FF', | ||
'#FFFF00', | ||
'#00FFFF', | ||
'#FF00FF', | ||
'#C0C0C0', | ||
'#808080', | ||
'#800000', | ||
'#808000', | ||
'#008000', | ||
'#800080', | ||
'#008080', | ||
'#000080', | ||
'#800000', | ||
'#8B0000', | ||
'#A52A2A', | ||
'#B22222', | ||
'#DC143C', | ||
'#FF0000', | ||
'#FF6347', | ||
'#FF7F50', | ||
'#CD5C5C', | ||
'#F08080', | ||
'#E9967A', | ||
'#FA8072', | ||
'#FFA07A', | ||
'#FF4500', | ||
'#FF8C00', | ||
'#FFA500', | ||
'#FFD700', | ||
'#B8860B', | ||
'#DAA520', | ||
'#EEE8AA', | ||
'#BDB76B', | ||
'#F0E68C', | ||
'#808000', | ||
'#FFFF00', | ||
'#9ACD32', | ||
'#556B2F', | ||
'#6B8E23', | ||
'#7CFC00', | ||
'#7FFF00', | ||
'#ADFF2F', | ||
'#006400', | ||
'#008000', | ||
'#228B22', | ||
'#00FF00', | ||
'#32CD32', | ||
'#90EE90', | ||
'#98FB98', | ||
'#8FBC8F', | ||
'#00FA9A', | ||
'#00FF7F', | ||
'#2E8B57', | ||
'#66CDAA', | ||
'#3CB371', | ||
'#20B2AA', | ||
'#2F4F4F', | ||
'#008080', | ||
'#008B8B', | ||
'#00FFFF', | ||
'#00FFFF', | ||
'#E0FFFF', | ||
'#00CED1', | ||
'#40E0D0', | ||
'#48D1CC', | ||
'#AFEEEE', | ||
'#7FFFD4', | ||
'#B0E0E6', | ||
'#5F9EA0', | ||
'#4682B4', | ||
'#6495ED', | ||
'#00BFFF', | ||
'#1E90FF', | ||
'#ADD8E6', | ||
'#87CEEB', | ||
'#87CEFA', | ||
'#191970', | ||
'#000080', | ||
'#00008B', | ||
'#0000CD', | ||
'#0000FF', | ||
'#4169E1', | ||
'#8A2BE2', | ||
'#4B0082', | ||
'#483D8B', | ||
'#6A5ACD', | ||
'#7B68EE', | ||
'#9370DB', | ||
'#8B008B', | ||
'#9400D3', | ||
'#9932CC', | ||
'#BA55D3', | ||
'#800080', | ||
'#D8BFD8', | ||
'#DDA0DD', | ||
'#EE82EE', | ||
'#FF00FF', | ||
'#DA70D6', | ||
'#C71585', | ||
'#DB7093', | ||
'#FF1493', | ||
'#FF69B4', | ||
'#FFB6C1', | ||
'#FFC0CB', | ||
); | ||
|
||
} | ||
|
||
?> |
Oops, something went wrong.