uploaded) { $foo->file_new_name_body = $file_new_name_body . '_mobil'; $foo->image_resize = true; $foo->image_convert = 'jpg'; $foo->image_x = 600; $foo->image_ratio_y = true; $foo->jpeg_quality = 100; $foo->Process('_pm/'); if ($foo->processed) { //echo 'image renamed, resized x=100'; $foo->Clean(); } else { //echo 'error : ' . $foo->error; $empty.='- ' . $foo->error . '\n'; $mobil='0'; } } else { $empty.='- Foto Mobil Picanto Anda\n'; $mobil='0'; } $foo = new Upload($_FILES['pica']); if ($foo->uploaded) { $foo->file_new_name_body = $file_new_name_body . '_pica'; $foo->image_resize = true; $foo->image_convert = 'jpg'; $foo->image_x = 200; $foo->image_ratio_y = true; $foo->jpeg_quality = 100; $foo->Process('_pm/'); if ($foo->processed) { //echo 'image renamed, resized x=100'; $foo->Clean(); } else { //echo 'error : ' . $foo->error; $empty.='- ' . $foo->error . '\n'; $pica='0'; } } else { $empty.='- Foto Diri Anda\n'; $pica='0'; } if (strlen($empty)>25) { $pica_warna='0'; $pica_tipe='0'; $pica_jenis='0'; } else { unset($empty); $uid_baru=md5("$email::$email"); $perintah="insert into tm_users_ol values('$uid_baru',NULL,NULL,'$email',old_password('$email'),'$email','$nama','$tmp_lahir','$tgl_lahir','$email','$hp','$alamat_rumah','$kota','$alamat_kantor','$bidang_usaha',$pica_warna,$pica_tahun,$pica_tipe,$pica_jenis,'$pica_nopol','$pica_alasan','$pica_size','$soc_bb','$soc_fb',NULL,NULL,NULL,NULL,0,1,0,now(),'$nama')"; mysql_query($perintah);// OR die(mysql_error()); // MAILER $mail_untuk='bendahara@picanto-indonesia.com'; $mail_subject="[CEK TRANSFER] Calon PM Baru: $nama dari $kota"; $mail_subject=addslashes($mail_subject); $APP_MAILER_BODY=''; $APP_MAILER_BODY=$APP_MAILER_BODY . "
Mohon di cek transfer bank dari calon PM baru a/n $nama"; $APP_MAILER_BODY=$APP_MAILER_BODY . "dari kota $kota."; // <===== $APP_MAILER_BODY=$APP_MAILER_BODY . "Kalo udah OK, set status nya di sini yaaa... "; $body = $APP_MAILER_HEADER . $APP_MAILER_BODY . $APP_MAILER_FOOTER; $body=addslashes($body); $perintah1="insert into log_mailer values (now(),'$mail_untuk','$mail_subject','$body',0)"; mysql_query($perintah1) or die($perintah1); // END $empty='Pendaftaran Anda telah direkam. Mohon menunggu email konfirmasi dari hasil verifikasi Bendahara dan Keanggotaan dalam waktu 3 x 24 jam. Terima kasih telah bergabung bersama Picanto Club Indonesia (PiCA).'; } } else $empty='Sudah ada Premium Member (PM) atau calon PM dengan email yang sama.'; } // [4] End custom code $perintah="select rid,banner_url from tm_rekanan where banner_code='ORGANISASI'"; $hasil=mysql_query($perintah);// OR die(mysql_error()); while ($row=mysql_fetch_array($hasil)) { $rid=$row["rid"]; $banner_url=$row["banner_url"]; } if (strlen($rid)==0) { $img="_iklan/940x32.jpg"; $banner_url='_files/iklan.pdf'; } else $img="_iklan/rekanan$rid.jpg"; ?> |