亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? misc.php

?? asterisk用 的voip記費軟件
?? PHP
字號:
<?php/*************************************************************************** *            Misc.php * *  GPL : Belaid Arezqui *  Email : areski _atl_ gmail ****************************************************************************//*  * get_currencies  */function get_currencies($handle = null){	if (empty($handle)){		$handle = DbConnect();	}	$instance_table = new Table();	$QUERY =  "SELECT id,currency,name,value from cc_currencies order by id";	$result = $instance_table -> SQLExec ($handle, $QUERY);	/*		$currencies_list['ADF'][1]="Andorran Franc";		$currencies_list['ADF'][2]="0.1339";		[ADF] => Array ( [1] => Andorran Franc (ADF), [2] => 0.1339 )	*/	if (is_array($result)){		$num_cur = count($result);		for ($i=0;$i<$num_cur;$i++){			$currencies_list[$result[$i][1]] = array (1 => $result[$i][2], 2 => $result[$i][3]);		}	}		if ((isset($currencies_list)) && (is_array($currencies_list)))	sort_currencies_list($currencies_list);				return $currencies_list;}/*** Do Currency Conversion. * @param $currencies_list the List of currencies.* @param $amount the amount to be converted.* @param $from_cur Source Currency* @param $to_cur Destination Currecny*/function convert_currency ($currencies_list, $amount, $from_cur, $to_cur){	if (!is_numeric($amount) || ($amount == 0)){		return 0;	}	if ($from_cur == $to_cur){		return $amount;	}	// EUR -> 1.19175 : MAD -> 0.10897			// FROM -> 2 - TO -> 0.5 =>>>> multiply 4	$mycur_tobase = $currencies_list[strtoupper($from_cur)][2];			$mycur = $currencies_list[strtoupper($to_cur)][2];	if ($mycur == 0) return 0;	$amount = $amount * ($mycur_tobase / $mycur);	// echo "\n \n AMOUNT CONVERTED IN NEW CURRENCY $to_cur -> VALUE =".$amount;	return $amount;}/*  * sort_currencies_list */function sort_currencies_list(&$currencies_list){	$first_array = array (strtoupper(BASE_CURRENCY), 'USD', 'EUR','GBP','AUD','HKD', 'JPY', 'NZD', 'SGD', 'TWD', 'PLN', 'SEK', 'DKK', 'CHF', 'COP', 'MXN', 'CLP');			foreach ($first_array as $element_first_array){		if (isset($currencies_list[$element_first_array])){				$currencies_list2[$element_first_array]=$currencies_list[$element_first_array];			unset($currencies_list[$element_first_array]);		}	}	$currencies_list = array_merge($currencies_list2,$currencies_list);		}/*  * Write log into file  */function write_log($logfile, $output){	if (strlen($logfile) > 1){		$string_log = "[".date("d/m/Y H:i:s")."]:[$output]\n";		error_log ($string_log."\n", 3, $logfile);	}}/* * function sanitize_data */function sanitize_data($data){	$lowerdata = strtolower ($data);	//echo "----> $data ";	$data = str_replace('--', '', $data);		$data = str_replace("'", '', $data);	$data = str_replace('=', '', $data);	$data = str_replace(';', '', $data);	//$lowerdata = str_replace('table', '', $lowerdata);	//$lowerdata = str_replace(' or ', '', $data);	if (!(strpos($lowerdata, ' or ')===FALSE)){ return false;}	if (!(strpos($lowerdata, 'table')===FALSE)){ return false;}	//echo "----> $data<br>";	return $data;}/* * function getpost_ifset */function getpost_ifset($test_vars){	if (!is_array($test_vars)) {		$test_vars = array($test_vars);	}	foreach($test_vars as $test_var) { 		if (isset($_POST[$test_var])) { 			global $$test_var;			$$test_var = $_POST[$test_var];			$$test_var = sanitize_data($$test_var);		} elseif (isset($_GET[$test_var])) {			global $$test_var; 			$$test_var = $_GET[$test_var];			$$test_var = sanitize_data($$test_var);		}	}} /* * function display_money */function display_money($value, $currency = BASE_CURRENCY){				echo $value.' '.$currency;			}/* * function display_dateformat */function display_dateformat($mydate){	if (DB_TYPE == "mysql"){					if (strlen($mydate)==14){			// YYYY-MM-DD HH:MM:SS 20300331225242			echo substr($mydate,0,4).'-'.substr($mydate,4,2).'-'.substr($mydate,6,2);			echo ' '.substr($mydate,8,2).':'.substr($mydate,10,2).':'.substr($mydate,12,2);							return;		}	}		echo $mydate;			}/* * function display_dateonly */function display_dateonly($mydate){	if ($mydate != "")	{		echo date("m/d/Y", strtotime($mydate));	}	else	{		echo $mydate;	}}/* * function res_display_dateformat */function res_display_dateformat($mydate){		if (DB_TYPE == "mysql"){					if (strlen($mydate)==14){			// YYYY-MM-DD HH:MM:SS 20300331225242			$res= substr($mydate,0,4).'-'.substr($mydate,4,2).'-'.substr($mydate,6,2);			$res.= ' '.substr($mydate,8,2).':'.substr($mydate,10,2).':'.substr($mydate,12,2);							return $res;		}	}			return $mydate;			}/* * function display_minute */function display_minute($sessiontime){		global $resulttype;		if ((!isset($resulttype)) || ($resulttype=="min")){  				$minutes = sprintf("%02d",intval($sessiontime/60)).":".sprintf("%02d",intval($sessiontime%60));		}else{				$minutes = $sessiontime;		}		echo $minutes;}function display_2dec($var){				echo number_format($var,2);}function display_2dec_percentage($var){			if (isset($var))		{				echo number_format($var,2)."%";		}else		{			echo "n/a";		}}function display_2bill($var, $currency = BASE_CURRENCY){			global $currencies_list, $choose_currency;		if (isset($choose_currency) && strlen($choose_currency)==3) $currency=$choose_currency;		if ( (!isset($currencies_list)) || (!is_array($currencies_list)) ) $currencies_list = get_currencies();		$var = $var / $currencies_list[strtoupper($currency)][2];		echo number_format($var,3).' '.$currency;}function remove_prefix($phonenumber){				if (substr($phonenumber,0,3) == "011"){				echo substr($phonenumber,3);				return 1;		}		echo $phonenumber;}/* * function linkonmonitorfile */function linkonmonitorfile($value){		$myfile = $value.".".MONITOR_FORMATFILE;	$myfile = base64_encode($myfile);	echo "<a target=_blank href=\"call-log-customers.php?download=file&file=".$myfile."\">";	echo '<img src="'.Images_Path.'/stock-mic.png" height="18" /></a>';	}/* * function MDP_STRING */function MDP_STRING($chrs = LEN_CARDNUMBER){	$pwd = ""  ;	mt_srand ((double) microtime() * 1000000);	while (strlen($pwd)<$chrs)	{		$chr = chr(mt_rand (0,255));		if (eregi("^[0-9a-z]$", $chr))		$pwd = $pwd.$chr;	};	return strtolower($pwd);}function MDP_NUMERIC($chrs = LEN_CARDNUMBER){	$pwd = ""  ;	mt_srand ((double) microtime() * 1000000);	while (strlen($pwd)<$chrs)	{		$chr = mt_rand (0,9);		if (eregi("^[0-9]$", $chr))		$pwd = $pwd.$chr;	};	return strtolower($pwd);}function MDP($chrs = LEN_CARDNUMBER){	$pwd = ""  ;	mt_srand ((double) microtime() * 1000000);	while (strlen($pwd)<$chrs)	{		$chr = chr(mt_rand (0,255));		if (eregi("^[0-9]$", $chr))		$pwd = $pwd.$chr;	};	return $pwd;}function gen_card($table = "cc_card", $len = LEN_CARDNUMBER, $field="username"){	$DBHandle_max  = DbConnect();	for ($k=0;$k<=200;$k++){		$card_gen = MDP($len);		if ($k==200){ echo "ERROR : Impossible to generate a $field not yet used!<br>Perhaps check the LEN_CARDNUMBER (value:".LEN_CARDNUMBER.")";exit();}		$query = "SELECT ".$field." FROM ".$table." where ".$field."='$card_gen'";		$resmax = $DBHandle_max -> Execute($query);		$numrow = 0;		if ($resmax)			$numrow = $resmax -> RecordCount( );		if ($numrow!=0) continue;		return $card_gen;	}	}function gen_card_with_alias($table = "cc_card", $api=0, $length_cardnumber=LEN_CARDNUMBER){		$DBHandle_max  = DbConnect();	for ($k=0;$k<=200;$k++){					$card_gen = MDP($length_cardnumber);		$alias_gen = MDP(LEN_ALIASNUMBER);		if ($k==200){ 			if ($api){				global $mail_content, $email_alarm, $logfile;				mail($email_alarm, "ALARM : API (gen_card_with_alias - CODE_ERROR 8)", $mail_content);				error_log ("[" . date("Y/m/d G:i:s", mktime()) . "] "."[gen_card_with_alias] - CODE_ERROR 8"."\n", 3, $logfile);				echo("500 Internal server error");				exit();			}else{				echo "ERROR : Impossible to generate a Cardnumber & Aliasnumber not yet used!<br>Perhaps check the LEN_CARDNUMBER  (value:".LEN_CARDNUMBER.") & LEN_ALIASNUMBER (value:".LEN_ALIASNUMBER.")";				exit();			}		}		$query = "SELECT username FROM ".$table." where username='$card_gen' OR useralias='$alias_gen'";		$numrow = 0;		$resmax = $DBHandle_max -> Execute($query);		if ($resmax)			$numrow = $resmax -> RecordCount( );		if ($numrow!=0) continue;		$arr_val [0] = $card_gen;		$arr_val [1] = $alias_gen;		return $arr_val;	}	}		//Get productID and all parameter and retrieve info for card creation into cc_ecommerce_productfunction get_productinfo($DBHandle, $instance_table, $productid, $email_alarm, $mail_content, $logfile){	global $FG_DEBUG;	$QUERY = 'SELECT  				product_name, creationdate, description, expirationdate, enableexpire, expiredays, credit, tariff, id_didgroup, activated, simultaccess, currency,				typepaid, creditlimit, language, runservice, sip_friend, iax_friend, cc_ecommerce_product.mailtype, fromemail, fromname, subject, messagetext,				messagehtml			  FROM cc_ecommerce_product, cc_templatemail 			  WHERE cc_ecommerce_product.mailtype=cc_templatemail.mailtype AND id='.$productid;			  		$result = $instance_table -> SQLExec ($DBHandle, $QUERY);			if ($FG_DEBUG>0){ echo "<br><b>$QUERY</b><br>"; print_r ($result); echo "<hr><br>"; }				if( !is_array($result)){		if ($FG_DEBUG > 0) echo ("get_productinfo ERROR");		mail($email_alarm, "ALARM : API (CODE_ERROR get_productinfo)", $mail_content);		error_log ("[" . date("Y/m/d G:i:s", mktime()) . "] "."CODE_ERROR get_productinfo"."\n", 3, $logfile);		echo("500 Internal server error");		exit();		}		return $result[0];	}// *********************************//  ONLY USER BY THE OLD FRAME WORK // *********************************$lang['strfirst']='&lt;&lt; First';$lang['strprev']='&lt; Prev';$lang['strnext']='Next &gt;';$lang['strlast']='Last &gt;&gt;';/*** Do multi-page navigation.  Displays the prev, next and page options.* @param $page the page currently viewed* @param $pages the maximum number of pages* @param $url the url to refer to with the page number inserted* @param $max_width the number of pages to make available at any one time (default = 20)*/function printPages($page, $pages, $url, $max_width = 20) {	global $lang;		$window = 8;		if ($page < 0 || $page > $pages) return;	if ($pages < 0) return;	if ($max_width <= 0) return;		if ($pages > 1) {		//echo "<center><p>\n";		if ($page != 1) {			$temp = str_replace('%s', 1-1, $url);			echo "<a class=\"pagenav\" href=\"{$temp}\">{$lang['strfirst']}</a>\n";			$temp = str_replace('%s', $page - 1-1, $url);			echo "<a class=\"pagenav\" href=\"{$temp}\">{$lang['strprev']}</a>\n";		}			if ($page <= $window) {			$min_page = 1;			$max_page = min(2 * $window, $pages);		}		elseif ($page > $window && $pages >= $page + $window) {			$min_page = ($page - $window) + 1;			$max_page = $page + $window;		}		else {			$min_page = ($page - (2 * $window - ($pages - $page))) + 1;			$max_page = $pages;		}		// Make sure min_page is always at least 1		// and max_page is never greater than $pages		$min_page = max($min_page, 1);		$max_page = min($max_page, $pages);				for ($i = $min_page; $i <= $max_page; $i++) {			$temp = str_replace('%s', $i-1, $url);			if ($i != $page) echo "<a class=\"pagenav\" href=\"{$temp}\">$i</a>\n";			else echo "$i\n";		}		if ($page != $pages) {			$temp = str_replace('%s', $page + 1-1, $url);			echo "<a class=\"pagenav\" href=\"{$temp}\">{$lang['strnext']}</a>\n";			$temp = str_replace('%s', $pages-1, $url);			echo "<a class=\"pagenav\" href=\"{$temp}\">{$lang['strlast']}</a>\n";		}	}}/*** Validate the Uploaded Files.  Return the error string if any.* @param $the_file the file to validate* @param $the_file_type the file type*/function validate_upload($the_file, $the_file_type) {	$registered_types = array(                                        "application/x-gzip-compressed"         => ".tar.gz, .tgz",                                        "application/x-zip-compressed"          => ".zip",                                        "application/x-tar"                     => ".tar",                                        "text/plain"                            => ".html, .php, .txt, .inc (etc)",                                        "image/bmp"                             => ".bmp, .ico",                                        "image/gif"                             => ".gif",                                        "image/pjpeg"                           => ".jpg, .jpeg",                                        "image/jpeg"                            => ".jpg, .jpeg",                                        "image/png"                             => ".png",                                        "application/x-shockwave-flash"         => ".swf",                                        "application/msword"                    => ".doc",                                        "application/vnd.ms-excel"              => ".xls",                                        "application/octet-stream"              => ".exe, .fla (etc)",										"text/x-comma-separated-values"			=> ".csv"                                        ); # these are only a few examples, you can find many more!	$allowed_types = array("text/plain", "text/x-comma-separated-values");	$start_error = "\n<b>ERROR:</b>\n<ul>";	$error = "";	if ($the_file=="")	{				$error .= "\n<li>".gettext("File size is greater than allowed limit.")."\n<ul>";	}else	{        if ($the_file == "none") {                 $error .= "\n<li>".gettext("You did not upload anything!")."</li>";        }        elseif ($_FILES['the_file']['size'] == 0)        {        	$error .= "\n<li>".gettext("Failed to upload the file, The file you uploaded may not exist on disk.")."!</li>";        }         else                { 			if (!in_array($the_file_type,$allowed_types)) 			{ 				$error .= "\n<li>".gettext("file type is not allowed")."\n<ul>";                while ($type = current($allowed_types))                {                    $error .= "\n<li>" . $registered_types[$type] . " (" . $type . ")</li>";                	next($allowed_types);                }                $error .= "\n</ul>";            }                        }	}	if ($error)	{		$error = $start_error . $error . "\n</ul>";        return $error;    }    else     {    	return false;    }} # END validate_upload?>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米综合一区二区三区精品视频| 欧美日韩在线观看一区二区 | 中文字幕不卡在线观看| 91精品国产美女浴室洗澡无遮挡| 欧美日韩国产免费一区二区 | 精品女同一区二区| 日韩欧美在线123| 日韩一区国产二区欧美三区| 日韩亚洲国产中文字幕欧美| 91精品国产综合久久福利| 91精品国产色综合久久不卡电影 | 亚洲国产裸拍裸体视频在线观看乱了| 中文字幕一区二区三区四区| 亚洲三级在线看| 亚洲在线视频一区| 性感美女久久精品| 免费成人结看片| 久久狠狠亚洲综合| 国产酒店精品激情| 99免费精品在线观看| 色婷婷av一区二区三区之一色屋| 91电影在线观看| 欧美精品九九99久久| 日韩一区二区麻豆国产| 久久综合国产精品| 中文字幕亚洲一区二区av在线| 亚洲码国产岛国毛片在线| 亚洲最色的网站| 日韩电影在线观看一区| 国产一区二区三区av电影| 成人性视频免费网站| 色香蕉成人二区免费| 欧美精品高清视频| 久久一区二区三区国产精品| 国产精品色呦呦| 亚洲.国产.中文慕字在线| 韩国女主播一区| 色综合视频在线观看| 69堂国产成人免费视频| 国产午夜精品久久久久久久| 亚洲图片欧美激情| 肉肉av福利一精品导航| 国产福利一区二区三区视频| 色欧美乱欧美15图片| 欧美变态tickle挠乳网站| 亚洲欧洲日韩女同| 日韩国产欧美三级| av网站一区二区三区| 欧美日韩成人综合| 国产精品美女www爽爽爽| 亚洲午夜激情av| 国产精品1区2区3区| 欧美日韩mp4| 亚洲国产成人午夜在线一区| 日韩主播视频在线| 成人av电影观看| 日韩视频永久免费| 亚洲欧洲综合另类| 国内精品免费**视频| 欧美在线免费观看视频| 久久久久久久久岛国免费| 亚洲激情综合网| 岛国精品在线播放| 日韩欧美国产一二三区| 亚洲四区在线观看| 黄页视频在线91| 欧美精三区欧美精三区| 最新中文字幕一区二区三区| 久久av资源站| 欧美日韩你懂的| 国产精品麻豆久久久| 粉嫩aⅴ一区二区三区四区| 91精品国产综合久久久久久漫画 | 偷拍亚洲欧洲综合| 99久久99久久精品免费看蜜桃| 精品卡一卡二卡三卡四在线| 亚洲一区二区视频在线| 99热99精品| 中文字幕欧美日本乱码一线二线 | 欧洲精品一区二区三区在线观看| 久久综合九色综合欧美就去吻 | 正在播放亚洲一区| 亚洲精品成a人| a级精品国产片在线观看| 久久综合久久综合亚洲| 另类小说视频一区二区| 欧美高清精品3d| 亚洲国产另类精品专区| 91丨porny丨户外露出| 欧美国产综合一区二区| 国产精品综合网| 久久免费偷拍视频| 久99久精品视频免费观看| 日韩亚洲欧美高清| 日本麻豆一区二区三区视频| 欧美日韩精品一区二区三区四区| 亚洲精品国久久99热| 色婷婷久久一区二区三区麻豆| 国产精品乱码妇女bbbb| 成人一区在线观看| 国产精品情趣视频| 成人毛片视频在线观看| 日本一区二区视频在线| 国产高清视频一区| 国产精品私人影院| 成人精品一区二区三区四区| 国产欧美精品一区二区色综合朱莉| 国产精品一区免费在线观看| 久久新电视剧免费观看| 福利91精品一区二区三区| 欧美韩国日本不卡| 91香蕉国产在线观看软件| 国产精品沙发午睡系列990531| 成人国产亚洲欧美成人综合网| 国产精品色哟哟网站| 99久久国产综合色|国产精品| 亚洲日本中文字幕区| 日本久久一区二区| 亚洲成人高清在线| 日韩一级免费观看| 国产成人午夜精品影院观看视频 | 在线电影院国产精品| 国产麻豆一精品一av一免费| 国产亚洲制服色| 色综合久久久久综合| 亚洲444eee在线观看| 精品久久久三级丝袜| 成人性生交大片免费看视频在线| 国产精品素人一区二区| 在线视频你懂得一区| 蜜臀av性久久久久av蜜臀妖精| 欧美草草影院在线视频| 粉嫩一区二区三区性色av| 一区二区三区久久| 精品欧美乱码久久久久久1区2区| 懂色av中文一区二区三区| 亚洲欧洲成人自拍| 欧美疯狂性受xxxxx喷水图片| 国产精品自拍一区| 亚洲女同一区二区| 日韩一区二区免费视频| 99综合电影在线视频| 亚洲电影视频在线| 久久夜色精品国产噜噜av | 久久婷婷久久一区二区三区| 国产成人综合视频| 中文字幕一区二区在线观看| 国产成人av电影在线| 亚洲中国最大av网站| 日韩欧美一区二区三区在线| 国产高清亚洲一区| 亚洲图片欧美视频| 欧美tickling挠脚心丨vk| 成人久久久精品乱码一区二区三区| 亚洲裸体在线观看| 欧美精品在欧美一区二区少妇| 国产91精品在线观看| 一区二区三区四区在线免费观看| 在线不卡免费av| 久久精品国产第一区二区三区| 亚洲日本丝袜连裤袜办公室| 欧美久久免费观看| 成人福利视频网站| 亚洲地区一二三色| 国产精品福利影院| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲综合图片区| 国产亚洲精品aa| 日韩久久一区二区| 欧美一区日本一区韩国一区| 日韩黄色免费网站| 专区另类欧美日韩| 日韩视频永久免费| 色婷婷精品久久二区二区蜜臂av| 日韩**一区毛片| 亚洲欧美激情插 | 欧美成人女星排名| 色综合久久久久| 国产综合久久久久久久久久久久 | 免费高清在线一区| 国产精品视频看| 日韩精品在线一区| 91精品91久久久中77777| 韩国av一区二区三区在线观看| 综合中文字幕亚洲| www国产成人| 欧美巨大另类极品videosbest | 欧美日韩一区三区| 粉嫩嫩av羞羞动漫久久久| 免费国产亚洲视频| 一区二区在线观看不卡| 国产日韩一级二级三级| 欧美刺激午夜性久久久久久久| 欧美在线|欧美| av亚洲精华国产精华精| 国产一区二区看久久| 国产综合久久久久影院| 免费人成黄页网站在线一区二区| 亚洲精品美腿丝袜| 国产精品久线在线观看|