Data['id'] > 1 ){ $Data['success'] = false; $Data['msg']= 'Module Not Selected!'; if( isset( $_POST['MID'] ) ){ $MID = intval($_POST['MID']); if( $MID ){ $Data['msg']='Module Does Not Exists!'; $QS = "SELECT * FROM `server_modules` WHERE `id`={$MID}"; $RR = $DATABASE->Query( $QS ); if( count( $RR ) ){ $CMD = $RR[0]; $Data['success'] = true; $Data['msg']=''; switch( $CMD['type'] ){ case 9:{ // EVE $SiW = array( 320, 640, 800, 1280, 1024, 1920 ); $SiH = array( 240, 480, 600, 720, 768, 1080 ); $SIZE = intval( $_POST['SIZE'] ); $PORT = intval( $_POST['PORT'] ); $COMP = intval( $_POST['COMPRESSION'] ); $TS_X = intval( $_POST['TS_POSX'] ); $TS_Y = intval( $_POST['TS_POSY'] ); $TS_FF = intval( $_POST['TS_FONT'] ); $TS_FS = intval( $_POST['TS_FONT_SCALE'] ); $TS_FT = intval( $_POST['TS_FONT_THICK'] ); $TS_LT = intval( $_POST['TS_LINE'] ); $TS_TS = intval( $_POST['TS_TRANS'] ); $LB_X = intval( $_POST['LBL_POSX'] ); $LB_Y = intval( $_POST['LBL_POSY'] ); $LB_FF = intval( $_POST['LBL_FONT'] ); $LB_FS = intval( $_POST['LBL_FONT_SCALE'] ); $LB_FT = intval( $_POST['LBL_FONT_THICK'] ); $LB_LT = intval( $_POST['LBL_LINE'] ); $LB_TS = intval( $_POST['LBL_TRANS'] ); $LO_X = intval( $_POST['LOG_POSX'] ); $LO_Y = intval( $_POST['LOG_POSY'] ); $LO_W = intval( $_POST['LOG_W'] ); $LO_H = intval( $_POST['LOG_H'] ); if( $_POST['SHOW1'] ) $STS = 1; else $STS = 0; if( $_POST['SHOW2'] ) $SLB = 1; else $SLB = 0; if( $_POST['SHOW3'] ) $SLG = 0; else $SLG = 0; if( $_POST['TS_TRANS'] ) $TS_TS = 1; else $TS_TS = 0; if( $_POST['LBL_TRANS'] ) $LB_TS = 1; else $LB_TS = 0; $QS = "UPDATE `module_embed_video_settings` SET `web_port`={$PORT}, `width`={$SiW[$SIZE]}, `height`={$SiH[$SIZE]}, `compression_quality`={$COMP}, `show_ts`={$STS}, `show_label`={$SLB}, `show_logo`={$SLG}, `ts_x`={$TS_X}, `ts_y`={$TS_Y}, `ts_font_face`={$TS_FF}, `ts_font_thickness`={$TS_FT}, `ts_line_type`={$TS_LT}, `ts_transperant`={$TS_TS}, `label_x`={$LB_X}, `label_y`={$LB_Y}, `label_font_face`={$LB_FF}, `label_font_thickness`={$LB_FT}, `label_line_type`={$LB_LT}, `label_transperant`={$LB_TS}, `logo_x`={$LO_X}, `logo_y`={$LO_Y}, `logo_w`={$LO_W}, `logo_h`={$LO_H} WHERE `id`={$CMD['aux_id']}"; $DATABASE->Query( $QS ); break; }; }; }; }; }; echo json_encode( $Data ); exit(); }; header( 'location: /'); ?>