1. Установка epel (если не установлен) и remi

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

2. Установка yum-utils (если не установлен)

yum install yum-utils

3. Обновление или установка php

yum-config-manager --enable remi-php56
yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo

4. Проверка версии

php -v
https://www.tecmint.com/install-php-5-6-on-centos-7/
Categories: Linux Tags:
4 июня 2019 3 комментария
ul{
	list-style:none;
	column-count:2;
	-moz-column-count:2;
	-webkit-column-count:2;
}
ul li{
	-webkit-column-break-inside:avoid;
	-moz-column-break-inside:avoid;
	-moz-page-break-inside:avoid;
	page-break-inside:avoid;
	break-inside:avoid-column;
}

http://qaru.site/questions/34311/how-to-prevent-column-break-within-an-element

Categories: CSS Tags:
input::-ms-clear{
	display:none;
	width:0;
	height:0;
}

для password:

input::-ms-reveal{
	display:none;
	width:0;
	height:0;
}
Categories: CSS Tags:
3 апреля 2019 1 комментарий
import UIKit
import WebKit
class ViewController: UIViewController, WKNavigationDelegate {
    var webView: WKWebView!
    override func loadView() {
        webView = WKWebView()
        webView.navigationDelegate = self
        view = webView
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        let url = URL(string: "http://example.com")!
        webView.load(URLRequest(url: url))
        let refresh = UIBarButtonItem(barButtonSystemItem: .refresh, target: webView, action: #selector(webView.reload))
        toolbarItems = [refresh]
        navigationController?.isToolbarHidden = false
    }
    func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!){
        title = webView.title
    }
}

https://www.ioscreator.com/tutorials/webview-ios-tutorial-ios11

Categories: iOS Tags:
2 апреля 2019 Нет комментариев
header('X-XSS-Protection:0');
Categories: PHP Tags:
28 марта 2019 Нет комментариев
$('.params_full input[type=reset]').on('click',function(){
	this.form.reset();
	$('.params_full input[type=text]').each(function(){
		if($(this).val()!=''){
			//$(this).val(number_format(replaceAll($(this).val(),' ',''),0,'.',' '));
		}
	});
	return false;
});
Categories: Javascript Tags:
28 марта 2019 3 комментария

.params_full .range > div — slider selector

$('.params_full input[type=reset]').on('click',function(){
	$('.params_full .range > div').each(function(){
		var options=$(this).slider('option');
		$(this).slider('values',[options.min,options.max]);
	});
});
Categories: Javascript Tags: