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


PHP Account::getMyName方法代码示例

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


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

示例1: 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

示例2: inviteNewMember

    public function inviteNewMember()
    {
        $acc = new Account();
        // $arr = $acc->getWhere("admin_aktiv = 1 ORDER BY admin_nama_depan ASC LIMIT 0,2");
        $t = $_GET['t'];
        $myid = Account::getMyID();
        $myname = Account::getMyName();
        $gid = isset($_GET['gid']) ? addslashes($_GET['gid']) : die("NO GID");
        $g = new ChatGroup();
        $g->getByID($gid);
        //check apa dia owner
        if ($g->inbox_from == Account::getMyID()) {
            //get all existing member
            $cg = new ChatMember();
            $arrMember = $cg->getMemberFromGID($gid);
        } else {
            $json['bool'] = 0;
            $json['err'] = Lang::t("Not Authorize");
            echo json_encode($json);
            die;
        }
        //pr($arrMember);
        //check if i'm the owner
        ?>
            <form method="post" id="formGroup<?php 
        echo $t;
        ?>
" action="<?php 
        echo _SPPATH;
        ?>
ChatMsgGroupWeb/insGroup?update=1&gid=<?php 
        echo $gid;
        ?>
">
            <div class="form-group">
                <input class="form-control" value="<?php 
        echo $g->inbox_judul;
        ?>
" name="gname" id="groupTitleBox<?php 
        echo $t;
        ?>
" type="text" placeholder="<?php 
        echo Lang::t('Group Chat Title');
        ?>
">    
            </div>
                <p><?php 
        echo Lang::t('Existing Member');
        ?>
</p>
            <div id="myMember<?php 
        echo $t;
        ?>
">
                <?php 
        foreach ($arrMember as $m) {
            ?>
                <div class="myusercheckbox" style="padding: 5px;">
                    <input <?php 
            if ($m->admin_id != Account::getMyID()) {
                ?>
 onclick="addToMemberArr('<?php 
                echo $m->admin_id;
                ?>
','<?php 
                echo $m->admin_nama_depan;
                ?>
','<?php 
                echo $t;
                ?>
');" <?php 
            } else {
                ?>
disabled="true"<?php 
            }
            ?>
 type="checkbox" checked value="<?php 
            echo $m->admin_id;
            ?>
"> <?php 
            echo $m->admin_nama_depan;
            ?>
                </div><?php 
        }
        ?>
 
                <script>
                    emptyChatMemberArr();      
                    <?php 
        foreach ($arrMember as $ac) {
            ?>
                    addToMemberArr('<?php 
            echo $ac->admin_id;
            ?>
','<?php 
            echo $ac->admin_nama_depan;
            ?>
','<?php 
            echo $t;
            ?>
//.........这里部分代码省略.........
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:101,代码来源:ChatMsgGroupWeb.php

示例3: payfor


//.........这里部分代码省略.........
" style="width: 100%; margin: 5px;" class="btn btn-info btn-lg">Pay with Veritrans (Credit Card, ATM, Klikpay, dll)</a>
                 <a href="javascript:$('#cc').fadeToggle();" style="width: 100%; margin: 5px;" class="btn btn-info btn-lg">Credit card</a>
                <div id="cc" style="display: none; background-color: #efefef; padding: 30px; ">

                    <form accept-charset="UTF-8"  autocomplete="off" class="form-horizontal" role="form"  id="new_cc" method="post" novalidate="novalidate">

                        <input type="hidden" name="appprice" value="<?php 
        echo ceil($paket->paket_price * 12 / 14000);
        ?>
">
                        <input type="hidden" name="appdescr" value="Payment StageCom Paket <?php 
        echo $paket->paket_name;
        ?>
 ID : <?php 
        echo $app->app_id;
        ?>
">
                        <input type="hidden" name="appid" value="<?php 
        echo $app->app_id;
        ?>
">
                        <div style="margin:0;padding:0;display:inline">
                            <input name="utf8" type="hidden" value="&#x2713;" />
                            <input name="authenticity_token" type="hidden" value="vpVuNuIt9fRZzLm0eE0gk4h249k0nZPB/WEXWn9ETwg=" />
                        </div>


                        <p>Your credit card information is stored safely with PayPal.</p>
                        <div class="form-group">
                            <label class="control-label col-sm-4" for="user_credit_card_name">
                                <abbr title="required">*</abbr> Name</label>
                            <div class="col-sm-8">
                                <input class="form-control" id="user_credit_card_name" name="user[credit_card][name]" size="150" type="text" value="<?php 
        echo Account::getMyName();
        ?>
" />

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-4" for="user_credit_card_type">
                                <abbr title="required">*</abbr> Type</label>
                            <div class="col-sm-8">
                                <select class="form-control" id="user_credit_card_type" name="user[credit_card][type]">
                                    <option value=""></option>
                                    <option value="visa" selected>visa</option>
                                    <option value="mastercard">mastercard</option>
                                    <option value="discover">discover</option>
                                    <option value="amex">amex</option>
                                </select>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="control-label col-sm-4" for="user_credit_card_number">
                                <abbr title="required">*</abbr> Number</label>
                            <div class="col-sm-8">
                                <input class="form-control" id="user_credit_card_number" name="user[credit_card][number]" size="50" type="text" value="4417119669820331" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-4"  for="user_credit_card_cvv2">Cvv2</label>
                            <div class="col-sm-8">
                                <input class="form-control" id="user_credit_card_cvv2" name="user[credit_card][cvv2]" size="50" type="text" value="012" /></div></div>
                        <div class="form-group">
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:67,代码来源:PaymentWeb.php

示例4: selection

    function selection()
    {
        ?>
        <!DOCTYPE html>
        <html>
        <head>
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <title><?php 
        echo $title;
        ?>
</title>
            <?php 
        echo $metaKey;
        ?>
            <?php 
        echo $metaDescription;
        ?>
            <!-- Tell the browser to be responsive to screen width -->
            <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
            <!-- Bootstrap 3.3.5 -->
            <link rel="stylesheet" href="<?php 
        echo _SPPATH . _THEMEPATH;
        ?>
/bootstrap/css/bootstrap.min.css">
            <!-- Font Awesome -->
            <link rel="stylesheet" href="<?php 
        echo _SPPATH . _THEMEPATH;
        ?>
/css/font-awesome.min.css">
            <!-- Ionicons -->
            <?php 
        /*<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">*/
        ?>
            <!-- Theme style -->
            <link rel="stylesheet" href="<?php 
        echo _SPPATH . _THEMEPATH;
        ?>
/dist/css/AdminLTE.min.css">
            <!-- iCheck -->
            <link rel="stylesheet" href="<?php 
        echo _SPPATH . _THEMEPATH;
        ?>
/plugins/iCheck/square/blue.css">

            <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
            <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
            <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
            <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
            <![endif]-->
        </head>
        <body class="hold-transition login-page">
        <div class="login-box">
            <div class="login-logo">
                Hello <?php 
        echo Account::getMyName();
        ?>
,
            </div>
            <!-- /.login-logo -->
            <div class="login-box-body">
                <h4 style="text-align: center;">Select your App</h4>

                <?php 
        if (in_array("master_admin", Account::getMyRoles())) {
            $acc = new AppAccount();
            $apps = $acc->getAll();
            //
        } else {
            $acc = new App2Acc();
            $apps = $acc->getWhereFromMultipleTable("ac_admin_id = '" . Account::getMyID() . "' AND ac_app_id = app_id AND app_active = 1", array("AppAccount"));
        }
        foreach ($apps as $ap) {
            ?>
                    <button onclick="document.location='<?php 
            echo _SPPATH;
            ?>
PushHome/setID?app_id=<?php 
            echo $ap->app_id;
            ?>
';" class="btn btn-default" style="width: 100%; margin: 5px;"><?php 
            echo $ap->app_name;
            ?>
</button>
                <?php 
        }
        //            pr($apps);
        ?>



            </div>
            <!-- /.login-box-body -->
        </div>
        <!-- /.login-box -->

        <!-- jQuery 2.1.4 -->
        <script src="<?php 
        echo _SPPATH . _THEMEPATH;
//.........这里部分代码省略.........
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:101,代码来源:PushHome.php

示例5: Calendar

<h1><?php 
echo Lang::t('Attendance');
?>
 <?php 
echo Account::getMyName();
?>
    <small><?php 
echo $monname;
?>
 <?php 
echo $year;
?>
</small>
</h1>
<div class="row" style="margin-bottom: 10px;">
    <div class="col-md-3 col-xs-12">
        <?php 
//select on mon
$urlOnChange = _SPPATH . $webClass . "/" . $method . "?d=1";
Selection::monthSelectorInTA($mon, $ta, $urlOnChange);
?>
    </div>
</div>

<?php 
//Mold::both("studensetup/absensi_legends",array("numDays"=>$numDays,"mon"=>$mon,"year"=>$year,"calendar"=>$calendar,"arrCl"=>$arrCl,"arrMacemAbsens"=>$arrMacemAbsens));
$cale = new Calendar();
$arrCl = $cale->arrCl;
$abs = new Absensi();
$arrMacemAbsens = $abs->arrMacamAbsen;
$limithari = 5;
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:31,代码来源:myAbsensi.php

示例6: substr

    <!-- Sidebar user panel -->
    <div class="user-panel">
        <div class="pull-left image">

            <img id="leftMainPicMenu" onclick="openLw('myProfile','<?php 
echo _SPPATH;
?>
AccountLoginWeb/myProfile','fade');" src="<?php 
echo _SPPATH . Account::getMyFoto();
?>
" class="img-circle" alt="User Image">

        </div>
        <div class="pull-left info">
            <p><?php 
echo substr(Account::getMyName(), 0, 25);
?>
</p>
            <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
    </div>
    <!-- search form -->
    <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
            <input type="text" name="q" id="searchtextmenu" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button  name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
    </form>
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:31,代码来源:leftmenu_home.php

示例7: viewcomment

 public function viewcomment()
 {
     //$ta = TahunAjaran::ta();
     $wid = isset($_GET['wid']) ? addslashes($_GET['wid']) : '';
     $klsid = isset($_GET['klsid']) ? addslashes($_GET['klsid']) : '';
     $typ = isset($_GET['typ']) ? addslashes($_GET['typ']) : '';
     $cmd = isset($_GET['cmd']) ? addslashes($_GET['cmd']) : 'view';
     $return['webClass'] = __CLASS__;
     $return['method'] = __FUNCTION__;
     //$return['ta'] = $ta;
     $return["klsid"] = $klsid;
     if ($cmd == "form") {
         $return["typ"] = $typ;
         $return['id'] = $wid;
         $return['mode'] = "viewcomment";
         Mold::plugin("Wall", "compose", $return);
         die;
     }
     if ($cmd == "add") {
         $json['bool'] = 0;
         $json['err'] = '';
         //pr($_POST);
         if (isset($_POST['wall_msg'])) {
             $wall_msg = trim(rtrim($_POST['wall_msg']));
         }
         if ($wall_msg == '') {
             $json['err'] .= Lang::t('Message is empty');
         }
         $id = isset($_GET['id']) ? addslashes($_GET['id']) : '';
         if ($id == '') {
             $json['err'] .= Lang::t('Id is empty');
         }
         if ($json['err'] == '') {
             // am 01.10.2014,insert <embed><iframe> vom Efindi
             //$wall_msg = addslashes(strip_tags(trim(rtrim ($_POST['wall_msg'])),'<p><a><br><b><i><img><hr>'));
             $wall_msg = strip_tags(trim(rtrim($_POST['wall_msg'])), '<p><a><br><b><i><img><hr><embed><iframe>');
             //if ($typ == "kelas") {
             $wall = new WallPortalComment();
             $wall->wid = $id;
             $wall->cid_admin_nama = Account::getMyName();
             $wall->cid_admin_foto = Account::getMyFoto();
             $wall->cid_admin_id = Account::getMyID();
             //create date
             //$tgl = Wall::getDateTime();
             $wall->c_date = leap_mysqldate();
             $wall->c_text = $wall_msg;
             $json['bool'] = $wall->save();
             if ($json['bool']) {
                 $wall2 = new WallPortal();
                 $wall2->getByID($id);
                 $wall2->wall_commentcount++;
                 $wall2->wall_update = $tgl;
                 $wall2->load = 1;
                 //spy update
                 $json['bool'] = $wall2->save();
             }
             // }
         }
         die(json_encode($json));
     }
     if ($cmd == "view") {
         $mwc = new WallPortalComment();
         $whereClause = "wid = '{$wid}' ORDER BY c_date DESC";
         $arrComment = $mwc->getWhere($whereClause);
         $wall = new WallPortal();
         $wall->getByID($wid);
         $acc = new Account();
         $acc->getByID($wall->wall_from);
         $wall->acc = $acc;
         $target = $typ . "___" . $wall->wall_id;
         $foto = new Fotoajax();
         $arrFoto = $foto->getWhere("photo_target_id = '{$target}' ORDER BY photo_date DESC");
         $wall->foto = $arrFoto;
         $return['newFor'] = $this->newFor;
         $return['wall'] = $wall;
         $return['mwc'] = $arrComment;
         Mold::plugin("Wall", "viewcomment", $return);
     }
 }
开发者ID:CapsuleCorpIndonesia,项目名称:es-teler-baru-suka,代码行数:79,代码来源:WallPortalWeb.php


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