���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/admin.adimi/code/management/infohosting/ |
<?php $v_infohosting_id = 0; if(isset($CORE->input['infohosting_id']) && $CORE->input['infohosting_id']>0){ $v_infohosting_id = $CORE->input['infohosting_id']; } if($v_infohosting_id==0) { $row_check = $DB->get_colum_tb('tb_infohosting'); $row_check['infohosting_begin'] = date('d-m-Y'); $row_check['infohosting_end'] = date('d-m-Y'); }else{ $row_check = $DB->fetch_row($DB->query("SELECT * FROM tb_infohosting WHERE infohosting_id='$v_infohosting_id' ")); $row_check['infohosting_begin'] = date('d-m-Y',strtotime($row_check['infohosting_begin'])); $row_check['infohosting_end'] = date('d-m-Y',strtotime($row_check['infohosting_end'])); } if(isset($CORE->input['submitbt'])){ $f = $CORE->input['f']; $txt_begin = date('Y-m-d',strtotime($f['infohosting_begin'])); $txt_end = date('Y-m-d',strtotime($f['infohosting_end'])); $v_pricebegin = preg_replace('/[^0-9]/', '',$f['infohosting_pricebegin']); if(intval($f['infohosting_id'])==0){ $arr_insert = array( 'infohosting_doitac'=>$f['infohosting_doitac'], 'infohosting_ip'=>$f['infohosting_ip'],'infohosting_begin'=>$txt_begin,'infohosting_end'=>$txt_end, 'infohosting_pricebegin'=>$v_pricebegin, 'infohosting_ftpip'=>$f['infohosting_ftpip'],'infohosting_ftpport'=>$f['infohosting_ftpport'],'infohosting_username'=>$f['infohosting_username'],'infohosting_password'=>$f['infohosting_password'],'infohosting_cplink'=>$f['infohosting_cplink'],'infohosting_cpusername'=>$f['infohosting_cpusername'],'infohosting_cppassword'=>$f['infohosting_cppassword'],'infohosting_domain'=>$f['infohosting_domain'],'infohosting_note'=>$f['infohosting_note'],'infohosting_status'=>'active','time_post'=>time(),'user_post'=>$ob_user->user_name); $v_infohosting_id = $DB->do_insert('tb_infohosting',$arr_insert); $arr_insert_log = array('infohosting_id'=>$v_infohosting_id,'infohosting_begin'=>$txt_begin,'infohosting_end'=>$txt_end, 'infohosting_price'=>$v_pricebegin,'time_post'=>time(),'user_post'=>$ob_user->user_name); $DB->do_insert(' tb_infohosting_log',$arr_insert_log); $print->refresh('?act=management&code=infohosting'); }else{ $v_infohosting_id = intval($f['infohosting_id']); $row_check = $DB->fetch_row($DB->query("SELECT * FROM tb_infohosting WHERE infohosting_id='$v_infohosting_id' ")); $DB->query("UPDATE tb_infohosting SET infohosting_doitac='".$f['infohosting_doitac']."', infohosting_ip='".$f['infohosting_ip']."', infohosting_begin='$txt_begin', infohosting_end='$txt_end', infohosting_pricebegin='$v_pricebegin', infohosting_ftpip='".$f['infohosting_ftpip']."', infohosting_ftpport='".$f['infohosting_ftpport']."', infohosting_username='".$f['infohosting_username']."', infohosting_password='".$f['infohosting_password']."', infohosting_cplink='".$f['infohosting_cplink']."', infohosting_cpusername='".$f['infohosting_cpusername']."', infohosting_cppassword='".$f['infohosting_cppassword']."', infohosting_domain='".$f['infohosting_domain']."', infohosting_note='".$f['infohosting_note']."' WHERE infohosting_id='".$v_infohosting_id."' "); $DB->query("UPDATE tb_infohosting_log SET infohosting_begin='$txt_begin', infohosting_end='$txt_end', infohosting_price='$v_pricebegin' WHERE infohosting_begin='".$row_check['infohosting_begin']."' AND infohosting_end='".$row_check['infohosting_end']."' AND infohosting_price='".$row_check['infohosting_pricebegin']."' AND infohosting_id='$v_infohosting_id' "); $print->refresh('?act=management&code=infohosting&type=post&infohosting_id='.$v_infohosting_id); } } ?>