Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * WARNING!
- * This EXAMPLE code contains severe SECURITY ISSUES
- * which should be addressed before real-life usage!!
- *
- * These issues have been ignored intentionally to
- * simplify the code so we can focus on the topic
- * in discussion.
- */
- // Lets test if the form has been submitted
- if(isset($_POST['SubmitCheck'])) {
- // The form has been submited
- // Check the values!
- if($_POST['Nome'] != "" and $_POST['Telefone'] != "") {
- $client = new SoapClient('http://177.8.126.123:80/WebService1.asmx?WSDL');
- $function = 'InserirTeste';
- $arguments= array('InserirTeste' => array(
- 'Nome' => $_POST['Nome'],
- 'Telefone' => $_POST['Telefone'],
- 'Email' => $_POST['Email']
- ));
- $options = array('location' => 'http://177.8.126.123:80/WebService1.asmx');
- $result = $client->__soapCall($function, $arguments, $options);
- echo 'Response: ';
- print_r($result);
- // Check if the checkbox was checked
- if(isset($_POST['Remember'])) {
- echo "<br>You will be remembered!";
- }
- else {
- echo "<br>John who?!";
- }
- }
- else {
- // User info invalid!
- echo "Sorry mate, try again!";
- }
- }
- else {
- // The form has not been posted
- // Show the form
- ?>
- <!DOCTYPE html>
- <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
- <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
- <!--[if !IE]><!-->
- <html lang="en">
- <!--<![endif]-->
- <!-- BEGIN HEAD -->
- <head>
- <meta charset="utf-8" />
- <title>Teste gratuito</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta content="width=device-width, initial-scale=1" name="viewport" />
- <meta content="" name="author" />
- <!-- BEGIN GLOBAL MANDATORY STYLES -->
- <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
- <link href="/tema/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
- <link href="/tema/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
- <!-- END GLOBAL MANDATORY STYLES -->
- <!-- BEGIN PAGE LEVEL PLUGINS -->
- <link href="/tema/global/plugins/select2/css/select2.min.css" rel="stylesheet" type="text/css" />
- <link href="/tema/global/plugins/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
- <link href="/tema/global/plugins/bootstrap-sweetalert/sweetalert.css" rel="stylesheet" type="text/css" />
- <!-- END PAGE LEVEL PLUGINS -->
- <!-- BEGIN THEME GLOBAL STYLES -->
- <link href="/tema/global/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
- <link href="/tema/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
- <!-- END THEME GLOBAL STYLES -->
- <!-- BEGIN PAGE LEVEL STYLES -->
- <link href="/tema/pages/css/login-4.min.css" rel="stylesheet" type="text/css" />
- <!-- END PAGE LEVEL STYLES -->
- <!-- BEGIN THEME LAYOUT STYLES -->
- <!-- END THEME LAYOUT STYLES -->
- <link rel="shortcut icon" href="favicon.ico" /> </head>
- <!-- END HEAD -->
- <body class=" login">
- <!-- BEGIN LOGO -->
- <div class="logo">
- </div>
- <!-- END LOGO -->
- <!-- BEGIN LOGIN -->
- <div class="content">
- <!-- BEGIN LOGIN FORM -->
- <form class="login-form" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" id="form-teste">
- <h3 class="form-title">Teste gratuito 2 hora(s) </h3>
- <div class="form-group">
- <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
- <label class="control-label visible-ie8 visible-ie9">Seu nome</label>
- <div class="input-icon">
- <i class="fa fa-user"></i>
- <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="Seu nome" name="Nome" /> </div>
- </div>
- <div class="form-group">
- <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
- <label class="control-label visible-ie8 visible-ie9">Seu e-mail</label>
- <div class="input-icon">
- <i class="fa fa-envelope"></i>
- <input class="form-control placeholder-no-fix" type="text" placeholder="Seu e-mail" name="Email" /> </div>
- <div class="form-group">
- <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
- <label class="control-label visible-ie8 visible-ie9">Seu whatsapp</label>
- <div class="input-icon">
- <i class="fa fa-envelope"></i>
- <input class="form-control placeholder-no-fix" type="text" placeholder="Seu whatsapp" name="Telefone" /> </div>
- </div>
- <div class="form-group">
- <label class="control-label visible-ie8 visible-ie9">Plano</label>
- <select name="plano" id="planos" class="select2 form-control">
- <option value=""></option>
- <option value="4551">Canais SD + HD / ADULTOS</option>
- <option value="5312">Canais SD + HD / ADULTOS / VOD / SERIADOS</option>
- <option value="5313">Canais SD</option>
- </select>
- </div>
- Remember me: <input type="checkbox" name="Remember" checked="chekced">
- <input type="hidden" name="SubmitCheck" value="sent">
- <button type="submit" name="Form1_Submit" class="btn green pull-right"> Gerar teste </button>
- </form>
- <!-- END LOGIN FORM -->
- </div>
- <!-- END LOGIN -->
- <!-- BEGIN COPYRIGHT -->
- <div class="copyright"> 2017 © IPTV </div>
- <!-- END COPYRIGHT -->
- <!--[if lt IE 9]>
- <script src="/tema/global/plugins/respond.min.js"></script>
- <script src="/tema/global/plugins/excanvas.min.js"></script>
- <script src="/tema/global/plugins/ie8.fix.min.js"></script>
- <![endif]-->
- <!-- BEGIN CORE PLUGINS -->
- <script src="/tema/global/plugins/jquery.min.js" type="text/javascript"></script>
- <script src="/tema/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
- <script src="/tema/global/plugins/js.cookie.min.js" type="text/javascript"></script>
- <script src="/tema/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
- <script src="/tema/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
- <script src="/tema/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
- <!-- END CORE PLUGINS -->
- <!-- BEGIN PAGE LEVEL PLUGINS -->
- <script src="/tema/global/plugins/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script>
- <script src="/tema/global/plugins/jquery-validation/js/additional-methods.min.js" type="text/javascript"></script>
- <script src="/tema/global/plugins/select2/js/select2.full.min.js" type="text/javascript"></script>
- <script src="/tema/global/plugins/backstretch/jquery.backstretch.min.js" type="text/javascript"></script>
- <script src="/tema/global/plugins/bootstrap-sweetalert/sweetalert.min.js" type="text/javascript"></script>
- <!-- END PAGE LEVEL PLUGINS -->
- <!-- BEGIN THEME GLOBAL SCRIPTS -->
- <script src="/tema/global/scripts/app.min.js" type="text/javascript"></script>
- <!-- END THEME GLOBAL SCRIPTS -->
- <!-- BEGIN PAGE LEVEL SCRIPTS -->
- <script src="/tema/pages/scripts/login-4.min.js" type="text/javascript"></script>
- <!-- END PAGE LEVEL SCRIPTS -->
- <!-- BEGIN THEME LAYOUT SCRIPTS -->
- <!-- END THEME LAYOUT SCRIPTS -->
- </body>
- </html>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement