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 | |
//DB Config | |
date_default_timezone_set('Asia/Dhaka'); | |
$db=new PDO('mysql:host=localhost;dbname=dbname;charset=utf8','root','pass'); | |
//Site Url | |
$siteUrl = "http://localhost/fdfdf"; | |
?> |
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 fraud_gmail($user_email) | |
{ | |
$user_email = strtolower($user_email); | |
$data = explode('@', $user_email); | |
if(count($data)===2) | |
{ | |
if(preg_match("/g(oogle)?mail(.*)/", $data[1], $ext)) | |
{ | |
$trick = explode('+', $data[0]); |
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 | |
try{ | |
date_default_timezone_set('Asia/Dhaka'); | |
$db = new PDO('mysql:host=localhost;dbname=dbname;charset=utf8','root','pass'); | |
} | |
catch(Exception $e){ | |
var_dump($e); // Change it With Error Text | |
die(); | |
} |
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 getData(){ | |
return Datatable::collection(User::all(array('id','username'))) | |
->showColumns('id', 'username') | |
->searchColumns('username','id') | |
->orderColumns('id','username') |
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 | |
ini_set('xdebug.var_display_max_depth', 5); | |
ini_set('xdebug.var_display_max_children', 256); | |
ini_set('xdebug.var_display_max_data', 1024); | |
function get_result($data){ | |
static $all = array(); | |
$data = str_replace(array(" ","\n","\r",' ',' ',' '), '', $data); | |
// echo '<textarea>'. $data .'</textarea>'; | |
$pr[] = '<td width[a-zA-Z0-9=" ]+>([A-Za-z0-9 - ]+)<\/td>'; |
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 | |
/* | |
Plugin Name: Theme and Plugins Folder Direct Access Deny | |
Plugin URI: htp://saiful.im/ | |
Description: WordPress Theme and Plugins Folder Direct Access Deny | |
Author: Saiful Islam | |
Version: 0.0.2 | |
Author URI: http://saiful.im/ | |
*/ |
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
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
// dynamic table | |
oTable = jQuery('#{{ $id }}').dataTable({ | |
@foreach ($options as $k => $o) | |
{{ json_encode($k) }}: @if(!is_array($o)) @if(preg_match("/function/", $o)) {{ $o }} @else {{ json_encode($o) }}, @endif | |
@else | |
[{ |
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 | |
->addColumn('customer',function($model){ | |
return User::find($model->customer)->username." (".$model->customer.")"; | |
}) | |
?> |
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 myClass | |
{ | |
public $db = ''; | |
private $host = 'localhost'; | |
private $dbname = 'card'; | |
private $dbuser = 'root'; | |
private $dbpass = ''; |
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 | |
/** | |
* DB Class | |
*/ | |
class DB | |
{ | |
public $db = ''; | |
private $host = 'localhost'; | |
private $dbname = 'card'; |
OlderNewer