Skip to content

Instantly share code, notes, and snippets.

<?php
class WordsService {
public $srt = 'The Wire [1x03] The Buys.srt';
public $number;
public $words;
public $countWords;
public $currentWord;
public $workWithDb = false;
<?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')); ?>
<?php
require 'config.php';
require 'includes/functions.php';
session_start();
error_reporting(-1);
<?php
function recordError($error) {
$time = date("F-j-Y-H-i");
file_put_contents('../logs/' . $time . '.txt', $error);
}
<?php
header('Content-Type: text/html; charset=utf-8');
require 'connectvars.php';
require 'request_protection.php';
error_reporting(-1);
$request = new RequestProtection;
<?php
header('Content-Type: text/html; charset=utf-8');
require 'connectvars.php';
require 'request_protection.php';
error_reporting(-1);
$request = new RequestProtection;
<?php
$dbhost = 'localhost';
$dbname = 'cobaka';
$dbuser = 'root';
$dbpassword = '';
define('LOGS', 'logs/');
?>
<?php
header('Content-Type: text/html; charset=utf-8');
error_reporting(-1);
$nameError = '';
$emailError = '';
$phoneError = '';
$emptyEmail = false;