ob_start(); session_start(); include('frclsi_admn_cp/operation.php'); $operation =new operation(); if($_SESSION['FBID']) { $fb_id=$_SESSION['FBID']; $mem_data=$operation->getdata_1('indivedual_member','*','',''," fb_id='$fb_id' ",$ordr,$start,$limit); $_SESSION['member_id']=$mem_data['id']; } if($_REQUEST['submit']) { $add_news=$operation->add_car_ads($_POST,$_FILES); if($add_news) { $msg="Ad Posted Successfully. Are You A New Member ? Then Check Your Mail For Confirm your Ad Or Your Freeclassy Account Details"; } else { $msg="Sorry.Cannot Post Ad.Try Again."; } header('location:place_ad.php?msg='.$msg); } $ordr='order by `id` desc'; $country_data=$operation->getdata('freeclassi_country','*',$primary,$id,'','order by `country` asc',$start,$limit); $country_data_1=$operation->getdata('freeclassi_country','*',$primary,$id,'','order by `country` asc',$start,$limit); ?> //include_once('mac_ip.php'); ?> if((isset($_SESSION['member_id']))&&(isset($_SESSION['member_username'])) || (isset($_SESSION['company_id']))&&(isset($_SESSION['company_username'])) ) { if($_SESSION['member_id'] !='' && $_SESSION['member_username']!='') { $form_data=$operation->getdata_1('indivedual_member','*','id',$_SESSION['member_id'],'','',$start,$limit); } if($_SESSION['company_id'] !='' && $_SESSION['company_username']!='') { $form_data=$operation->getdata_1('freeclassi_company','*','id',$_SESSION['company_id'],'','',$start,$limit); } } ?>