- Timestamp:
- Apr 7, 2020, 1:06:13 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Database.php
r19 r32 7 7 { 8 8 list($usec, $sec) = explode(" ", microtime()); 9 return ( (float)$usec + (float)$sec);9 return (float)$usec + (float)$sec; 10 10 } 11 11 … … 17 17 function fetch_assoc() 18 18 { 19 return ($this->PDOStatement->fetch(PDO::FETCH_ASSOC));19 return $this->PDOStatement->fetch(PDO::FETCH_ASSOC); 20 20 } 21 21 22 22 function fetch_array() 23 23 { 24 return ($this->PDOStatement->fetch(PDO::FETCH_BOTH));24 return $this->PDOStatement->fetch(PDO::FETCH_BOTH); 25 25 } 26 26 27 27 function fetch_row() 28 28 { 29 return ($this->PDOStatement->fetch(PDO::FETCH_NUM));29 return $this->PDOStatement->fetch(PDO::FETCH_NUM); 30 30 } 31 31 } … … 61 61 function Connect($Host, $User, $Password, $Database) 62 62 { 63 if ($this->Type == 'mysql') $ConnectionString = 'mysql:host='.$Host.';dbname='.$Database;64 else if ($this->Type == 'pgsql') $ConnectionString = 'pgsql:dbname='.$Database.';host='.$Host;63 if ($this->Type == 'mysql') $ConnectionString = 'mysql:host='.$Host.';dbname='.$Database; 64 else if ($this->Type == 'pgsql') $ConnectionString = 'pgsql:dbname='.$Database.';host='.$Host; 65 65 else $ConnectionString = ''; 66 66 try { … … 81 81 function Connected() 82 82 { 83 return (isset($this->PDO));83 return isset($this->PDO); 84 84 } 85 85 … … 91 91 function query($Query) 92 92 { 93 if (!$this->Connected()) throw new Exception(T('Not connected to database'));94 if (($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true)) $QueryStartTime = microtime_float();93 if (!$this->Connected()) throw new Exception(T('Not connected to database')); 94 if (($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true)) $QueryStartTime = microtime_float(); 95 95 $this->LastQuery = $Query; 96 96 //echo('a'.$this->ShowSQLQuery.'<'.$QueryStartTime.', '.microtime_float()); 97 if (($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true))97 if (($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true)) 98 98 $Duration = ' ; '.round(microtime_float() - $QueryStartTime, 4). ' s'; 99 if ($this->LogSQLQuery == true)99 if ($this->LogSQLQuery == true) 100 100 file_put_contents($this->LogFile, $Query.$Duration."\n", FILE_APPEND); 101 if ($this->ShowSQLQuery == true)101 if ($this->ShowSQLQuery == true) 102 102 echo('<div style="border-bottom-width: 1px; border-bottom-style: solid; '. 103 103 'padding-bottom: 3px; padding-top: 3px; font-size: 12px; font-family: Arial;">'.$Query.$Duration.'</div>'."\n"); 104 104 $Result = new DatabaseResult(); 105 105 $Result->PDOStatement = $this->PDO->query($Query); 106 if ($Result->PDOStatement)106 if ($Result->PDOStatement) 107 107 { 108 108 $Result->num_rows = $Result->PDOStatement->rowCount(); … … 112 112 $this->Error = $this->PDO->errorInfo(); 113 113 $this->Error = $this->Error[2]; 114 if (($this->Error != '') and ($this->ShowSQLError == true))114 if (($this->Error != '') and ($this->ShowSQLError == true)) 115 115 echo('<div><strong>SQL Error: </strong>'.$this->Error.'<br />'.$Query.'</div>'); 116 116 throw new Exception('SQL Error: '.$this->Error.', Query: '.$Query); 117 117 } 118 return ($Result);118 return $Result; 119 119 } 120 120 121 121 function select($Table, $What = '*', $Condition = 1) 122 122 { 123 return ($this->query('SELECT '.$What.' FROM `'.$this->Prefix.$Table.'` WHERE '.$Condition));123 return $this->query('SELECT '.$What.' FROM `'.$this->Prefix.$Table.'` WHERE '.$Condition); 124 124 } 125 125 … … 139 139 $Name = ''; 140 140 $Values = ''; 141 foreach ($Data as $Key => $Value)141 foreach ($Data as $Key => $Value) 142 142 { 143 143 $Name .= ',`'.$Key.'`'; 144 if (!in_array($Value, $this->Functions))144 if (!in_array($Value, $this->Functions)) 145 145 { 146 if (is_null($Value)) $Value = 'NULL';146 if (is_null($Value)) $Value = 'NULL'; 147 147 else $Value = $this->PDO->quote($Value); 148 148 } … … 151 151 $Name = substr($Name, 1); 152 152 $Values = substr($Values, 1); 153 return ('INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')');153 return 'INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')'; 154 154 } 155 155 … … 162 162 { 163 163 $Values = ''; 164 foreach ($Data as $Key => $Value)165 { 166 if (!in_array($Value, $this->Functions))164 foreach ($Data as $Key => $Value) 165 { 166 if (!in_array($Value, $this->Functions)) 167 167 { 168 if (is_null($Value)) $Value = 'NULL';168 if (is_null($Value)) $Value = 'NULL'; 169 169 else $Value = $this->PDO->quote($Value); 170 170 } … … 172 172 } 173 173 $Values = substr($Values, 2); 174 return ('UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')');174 return 'UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')'; 175 175 } 176 176 … … 179 179 $Name = ''; 180 180 $Values = ''; 181 foreach ($Data as $Key => $Value)182 { 183 if (!in_array($Value, $this->Functions))181 foreach ($Data as $Key => $Value) 182 { 183 if (!in_array($Value, $this->Functions)) 184 184 { 185 if (is_null($Value)) $Value = 'NULL';185 if (is_null($Value)) $Value = 'NULL'; 186 186 else $Value = $this->PDO->quote($Value); 187 187 } … … 203 203 function real_escape_string($Text) 204 204 { 205 return (addslashes($Text));205 return addslashes($Text); 206 206 } 207 207 208 208 function quote($Text) 209 209 { 210 return ($this->PDO->quote($Text));210 return $this->PDO->quote($Text); 211 211 } 212 212 … … 232 232 $this->Error = $this->PDO->errorInfo(); 233 233 $this->Error = $this->Error[2]; 234 if (($this->Error != '') and ($this->ShowSQLError == true))234 if (($this->Error != '') and ($this->ShowSQLError == true)) 235 235 echo('<div><strong>SQL Error: </strong>'.$this->Error.'<br />'.$Query.'</div>'); 236 236 throw new Exception('SQL Error: '.$this->Error.', Query: '.$Query); … … 241 241 function TimeToMysqlDateTime($Time) 242 242 { 243 if ($Time == NULL) return(NULL);244 else return (date('Y-m-d H:i:s', $Time));243 if ($Time == NULL) return NULL; 244 else return date('Y-m-d H:i:s', $Time); 245 245 } 246 246 247 247 function TimeToMysqlDate($Time) 248 248 { 249 if ($Time == NULL) return(NULL);250 else return (date('Y-m-d', $Time));249 if ($Time == NULL) return NULL; 250 else return date('Y-m-d', $Time); 251 251 } 252 252 253 253 function TimeToMysqlTime($Time) 254 254 { 255 if ($Time == NULL) return(NULL);256 else return (date('H:i:s', $Time));255 if ($Time == NULL) return NULL; 256 else return date('H:i:s', $Time); 257 257 } 258 258 259 259 function MysqlDateTimeToTime($DateTime) 260 260 { 261 if ($DateTime == '') return(NULL);261 if ($DateTime == '') return NULL; 262 262 $Parts = explode(' ', $DateTime); 263 263 $DateParts = explode('-', $Parts[0]); 264 264 $TimeParts = explode(':', $Parts[1]); 265 265 $Result = mktime($TimeParts[0], $TimeParts[1], $TimeParts[2], $DateParts[1], $DateParts[2], $DateParts[0]); 266 return ($Result);266 return $Result; 267 267 } 268 268 269 269 function MysqlDateToTime($Date) 270 270 { 271 if ($Date == '') return(NULL);272 return (MysqlDateTimeToTime($Date.' 0:0:0'));271 if ($Date == '') return NULL; 272 return MysqlDateTimeToTime($Date.' 0:0:0'); 273 273 } 274 274 275 275 function MysqlTimeToTime($Time) 276 276 { 277 if ($Time == '') return(NULL);278 return (MysqlDateTimeToTime('0000-00-00 '.$Time));279 } 277 if ($Time == '') return NULL; 278 return MysqlDateTimeToTime('0000-00-00 '.$Time); 279 } -
trunk/Global.php
r4 r32 3 3 function HumanDate($Time) 4 4 { 5 return (date('j.n.Y', $Time));5 return date('j.n.Y', $Time); 6 6 } 7 7 8 8 function HumanDateTime($Time) 9 9 { 10 return (date('j.n.Y H:i:s', $Time));10 return date('j.n.Y H:i:s', $Time); 11 11 } 12 12 … … 22 22 $Result = array(); 23 23 $Parts = explode('&', $QueryString); 24 foreach ($Parts as $Part)24 foreach ($Parts as $Part) 25 25 { 26 if ($Part != '')26 if ($Part != '') 27 27 { 28 if (!strpos($Part, '=')) $Part .= '=';28 if (!strpos($Part, '=')) $Part .= '='; 29 29 $Item = explode('=', $Part); 30 30 $Result[$Item[0]] = $Item[1]; 31 31 } 32 32 } 33 return ($Result);33 return $Result; 34 34 } 35 35 … … 37 37 { 38 38 $Parts = array(); 39 foreach ($QueryStringArray as $Index => $Item)39 foreach ($QueryStringArray as $Index => $Item) 40 40 { 41 41 if ($Index != 'lvm') $Parts[] = $Index.'='.$Item; 42 42 } 43 return (implode('&', $Parts));43 return implode('&', $Parts); 44 44 } 45 45 … … 55 55 $PageCount = floor($TotalCount / $ItemPerPage) + 1; 56 56 57 if (!array_key_exists('Page', $_SESSION)) $_SESSION['Page'] = 0;58 if (array_key_exists('page', $_GET)) $_SESSION['Page'] = $_GET['page'] * 1;59 if ($_SESSION['Page'] < 0) $_SESSION['Page'] = 0;60 if ($_SESSION['Page'] >= $PageCount) $_SESSION['Page'] = $PageCount - 1;57 if (!array_key_exists('Page', $_SESSION)) $_SESSION['Page'] = 0; 58 if (array_key_exists('page', $_GET)) $_SESSION['Page'] = $_GET['page'] * 1; 59 if ($_SESSION['Page'] < 0) $_SESSION['Page'] = 0; 60 if ($_SESSION['Page'] >= $PageCount) $_SESSION['Page'] = $PageCount - 1; 61 61 $CurrentPage = $_SESSION['Page']; 62 62 … … 65 65 66 66 $Result = ''; 67 if ($PageCount > 1)67 if ($PageCount > 1) 68 68 { 69 if ($CurrentPage > 0)69 if ($CurrentPage > 0) 70 70 { 71 71 $QueryItems['page'] = 0; … … 76 76 $PagesMax = $PageCount - 1; 77 77 $PagesMin = 0; 78 if ($PagesMax > ($CurrentPage + $Around)) $PagesMax = $CurrentPage + $Around;79 if ($PagesMin < ($CurrentPage - $Around))78 if ($PagesMax > ($CurrentPage + $Around)) $PagesMax = $CurrentPage + $Around; 79 if ($PagesMin < ($CurrentPage - $Around)) 80 80 { 81 81 $Result.= ' ... '; 82 82 $PagesMin = $CurrentPage - $Around; 83 83 } 84 for ($i = $PagesMin; $i <= $PagesMax; $i++)84 for ($i = $PagesMin; $i <= $PagesMax; $i++) 85 85 { 86 if ($i == $CurrentPage) $Result.= '<strong>'.($i + 1).'</strong> ';86 if ($i == $CurrentPage) $Result.= '<strong>'.($i + 1).'</strong> '; 87 87 else { 88 88 $QueryItems['page'] = $i; … … 90 90 } 91 91 } 92 if ($PagesMax < ($PageCount - 1)) $Result .= ' ... ';93 if ($CurrentPage < ($PageCount - 1))92 if ($PagesMax < ($PageCount - 1)) $Result .= ' ... '; 93 if ($CurrentPage < ($PageCount - 1)) 94 94 { 95 95 $QueryItems['page'] = ($CurrentPage + 1); … … 100 100 } 101 101 $Result = '<div style="text-align: center">'.$Result.'</div>'; 102 return (array('SQLLimit' => ' LIMIT '.$CurrentPage * $ItemPerPage.', '.$ItemPerPage,102 return array('SQLLimit' => ' LIMIT '.$CurrentPage * $ItemPerPage.', '.$ItemPerPage, 103 103 'Page' => $CurrentPage, 104 104 'Output' => $Result, 105 ) );105 ); 106 106 } 107 107 … … 113 113 global $OrderDirSQL, $OrderArrowImage, $Config; 114 114 115 if (array_key_exists('OrderCol', $_GET)) $_SESSION['OrderCol'] = $_GET['OrderCol'];116 if (array_key_exists('OrderDir', $_GET) and (array_key_exists($_GET['OrderDir'], $OrderArrowImage)))115 if (array_key_exists('OrderCol', $_GET)) $_SESSION['OrderCol'] = $_GET['OrderCol']; 116 if (array_key_exists('OrderDir', $_GET) and (array_key_exists($_GET['OrderDir'], $OrderArrowImage))) 117 117 $_SESSION['OrderDir'] = $_GET['OrderDir']; 118 if (!array_key_exists('OrderCol', $_SESSION)) $_SESSION['OrderCol'] = $DefaultColumn;119 if (!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = $DefaultOrder;118 if (!array_key_exists('OrderCol', $_SESSION)) $_SESSION['OrderCol'] = $DefaultColumn; 119 if (!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = $DefaultOrder; 120 120 121 121 // Check OrderCol 122 122 $Found = false; 123 foreach ($Columns as $Column)123 foreach ($Columns as $Column) 124 124 { 125 if ($Column['Name'] == $_SESSION['OrderCol'])125 if ($Column['Name'] == $_SESSION['OrderCol']) 126 126 { 127 127 $Found = true; … … 129 129 } 130 130 } 131 if ($Found == false)131 if ($Found == false) 132 132 { 133 133 $_SESSION['OrderCol'] = $DefaultColumn; … … 135 135 } 136 136 // Check OrderDir 137 if (($_SESSION['OrderDir'] != 0) and ($_SESSION['OrderDir'] != 1)) $_SESSION['OrderDir'] = 0;137 if (($_SESSION['OrderDir'] != 0) and ($_SESSION['OrderDir'] != 1)) $_SESSION['OrderDir'] = 0; 138 138 139 139 $Result = ''; 140 140 $QueryItems = GetQueryStringArray($_SERVER['QUERY_STRING']); 141 foreach ($Columns as $Index => $Column)141 foreach ($Columns as $Index => $Column) 142 142 { 143 143 $QueryItems['OrderCol'] = $Column['Name']; 144 144 $QueryItems['OrderDir'] = 1 - $_SESSION['OrderDir']; 145 if ($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="'.145 if ($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="'. 146 146 Link2('/images/'.$OrderArrowImage[$_SESSION['OrderDir']]).'" alt="order arrow"/>'; 147 147 else $ArrowImage = ''; 148 if ($Column['Name'] == '') $Result .= '<th>'.$Column['Title'].'</th>';148 if ($Column['Name'] == '') $Result .= '<th>'.$Column['Title'].'</th>'; 149 149 else $Result .= '<th><a href="?'.SetQueryStringArray($QueryItems).'">'.$Column['Title'].$ArrowImage.'</a></th>'; 150 150 } 151 return (array(151 return array( 152 152 'SQL' => ' ORDER BY `'.$_SESSION['OrderCol'].'` '.$OrderDirSQL[$_SESSION['OrderDir']], 153 153 'Output' => '<tr>'.$Result.'</tr>', 154 154 'Column' => $_SESSION['OrderCol'], 155 155 'Direction' => $_SESSION['OrderDir'], 156 ) );156 ); 157 157 } -
trunk/PrefixMultiplier.php
r5 r32 74 74 function TruncateDigits($Value, $Digits = 4) 75 75 { 76 for ($II = 2; $II > -6; $II--)76 for ($II = 2; $II > -6; $II--) 77 77 { 78 if ($Value >= pow(10, $II))78 if ($Value >= pow(10, $II)) 79 79 { 80 if ($Digits < ($II + 1)) $RealDigits = $II + 1;80 if ($Digits < ($II + 1)) $RealDigits = $II + 1; 81 81 else $RealDigits = $Digits; 82 82 $Value = round($Value / pow(10, $II - $RealDigits + 1)) * pow(10, $II - $RealDigits + 1); … … 84 84 } 85 85 } 86 return ($Value);86 return $Value; 87 87 } 88 88 … … 93 93 $Negative = ($Value < 0); 94 94 $Value = abs($Value); 95 if (($Unit == '') and ($PrefixType != 'Time'))96 return ($this->TruncateDigits($Value, $Digits));95 if (($Unit == '') and ($PrefixType != 'Time')) 96 return $this->TruncateDigits($Value, $Digits); 97 97 98 98 $I = $PrefixMultipliers[$PrefixType]['BaseIndex']; 99 if ($Value == 0) return($Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit);99 if ($Value == 0) return $Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit; 100 100 101 if ($Value > 1)101 if ($Value > 1) 102 102 { 103 while ((($I + 1) <= count($PrefixMultipliers[$PrefixType]['Definition'])) and (($Value / $PrefixMultipliers[$PrefixType]['Definition'][$I + 1][2]) > 1))103 while ((($I + 1) <= count($PrefixMultipliers[$PrefixType]['Definition'])) and (($Value / $PrefixMultipliers[$PrefixType]['Definition'][$I + 1][2]) > 1)) 104 104 $I = $I + 1; 105 105 } else 106 if ($Value < 1)106 if ($Value < 1) 107 107 { 108 while ((($I - 1) >= 0) and (($Value / $PrefixMultipliers[$PrefixType]['Definition'][$I][2]) < 1))108 while ((($I - 1) >= 0) and (($Value / $PrefixMultipliers[$PrefixType]['Definition'][$I][2]) < 1)) 109 109 $I = $I - 1; 110 110 } … … 113 113 // Truncate digits count 114 114 $Value = $this->TruncateDigits($Value, $Digits); 115 if ($Negative) $Value = -$Value;116 return ($Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit);115 if ($Negative) $Value = -$Value; 116 return $Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit; 117 117 } 118 118 } -
trunk/Run.php
r29 r32 25 25 $this->Id = $DbRow['Id']; 26 26 } 27 return ($Result);27 return $Result; 28 28 } 29 29 } -
trunk/index.php
r31 r32 15 15 function Link($URL) 16 16 { 17 return ($this->Config['BaseURL'].$URL);17 return $this->Config['BaseURL'].$URL; 18 18 } 19 19 … … 83 83 '<a href="'.$this->Link('/families/').'">Families</a> '. 84 84 '</div>'; 85 return ($Output);85 return $Output; 86 86 } 87 87 88 88 function ProcessURL() 89 89 { 90 if (array_key_exists('REDIRECT_QUERY_STRING', $_SERVER))90 if (array_key_exists('REDIRECT_QUERY_STRING', $_SERVER)) 91 91 $PathString = $_SERVER['REDIRECT_QUERY_STRING']; 92 92 else $PathString = ''; 93 if (substr($PathString, -1, 1) == '/') $PathString = substr($PathString, 0, -1);93 if (substr($PathString, -1, 1) == '/') $PathString = substr($PathString, 0, -1); 94 94 $PathItems = explode('/', $PathString); 95 if (array_key_exists('REQUEST_URI', $_SERVER) and (strpos($_SERVER['REQUEST_URI'], '?') !== false))95 if (array_key_exists('REQUEST_URI', $_SERVER) and (strpos($_SERVER['REQUEST_URI'], '?') !== false)) 96 96 $_SERVER['QUERY_STRING'] = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?') + 1); 97 97 else $_SERVER['QUERY_STRING'] = ''; 98 98 parse_str($_SERVER['QUERY_STRING'], $_GET); 99 return ($PathItems);99 return $PathItems; 100 100 } 101 101 … … 368 368 'ROUND((SELECT TeamStat.Money FROM TeamStat WHERE TeamStat.Team=Team.Id ORDER BY Time DESC LIMIT 1) / (SELECT COUNT(*) FROM Runner WHERE Runner.Team=Team.Id)) AS MoneyRunner', 369 369 $Where.$Order['SQL'].$PageList['SQLLimit']); 370 while ($Item = $DbResult->fetch_assoc())370 while ($Item = $DbResult->fetch_assoc()) 371 371 { 372 372 if ($Item['Name'] == '') $Item['Name'] = $TitleItem.' '.$Item['WebId']; … … 385 385 $Output .= '</div>'; 386 386 387 return ($Output);387 return $Output; 388 388 } 389 389 … … 453 453 ', (SELECT RunnerStat.Rank FROM RunnerStat WHERE RunnerStat.Runner=Runner.Id ORDER BY Time DESC LIMIT 1) AS Rank', 454 454 $Where.$Order['SQL'].$PageList['SQLLimit']); 455 while ($Item = $DbResult->fetch_assoc())455 while ($Item = $DbResult->fetch_assoc()) 456 456 { 457 457 $Output .= '<tr>'. … … 471 471 $Output .= $this->ShowDaily('Team', $TeamId); 472 472 473 return ($Output);473 return $Output; 474 474 } 475 475 … … 504 504 ' FROM '.$Table.'Stat'. 505 505 ' WHERE '.$Where.$Order['SQL'].$PageList['SQLLimit']); 506 while ($Item = $DbResult->fetch_assoc())506 while ($Item = $DbResult->fetch_assoc()) 507 507 { 508 508 $Output .= '<tr>'. … … 556 556 ' FROM ('.$DailyTableMaxId.') AS T4'. 557 557 ' WHERE '.$Where.$Order['SQL'].$PageList['SQLLimit']); 558 while ($Item = $DbResult->fetch_assoc())558 while ($Item = $DbResult->fetch_assoc()) 559 559 { 560 560 $Output .= '<tr>'. … … 623 623 ', (SELECT RunnerStat.Rank FROM RunnerStat WHERE RunnerStat.Runner=Runner.Id ORDER BY Time DESC LIMIT 1) AS Rank', 624 624 $Where.$Order['SQL'].$PageList['SQLLimit']); 625 while ($Item = $DbResult->fetch_assoc())625 while ($Item = $DbResult->fetch_assoc()) 626 626 { 627 627 $Output .= '<tr>'. … … 638 638 $Output .= '</div>'; 639 639 640 return ($Output);640 return $Output; 641 641 } 642 642 … … 660 660 $Output .= $this->ShowDetailed('Runner', $RunnerId); 661 661 $Output .= $this->ShowDaily('Runner', $RunnerId); 662 return ($Output);662 return $Output; 663 663 } 664 664 … … 733 733 '<a href="https://app.zdechov.net/teribear/">Source code</a></div>'; 734 734 $Output .= '</body></html>'; 735 return ($Output);735 return $Output; 736 736 } 737 737 … … 757 757 $Item = $this->PathItems[0]; 758 758 if ($Item == 'sync') $Output .= $this->ShowSync(); 759 //else if ($this->PathItems[0] == 'empty') $Output .= $this->ShowEmpty();760 else if ($Item == 'runner') $Output .= $this->ShowRunner();761 else if ($Item == 'runners') $Output .= $this->ShowRunners();762 else if ($Item == 'team') $Output .= $this->ShowTeam();763 else if ($Item == 'teams') $Output .= $this->ShowTeams();764 else if ($Item == 'family') $Output .= $this->ShowFamily();765 else if ($Item == 'families') $Output .= $this->ShowFamilies();759 //else if ($this->PathItems[0] == 'empty') $Output .= $this->ShowEmpty(); 760 else if ($Item == 'runner') $Output .= $this->ShowRunner(); 761 else if ($Item == 'runners') $Output .= $this->ShowRunners(); 762 else if ($Item == 'team') $Output .= $this->ShowTeam(); 763 else if ($Item == 'teams') $Output .= $this->ShowTeams(); 764 else if ($Item == 'family') $Output .= $this->ShowFamily(); 765 else if ($Item == 'families') $Output .= $this->ShowFamilies(); 766 766 else $Output .= $this->ShowMain(); 767 767 } else $Output .= $this->ShowMain();
Note:
See TracChangeset
for help on using the changeset viewer.