Changeset 468
- Timestamp:
- Apr 17, 2010, 2:50:51 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r466 r468 259 259 if($User->Licence(LICENCE_USER)) echo(' <a href="admin.php?action=addnew">Vložit</a>'); 260 260 echo('<div class="shoutbox">'); 261 $ dbResult = $System->Database->query('SELECT `News`.`Time`, `News`.`Text`, `User`.`Name` AS `User` FROM `News` JOIN `User` ON `User`.`ID`=`News`.`User` ORDER BY `News`.`Time` DESC '.$PageList['SQLLimit']);261 $DbResult = $System->Database->query('SELECT `News`.`Time`, `News`.`Text`, `User`.`Name` AS `User` FROM `News` JOIN `User` ON `User`.`Id`=`News`.`User` ORDER BY `News`.`Time` DESC '.$PageList['SQLLimit']); 262 262 while($Line = $DbResult->fetch_assoc()) 263 263 echo('<div><strong>'.HumanDate($Line['Time']).'</strong> '.$Line['Text'].' ('.$Line['User'].')</div>'); -
trunk/includes/dbc.php
r447 r468 194 194 foreach($this->StringList as $Index => $Item) 195 195 { 196 $this->WriteString($Item );196 $this->WriteString($Item."\0"); 197 197 } 198 198 } -
trunk/includes/global.php
r467 r468 228 228 if($_GET['action'] == 'login') 229 229 { 230 $User->Login($_POST['LoginUser'], $_POST['LoginPass']); 231 if($User->Role == LICENCE_ANONYMOUS) 230 if(array_key_exists('LoginUser', $_POST) and array_key_exists('LoginPass', $_POST)) 232 231 { 233 $Message = 'Jméno nebo heslo bylo zadáno špatně.'; 234 $MessageType = MESSAGE_CRITICAL; 232 $User->Login($_POST['LoginUser'], $_POST['LoginPass']); 233 if($User->Role == LICENCE_ANONYMOUS) 234 { 235 $Message = 'Jméno nebo heslo bylo zadáno špatně.'; 236 $MessageType = MESSAGE_CRITICAL; 237 } else 238 { 239 $Message = 'Přihlášení proběhlo úspěšně. Vítej <strong>'.$User->Name.'</strong>!'; 240 $MessageType = MESSAGE_INFORMATION; 241 } 235 242 } else 236 243 { 237 $Message = ' Přihlášení proběhlo úspěšně. Vítej <strong>'.$User->Name.'</strong>!';238 $MessageType = MESSAGE_ INFORMATION;239 } 244 $Message = 'Nebylo zadáno jméno a heslo.'; 245 $MessageType = MESSAGE_CRITICAL; 246 } 240 247 } else 241 248 if($_GET['action'] == 'logout')
Note:
See TracChangeset
for help on using the changeset viewer.