This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class WordsService { | |
| public $srt = 'The Wire [1x03] The Buys.srt'; | |
| public $number; | |
| public $words; | |
| public $countWords; | |
| public $currentWord; | |
| public $workWithDb = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php Yii::app()->getClientScript()->registerPackage('words'); ?> | |
| <link href='http://fonts.googleapis.com/css?family=Roboto:900' rel='stylesheet' type='text/css'> | |
| <div class="help"> | |
| <?php $form = $this->beginWidget('CActiveForm'); ?> | |
| <?php //echo CHtml::submitButton('Перемешать', array('name' => 'shuffleWords')); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require 'config.php'; | |
| require 'includes/functions.php'; | |
| session_start(); | |
| error_reporting(-1); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function recordError($error) { | |
| $time = date("F-j-Y-H-i"); | |
| file_put_contents('../logs/' . $time . '.txt', $error); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header('Content-Type: text/html; charset=utf-8'); | |
| require 'connectvars.php'; | |
| require 'request_protection.php'; | |
| error_reporting(-1); | |
| $request = new RequestProtection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header('Content-Type: text/html; charset=utf-8'); | |
| require 'connectvars.php'; | |
| require 'request_protection.php'; | |
| error_reporting(-1); | |
| $request = new RequestProtection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $dbhost = 'localhost'; | |
| $dbname = 'cobaka'; | |
| $dbuser = 'root'; | |
| $dbpassword = ''; | |
| define('LOGS', 'logs/'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header('Content-Type: text/html; charset=utf-8'); | |
| error_reporting(-1); | |
| $nameError = ''; | |
| $emailError = ''; | |
| $phoneError = ''; | |
| $emptyEmail = false; |