-=[ Mr. Bumblebee ]=-
_Indonesia_
<?
include $_SERVER['DOCUMENT_ROOT'] . '/inc/config_shop.php' ;
$execute = $exe->qry_one(" from tbl_{$total[table]} where keycode = '{$total[code]}' order by numid ", " img1 ") ;
while ( $rs = $exe->fetch($execute)) {
@copy( $_SERVER['DOCUMENT_ROOT'] . '/files/shop/' . $total['options']['dir'] . '/' . $rs['img1'] , $_SERVER['DOCUMENT_ROOT'] . '/files/options/' . $total['options']['dir'] . '/' . $rs['img1'] ) ;
}
echo 'end ' ;
exit ;
if ( $total['code'] == 'OT1') {
foreach ( $define_emblem as $key=>$val ) {
unset($action) ;
$upimg = $val[0];
$simg = new image ;
$simg->quality = $info_thumb['quality'] ;
$simg->ext = '' ;
$simg->head = '' ;
$down_image_size = file_s_down ( 'img/shop_emblem/' . $val[0] , $total['options']['w'] , $total['options']['h'] ) ;
$simg->width = $down_image_size['width'] ;
$simg->height = $down_image_size['height'] ;
$simg->file_path = 'img/shop_emblem' ;
$simg->thumb_path = 'files/' . $total['table'] . '/' . $total['options']['dir'] ;
$simg->resize( $upimg ) ;
$action = array(
'keycode' => $total['code'] ,
'title' => str_convert( mb_substr ($val[1], 0 , strpos($val[1] , '(' ))) ,
'price1' => $val[2] ,
'price2' => 0 ,
'price3' => 0 ,
'gubun' => ( mb_substr ($val[1], strpos($val[1] , '(' )) == '(¿ºÎÂø)' ? 'B' : 'A' ) ,
'seq' => $key ,
'img1' => $upimg
) ;
$exe->qry_insert($action , "tbl_{$total[table]}_options");
}
}
if ( $total['code'] == 'OT2') {
foreach ( $define_sponsor as $key=>$val ) {
unset($action) ;
$upimg = $val[0] . '.gif';
$simg = new image ;
$simg->quality = $info_thumb['quality'] ;
$simg->ext = '' ;
$simg->head = '' ;
$down_image_size = file_s_down ( 'img/shop_sponsor/' . $val[0] . '.gif' , $total['options']['w'] , $total['options']['h'] ) ;
$simg->width = $down_image_size['width'] ;
$simg->height = $down_image_size['height'] ;
$simg->file_path = 'img/shop_sponsor' ;
$simg->thumb_path = 'files/' . $total['table'] . '/' . $total['options']['dir'] ;
$simg->resize( $upimg ) ;
$action = array(
'keycode' => $total['code'] ,
'title' => $val[2] ,
'price1' => $val[1] ,
'price2' => 0 ,
'price3' => 0 ,
'seq' => $key ,
'img1' => $upimg
) ;
$exe->qry_insert($action , "tbl_{$total[table]}_options");
}
}
if ( $total['code'] == 'OT3') {
foreach ( $define_patch as $key=>$val ) {
unset($action) ;
$upimg = $val[2];
$simg = new image ;
$simg->quality = $info_thumb['quality'] ;
$simg->ext = '' ;
$simg->head = '' ;
$down_image_size = file_s_down ( 'img/shop_patch/' . $val[2] , $total['options']['w'] , $total['options']['h'] ) ;
$simg->width = $down_image_size['width'] ;
$simg->height = $down_image_size['height'] ;
$simg->file_path = 'img/shop_patch' ;
$simg->thumb_path = 'files/' . $total['table'] . '/' . $total['options']['dir'] ;
$simg->resize( $upimg ) ;
$action = array(
'keycode' => $total['code'] ,
'title' => str_convert( mb_substr ($val[0], 0 , strpos($val[0] , '(' ))) ,
'price1' => $val[1] ,
'price2' => 0 ,
'price3' => 0 ,
'gubun' => ( mb_substr ($val[0], strpos($val[0] , '(' )) == '(¿ºÎÂø)' ? 'B' : 'A' ) ,
'seq' => $key ,
'img1' => $upimg
) ;
$exe->qry_insert($action , "tbl_{$total[table]}_options");
}
}
if ( $total['code'] == 'OT4') {
foreach ( $define_numbers as $key=>$val ) {
unset($action) ;
$upimg = $val[0];
$simg = new image ;
$simg->quality = $info_thumb['quality'] ;
$simg->ext = '' ;
$simg->head = '' ;
$down_image_size = file_s_down ( 'img/shop_number/' . $val[0] , $total['options']['w'] , $total['options']['h'] ) ;
$simg->width = $down_image_size['width'] ;
$simg->height = $down_image_size['height'] ;
$simg->file_path = 'img/shop_number' ;
$simg->thumb_path = 'files/' . $total['table'] . '/' . $total['options']['dir'] ;
$simg->resize( $upimg ) ;
$action = array(
'keycode' => $total['code'] ,
'title' => $val[1] ,
'price1' => $val[2] ,
'price2' => $val[3] ,
'price3' => $val[4] ,
'gubun' => ( $val[5] == '1' ? 'A' : 'B' ) ,
'seq' => $key ,
'img1' => $upimg
) ;
$exe->qry_insert($action , "tbl_{$total[table]}_options");
}
}
?>
end
Copyright © 2017 || Recoded By Mr.Bumblebee