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; } } }
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; ?> '); <?php } ?> </script> </div> <div class="form-group"> <input onkeyup="carikanMemberBaru('<?php echo $t; ?> ','<?php echo $gid; ?> ');" class="form-control" id="searchmemberBox<?php echo $t; ?> " type="text" placeholder="<?php echo Lang::t('Add New Member, Type name'); ?> "> </div> <input type="hidden" name="arrMember" id="arrMember<?php echo $t; ?> " value=""> <div id="memberes<?php echo $t; ?> "> </div> <button class="btn btn-default"><?php echo Lang::t('Create'); ?> </button> <div style="margin:10px; padding: 10px; background-color: #efefef; border-radius: 10px;"> <p>Selected Members</p> <div id="membergroup<?php echo $t; ?> "></div> <div class="clearfix" style="margin-bottom:10px; margin-top: 10px;"></div> </div> </form> <script type="text/javascript"> $("#formGroup<?php echo $t; ?> ").submit(function (event) { //alert( "Handler for .submit() called." ); // Stop form from submitting normally event.preventDefault(); // Get some values from elements on the page: var $form = $(this), erro = 0, url = $form.attr("action"); var gtitle = $("#groupTitleBox<?php echo $t; ?> ").val(); if(gtitle == ""){ erro = 1; alert("<?php echo Lang::t('Please Insert Title'); ?> "); } var members = $("#arrMember<?php echo $t; ?> ").val(); if(members == ""){ erro = 1; alert("<?php echo Lang::t('Please Insert Member'); ?> "); } if(!erro){ // Send the data using post var posting = $.post(url, $form.serialize(), function (data) { //alert(data); //console.log(data); if (data.bool) { $('#myModal').modal('hide') //lwrefresh(window.selected_page); alreadyLoad = 0; showGroupProcess(); lwrefresh(selected_page); } else { alert(data.err); } },'json'); }//erro }); </script> <?php }
function payfor() { $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); ?> <div class="container attop" style="text-align: center;" > <div class="col-md-8 col-md-offset-2"> <div style="text-align: center; padding: 20px;"> <a href="<?php echo _SPPATH; ?> "> <img src="<?php echo _SPPATH; ?> images/appear-payment.png" style="max-width: 300px;"> </a> </div> <div class="app" style="background-color: #dedede;"> <div style="background-color: #f6f6f6; padding: 5px; text-align: center; font-size: 20px;">Payment For</div> <div class="col-md-3 col-sm-3 col-xs-3" style="text-align: center; min-height: 270px; padding: 10px; background-color: #FFFFFF;"> <b >App Details</b><br><br> <img src="<?php echo $app->app_icon; ?> " width="80%"> <?php echo $app->app_name; ?> </div> <div class="col-md-9 col-sm-9 col-xs-9" style="text-align: center; padding: 10px;background-color: #dedede;"> <div style="padding-bottom: 20px; font-weight: bold;">Package Details</div> <div class="clearfix"></div> <div class="col-md-6 col-sm-6 col-xs-6"> <img style="cursor: pointer;" id="paket1" onclick="setPaket(1);" src="<?php echo _SPPATH; ?> images/paket-android-ios.png" width="100%"> <small>what you get</small> </div> <div class="col-md-6 col-sm-6 col-xs-6"> <img style="cursor: pointer;" id="paket2" onclick="setPaket(2);" src="<?php echo _SPPATH; ?> images/paket-android-2.png" width="100%"> <small>what you get</small> </div> <div class="clearfix"></div> <script> function setPaket(x){ if(x == 1){ $('#paket2').attr("src","<?php echo _SPPATH; ?> images/paket-android-2.png"); $('#paket1').attr("src","<?php echo _SPPATH; ?> images/paket-android-ios.png"); $('#paketprice').html("IDR 9.000.000 / year"); }else{ $('#paket2').attr("src","<?php echo _SPPATH; ?> images/paket-android.png"); $('#paket1').attr("src","<?php echo _SPPATH; ?> images/paket-android-ios-2.png"); $('#paketprice').html("IDR 6.000.000 / year"); } } </script> </div> <div class="clearfix"></div> <div id="paketprice" style="background-color: #f6f6f6; padding: 5px; text-align: center; font-size: 30px;">IDR 9.000.000 / year</div> </div> <div style="padding: 20px;"> <a class="btn btn-danger btn-lg">PAY NOW USING VERITRANS</a> </div> <h4 style="margin-bottom: 0px; padding-bottom: 0px;" class="hype">Payment For</h4> <h1 class="hype" style="margin-bottom: 20px; margin-top: 10px;"><?php echo $app->app_name; ?> </h1> <h1 style="background-color: #efefef; padding: 10px; margin: 10px;" class="hype">Total : Rp.<?php echo idr($paket->paket_price * 12); ?> </h1> <small><a href="">upgrade package</a></small> <h3 style="margin-top: 50px;" class="hype">Please Choose Payment Method to complete App Registration</h3> <a href="<?php echo _SPPATH; ?> VeritransPay/pay?app_id=<?php echo $app->app_id; ?> " 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="✓" /> <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"> <label class="control-label col-sm-4" class="select required control-label" for="user_credit_card_expire_month"><abbr title="required">*</abbr> Expire month</label> <div class="col-sm-8"> <select class="form-control" id="user_credit_card_expire_month" name="user[credit_card][expire_month]"> <option value=""></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option selected value="11">11</option> <option value="12">12</option></select></div></div> <div class="form-group"> <label class="control-label col-sm-4" for="user_credit_card_expire_year"> <abbr title="required">*</abbr> Expire year</label> <div class="col-sm-8"> <select class="form-control" id="user_credit_card_expire_year" name="user[credit_card][expire_year]"><option value=""></option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2016">2016</option> <option value="2017">2017</option> <option value="2018">2018</option> <option selected value="2019">2019</option> <option value="2020">2020</option> <option value="2021">2021</option> <option value="2022">2022</option> <option value="2023">2023</option></select></div></div> <div class='form-actions'> <input class="btn btn btn-primary" name="commit" type="button" id="add_cc" value="Add CC" /> <input class="btn btn btn-primary" name="commit" type="submit" value="Pay" /> </div> </form> <script> $( "#add_cc" ).click(function( event ) { $(".err").hide(); var $form = $("#new_cc"); var url = "<?php echo _SPPATH; ?> PaypalWeb/addCard"; $(".err").hide(); // Send the data using post var posting = $.post(url, $form.serialize(), function (data) { console.log(data); alert(data); // if (data.bool) { // //kalau success masuk ke check your email.... // document.location = "<?php //=_SPPATH; ?> //PaypalWeb/confirm?app_id="+data.app_id; // } // else { // if(data.all!="") { // $("#resultajax").show(); // $("#resultajax").html(data.all); // } // var obj = data.err; // var tim = data.timeId; // //console.log( obj ); // for (var property in obj) { // if (obj.hasOwnProperty(property)) { // $( "#"+property ).css( "border-color", "red"); // $( "#"+property ).next(".err").css( "color", "red").show().empty().append(obj[property]).fadeIn('slow'); // } // } // } }); event.preventDefault(); }); $( "#new_cc" ).submit(function( event ) { $(".err").hide(); var $form = $(this); var url = "<?php echo _SPPATH; ?> PaypalWeb/placeOrder"; $(".err").hide(); $(".se-pre-con2").fadeIn("slow"); // Send the data using post var posting = $.post(url, $form.serialize(), function (data) { console.log(data); $(".se-pre-con2").fadeOut("slow"); if(data.paystate){ document.location = "<?php echo _SPPATH; ?> myOrders"; }else{ alert(data.err); } // if (data.bool) { // //kalau success masuk ke check your email.... // document.location = "<?php //=_SPPATH; ?> //PaypalWeb/confirm?app_id="+data.app_id; // } // else { // if(data.all!="") { // $("#resultajax").show(); // $("#resultajax").html(data.all); // } // var obj = data.err; // var tim = data.timeId; // //console.log( obj ); // for (var property in obj) { // if (obj.hasOwnProperty(property)) { // $( "#"+property ).css( "border-color", "red"); // $( "#"+property ).next(".err").css( "color", "red").show().empty().append(obj[property]).fadeIn('slow'); // } // } // } }, 'json'); event.preventDefault(); }); </script> </div> <!-- <a href="" style="width: 100%; margin: 5px;" class="btn btn-info btn-lg">Paypal</a>--> <a href="javascript:$('#banktt').fadeToggle();" style="width: 100%; margin: 5px;" class="btn btn-info btn-lg">Bank Transfer</a> <div id="banktt" style="display: none; background-color: #efefef; padding: 30px; text-align: left; "> Silahkan melakukan pembayaran melalui <ul> <li> <b>Bank BCA</b> <p> a/n PT Indo Mega Byte<br> no Rek : 82018912812<br> App ID : <?php echo $app->app_id; ?> <br> keterangan : <i>Payment Stagecom App ID : <?php echo $app->app_id; ?> </i> </p> </li> <li> <b>Bank Permata</b> <p> a/n PT Indo Mega Byte<br> no Rek : 82018912812<br> App ID : <?php echo $app->app_id; ?> <br> keterangan : <i>Payment Stagecom App ID : <?php echo $app->app_id; ?> </i> </p> </li> </ul> <p> Setelah melakukan pembayaran, jangan lupa untuk melakukan <a href="<?php echo _SPPATH; ?> PaymentWeb/confirmpayment?app_id=<?php echo $app->app_id; ?> " >konfirmasi pembayaran</a>. </p> </div> <br><br> Atau jika anda sudah melakukan pembayaran melalui bank transfer <a href="<?php echo _SPPATH; ?> PaymentWeb/confirmpayment?app_id=<?php echo $app->app_id; ?> " class="btn btn-success">confirm payment</a> </div> </div> <style> #banktt ul{ padding: 0px; margin: 0px; } #banktt ul li{ padding: 0px; margin: 0px; margin-top: 20px; } </style> <?php }
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; ?> /plugins/jQuery/jQuery-2.1.4.min.js"></script> <!-- Bootstrap 3.3.5 --> <script src="<?php echo _SPPATH . _THEMEPATH; ?> /bootstrap/js/bootstrap.min.js"></script> <!-- iCheck --> <script src="<?php echo _SPPATH . _THEMEPATH; ?> /plugins/iCheck/icheck.min.js"></script> <script> $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' // optional }); }); </script> </body> </html> <?php die; }
<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;
<!-- 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>
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); } }