Beispiel #1
0
     $img_name2arr = explode(".", stripslashes($img_name2));
     $img_name2arr_num = count($img_name2arr) - 1;
     if ($img_name2arr[$img_name2arr_num] == "jpeg") {
         $img_name2arr[$img_name2arr_num] = "jpg";
     }
     $img_name2 = $mb_serial . "_2." . strtolower($img_name2arr[$img_name2arr_num]);
     $new_image2 = merge_image($img_name2, $mb_serial, "2", $mb_concept);
     $f_img_name2 = $mb_serial . "_2.jpg";
     $new_image2_1 = merge_image2($f_img_name2, $mb_serial, "2", $mb_concept);
     if ($mb_concept == "2" || $mb_concept == "3" || $mb_concept == "4") {
         $cap_image2 = caption_image_white($mb_caption2, $mb_serial, "2", $caption_image2_w, $caption_image2_h);
         $mb_name_age_caption = $mb_baby_name . " (" . $mb_baby_age . ")";
         $cap_image2_2 = caption_image2_white($mb_name_age_caption, $mb_serial, "2", $caption_image2_name_w, $caption_image2_name_h);
     } else {
         $rs_caption_w2 = txt_position($mb_caption2, $mb_concept);
         $cap_image2 = caption_image($mb_caption2, $mb_serial, "2", $rs_caption_w2, $caption_image2_h);
     }
     /*
     if ($mb_concept == "2" || $mb_concept == "3")
     {
     	$mb_name_age_caption	= $mb_baby_name." (".$mb_baby_age.")";
     	$cap_image2_2			= caption_image2_white($mb_name_age_caption, $mb_serial,"2",$caption_image2_name_w,$caption_image2_name_h);
     }
     */
 }
 $img_name5arr = explode(".", stripslashes($img_name5));
 $img_name5arr_num = count($img_name5arr) - 1;
 if ($img_name5arr[$img_name5arr_num] == "jpeg") {
     $img_name5arr[$img_name5arr_num] = "jpg";
 }
 $img_name5 = $mb_serial . "_5." . strtolower($img_name5arr[$img_name5arr_num]);
Beispiel #2
0
     $new_image1_1 = merge_image2($f_img_name1, $mb_serial, "1", $mb_concept);
     if ($mb_concept == "2") {
         $cap_image1 = caption_image_white($mb_caption1, $mb_serial, "1", $caption_image1_w, $caption_image1_h);
         $mb_name_age_caption = $mb_baby_name . " (" . $mb_baby_age . ")";
         $cap_image1_2 = caption_image2_white($mb_name_age_caption, $mb_serial, "1", $caption_image1_name_w, $caption_image1_name_h);
     } else {
         if ($mb_concept == "3") {
             $rs_caption_w3 = txt_position($mb_caption1, $mb_concept);
             $cap_image1 = caption_image_yellow($mb_caption1, $mb_serial, "1", $rs_caption_w3, $caption_image1_h);
         } else {
             if ($mb_concept == "4") {
                 $cap_image1 = caption_image_white4($mb_caption1, $mb_serial, "1", $caption_image1_w, $caption_image1_h);
             } else {
                 //$mb_caption1	= "어느덧 쑥쑥 자라서 너무 고마워";
                 $rs_caption_w1 = txt_position($mb_caption1, $mb_concept);
                 $cap_image1 = caption_image($mb_caption1, $mb_serial, "1", $rs_caption_w1, $caption_image1_h);
             }
         }
     }
     //$query 	= "UPDATE ".$_gl['member_info_table']." SET mb_baby_name='".$mb_baby_name."',mb_baby_age='".$mb_baby_age."',mb_concept='".$mb_concept."', mb_photo1='".$img_name1."' WHERE mb_serial='".$mb_serial."'";
     //$result 	= mysqli_query($my_db, $query);
     $query = "INSERT INTO " . $_gl['member_info2_table'] . "(mb_baby_name,mb_baby_age,mb_concept,mb_photo1,mb_caption1,mb_ipaddr,mb_regdate,mb_serial,mb_gubun,mb_media) values('" . $mb_baby_name . "','" . $mb_baby_age . "','" . $mb_concept . "','" . $img_name1 . "','" . $mb_caption1 . "','" . $_SERVER['REMOTE_ADDR'] . "','" . date("Y-m-d H:i:s") . "','" . $mb_serial . "','" . $gubun . "','" . $media . "')";
     $result = mysqli_query($my_db, $query);
     if ($result) {
         $flag = "Y";
     } else {
         $flag = "N";
     }
     echo $flag;
     break;
 case "insert_click_count":