Skip to content

Instantly share code, notes, and snippets.

View Samiulcse's full-sized avatar

MD SAMIUL ISLAM Samiulcse

View GitHub Profile
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
$root=(isset($_SERVER["HTTPS"]) ? "https://" : "http://").$_SERVER["HTTP_HOST"];
$root.= str_replace(basename($_SERVER["SCRIPT_NAME"]), "", $_SERVER["SCRIPT_NAME"]);
$config["base_url"] = $root;
password_hash('password',PASSWORD_BCRYPT,['cost'=>12]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data_array));
$result_e = curl_exec($ch);
// input filter for number
$.fn.inputFilter = function(inputFilter) {
return this.on("input keydown keyup mousedown mouseup select contextmenu drop", function() {
if (inputFilter(this.value)) {
this.oldValue = this.value;
this.oldSelectionStart = this.selectionStart;
this.oldSelectionEnd = this.selectionEnd;
} else if (this.hasOwnProperty("oldValue")) {
this.value = this.oldValue;
this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd);
/**
* Clean Input Data
*
* This is a helper function. It escapes data and
* standardizes newline characters to \n
*
* @access private
* @param string
* @return string
*/
$( document ).ready(function() {
$('ul').on('click', function(){
var x=$(this).find('li.highlight > span.dial-code').text();
$("#phone").val(x);
});
});
js/utils.js
<?php
function printBot(){
static $nm = 1;
if($nm >= 29){
return;
}
if($nm%2 !== 0){
echo $nm."\n";
}
Plug-in name :magnific popup
==============================
<div class="col-xl-6 col-lg-6 d-none d-lg-block">
<div class="video-bg">
<img src="assets/img/video-bg.jpg" alt="">
<a href="https://www.youtube.com/watch?v=iMKTtbheCeQ" class="video-popup">
<i class="fa fa-play-circle"></i>
/*-----------------------------------------------------------------------------------
Template Name: HTML Template Name
Template URI: URI
Description: This is html5 template
Author: HasTech
Author URI: Author URI
Version: 1.0
-----------------------------------------------------------------------------------