12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- if (!$logged_me_in_successfully234)
- return;
- $action = filter_input(INPUT_GET, 'action');
- if (1 == $action)
- {
- $str = $_POST['text'];
-
- if ($str)
- {
-
- $res = Yii::$app->db->createCommand()
- ->insert('text_log',
- ['msg' => $str]
- )->execute();
-
-
- if ($res)
- echo 'Записано.<br/>';
- else
- echo 'Не записано.<br/>';
- }
- }
- echo '<h2>Внесите текст:</h2>
- <br/>
- <form action="?act=_log&action=1" method="post">
- <textarea name="text" style="width:100%"></textarea>
- <p><input type="submit" /></p>
- </form>';
|