Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PHP] Webmall with Paypal & IPN

Newbie Spellweaver
Joined
Apr 26, 2012
Messages
95
Reaction score
0
Re: [PHP] Webmall with Paypal & IPN

not work
Connection failed: SQLSTATE[IM002] SQLDriverConnect: 0 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified



php_pdo_odbc.dll enabled


i got same error .. what wrong ??

thx
 
very nice
Joined
Jul 5, 2013
Messages
518
Reaction score
80
Re: [PHP] Webmall with Paypal & IPN

i got same error .. what wrong ??

thx

replace the SQL.php file in include folder with the one in attachments
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Apr 26, 2012
Messages
95
Reaction score
0
Re: [PHP] Webmall with Paypal & IPN

replace the SQL.php file in include folder with the one in attachments

cool! that work good :)



i setup the admin name but i cant see admin panel ... why ?

thx
 
very nice
Joined
Jul 5, 2013
Messages
518
Reaction score
80
Re: [PHP] Webmall with Paypal & IPN

cool! that work good :)



i setup the admin name but i cant see admin panel ... why ?

thx

open the admin panel like that

myurl.com/webmall/?act=admin
 
Newbie Spellweaver
Joined
Dec 24, 2012
Messages
76
Reaction score
5
Help pliss

fGXmNm2 - [PHP] Webmall with Paypal & IPN - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
very nice
Joined
Jul 5, 2013
Messages
518
Reaction score
80
Help pliss

fGXmNm2 - [PHP] Webmall with Paypal & IPN - RaGEZONE Forums

replace your index.php with this one
<?php
session_start();
include 'include/config.php';
?>


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>WebMall</title>


<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/signin.css" rel="stylesheet">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<center>
<H1>Welcome To The WebMall</H1><br><br>
<? if(!$Loggedin) {?>
<H2>Please Login</H2>
<form class="form-signin" method="post" action="">
<input type="text" class="form-control" name="username" placeholder="Username" required><br><p>
<input type="password" class="form-control" name="password" placeholder="Password" required><br><br>
<button class="btn btn-lg btn-primary btn-block" name="login" type="submit">Sign in</button>
</form><br>
<? } else {include 'include\items.php';} ?>
</body>


<?php


if(isset($_POST['login']))
{
$username = $sql->secure($_POST['username']);
$password = $sql->secure($_POST['password']);


$query = $sql->query("select * from $accDB..TB_User where StrUserID='$username' and password='".md5($password)."'");
if($query->execute())
{
$rows = $query->fetchAll();
$rowCount = count($rows);
if($rowCount>0)
{
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
header('location: index.php');
}
else
{
echo "<label class=bg-danger>Wrong User/Password</label>";
}
}
}


if(!empty($_SESSION['username']))
{
$act = !empty($_GET['act']) ? $_GET['act'] : '';
$act = $sql->secure($act);
if($act == "logout" && !empty($_SESSION['username']))
{
session_destroy();
header('location:index.php');
}
if($act == "admin" && $_SESSION['username'] == $adminuser)
{
include 'include/admin.php';
}
}
?>


<div id="footerContainer">
<div id="content"></div>
<div id="footer"><label class=bg-warning>© <a href='https://www.***********.com/forum/members/6567633-hazemooking.html'>This Guy</a></label></div>
</div>
 

Attachments

You must be registered for see attachments list
Back
Top