alert('<?php echo $_GET['msg']; ?> '); </script> <?php } ?> <div class="col-md-6"> <div class="innerForm"> <h1 class="beli" style="text-align: center;padding-top: 20px;">Login</h1> <div style="padding: 20px;"> <?php QRForms::login(); ?> </div> <?php if (Efiwebsetting::getData('fb_login')) { ?> <h1 class="beli" style="padding-top: 30px;text-align: center;">OR</h1> <div style="padding: 20px;"> <?php FBUtility::loginbutton(); ?> </div> <?php } else { echo "please define FB APP ID"; }
?> <div style='text-align: center; padding: 10px; margin-bottom: 20px;' class="alert-danger"> <?php echo Lang::t($_GET['msg']); ?> </div> <?php } if (Auth::isLogged()) { ?> <div style='text-align: center;'> <?php // die('Hacking Attempt'); echo "<h2 >You are logged as " . Account::getMyFullName() . "</h2>"; echo "<a href='" . _LANGPATH . "logout' class='btn btn-default'>Log Out</a>"; ?> </div><?php } else { QRForms::login(0); } ?> </div> </div> <?php /** * Created by PhpStorm. * User: elroy * Date: 9/17/15 * Time: 2:54 PM */
function register() { if (Auth::isLogged()) { die('Hacking Attempt'); } /*$array = array( "id"=>"hoho", "bg"=>_LANGPATH."images/bg2.jpg", "heit"=>"50", "cname"=>"QRHome", "fname"=>"kosong" ); self::kerjakan($array); */ if ($_GET['msg'] != "") { ?> <script> alert('<?php echo $_GET['msg']; ?> '); </script> <?php } ?> <div class="col-md-6"> <div class="innerForm"> <h1 class="beli" style="text-align: center;padding-top: 20px;">Login</h1> <div style="padding: 20px;"> <?php QRForms::login(); ?> </div> <?php if (Efiwebsetting::getData('fb_login')) { ?> <h1 class="beli" style="padding-top: 30px;text-align: center;">OR</h1> <div style="padding: 20px;"> <?php FBUtility::loginbutton(); ?> </div> <?php } ?> </div> </div> <div class="col-md-6" id="signup"> <div class="innerForm"> <h1 class="beli" style="text-align: center; padding-top: 20px;">New member registration</h1> <div style="padding: 20px;"> <style> .btn-default{ font-size: 30px; width: 100%; } </style> <?php //QRForms::register(); QRHome::isi(); ?> <div class="clearfix"></div> </div> </div> </div> <style> .innerForm{ padding: 10px; background-color: #e6e6e6; margin: 5px; border-radius: 8px; } .innerForm h1{ padding: 0; margin: 0; //background-color: #ccc; margin-bottom: 10px; } /*.form-group{ border-bottom: 1px solid #dedede; } .form-group label{ display: none; }*/ </style> <?php }