Changeset 358
- Timestamp:
- Mar 5, 2010, 7:49:37 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r357 r358 266 266 else if($Action == 'dbkit') DatabaseKit(); 267 267 else if($Action == 'ShoutBoxView') ShoutBoxView(); 268 else echo('Nebyla zadána žándá akce'); 268 269 269 270 ShowFooter(); -
trunk/admin.php
r357 r358 33 33 echo ('<form action="admin.php?action=addnew" method="POST">'. 34 34 'Uživatel: '.$_SESSION['User'].'('.$_SESSION['UserID'].')<br/> '. 35 '<input type="submit" value="Uložit" ><br>'.35 '<input type="submit" value="Uložit"/><br/>'. 36 36 '<textarea rows="8" cols="40" onkeydown="ResizeTextArea(this)" class="textedit" id="Text" name="text"></textarea>'. 37 37 '</form>'); 38 39 38 } 40 39 41 40 function SaveNew() 42 41 { 43 global $Database, $Config;42 global $Database, $Config; 44 43 45 if (array_key_exists('text',$_POST)) { 44 if(array_key_exists('text', $_POST)) 45 { 46 46 $querty = 'INSERT INTO `news` ( `Time` ,`User` ,`Text`) VALUES ( NOW( ) , '.$_SESSION['UserID'].', "'.$_POST['text'].'")'; 47 47 $Database->SQLCommand($querty); 48 echo 49 48 echo('Aktualita uložena!'); 49 WriteLog('Vložena nová aktualita', LOG_TYPE_ADMINISTRATION); 50 50 } 51 WriteLog('Vložena nová aktualita', LOG_TYPE_ADMINISTRATION);52 51 } 53 52
Note:
See TracChangeset
for help on using the changeset viewer.