Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
egg.eemo.co.kr
/
public_html
/
super5
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/egg.eemo.co.kr/public_html/super5/lot_order_serial_make_do.php
<? session_cache_limiter('no-cache, must-revalidate'); session_start(); header("Pragma: no-cache"); header("Cache-Control: no-cache,must-revalidate"); header("Content-Type: text/html; charset=UTF-8"); foreach($_GET as $key => $value) { ${$key}=base64_decode(urldecode($value)); } include_once("dbconn.php"); include_once("lib.php"); if(!$_SESSION[mem_id]) { echo "<script>alert('권한이 없습니다.');history.back();</script>"; exit; } ini_set('max_execution_time',86400); $rs_sv=RS("select * from lot_order where no='$no' "); $lot_code=$rs_sv[lot_code]; $is_free=$_GET[free_cupon]; $old_bike=$_GET[old_bike]; $is_test=$_GET[is_test]; //echo $is_free; $n=$_GET[num]; $arr=array(); for($i=1;$i<=$n;$i++) { $bb=recall_id(); echo $i."=".$bb."<br>"; flush(); } function recall_id() { global $no; global $lot_code; global $is_free; global $old_bike; global $is_test; $bb=strtoupper(gen_uuid()); $rs=RS("select * from lot_serial where vcode='$bb' "); if($rs[no]) { recall_id(); } else { mysql_query("insert into lot_serial set fno='$no', vcode='$bb',free_cupon='$is_free', old_bike='$old_bike', is_test='$is_test', regdate=now() ") or die(); return $bb; } } function gen_uuid() { global $lot_code; global $no; $rsmax=RS("select max(right(vcode,4)) as cnt from lot_serial where fno='$no' "); $sn=$rsmax[cnt]+1; return sprintf( $lot_code.'-%06x', mt_rand( 0, 0xffffff ) ); } echo "<meta http-equiv='refresh' content='0;url=lot_order.php'>"; ?>