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 ICSessions | |
{ | |
static public function Init(){ | |
if (!session_id()) @session_start(); | |
return new ICSession; | |
} | |
public function Set($key='', $value='') | |
{ |
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 | |
/** | |
* Turkish Lira Official Exchange Rate | |
**/ | |
function turkey_exchange_rate($_opt='', $_signs = 2) | |
{ | |
$res = null; | |
$url = 'http://www.tcmb.gov.tr/kurlar/today.xml'; | |
$xml = @simplexml_load_file($url, 'SimpleXMLElement', LIBXML_NOCDATA); | |
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 exchange_rate($_opt = []) | |
{ | |
$_pairs = []; | |
foreach($_opt as $_k=>$_v) | |
{ | |
$_pairs[] = $_k.'_'.$_v; | |
} | |
if(!count($_pairs)) return null; |
NewerOlder