Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'session.php';
- //include 'config.php';
- $servername = "mysql.2ap.pl";
- $username = "SopCastHD_baza1";
- $password = "lubiePlacki1-";
- $dbname = "SopCastHD_baza1";
- $connmysqli = new mysqli($servername, $username, $password, $dbname);
- $id = 77465;
- $code = "ZCU3";
- $type = "c1,sms";
- $del=1;
- $check = $_POST['check'];
- if($check != NULL)
- {
- $handle = fopen("http://dotpay.pl/check_code.php?&check=".$check."&id=".$id."&code=".$code."&type=".$type."&del=".$del, 'r');
- $status = fgets($handle, 8);
- $czas_zycia = fgets($handle, 24);
- fclose($handle);
- if (isset($_SESSION['user'])!="") {
- } else {
- header("Location: index.php?error=9");
- }
- if ($status == 0) {
- header("Location: index.php?error=8");
- }
- else
- {
- $sqldate = "SELECT * FROM accounts WHERE id = " . $_SESSION['user'];
- $connmysqli->set_charset("utf8");
- $resultdate = $connmysqli->query($sqldate);
- while($rowdate = $resultdate->fetch_assoc()) {
- $Today = date('Y-m-d');
- $Today2 = date('Y-m-d');
- $baza = date('Y-m-d', strtotime($rowdate["validity"]));
- if ($baza < $Today) {
- $date = $Today;
- $date = date('Y-m-d', strtotime($date . ' +3 day'));
- header("Location: index.php?success=6");
- } else {
- $date = $baza;
- $date = date('Y-m-d', strtotime($date . ' +3 day'));
- header("Location: index.php?success=6");
- }
- }
- $servernamesms = "mysql.2ap.pl";
- $usernamesms = "SopCastHD_baza1";
- $passwordsms = "lubiePlacki1-";
- $dbnamesms = "SopCastHD_baza1";
- $connsms = $connmysqli;
- $sqlsms = "UPDATE accounts SET validity='" . $date . "' WHERE id = " . $_SESSION['user'];
- $resultsms = $connsms->query($sqlsms);
- }
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>SopCastHD - Transmisje meczów w HD</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" type="text/css" href="style.css">
- <link rel="stylesheet" type="text/css" href="animate.css">
- <link rel="Shortcut icon" href="images/icon.ico" />
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:600' rel='stylesheet' type='text/css'>
- <link href='http://fonts.googleapis.com/css?family=PT+Sans:700' rel='stylesheet' type='text/css'>
- <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
- <link href='http://fonts.googleapis.com/css?family=Roboto+Condensed' rel='stylesheet' type='text/css'>
- <script src="http://code.jquery.com/jquery-latest.min.js"
- type="text/javascript"></script>
- <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.core.js"></script>
- <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.slide.js"></script>
- <script src="/assets/js/libs/jquery.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];
- var dayNames= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
- var newDate = new Date();
- newDate.setDate(newDate.getDate());
- $('#Date').html(dayNames[newDate.getDay()] + " " + newDate.getDate() + ' ' + monthNames[newDate.getMonth()] + ' ' + newDate.getFullYear());
- setInterval( function() {
- var seconds = new Date().getSeconds();
- $("#sec").html(( seconds < 10 ? "0" : "" ) + seconds);
- },1000);
- setInterval( function() {
- var minutes = new Date().getMinutes();
- $("#min").html(( minutes < 10 ? "0" : "" ) + minutes);
- },1000);
- setInterval( function() {
- var hours = new Date().getHours();
- $("#hours").html(( hours < 10 ? "0" : "" ) + hours);
- }, 1000);
- });
- </script>
- <script src="/assets/js/flipclock/flipclock.min.js"></script>
- <script>
- $(document).ready(function(){
- jQuery.fn.extend({
- slideRightShow: function() {
- return this.each(function() {
- $(this).show('slide', {direction: 'right'}, 500);
- });
- },
- slideLeftHide: function() {
- return this.each(function() {
- $(this).hide('slide', {direction: 'left'}, 500);
- });
- },
- slideRightHide: function() {
- return this.each(function() {
- $(this).hide('slide', {direction: 'right'}, 500);
- });
- },
- slideLeftShow: function() {
- return this.each(function() {
- $(this).show('slide', {direction: 'left'}, 500);
- });
- }
- });
- var showHide = "visible"
- var matches = "visible"
- var matches2 = "visible"
- $('#leftSideHide').on('click', function(e){
- if (showHide == "visible") {
- showHide = "hidden";
- $("#leftSide").toggle();
- $("#leftSideHide").toggleClass('leftSideShow')
- $("#hideText").toggleClass('showText')
- $(".arrow").removeClass( "normal" ).addClass( "flip-horizontal" );
- $("#rightSide").css( "width", "100%" );
- $("#rightSide").css( "margin-left", "0%" );
- }
- else if(showHide == "hidden") {
- showHide = "visible";
- $("#leftSide").toggle();
- $("#leftSideHide").toggleClass('leftSideShow')
- $("#hideText").toggleClass('showText')
- $(".arrow").removeClass( "flip-horizontal" ).addClass( "normal" );
- $("#rightSide").css( "width", "75%" );
- $("#rightSide").css( "margin-left", "25%" );
- }
- });
- $('#hideMatches').on('click', function(e){
- if (matches == "visible") {
- matches = "hidden";
- $("#matchesOnly").slideUp();
- $("#hideMatchesIMG").addClass( "normal" ).removeClass( "flip-vertical" );
- }
- else if(matches == "hidden") {
- matches = "visible";
- $("#matchesOnly").slideDown();
- $("#hideMatchesIMG").addClass( "flip-vertical" ).removeClass( "normal" );
- }
- });
- $('#hideMatches2').on('click', function(e){
- if (matches2 == "visible") {
- matches2 = "hidden";
- $("#matchesOnly2").slideUp();
- $("#hideMatchesIMG2").addClass( "normal" ).removeClass( "flip-vertical" );
- $("#secondCategory").css( "border-bottom-left-radius", "5px");
- $("#secondCategory").css( "border-bottom-right-radius", "5px");
- }
- else if(matches2 == "hidden") {
- matches2 = "visible";
- $("#matchesOnly2").slideDown();
- $("#hideMatchesIMG2").addClass( "flip-vertical" ).removeClass( "normal" );
- $("#secondCategory").css( "border-bottom-left-radius", "0px");
- $("#secondCategory").css( "border-bottom-right-radius", "0px");
- }
- });
- });
- </script>
- </head>
- <body>
- <div class="side" id="leftSide">
- <?php
- include 'connection.php';
- $conn = $connmysqli;
- include 'left_menu.php';
- echo '</div><div class="side" id="rightSide">';
- include 'header.php';
- echo '<div class="mainContent">';
- include 'main_menu.php';
- echo '<div id="rightSideContent" class="clearfix">';
- include 'error.php';
- include 'premium_offer.php';
- include 'right_menu.php';
- echo '</div></div>';
- echo '</div>';
- include 'footer.php';
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement