当前位置: 首页>>代码示例>>PHP>>正文


PHP Account::getMyID方法代码示例

本文整理汇总了PHP中Account::getMyID方法的典型用法代码示例。如果您正苦于以下问题:PHP Account::getMyID方法的具体用法?PHP Account::getMyID怎么用?PHP Account::getMyID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Account的用法示例。


在下文中一共展示了Account::getMyID方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['camp_client_id'] = new \Leap\View\InputTextArea("camp_client_id", "camp_client_id", $this->camp_client_id);
     $return['camp_start'] = new \Leap\View\InputText("date", "camp_start", "camp_start", $this->camp_start);
     for ($x = 0; $x < 24; $x++) {
         if ($x < 10) {
             $arrs[$x] = "0" . $x . ".00";
         } else {
             $arrs[$x] = $x . ".00";
         }
     }
     $return['camp_hour'] = new \Leap\View\InputSelect($arrs, "camp_hour", "camp_hour", $this->camp_hour);
     $return['camp_active'] = new \Leap\View\InputSelect($this->arrayYesNO, "camp_active", "camp_active", $this->camp_active);
     $return['camp_msg'] = new \Leap\View\InputTextRTE("camp_msg", "camp_msg", $this->camp_msg);
     $return['camp_msg'] = new \Leap\View\InputTextArea("camp_msg", "camp_msg", $this->camp_msg);
     $return['camp_url'] = new \Leap\View\InputText("text", "camp_url", "camp_url", $this->camp_url);
     $return['camp_img'] = new \Leap\View\InputFoto("camp_img", "camp_img", $this->camp_img);
     $return['camp_create_by'] = new \Leap\View\InputText("hidden", "camp_create_by", "camp_create_by", Account::getMyID());
     $return['camp_status'] = new \Leap\View\InputSelect($this->arrStatus, "camp_status", "camp_status", $this->camp_status);
     $return['spdivider']['camp_client_id'] = "Filter";
     $return['spdivider']['camp_start'] = "Campaign";
     $return['spdivider']['camp_client_id'] = "Accounts";
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:25,代码来源:PushNotCampCaps.php

示例2: myAbsensiWidget

 public function myAbsensiWidget()
 {
     $murid = new Murid();
     $murid->default_read_coloms = "*";
     $murid->getByAccountID(Account::getMyID());
     $mon = Absensi::getBulan();
     $year = Absensi::getTahun();
     $abs = new Absensi();
     $murid->absensi = $abs->getAbsensiEinzel($murid->murid_id, $mon, $year);
     $return['webClass'] = __CLASS__;
     $return['method'] = __FUNCTION__;
     $return['murid'] = $murid;
     $return['absensi'] = $murid->absensi;
     $return['mon'] = $mon;
     $return['year'] = $year;
     $return['ta'] = TahunAjaran::ta();
     //ambil kejadian dlm bulan
     //$cal = new Calendar();
     //$return['calendar'] = $cal->getCalinMonth(Absensi::getBulan());
     $return['refreshID'] = "myAbsensiWidget";
     // get number of day dlm sebulan
     //$num_of_days = cal_days_in_month(CAL_GREGORIAN, $mon, $year);
     //$return["numDays"] = $num_of_days;
     Mold::both("murid/absensi_widget", $return);
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:25,代码来源:Widget.php

示例3: moveStock

 public static function moveStock($prod_id, $jumlah, $minus = 1, $note = "", $po_id = 0)
 {
     $prod = new ProdModel();
     $prod->getByID($prod_id);
     //isi log
     $ps = new ProdStok();
     $ps->stok_date = leap_mysqldate();
     $ps->stok_prev = $prod->prod_stock;
     $ps->stok_po_id = $po_id;
     $ps->stok_prod_id = $prod->prod_id;
     $ps->stok_userid = Account::getMyID();
     if ($minus) {
         //kurangi stok
         $prod->prod_stock -= $jumlah;
     } else {
         //kurangi stok
         $prod->prod_stock += $jumlah;
     }
     $prod->load = 1;
     $prod->save();
     if (Role::hasRole('admin')) {
         $ps->stock_admin = 1;
     }
     $ps->stock_note = $note;
     $ps->stok_actual = $prod->prod_stock;
     if ($ps->stok_prev > $ps->stok_actual) {
         $ps->stok_debit_credit = 1;
     } else {
         $ps->stok_debit_credit = 0;
     }
     return $ps->save();
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:32,代码来源:ProdStok.php

示例4: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['topic_author'] = new Leap\View\InputText("hidden", "topic_author", "topic_author", Account::getMyID());
     if ($_GET['load']) {
         $return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", $this->topic_date);
     } else {
         $return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", leap_mysqldate());
     }
     $return['topic_msg'] = new Leap\View\InputTextRTE("topic_msg", "topic_msg", $this->topic_msg);
     $return['topic_status'] = new Leap\View\InputSelect(array("draft" => "Draft", "publish" => "Publish"), "topic_status", "topic_status", $this->topic_status);
     $return['topic_modified'] = new Leap\View\InputText("hidden", "topic_modified", "topic_modified", leap_mysqldate());
     $return['topic_image'] = new \Leap\View\InputFoto("topic_image", "topic_image", $this->topic_image);
     $return['topic_fb_og_image'] = new \Leap\View\InputFoto("topic_fb_og_image", "topic_fb_og_image", $this->topic_fb_og_image);
     $return['topic_category'] = new \Leap\View\InputTag("BlogBE/prefetchBlogCat", "topic_category", "topic_category", $this->topic_category);
     //        $return['spdivider']['post_image']  = "Content";
     $return['spdivider']['topic_meta_title'] = "SEO";
     $return['spdivider']['topic_fb_og_title'] = "FB OpenGraph";
     $return['spdivider']['topic_attachments'] = "Attachments";
     $return['topic_attachments'] = new Leap\View\InputPageAttachment("topic_attachments", "topic_attachments", $this->topic_attachments);
     if ($this->topic_attachment_order == "") {
         $this->topic_attachment_order = Efiwebsetting::getData('PageAttachment');
     }
     $return['topic_attachment_order'] = new Leap\View\InputOrdering("topic_attachment_order", "topic_attachment_order", $this->topic_attachment_order);
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:26,代码来源:BlogModel.php

示例5: checkOwnership

 public static function checkOwnership($app)
 {
     //        echo Account::getMyID()."<br>";
     //        echo $app->app_client_id;
     if ($app->app_client_id != Account::getMyID() && !in_array("master_admin", Account::getMyRoles())) {
         die("Not your App");
     }
 }
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:8,代码来源:AppAccount.php

示例6: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['camp_acc_id'] = new \Leap\View\InputTextArea("camp_acc_id", "camp_acc_id", $this->camp_acc_id);
     $return['camp_start'] = new \Leap\View\InputText("date", "camp_start", "camp_start", $this->camp_start);
     for ($x = 0; $x < 24; $x++) {
         if ($x < 10) {
             $arrs[$x] = "0" . $x . ".00";
         } else {
             $arrs[$x] = $x . ".00";
         }
     }
     $return['camp_hour'] = new \Leap\View\InputSelect($arrs, "camp_hour", "camp_hour", $this->camp_hour);
     $return['camp_active'] = new \Leap\View\InputSelect($this->arrayYesNO, "camp_active", "camp_active", $this->camp_active);
     $return['camp_msg'] = new \Leap\View\InputTextRTE("camp_msg", "camp_msg", $this->camp_msg);
     $return['camp_url'] = new \Leap\View\InputText("text", "camp_url", "camp_url", $this->camp_url);
     //apps url
     //        $arrv = array("none"=>"None","offer"=>"Offer","news"=>"News");
     //        $return['camp_apps_menu'] = new \Leap\View\InputSelect($arrv,"camp_apps_menu", "camp_apps_menu", $this->camp_apps_menu);
     $return['camp_apps_menu'] = new \Leap\View\InputText("hidden", "camp_apps_menu", "camp_apps_menu", $this->camp_apps_menu);
     $return['camp_account_file'] = new \Leap\View\InputFile("camp_account_file", "camp_account_file", $this->camp_account_file);
     $return['camp_create_by'] = new \Leap\View\InputText("hidden", "camp_create_by", "camp_create_by", Account::getMyID());
     $return['camp_status'] = new \Leap\View\InputText("hidden", "camp_status", "camp_status", $this->camp_status);
     $return['camp_filter_age'] = new \Leap\View\InputFilter("camp_filter_age", "camp_filter_age", $this->camp_filter_age);
     $return['camp_filter_gender'] = new \Leap\View\InputSelect(array("0" => "All", "1" => "Female", "2" => "Male"), "camp_filter_gender", "camp_filter_gender", $this->camp_filter_gender);
     $return['camp_filter_tier'] = new \Leap\View\InputSelect(array("0" => "All", "1" => "Stampcard", "2" => "LYB Club", "3" => "LYB Fan", "4" => "All LYB"), "camp_filter_tier", "camp_filter_tier", $this->camp_filter_tier);
     $return['camp_filter_bday'] = new \Leap\View\InputSelect(array("0" => "All", "1" => "only whose birthday on sending date", "2" => "only whose birthday NOT on sending date"), "camp_filter_bday", "camp_filter_bday", $this->camp_filter_bday);
     $llacc = new LL_Account();
     global $db;
     $q = "SELECT DISTINCT macc_address_city FROM {$llacc->table_name}";
     $arrcity = $db->query($q, 2);
     //        pr($arrcity);
     $printcity["all"] = "All";
     foreach ($arrcity as $o) {
         if ($o->macc_address_city != "") {
             $printcity[$o->macc_address_city] = $o->macc_address_city;
         }
     }
     $return['camp_filter_city'] = new \Leap\View\InputSelect($printcity, "camp_filter_city", "camp_filter_city", $this->camp_filter_city);
     $return['spdivider']['camp_start'] = "Campaign";
     $return['spdivider']['camp_acc_id'] = "Accounts";
     $return['spdivider']['camp_filter_gender'] = "Filter";
     $return['camp_app_popup'] = new \Leap\View\InputText("hidden", "camp_app_popup", "camp_app_popup", $this->camp_app_popup);
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:es-teler-baru-suka,代码行数:45,代码来源:PushNotCamp.php

示例7: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return['news_author'] = new Leap\View\InputText("hidden", "news_author", "news_author", Account::getMyID());
     $return['news_comment_allow'] = new Leap\View\InputSelect(array('0' => "No", '1' => "Yes"), "news_comment_allow", "news_comment_allow", $this->news_comment_allow);
     $return['news_commentcount'] = new Leap\View\InputText("hidden", "news_commentcount", "news_commentcount", $this->news_commentcount);
     $return['news_validity_begin'] = new Leap\View\InputText("date", "news_validity_begin", "news_validity_begin", $this->news_validity_begin);
     $return['news_validity_end'] = new Leap\View\InputText("date", "news_validity_end", "news_validity_end", $this->news_validity_end);
     if (isset($_GET['load']) && $_GET['load']) {
         $return['news_postdate'] = new Leap\View\InputText("hidden", "news_postdate", "news_postdate", $this->news_postdate);
     } else {
         $return['news_postdate'] = new Leap\View\InputText("hidden", "news_postdate", "news_postdate", leap_mysqldate());
     }
     $return['news_updatedate'] = new Leap\View\InputText("hidden", "news_updatedate", "news_updatedate", leap_mysqldate());
     $channel = new NewsChannel();
     $temp = $channel->getWhere("channel_active=1 AND channel_type = 'content'");
     foreach ($temp as $c) {
         $arrChannel[$c->channel_id] = $c->channel_name;
     }
     $return['news_channel_id'] = new Leap\View\InputSelect($arrChannel, "news_channel_id", "news_channel_id", $this->news_channel_id);
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:21,代码来源:ModelPortalContent.php

示例8: saveUnsaved

 public function saveUnsaved()
 {
     $arrPoint = $_SESSION['game']['unsaved'];
     foreach ($arrPoint as $p) {
         $ps = new QuizPoints();
         $pid = $p[0] . "_" . Account::getMyID();
         $ps->getByID($pid);
         if ($ps->points_id == "") {
             $ps->load = 0;
         }
         $ps->points_id = $pid;
         $ps->points_ul_id = $p[0];
         $ps->points_acc_id = Account::getMyID();
         if ($ps->points_nilai < $p[1]) {
             $ps->points_nilai = $p[1];
         }
         //$ps->points_nilai = $p[1];
         $ps->points_update = leap_mysqldate();
         $ps->save();
     }
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:21,代码来源:QuizPoints.php

示例9: save2log

 public static function save2log($full_url, $target = "")
 {
     $f = new PortalFileLogger();
     $path_parts = pathinfo($full_url);
     //echo $path_parts['dirname'], "\n";
     $f->file_filename = $path_parts['basename'];
     $f->file_extendsion = $path_parts['extension'];
     $arrImg = array("jpg", "jpeg", "bmp", "gif", "png", "tiff");
     if (in_array($f->file_extendsion, $arrImg)) {
         $f->file_description = "image";
     } else {
         $f->file_description = "file";
     }
     //$f->file_filename = $path_parts['filename'];
     $f->file_owner_id = Account::getMyID();
     $f->file_date = leap_mysqldate();
     $f->file_size = filesize($full_url);
     $f->file_url = $full_url;
     $f->file_target_id = $target;
     $f->save();
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:21,代码来源:PortalFileLogger.php

示例10: pay

 function pay()
 {
     $id = addslashes($_GET['app_id']);
     $acc = new App2Acc();
     $apps = $acc->getWhereFromMultipleTable("ac_admin_id = '" . Account::getMyID() . "' AND ac_app_id = app_id AND ac_app_id = '{$id}' ", array("AppAccount"));
     if (count($apps) < 1) {
         die("hacking attempt");
     } else {
         $app = $apps[0];
     }
     $paket = new Paket();
     $paket->getByID($app->app_paket_id);
     $dibayarkan = $paket->paket_price * 12;
     //veritrans config
     Veritrans_Config::$serverKey = self::$serverKey;
     $transaction_details = array('order_id' => rand(), 'gross_amount' => $dibayarkan);
     $item1_details = array('id' => $app->app_id, 'price' => $dibayarkan, 'quantity' => 1, 'name' => "Payment for " . $app->app_name);
     $item_details = array($item1_details);
     $ac = Account::getAccountObject();
     $exp = explode(" ", Account::getMyName());
     $lastname = array_pop($exp);
     $billing_address = array('first_name' => implode(" ", $exp), 'last_name' => $lastname, 'address' => "Mangga 20", 'city' => "Jakarta", 'postal_code' => "16602", 'phone' => "081122334455", 'country_code' => 'IDN');
     $customer_details = array('first_name' => implode(" ", $exp), 'last_name' => $lastname, 'email' => $ac->admin_email, 'phone' => "081122334455", 'billing_address' => $billing_address);
     $transaction = array('transaction_details' => $transaction_details, 'customer_details' => $customer_details, 'item_details' => $item_details);
     try {
         // Redirect to Veritrans VTWeb page
         header('Location: ' . Veritrans_VtWeb::getRedirectionUrl($transaction));
     } catch (Exception $e) {
         echo $e->getMessage();
         if (strpos($e->getMessage(), "Access denied due to unauthorized")) {
             echo "<code>";
             echo "<h4>Please set real server key from sandbox</h4>";
             echo "In file: " . __FILE__;
             echo "<br>";
             echo "<br>";
             echo htmlspecialchars('Veritrans_Config::$serverKey = \'<your server key>\';');
             die;
         }
     }
 }
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:40,代码来源:VeritransPay.php

示例11: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $appAccount = new AppAccount();
     $arrApp = $appAccount->getWhere("app_active = 2");
     $as = array();
     foreach ($arrApp as $app) {
         $as[$app->app_id] = $app->app_id . " " . $app->app_name;
     }
     $return['camp_app_id'] = new \Leap\View\InputSelect($as, "camp_app_id", "camp_app_id", $this->camp_app_id);
     $return['camp_client_id'] = new \Leap\View\InputText("hidden", "camp_client_id", "camp_client_id", $this->camp_client_id);
     //        $return['camp_acc_id'] = new \Leap\View\InputTextArea("camp_acc_id", "camp_acc_id", $this->camp_acc_id);
     $return['camp_start'] = new \Leap\View\InputText("date", "camp_start", "camp_start", $this->camp_start);
     for ($x = 0; $x < 24; $x++) {
         if ($x < 10) {
             $arrs[$x] = "0" . $x . ".00";
         } else {
             $arrs[$x] = $x . ".00";
         }
     }
     $return['camp_hour'] = new \Leap\View\InputSelect($arrs, "camp_hour", "camp_hour", $this->camp_hour);
     $return['camp_active'] = new \Leap\View\InputSelect($this->arrayYesNO, "camp_active", "camp_active", $this->camp_active);
     $return['camp_img'] = new \Leap\View\InputFoto("camp_img", "camp_img", $this->camp_img);
     $return['camp_msg'] = new \Leap\View\InputTextArea("camp_msg", "camp_msg", $this->camp_msg);
     $return['camp_url'] = new \Leap\View\InputText("text", "camp_url", "camp_url", $this->camp_url);
     //apps url
     //        $arrv = array("none"=>"None","offer"=>"Offer","news"=>"News");
     //        $return['camp_apps_menu'] = new \Leap\View\InputSelect($arrv,"camp_apps_menu", "camp_apps_menu", $this->camp_apps_menu);
     //        $return['camp_apps_menu'] = new \Leap\View\InputText("hidden","camp_apps_menu", "camp_apps_menu", $this->camp_apps_menu);
     //        $return['camp_account_file'] = new \Leap\View\InputFile("camp_account_file", "camp_account_file", $this->camp_account_file);
     $return['camp_create_by'] = new \Leap\View\InputText("text", "camp_create_by", "camp_create_by", Account::getMyID());
     $return['camp_status'] = new \Leap\View\InputSelect($this->arrStatus, "camp_status", "camp_status", $this->camp_status);
     $return['spdivider']['camp_app_id'] = "Applications";
     $return['spdivider']['camp_start'] = "Campaign";
     //        $return['spdivider']['camp_acc_id']  = "Accounts";
     //        $return['spdivider']['camp_filter_gender']  = "Filter";
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:38,代码来源:PushNotCamp.php

示例12: edit

 function edit()
 {
     //cek ID
     if (isset($_GET['id'])) {
         $id = addslashes($_GET['id']);
         $appAcc = new AppAccount();
         $appAcc->getByID($id);
         if ($appAcc->app_client_id != Account::getMyID() && !in_array("master_admin", Account::getMyRoles())) {
             die("Owner's ID Mismatch");
         } else {
             //                ZAppFeature::clearSession();
             //load
             //                session_id($appAcc->app_keywords);
             FeatureSessionLayer::loadJSON($appAcc->app_keywords, $appAcc->app_id);
             //                sleep(1);
             //                pr($_SESSION);
             header("Location:" . _SPPATH . "apps/make?id=" . $id);
             die;
         }
     } else {
         header("Location:" . _SPPATH . "apps/makenew");
         die;
     }
 }
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:24,代码来源:Apps.php

示例13: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['camp_start'] = new \Leap\View\InputText("hidden", "camp_start", "camp_start", $this->camp_start);
     $return['camp_hour'] = new \Leap\View\InputText("hidden", "camp_hour", "camp_hour", $this->camp_hour);
     $return['camp_account_file'] = new \Leap\View\InputText("hidden", "camp_account_file", "camp_account_file", $this->camp_account_file);
     $return['camp_status'] = new \Leap\View\InputText("hidden", "camp_status", "camp_status", $this->camp_status);
     $return['camp_filter_age'] = new \Leap\View\InputText("hidden", "camp_filter_age", "camp_filter_age", $this->camp_filter_age);
     $return['camp_filter_gender'] = new \Leap\View\InputText("hidden", "camp_filter_gender", "camp_filter_gender", $this->camp_filter_gender);
     $return['camp_filter_tier'] = new \Leap\View\InputText("hidden", "camp_filter_tier", "camp_filter_tier", $this->camp_filter_tier);
     $return['camp_filter_bday'] = new \Leap\View\InputText("hidden", "camp_filter_bday", "camp_filter_bday", $this->camp_filter_bday);
     $return['camp_filter_city'] = new \Leap\View\InputText("hidden", "camp_filter_city", "camp_filter_city", $this->camp_filter_city);
     $return['camp_acc_id'] = new \Leap\View\InputText("hidden", "camp_acc_id", "camp_acc_id", $this->camp_acc_id);
     $return['camp_app_popup'] = new \Leap\View\InputText("hidden", "camp_app_popup", "camp_app_popup", 1);
     $return['camp_active'] = new \Leap\View\InputSelect($this->arrayYesNO, "camp_active", "camp_active", $this->camp_active);
     $return['camp_msg'] = new \Leap\View\InputTextRTE("camp_msg", "camp_msg", $this->camp_msg);
     $return['camp_url'] = new \Leap\View\InputText("text", "camp_url", "camp_url", $this->camp_url);
     $return['camp_apps_menu'] = new \Leap\View\InputText("hidden", "camp_apps_menu", "camp_apps_menu", $this->camp_apps_menu);
     $return['camp_create_by'] = new \Leap\View\InputText("hidden", "camp_create_by", "camp_create_by", Account::getMyID());
     //        $return['spdivider']['camp_start']  = "Campaign";
     //        $return['spdivider']['camp_acc_id']  = "Accounts";
     //        $return['spdivider']['camp_filter_gender']  = "Filter";
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:es-teler-baru-suka,代码行数:24,代码来源:PushNotPopUp.php

示例14: addConfirm

 function addConfirm()
 {
     $err = array();
     $json['bool'] = 0;
     //       $json['err'] = array("apptitle"=>"harus diisi");
     $ttdate = addslashes($_POST['ttdate']);
     if ($ttdate == "") {
         $err['ttdate'] = "Date must be filled";
     }
     $ttname = addslashes($_POST['ttname']);
     if ($ttname == "") {
         $err['ttname'] = "Name must be filled";
     }
     $ttamount = addslashes($_POST['ttamount']);
     if ($ttamount == "") {
         $err['ttamount'] = "Amount must be filled";
     }
     $ttto = addslashes($_POST['ttto']);
     if ($ttto == "") {
         $err['ttto'] = "Bank Account must be filled";
     }
     if (count($err) > 0) {
         $json['bool'] = 0;
         $json['err'] = $err;
     } else {
         //save here
         $pc = new PaymentConfirm();
         $pc->confirm_app_id = addslashes($_POST['appid']);
         $pc->confirm_bank = $ttto;
         $pc->confirm_amount = $ttamount;
         $pc->confirm_create_date = leap_mysqldate();
         $pc->confirm_date = $ttdate;
         $pc->confirm_name = $ttname;
         $pc->confirm_receipt = addslashes($_POST['ttfile']);
         $pc->confirm_status = "not reviewed";
         $pc->confirm_user_id = Account::getMyID();
         $confirmID = $pc->save();
         if ($confirmID) {
             $app = new AppAccount();
             $app->getByID($pc->confirm_app_id);
             $app->app_active = 2;
             $app->load = 1;
             $app->app_pulsa = 1000;
             $app->save();
             $paket = new Paket();
             $paket->getByID($app->app_paket_id);
             //add pporder
             $ppo = new PaypalOrder();
             $ppo->payment_id = $confirmID;
             $ppo->payment_type = "banktt";
             $ppo->amount = $pc->confirm_amount;
             $ppo->currency = "IDR";
             $ppo->created_time = leap_mysqldate();
             $ppo->state = "pending";
             $ppo->user_id = Account::getMyID();
             $ppo->description = "Payment " . $app->app_name . " Paket " . $paket->paket_name . " ID : " . $app->app_id;
             $succ = $ppo->save();
             if ($succ) {
                 $json['bool'] = 1;
                 $json['order_id'] = $succ;
             } else {
                 $json['bool'] = 0;
                 $json['all'] = "Saving PPO Error";
             }
         } else {
             $json['bool'] = 0;
             $json['all'] = "Saving PConfirm Error";
         }
     }
     echo json_encode($json);
     die;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:72,代码来源:PaymentWeb.php

示例15: leaveGroup

 public function leaveGroup()
 {
     $gid = isset($_POST['inboxid']) ? addslashes($_POST['inboxid']) : die("NO GID");
     $g = new ChatGroup();
     $g->getByID($gid);
     //check apa dia owner
     if ($g->inbox_from == Account::getMyID()) {
         $json['bool'] = 0;
         $json['err'] = Lang::t("Cannot leave group");
     } else {
         $cg = new ChatMember();
         $json['bool'] = $cg->leaveMemberByGID(Account::getMyID(), $gid);
         //$g = new ChatGroup();
         //$g->removeNotifPortal($gid);
     }
     echo json_encode($json);
     die;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:18,代码来源:ChatMsgWeb.php


注:本文中的Account::getMyID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。