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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
function compress() | |
{ | |
$CI =& get_instance(); | |
$buffer = $CI->output->get_output(); | |
$search = array( | |
'/\>[^\S ]+/s', | |
'/[^\S ]+\</s', |
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
function number_format(number, decimals, dec_point, thousands_sep) { | |
//console.log(number); | |
// http://kevin.vanzonneveld.net | |
// + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) | |
// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
// + bugfix by: Michael White (http://getsprink.com) | |
// + bugfix by: Benjamin Lupton | |
// + bugfix by: Allan Jensen (http://www.winternet.no) | |
// + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) | |
// + bugfix by: Howard Yeend |
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 | |
/** | |
* PWN | File Manager | |
* Pawan Developers | |
* http://100utils.com | |
* https://github.com/mepawan/pwn-file-manager | |
*/ | |
// Default language | |
$lang = 'en'; |
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
$iso_array = array( | |
'ABW'=>'Aruba', | |
'AFG'=>'Afghanistan', | |
'AGO'=>'Angola', | |
'AIA'=>'Anguilla', | |
'ALA'=>'Åland Islands', | |
'ALB'=>'Albania', | |
'AND'=>'Andorra', | |
'ARE'=>'United Arab Emirates', | |
'ARG'=>'Argentina', |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- country list --> | |
<string-array name="data000"> | |
<item name="code">+93</item> | |
<item name="country">Afghanistan</item> | |
<item name="iso">AF</item> | |
<item name="flag">@drawable/afghanistan</item> | |
</string-array> |
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
{ | |
"countries": [ | |
{ | |
"code": "+7 840", | |
"name": "Abkhazia" | |
}, | |
{ | |
"code": "+93", | |
"name": "Afghanistan" | |
}, |
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
function country_iso3_to_country_calling_code(country_iso3) { | |
if(country_iso3 == 'AFG') return '93'; | |
if(country_iso3 == 'ALB') return '355'; | |
if(country_iso3 == 'DZA') return '213'; | |
if(country_iso3 == 'ASM') return '1684'; | |
if(country_iso3 == 'AND') return '376'; | |
if(country_iso3 == 'AGO') return '244'; | |
if(country_iso3 == 'AIA') return '1264'; | |
if(country_iso3 == 'ATA') return '672'; | |
if(country_iso3 == 'ATG') return '1268'; |
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
var infoWindow = null; | |
function initialize() | |
{ | |
infoWindow = new google.maps.InfoWindow(); | |
var windowLatLng = new google.maps.LatLng(43.25,-68.03); | |
infoWindow.setOptions({ | |
content: "<div>This is the html content.</div>", | |
position: windowLatLng, | |
}); | |
infoWindow.open(map); |
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 _require_all($directory, $exclude_folders = array(), $exclude_extensions = array() ) { | |
if(is_dir($directory)) { | |
$scan = scandir($directory); | |
unset($scan[0], $scan[1]); //unset . and .. | |
foreach($scan as $file) { | |
if(is_dir($directory."/".$file)) { | |
if(in_array($file,$exclude_folders)){ | |
continue; |