Changeset 504 for trunk/index.php
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 aowow 3 3 nbproject 4 .settings 5 .project 6 .buildpath
-
- Property svn:ignore
-
trunk/index.php
r500 r504 3 3 include_once('includes/global.php'); 4 4 5 if(!array_key_exists('HideWelcome', $_COOKIE)) $_COOKIE['HideWelcome'] = 0;6 if(isset($_GET['Action']))7 {8 if($_GET['Action'] == 'HideWelcome') $_COOKIE['HideWelcome'] = 1;9 if($_GET['Action'] == 'UnHideWelcome') $_COOKIE['HideWelcome'] = 0;10 }11 setcookie('HideWelcome', $_COOKIE['HideWelcome'], time() + 3600 * 24 * 365);12 13 5 function ShowNews() 14 6 { … … 38 30 while($DbRow = $DbResult->fetch_assoc()) 39 31 { 40 //echo($DbRow['Name'].', ');41 32 $UnionItems[] = 'SELECT `T`.`ID`, `T`.`Take`, `T`.`User`, `T`.`ModifyTime`, `T`.`Group`, `T`.`GroupName` '. 42 33 'FROM (SELECT `T`.`User`, `T`.`ID`, `T`.`ModifyTime`, '. … … 50 41 ' ORDER BY `ModifyTime` DESC LIMIT '.$Count; 51 42 $DbResult = $System->Database->query($Query); 52 //echo($System->Database->error);53 //echo($Query);54 43 $Output .= '<table class="MiniTable"><tr><th>Datum</th><th>Kdo</th><th>Nový</th><th>Zdroj</th><th>Skupina</th></tr>'; 55 44 while($DbRow = $DbResult->fetch_assoc()) … … 146 135 global $Config; 147 136 137 // Cookies have to be used before any text is sent to output 138 if(!array_key_exists('HideWelcome', $_COOKIE)) $_COOKIE['HideWelcome'] = 0; 139 if(isset($_GET['Action'])) 140 { 141 if($_GET['Action'] == 'HideWelcome') $_COOKIE['HideWelcome'] = 1; 142 if($_GET['Action'] == 'UnHideWelcome') $_COOKIE['HideWelcome'] = 0; 143 } 144 setcookie('HideWelcome', $_COOKIE['HideWelcome'], time() + 3600 * 24 * 365); 145 148 146 if(isset($_COOKIE['HideWelcome']) and ($_COOKIE['HideWelcome'] == 1)) 149 147 { … … 181 179 ); 182 180 183 ShowPage(); 184 185 $Welcome = ShowWelcome(); 186 187 echo('<br />'. 188 '<table class="Home"><tr><td colspan="3">'.$Welcome. 181 $Output = '<br />'. 182 '<table class="Home"><tr><td colspan="3">'.ShowWelcome(). 189 183 '</td></tr>'. 190 184 '<tr><td>'.ShowLastTranslated().'</td>'. 191 185 '<td class="news-box">'.ShowNews().'</td>'. 192 186 '<td>'.ShowShoutBox().'</td>'. 193 '</tr></table>' );187 '</tr></table>'; 194 188 195 Show Footer();189 ShowPage($Output); 196 190 } 197 191
Note:
See TracChangeset
for help on using the changeset viewer.